Avidemux Forum

Avidemux => Windows => Topic started by: madnesofjuice on August 11, 2020, 10:19:56 PM

Title: Problem with ass subtitle font
Post by: madnesofjuice on August 11, 2020, 10:19:56 PM
Hello! I am trying to encode with a font, but avidemux is replacing with another font. I am using ass subtitle latest nightly build - 10 august (because with normal build i get png error when im trying to attach a logo)
First photo with original font:
(https://i.imgur.com/P5xzszx.jpg)

Second photo with font replaced from avidemux:
(https://i.imgur.com/7fEbwTJ.jpg)
Title: Re: Problem with ass subtitle font
Post by: eumagga0x2a on August 12, 2020, 10:23:38 AM
Quote from: madnesofjuice on August 11, 2020, 10:19:56 PMI am trying to encode with a font, but avidemux is replacing with another font.

Please specify the font requested by the style in the .ass file (or simply provide the file). Is this font present on your system?

QuoteI am using ass subtitle latest nightly build - 10 august

Right so.

Quote(because with normal build i get png error when im trying to attach a logo)

Yep, a now known VC++ build environment issue, missed during pre-release testing :(  All MinGW and all later VC++ builds had the PNG support in the bundled libavcodec enabled.

QuoteFirst photo with original font:
https://i.imgur.com/P5xzszx.jpg
Second photo with font replaced from avidemux:
https://i.imgur.com/P5xzszx.jpg

Both embeds point to the same location (I've replaced img tags with code tags to show this).
Title: Re: Problem with ass subtitle font
Post by: madnesofjuice on August 12, 2020, 01:02:20 PM
The font name is Oswald:
(https://i.imgur.com/7K0BMbK.png)

Here is the ass file: https://www60.zippyshare.com/v/RpYBuEyM/file.html

I think the replaced font from avidemux is Georgia

My bad here is the avidemux font(ive edited the first post):
(https://i.imgur.com/7fEbwTJ.jpg)
Title: Re: Problem with ass subtitle font
Post by: eumagga0x2a on August 12, 2020, 07:39:11 PM
Zippyshare is not accessible from my location, is the file too big even when compressed to be attached right here? Else please use WeTransfer, Mega, Dropbox or Google Drive.

Apart from that, could you please start Avidemux, load the video, choose any encoder except of "Copy", configure the filter chain including the subtitle filter, open the preview in the filter manager, seek to the time in the video where the screenshot originates from, play the video long enough that some subtitles including this one subtitle are shown, then close Avidemux, compress and attach admlog.txt from %localappdata%\avidemux\ to your reply?

Unless the list https://fonts.google.com/specimen/Oswald#glyphs is incomplete (I hope so), the font seems to lack some important diacritics like ş or ţ. This would force libass to replace Oswald with a different font (which one, should be printed to the log I am asking for).
Title: Re: Problem with ass subtitle font
Post by: madnesofjuice on August 12, 2020, 07:52:05 PM
Quote from: eumagga0x2a on August 12, 2020, 07:39:11 PMZippyshare is not accessible from my location, is the file too big even when compressed to be attached right here? Else please use WeTransfer, Mega, Dropbox or Google Drive.

Ok so i saw the log and it says that avidemux cant find the font. Ive tried with ffqueue and the font its working.

Here is the line that says that cant open (line 1078)
[ass] fontconfig: cannot find font 'Oswald', falling back to 'Times New Roman Bold'
Here is the log:
https://drive.google.com/file/d/1CE5kdw-mogpF4x9lk5SE6DWMu_Imgkkn/view

Here is the ass:
https://drive.google.com/file/d/1sPWzaFj_llAaINjDmwjnA5jjVKhXXioO/view?usp=sharing

Ive tried to put another video with same font that has been already encoded with ffqueue and its the same result, the wrong font
Title: Re: Problem with ass subtitle font
Post by: eumagga0x2a on August 12, 2020, 07:55:19 PM
Okay, will have a look nevertheless, but you have clearly identified the reason (and the font has of course the glyphs with cedilla, just tested myself).
Title: Re: Problem with ass subtitle font
Post by: madnesofjuice on August 12, 2020, 07:58:41 PM
Quote from: eumagga0x2a on August 12, 2020, 07:55:19 PMOkay, will have a look nevertheless, but you have clearly identified the reason (and the font has of course the glyphs with cedilla, just tested myself).
Yes, if i understand right, the problem is that ive made diacritics myself.
I did it with fontforge and it worked on other fonts, just this one is the problem.

Ive tried with a different font (made aswell in fontforge for diacritics) and its not working, its the same thing
Title: Re: Problem with ass subtitle font
Post by: eumagga0x2a on August 12, 2020, 08:09:17 PM
The error message means that the problem occured before the question of font properties and features could arise. Apart from that, the "Oswald" font I downloaded from Google Fonts has the necessary diacritics and works in my Avidemux (well, on Linux, of course).

Have you copied the .ttf files into the folder %WINDOWSFONTDIR% points to (this is where Avidemux looks for fonts)?
Title: Re: Problem with ass subtitle font
Post by: madnesofjuice on August 12, 2020, 08:18:17 PM
Quote from: eumagga0x2a on August 12, 2020, 08:09:17 PMHave you copied the .ttf files into the folder %WINDOWSFONTDIR% points to (this is where Avidemux looks for fonts)?
I found out that the names are different there. These fonts have Aldin in the name (idk what the heck is that).

That is the second font i used to try if its working.
(https://i.imgur.com/dugD9w0.png)
Title: Re: Problem with ass subtitle font
Post by: eumagga0x2a on August 12, 2020, 08:21:09 PM
I used the "static" versions so far. And please forget the question about %WINDOWSFONTDIR%, this seems to be an internal fontconfig variable.
Title: Re: Problem with ass subtitle font
Post by: madnesofjuice on August 12, 2020, 08:29:59 PM
Quote from: eumagga0x2a on August 12, 2020, 08:21:09 PMI used the "static" versions so far. And please forget the question about %WINDOWSFONTDIR%, this seems to be an internal fontconfig variable.
So, should i do anything or i have to wait for new nightly build to get released?
Title: Re: Problem with ass subtitle font
Post by: eumagga0x2a on August 12, 2020, 08:35:02 PM
Okay, I can reproduce the issue with official MinGW nightlies (it works both with my private build for Windows and with official VC++ nightlies).

Could you please try to replace fonts.conf in the "etc\fonts\" subdirectory of Avidemux installation with the attached version? (Please strip ".txt" from the filename, I had to add it else the forum wouldn't allow me to attach it)
Title: Re: Problem with ass subtitle font
Post by: madnesofjuice on August 12, 2020, 08:39:33 PM
Quote from: eumagga0x2a on August 12, 2020, 08:35:02 PMOkay, I can reproduce the issue with official MinGW nightlies (it works both with my private build for Windows and with official VC++ nightlies).

Could you please try to replace fonts.conf in the "etc\fonts\" subdirectory of Avidemux installation with the attached version? (Please strip ".txt" from the filename, I had to add it else the forum wouldn't allow me to attach it)
I cant download i tried with firefox and chrome, can you please upload somewhere else?
Title: Re: Problem with ass subtitle font
Post by: eumagga0x2a on August 12, 2020, 08:40:30 PM
Sorry, scratch that. It doesn't work. My build uses an external, more current libass. Maybe this is related.

Thank you for your report.
Title: Re: Problem with ass subtitle font
Post by: eumagga0x2a on August 12, 2020, 08:41:58 PM
For now, you could use the last (200812 or later) VC++ nightly.

(VC++ builds also use an external libass, not the one bundled with the plugin)
Title: Re: Problem with ass subtitle font
Post by: eumagga0x2a on August 12, 2020, 08:47:08 PM
Quote from: madnesofjuice on August 12, 2020, 08:39:33 PMI cant download i tried with firefox and chrome, can you please upload somewhere else?

Confirmed, something went wrong during the forum software upgrade.
Title: Re: Problem with ass subtitle font
Post by: madnesofjuice on August 12, 2020, 08:48:58 PM
Quote from: eumagga0x2a on August 12, 2020, 08:41:58 PMFor now, you could use the last (200812 or later) VC++ nightly.

(VC++ builds also use an external libass, not the one bundled with the plugin)
Thanks, its working. You can close the topic
Title: Re: Problem with ass subtitle font
Post by: eumagga0x2a on August 12, 2020, 08:52:55 PM
The topic will be closed once the issue is fixed :-)
Title: Re: Problem with ass subtitle font
Post by: madnesofjuice on December 11, 2020, 10:50:28 PM
Hello! I have again the problem.
(https://i.imgur.com/bQX9SjU.png)
This is Aegisub preview
(https://i.imgur.com/hASUuwq.png)
This is Avidemux preview
(https://i.imgur.com/EgtqXta.png)

I think i have the lastest nightly
(https://i.imgur.com/O6hKbXJ.png)

Can you have a look at this again, please?
Title: Re: Problem with ass subtitle font
Post by: eumagga0x2a on December 11, 2020, 11:22:23 PM
The last one is r201211, but this doesn't matter here as both are MinGW builds using bundled libass instead of a system one. The last VC++ build dates back to Nov 2, i.e. if you need the subtitle plugin to work right, you have to choose between sticking with relatively old VC++ nightlies and cross-compiling Avidemux yourself (this is no rocket science but takes time, a Linux installation and a lot of disk space).

If you really want the latest fixes and a working libass but don't want to spend half a day on MXE setup, I could provide a private MinGW build with an external libass.
Title: Re: Problem with ass subtitle font
Post by: madnesofjuice on December 12, 2020, 07:13:18 PM
Quote from: eumagga0x2a on December 11, 2020, 11:22:23 PMThe last one is r201211, but this doesn't matter here as both are MinGW builds using bundled libass instead of a system one. The last VC++ build dates back to Nov 2, i.e. if you need the subtitle plugin to work right, you have to choose between sticking with relatively old VC++ nightlies and cross-compiling Avidemux yourself (this is no rocket science but takes time, a Linux installation and a lot of disk space).

If you really want the latest fixes and a working libass but don't want to spend half a day on MXE setup, I could provide a private MinGW build with an external libass.
Sorry but im a fucking dumbass and i didnt understand a thing. If you can give me that mingw with installation instruction, sure thing, Im in.
So u can give me that private mingw build
Title: Re: Problem with ass subtitle font
Post by: eumagga0x2a on December 13, 2020, 12:31:22 AM
I am notoriously bad at explaining stuff :-)

The private build has been uploaded to WeTransfer (https://we.tl/t-tv1FWLe7hQ), checksums:

sha256sum avidemux_r201210-204629_win64Qt5.zip
3a9637d07ee953d91059b8520a9dd39a30c4048110a15001dc9498827371cd77  avidemux_r201210-204629_win64Qt5.zip
md5sum avidemux_r201210-204629_win64Qt5.zip
f0038ffbb49d6319eb3b9f44c1f204a2  avidemux_r201210-204629_win64Qt5.zip

You could also try the latest VC++ nightly. I would not expect the private build to help if the VC++ nightly fails.

To build Avidemux for Windows yourself, you need a Linux (preferably Fedora or Ubuntu/Debian). Install git, clone Avidemux source from https://github.com/mean00/avidemux2, read the documentation (https://github.com/mean00/avidemux2/blob/master/cross-compiling.txt), add --with-system-libass as an additional option to bootStrapCrossMingwQt5_mxe.sh in order to use a more current libass from MXE instead of the old version bundled with Avidemux.

The private build has been compiled on Fedora with the command line

bash bootStrapCrossMingwQt5_mxe.sh --64 --mxe-root=/home/eumagga/adm/mxe --with-system-libass --with-system-liba52 --with-system-libmad
Title: Re: Problem with ass subtitle font
Post by: madnesofjuice on December 13, 2020, 02:29:36 PM
Quote from: eumagga0x2a on December 13, 2020, 12:31:22 AMYou could also try the latest VC++ nightly. I would not expect the private build to help if the VC++ nightly fails.
It worked the vc++ nightly. Thank you
Title: Re: Problem with ass subtitle font
Post by: eumagga0x2a on December 13, 2020, 06:10:36 PM
As expected, thank you for the confirmation.

In case you happened to pick the VC++ nightly from Nov 2, 2020, the project maintainer has kindly uploaded a fresh one (201213) to https://avidemux.org/nightly/vsWin64/ (https://avidemux.org/nightly/vsWin64/), please update. With the latter VC++ nightly, there should not be any need for the private build whatsoever.