Avidemux Forum

Avidemux => Main version 2.6 => Topic started by: Gandalf on January 06, 2021, 07:04:12 AM

Title: [ SOLVED ] No subtitle filters with Avidemux 2.7.4 (Linux).
Post by: Gandalf on January 06, 2021, 07:04:12 AM
I am trying to add subtitles (file extension .srt) to a video, but when I click on the "Subtitles" category in the "Filters" section the "Available filters" column is empty. How do I remedy that situation?
Title: Re: No subtitle filters with Avidemux 2.7.4 (Linux).
Post by: eumagga0x2a on January 06, 2021, 07:58:06 AM
2.7.4 is a legacy, unsupported version. If your distribution has glibc in version 2.28 or later, please try the latest appImage from https://avidemux.org/nightly/appImage4Buster/ or build from source (git master) yourself.
Title: Re: No subtitle filters with Avidemux 2.7.4 (Linux).
Post by: Gandalf on January 06, 2021, 06:42:39 PM
What it the latest version of Avidemux?
Title: Re: No subtitle filters with Avidemux 2.7.4 (Linux).
Post by: eumagga0x2a on January 06, 2021, 08:29:44 PM
The .app files in https://avidemux.org/nightly/appImage4Buster/ are named

avidemuxLinux_GLIBC_a.bc_amd64_YYMMDD_NNNN.app

where the sequence a.bc is the minimum glibc version required (2.28 as on Debian Buster), YY are the last two digits of the year, MM is the month of the year with leading zero and DD is the day of month with leading zero. NNNN represent the build number.

As I checked, the latest nightly build was 210104.

The latest and meanwhile very outdated release is 2.7.6, current nightlies report themselves 2.7.7 in anticipation of the next release, due in near future.
Title: Re: No subtitle filters with Avidemux 2.7.4 (Linux).
Post by: Gandalf on January 14, 2021, 10:47:50 PM
Quote from: eumagga0x2a on January 06, 2021, 07:58:06 AM2.7.4 is a legacy, unsupported version. If your distribution has glibc in version 2.28 or later, please try the latest appImage from https://avidemux.org/nightly/appImage4Buster/ or build from source (git master) yourself.
I just installed version 2.7.6 today, and I forgot to mention before that my operating system is Slackware Linus 14.2 (64-bit). So how do I get the subtitle filters to show up (the version of glibc on my system is 2.23).
Title: Re: No subtitle filters with Avidemux 2.7.4 (Linux).
Post by: eumagga0x2a on January 15, 2021, 01:36:34 AM
Quote from: Gandalf on January 14, 2021, 10:47:50 PMthe version of glibc on my system is 2.23

Old-style appImages from https://avidemux.org/nightly/appImage4 are the only option besides compiling from source then.
Title: Re: No subtitle filters with Avidemux 2.7.4 (Linux).
Post by: Gandalf on January 15, 2021, 04:13:05 AM
I tried that, and it can't initialize the audio device (and I tried them all).
Title: Re: No subtitle filters with Avidemux 2.7.4 (Linux).
Post by: eumagga0x2a on January 15, 2021, 04:37:01 AM
Could you please launch the appImage in terminal, redirect stdout and stderr to file and post that file?

The only audio device which really should work is PulseAudio (PulseAudioSimple). If it fails with the old-style appImage, does it fail when you build yourself from git master too?
Title: Re: No subtitle filters with Avidemux 2.7.4 (Linux).
Post by: Gandalf on January 16, 2021, 03:13:08 AM
Quote from: Gandalf on January 06, 2021, 06:42:39 PMWhat it the latest version of Avidemux?
Never mind, I found out what the latest version is and have since downloaded and installed it - but I sill don't see any subtitle filters for it. Is there any way to correct that (I use Slackware 14.2 (64-bit) as my operating system)?
Title: Re: No subtitle filters with Avidemux 2.7.4 (Linux).
Post by: Gandalf on January 16, 2021, 04:50:39 AM
Quote from: eumagga0x2a on January 15, 2021, 04:37:01 AMCould you please launch the appImage in terminal, redirect stdout and stderr to file and post that file?

The only audio device which really should work is PulseAudio (PulseAudioSimple). If it fails with the old-style appImage, does it fail when you build yourself from git master too?
When I use the appImage I see the subtitle settings (which seems to work okay), but I don't hear sound from it - and the only choices for audio device are "Dummy" and "OSS". However, when I use the compiled version, I get sound (with the corect choices for the "audio device' settings - but NO subtitle filter(s). Unfortunately I'm not certain how to do a redirect of stdout or stderr with Linux (which is my operating system).
Title: Re: No subtitle filters with Avidemux 2.7.4 (Linux).
Post by: eumagga0x2a on January 16, 2021, 04:15:21 PM
Please run

bash bootStrap.bash --with-system-libass > ~/admCmakeLog.txt 2>&1
in Avidemux top source directory (avidemux2 wherever you have cloned the repository), search-replace your user name and the path in the generated admCmakeLog.txt file with a placeholder if you wish, then ZIP-compress it and attach to your reply.

Avidemux looks for system libass using pkg-config, it also needs fontconfig, freetype and fribidi headers to enable the feature. If Slackware does something no other distribution is doing and pkg-config is not usable there, you are out of luck.
Title: Re: No subtitle filters with Avidemux 2.7.4 (Linux).
Post by: Gandalf on January 16, 2021, 09:32:41 PM
Here is the file that you requestedadmCmakeLog.txt
Title: Re: No subtitle filters with Avidemux 2.7.4 (Linux).
Post by: eumagga0x2a on January 16, 2021, 10:42:49 PM
Avidemux bootstrap script expects /tmp to be writable. You need either to edit the script to point it to a different location for build logs or to ensure that this expectation is met.

Apart from that, I don't recommend building 2.7.6. There are no known noteworthy new issues with the current git master while dozens of major bugs, present in 2.7.6, have been resolved in the meantime.
Title: Re: No subtitle filters with Avidemux 2.7.4 (Linux).
Post by: Gandalf on January 17, 2021, 12:31:04 AM
I always build Slackware packages as "root" (if that information is of any help). And since you don't recommend building 2.7.6, what DO you recommend?
Title: Re: No subtitle filters with Avidemux 2.7.4 (Linux).
Post by: eumagga0x2a on January 17, 2021, 01:05:49 AM
Quote from: Gandalf on January 17, 2021, 12:31:04 AMI always build Slackware packages as "root"

This is a terrible, very dangerous practice. You really shouldn't.

Quote from: Gandalf on January 17, 2021, 12:31:04 AMAnd since you don't recommend building 2.7.6, what DO you recommend?

As mentioned already on three occasions in this topic, I recommend building Avidemux from the git master:

git clone https://github.com/mean00/avidemux2.git && cd avidemux2 && git submodule update --init --recursive && bash bootStrap.bash --with-system-libass > ~/admCmakeLog.txt 2>&1
Title: Re: No subtitle filters with Avidemux 2.7.4 (Linux).
Post by: eumagga0x2a on January 17, 2021, 01:09:02 AM
(Obviously, only the last command in the one-liner above builds Avidemux, all other chained commands prepare the source)
Title: Re: No subtitle filters with Avidemux 2.7.4 (Linux).
Post by: Gandalf on January 28, 2021, 05:57:27 PM
I finally got the subtitle filters to function correctly using the following solution provided by a Slackware support forum that I am a member of:
QuoteThe answer is simple, but not easy to find when you create posts thinking you need to modify system libraries.

Simply comment out or remove line 78 in the avidemux.SlackBuild. It seems that sed command prevents the subtitle filter to be created.

This is the command that needs to be removed/commented out:

Code:

sed -i 's|0.19|1.0|' avidemux_plugins/ADM_videoFilters6/ass/CMakeLists.txt || exit 1

it's intended for those of you who use Slackware 14.2 as your operating system.
Title: Re: [ SOLVED ] No subtitle filters with Avidemux 2.7.4 (Linux).
Post by: Gandalf on January 29, 2021, 04:23:57 AM
Quote from: eumagga0x2a on January 17, 2021, 01:05:49 AM
Quote from: Gandalf on January 17, 2021, 12:31:04 AMI always build Slackware packages as "root"

This is a terrible, very dangerous practice. You really shouldn't.

Quote from: Gandalf on January 17, 2021, 12:31:04 AMAnd since you don't recommend building 2.7.6, what DO you recommend?

As mentioned already on three occasions in this topic, I recommend building Avidemux from the git master:

git clone https://github.com/mean00/avidemux2.git && cd avidemux2 && git submodule update --init --recursive && bash bootStrap.bash --with-system-libass > ~/admCmakeLog.txt 2>&1
For your information (for what it's worth) Slackware won't let you build packages unless you're logged on as 'root'.
Title: Re: [ SOLVED ] No subtitle filters with Avidemux 2.7.4 (Linux).
Post by: eumagga0x2a on January 29, 2021, 03:42:50 PM
Quote from: Gandalf on January 28, 2021, 05:57:27 PMSimply comment out or remove line 78 in the avidemux.SlackBuild. It seems that sed command prevents the subtitle filter to be created.

This is the command that needs to be removed/commented out:
sed -i 's|0.19|1.0|' avidemux_plugins/ADM_videoFilters6/ass/CMakeLists.txt || exit 1

Which version of fribidi does your Slackware installation have? Avidemux requires at least 0.19. Slackware package maintainer seems to have chosen to patch the test in Avidemux to require version 1.0 as minimum.

Quote from: Gandalf on January 29, 2021, 04:23:57 AMFor your information (for what it's worth) Slackware won't let you build packages unless you're logged on as 'root'.

I am not familiar with Slackware build infrastructure, it may require root permissions to initiate the package creation and drop them for the build step. It is also possible that some tools are "hidden" from ordinary users like on SuSE by not including some directories (especially everything with sbin) into $PATH.

If you compile an application or library yourself, please never ever invoke build scripts (configure, make) as root. The only exception is the final "make install" call, which will inevitably require root permissions if you install something to the default prefix.
Title: Re: [ SOLVED ] No subtitle filters with Avidemux 2.7.4 (Linux).
Post by: Gandalf on January 29, 2021, 06:24:08 PM
QuoteWhich version of fribidi does your Slackware installation have? Avidemux requires at least 0.19. Slackware package maintainer seems to have chosen to patch the test in Avidemux to require version 1.0 as minimum.
0.19.7
Title: Re: [ SOLVED ] No subtitle filters with Avidemux 2.7.4 (Linux).
Post by: eumagga0x2a on January 29, 2021, 06:59:59 PM
Quote from: Gandalf on January 29, 2021, 06:24:08 PM0.19.7

Indeed, this is the official version in 14.2, the version 1.0.10 is in master. Therefore, SlackBuild for avidemux patching Avidemux cmake script to require 1.0 on the branch for 14.2 (https://git.slackbuilds.org/slackbuilds/tree/multimedia/avidemux/avidemux.SlackBuild?h=14.2 (https://git.slackbuilds.org/slackbuilds/tree/multimedia/avidemux/avidemux.SlackBuild?h=14.2)) is a bug, you should probably report it to Matteo Bernardini (https://git.slackbuilds.org/slackbuilds/tree/multimedia/avidemux/avidemux.info).

And yes, Slackware builds as root, albeit in a temporary directory. Please don't do it when you realize that 2.7.6 is very old and buggy and evaluate trying the git master. Building as root is really a very dangerous practice, unsupported and discouraged (https://github.com/mean00/avidemux2/blob/master/createRpmFromSourceFedora.bash#L152) for Avidemux.