Avidemux Forum

Avidemux => Main version 2.6 => Topic started by: fastleo63 on September 10, 2012, 03:42:16 PM

Title: Mpeg4 ASP (xvid4) "Advanced Simple@L5" profile missing in 2.6.0 final
Post by: fastleo63 on September 10, 2012, 03:42:16 PM
As subject. How can I encode with L5 profile?
Title: Re: Mpeg4 ASP (xvid4) "Advanced Simple@L5" profile missing in 2.6.0 final
Post by: finiderire on March 26, 2017, 11:46:40 AM
Hi,

Does anyone know the reason why "Advanced Simple @L5" is not available ?

As far as I know this profile provides better quality than "Advanced Simple @L4" which is the max available with avidemux for Xvid.

I need to use Xvid which is the only codec really compatible with all TVs and DVD-Players USB input.

Thank you

a+,=)
-=Finiderire=-

Configuration:
Avidemux v2.6.18
Xvid v1.3.4
Title: Re: Mpeg4 ASP (xvid4) "Advanced Simple@L5" profile missing in 2.6.0 final
Post by: AQUAR on March 26, 2017, 11:58:28 AM
Older codecs like Xvid are not the target in the ADM 2.6 branch.
Originally Xvid wasn't even included.

Way back I asked for it to be added back in as I too had Xvid only compatible devices (not so anymore!).
Thing is that I often wanted to go "backwards" - from AVC to Xvid.

If you activities are entirely within the older codec domain (mpeg2 & mpeg4) then ADM 2.5 branch is the way to go.
You can run both versions along side (they are different programs under the hood!).

Title: Re: Mpeg4 ASP (xvid4) "Advanced Simple@L5" profile missing in 2.6.0 final
Post by: eumagga0x2a on March 26, 2017, 12:05:35 PM
Xvid source http://websvn.xvid.org/cvs/viewvc.cgi/trunk/xvidcore/src/xvid.h?view=markup (http://websvn.xvid.org/cvs/viewvc.cgi/trunk/xvidcore/src/xvid.h?view=markup) knows nothing about an "Advanced Simple@L5" profile (it would be XVID_PROFILE_AS_L5 then). Simple profiles (without "Advanced") XVID_PROFILE_S_L4a, XVID_PROFILE_S_L5 and XVID_PROFILE_S_L6 are really missing.
Title: Re: Mpeg4 ASP (xvid4) "Advanced Simple@L5" profile missing in 2.6.0 final
Post by: AQUAR on March 27, 2017, 11:57:42 AM
Pity about using different terminology for the end user.
But Advanced Simple@L5 is what it is called in the encoding configuration dialog of the Xvid codec.

Don't know what the difference is between the L4 and L5 MPEG4 standards.
Suspect nothing much of consequence as IIRC ADM 2.5 defaults to L4 and has heaps of encoding options.

ADM 2.6 doesn't have all that much configurable options for the xvid codec anyway.
Not even sure if the choices of MPEG4 standard available are enforced (hence ADM 2.5 if working with older codecs!).
Title: Re: Mpeg4 ASP (xvid4) "Advanced Simple@L5" profile missing in 2.6.0 final
Post by: eumagga0x2a on March 27, 2017, 12:01:09 PM
Quote from: AQUAR on March 27, 2017, 11:57:42 AM
But Advanced Simple@L5 is what it is called in the Xvid encoding configuration dialog.

What is "Xvid encoding configuration dialog"? edit: Avidemux uses the library. It can do only what the library supports.
Title: Re: Mpeg4 ASP (xvid4) "Advanced Simple@L5" profile missing in 2.6.0 final
Post by: AQUAR on March 27, 2017, 12:14:09 PM
Have a look at the Xvid configuration dialog in ADM 2.6 and you will that the OP is using the accepted terminology.

When you install the actual Xvid codec it comes with a configuration dialog.
That dialog includes Advanced Simple@L5, so it is available in the Xvid codec (and its core DLL).

No idea why ADM ignores that option but guess the default parameters for these 2 levels would give the same result (considering you can't change any of the encoding parameters in ADM 2.6).   
Title: Re: Mpeg4 ASP (xvid4) "Advanced Simple@L5" profile missing in 2.6.0 final
Post by: eumagga0x2a on March 27, 2017, 01:03:36 PM
Quote from: AQUAR on March 27, 2017, 12:14:09 PM
When you install the actual Xvid codec it comes with a configuration dialog.

No, at least not on Linux. Please point me to the source of this dialog.

QuoteThat dialog includes Advanced Simple@L5, so it is available in the Xvid codec (and its core DLL).

No, it is not, easily verifiable by a brief look into the header file.
Title: Re: Mpeg4 ASP (xvid4) "Advanced Simple@L5" profile missing in 2.6.0 final
Post by: AQUAR on March 28, 2017, 12:03:04 PM
The Xvid encoder configuration dialog is usually accessible via your video processing software using VFW or DirectShow.
In the Mpeg4 days, the FFDSHOW direct show filter was quite popular.
EG FFDSHOW would simply pop up that Xvid configuration dialog if you wanted to encode with Xvid (ie xvidvfw.dll,configure).


Can't help you with the Linux way of these things, maybe Jan remembers MPEG4/Xvid frontends under Linux.

As far as I know this dialog enforces the selected MPEG4 standard/restrictions on the Xvid encoder.
The dialog includes "Advanced Simple@L5" so I expect it to be defined in these standards (its many years since I looked at this!).
Title: Re: Mpeg4 ASP (xvid4) "Advanced Simple@L5" profile missing in 2.6.0 final
Post by: Jan Gruuthuse on March 28, 2017, 04:48:18 PM
2006 was still on windows.
http://www.divx-digest.com/articles/xvid_setup.html
Title: Re: Mpeg4 ASP (xvid4) "Advanced Simple@L5" profile missing in 2.6.0 final
Post by: javi010506 on March 28, 2017, 08:42:13 PM
Quote from: AQUAR on March 26, 2017, 11:58:28 AM
Older codecs like Xvid are not the target in the ADM 2.6 branch.
Originally Xvid wasn't even included.

Way back I asked for it to be added back in as I too had Xvid only compatible devices (not so anymore!).
Thing is that I often wanted to go "backwards" - from AVC to Xvid.

If you activities are entirely within the older codec domain (mpeg2 & mpeg4) then ADM 2.5 branch is the way to go.
You can run both versions along side (they are different programs under the hood!).
Title: Re: Mpeg4 ASP (xvid4) "Advanced Simple@L5" profile missing in 2.6.0 final
Post by: eumagga0x2a on March 28, 2017, 10:35:56 PM
Is it possible that the xvid encoder frontend for Windows starts counting profiles at 1 instead of at 0? There are 5 advanced simple profiles supported by the xvid library, from L0 to L4.

grep XVID_PROFILE_AS_L /usr/include/xvid.h
Title: Re: Mpeg4 ASP (xvid4) "Advanced Simple@L5" profile missing in 2.6.0 final
Post by: Jan Gruuthuse on March 29, 2017, 04:29:01 AM
- Simple@L0 to Simple@L3 (4 profiles)
- Advanced Simple@L0 to Advanced Simple@L5 (6 profiles)
source: Profile @ Level (http://www.divx-digest.com/articles/xvid_setup_page2.html#profile)

Has always been tricky (programming starts counting @ 0)
Humans think 0 is nothing and 1 = 1
computer 1st count = 0
computer 2nd count = 1

and when you're mixing the 2 together = trouble
same goes for arrays 1st array has counter @ 0
Title: Re: Mpeg4 ASP (xvid4) "Advanced Simple@L5" profile missing in 2.6.0 final
Post by: eumagga0x2a on March 29, 2017, 06:59:40 AM
Whatever. As Avidemux is built against the xvid library, and the library supports only from XVID_PROFILE_AS_L0 to XVID_PROFILE_AS_L4, nothing can be done on Avidemux part, period.
Title: Re: Mpeg4 ASP (xvid4) "Advanced Simple@L5" profile missing in 2.6.0 final
Post by: AQUAR on March 29, 2017, 07:36:44 AM
"Whatever" isn't helpful to the OP.

The way I see it (as an end user - so might well be wrong) the various MPEG4 standards have nothing to do per se with the xvid library.
Each standard simply defines the boundaries permitted for the Xvid (MPEG4) encoding.

However, if I accept eumagga's input, it seems that the xvid core library contains default parameters for various levels except L5.
Perhaps Mean can confirm if this is the case.

Why no L5 - probably L4 is just enforcing a few worthwhile restrictions.




Title: Re: Mpeg4 ASP (xvid4) "Advanced Simple@L5" profile missing in 2.6.0 final
Post by: Jan Gruuthuse on March 29, 2017, 08:05:05 AM
Have no idea what happened here:
http://avidemux.org/smif/index.php/topic,12689.msg65170.html#msg65170
Title: Re: Mpeg4 ASP (xvid4) "Advanced Simple@L5" profile missing in 2.6.0 final
Post by: AQUAR on March 29, 2017, 11:05:27 AM
About that thread:
I was already happy with Mean re-introducing Xvid in ADM2.6, and not all that fussed that there was no ASL5 profile.
Always assumed ADM set encoding defaults for the various codecs, but maybe I am wrong when it comes to the defaults for these MPEG4 standards/profiles.
In any case IIRC ADM will override these profile defaults with available user encoder setting even if they fall outside that profile:
For example ASL4 has a max frame size that is simply ignored when recoding video with a much bigger frame size.   

There is one more profile for the Xvid codec "unrestricted" - of course without a parameters dialog for it in ADM2.6 it should be missing.

Not used Xvid for a long time now and I no longer have it installed except as part of FFDshow and ADM.
IIRC there were 2 dialogs that came with the installer for this codec (an encoding and a decoding one) using the VFW frontend.
It always included the ASL5 profile and no idea if the parameters came from the Xvid core library or a supporting library.

Curious if Linux had a similar frontend for setting Xvid profiles.