digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Video Encoding and Conversion (http://www.digitalfaq.com/archives/encode/)
-   -   Codecs: Libavcodec progress thread (http://www.digitalfaq.com/archives/encode/14153-codecs-libavcodec-progress.html)

incredible 03-26-2006 05:36 PM

Quote:

Originally Posted by danpos
Regard on the second screenshot, we can se that peak/average bitrate are so far away the values showed by BV from Lab (yeah, this is crazy! Shocked ). We can see that max bitrate was respected.

You should take into account testing various sources cause as you can see I got clear spikes up to 9900 where 9000 was set as maximum.

kwag 03-26-2006 06:14 PM

Re: Thanks.
 
Quote:

Originally Posted by Dialhot
For me this is enought. This lavcodec joke is definitely over me. Bye.

DITTO :!:

-kwag

rds_correia 03-26-2006 06:26 PM

Same here.
No need to post my findings since they are already documented from other's posts here.
And Sagittaire, if you take a look at the old MEncoder part of the forum you'll notice how Kwag, Incredible,myself and many others were all the biggest supporters of MEncoder.
I think it's a wonderful player (MPlayer) and it's a fine encoder for non-MPEG1/2.
Cheers

danpos 03-26-2006 08:28 PM

Quote:

Originally Posted by incredible
You should take into account testing various sources cause as you can see I got clear spikes up to 9900 where 9000 was set as maximum.

Of course :!: I'm following this thread and I solved to do some tests for fun and knowledge purposes only. I never used Mencoder before and I was interested to test Sagittaire's statements out and for my few tests I could to verify that following him instructions I got a MPEG2 streams in compliance with DVD specs.

But, the tests are insufficient? Yep, of course. Should I to do several tests with it? Yep, but when I get some free time.

I'm not questioning yours results as I know that you're a expert and very serious guy (and I did see yours results). I'm just showing my experience with a few tests that I did.

BTW, take an eye in the bitrate graph below:

http://www.digitalfaq.com/archives/error.gif

You can see the average/peak bitrate reported by BV from Lab and the histogram/continuous distribution approached. In the histogram you can see clearly some spikes into it, right? OK, I've to say that this bitrate spike is from a piece of ORIGINAL VOB - Harry Potter II - which I cut off using Kutter ;).

Other bitrate graphs:

Original VOB (Harry Potter II - R4)
http://www.digitalfaq.com/archives/i.../2006/03/1.png

Encoded with CCE (OPV - Q = 1)
http://www.digitalfaq.com/archives/error.gif

I put these graphs here because I did stay surprise with them. JFYI. :)

Regards,

rds_correia 03-26-2006 09:07 PM

Hi Danilo :),
This is some interesting findings you did 8O.
I don't look at DVDLab's BV window, even because I do most of my authoring with Muxman.
But I'll take a look at it one of these days.
BTW, does the real BitRate Viewer tool show similar results with those Harry Potter movies?
Nice seeing you around ;).
Cheers

PS: Oh, and send my best to Gino :)

PS2: Here's some late night findings with the original BitRate Viewer 1.5 and some original VOBs.
The movies were Batman Begins and Catwoman.
None of them broke the 9.000Kbit/s roof.
Here's goes some pictures

Batman Begins - Zone 2 - PAL

http://www.digitalfaq.com/archives/i.../2006/03/2.png

Catwoman - Zone 2 - PAL

http://www.digitalfaq.com/archives/i.../2006/03/3.png

Tomorrow I'll try to post some HCEnc 0.17 and some MEncoder encoded streams and post the results.
Cheers

danpos 03-26-2006 10:40 PM

Hi, Rui!
 
@rds_correia

Hi, mate!! I'm always around here, but generally I just read the threads because of the experts here "dão conta do recado"! :D

Yep, I did stay puzzled with these 'findings' so I did solve to post them. They're really strange but maybe my DVD-Lab version be a bit old and so not up-to-date (I mean the BV tool from it).

BTW, even BV from TECO doesn't show the correct average bitrate from a videostream (even that without pulldown flags cos I did see that pulldown ones 'increase' - artificially - the bitrate of videostream).

I just burned a CDRW right now (I did a miniDVD with Nero Express because of I haven't DVDRW right now - and I always forget to buy it, oh boy! :( ) and watched in my 29" TV set and the quality is awesome for a 1790 Kbits/s encoding (not used filters, not used post-processing from DGMPEGDec, just decoding/encoding ;) ). As the max bitrate was lower than 6000 Kbits/s I hadn't any stuttering or other playback issue (again, in this case the max bitrate was respected, even that 'instant bitrate' and the 'peak bitrate from a continuous distribution' as well).

Cheers,

incredible 03-27-2006 04:28 AM

Beside spikes etc. ... it was clearly reported (not only here) that even if the bitrates are in the DVD compilant range, that is NO proof that this result is full DVD compilant. Many users reported problems (specially on Pioneer devices) that no proper playback of their "DVD compilant range looking" result is given.

Sagittaire 03-27-2006 11:28 AM

Quote:

And now this is Bitrate viewver that is buggy and of course not this wonderfull, marvelous, amazing fully 1000% percent best MPEG12345678 encoder ever.
Well it's not my fault if Bitrate Viewer can't analyse correctly the MPEG2 stream. FFDShow or Impressionist MPEG2 analyser can make correct quantizer analysis ... :roll:

And yes actually Libavcodec use the best codec for metric ... 8)
MPEG2 : the best and by far
MPEG4 ASP : actually little better than XviD or DivX
MPEG4 AVC : x264 is actually the best absolute video codec in the world
SNOW : very promising open source codec/norme ... done actually same result than MPEG4 ASP


Quote:

Do you think these arguments just are enough to do encode in a non-linear mode? Even if they do "sound" so? Gimme a clear documentation if this from somewhere - like the mencoder docu.
p_mask=<0.0−1.0> (also see vi_qfactor)
Reduces the quality of inter blocks. This is equivalent to increasing the quality of intra blocks, because the same average bitrate will be distributed by the rate controller to the whole video sequence (default: 0.0 (disabled)). p_mask=1.0 doubles the bits allocated to each intra block.

naq
Normalize adaptive quantization (experimental). When using adaptive quantization (*_mask), the average per-MB quantizer may no longer match the requested frame-level quantizer. Naq will attempt to adjust the per-MB quantizers to maintain the proper average.

qprd (mbd=2 only)
Rate distorted optimal quantization parameter (QP) for the given lambda of each macroblock.

Mencoder encoding
http://www.digitalfaq.com/archives/error.gif



Quote:

Beside spikes etc. ... it was clearly reported (not only here) that even if the bitrates are in the DVD compilant range, that is NO proof that this result is full DVD compilant. Many users reported problems (specially on Pioneer devices) that no proper playback of their "DVD compilant range looking" result is given.
I will make annonce on http://forum.surdvd.com/ for test my mencoder stream for all possible Pionner SAP ... but I know already the answer ... :wink:

danpos 03-28-2006 06:38 AM

Quote:

Originally Posted by Sagittaire
I will try to update profil:
- VCD, SVCD, DVD profil
- PAL, NTSC profil
- progressive, telecine, interlaced profil
- Fast, normal, high and insame profil

Any planning to release these profiles?

TIA,

incredible 03-28-2006 08:48 AM

Sagittaire, regarding to the "float" Quantizer info in your pic samples:
Which FFdshow Version are you using?

Sagittaire 03-28-2006 04:58 PM

Quote:

Sagittaire, regarding to the "float" Quantizer info in your pic samples:
Which FFdshow Version are you using?
Unfortunaly I format actually my system (Motherboard out ... snif) but ffdshow is very recent version.

Anyway, linear or no linear, adaptative or not adaptative is not important. Linear quantisation is perhaps not same function that adaptative quantisation. I don't know if mencoder can or can't use no linear quantisation. I don't know if Bitrate Viewer / FFDShow show real quantizer. I can just say that Bitrate Viewer and FFDShow done different result ... :?:

Real question is compliant or not compliant. I will test my mencoder stream for all possible Pionner SAP and post result here.

PS: do you know the exact pionner model for mencoder problem ... ???

Dialhot 03-28-2006 06:44 PM

Quote:

PS: do you know the exact pionner model for mencoder problem ... ???
DV-444 and DVR-220 are the most common SAP that have problems with bitrate but don't know how they deal specifically with mencoder. But you already been in a thread talking about libavcodec, bitrate control and spikes. I let you refresh your memories :
http://forum.doom9.org/showthread.php?p=699882

rds_correia 03-28-2006 07:34 PM

And, BTW what a nice set of posts we can read further in that D9 thread :lol:.
Very...educational :lol:.

Sagittaire 03-28-2006 07:36 PM

Quote:

DV-444 and DVR-220 are the most common SAP that have problems
I will test that with my "mencoder low bitrate profil" and I post result here.

Sagittaire 03-29-2006 02:20 AM

Quote:

Originally Posted by rds_correia
And, BTW what a nice set of posts we can read further in that D9 thread :lol:.
Very...educational :lol:.

yes hank315 (as always) done good solution. but hank315 is MPEG2 dev ... it's really easy for him.

Code:

quantiser                        linear                non-linear
0                (forbidden)
1                2                1
2                4                2
3                6                3
4                8                4
5                10                5
6                12                6
7                14                7
8                16                8
9                18                10
10                20                12
11                22                14
12                24                16
13                26                18
14                28                20
15                30                22
16                32                24
17                34                28
18                36                32
19                38                36
20                40                40
21                42                44
22                44                48
23                46                52
24                48                56
25                50                64
26                52                72
27                54                80
28                56                88
29                58                96
30                60                104
31                62                112

1) Adaptative quantisation and Linear quantisation are simply not same function. Libavcodec use Linear quant and use AQ. HC, TMPGEnc use non linear quant and use AQ. Inc and me not speack simply about the same function ...

2) FFDShow OSD seem show linear/non linear quantisation. I don't know what exactly BV show (real overall quantizer or overall linear/ no linear quant ???)


but hank315 say too
http://forum.doom9.org/showthread.php?t=98633&page=4

Quote:

Originally Posted by hank315
I just discovered it by accident because I introduced the same bug with HC015 (will be solved in HC016)
It can cause severe blocking on some (very strict) HW players like Pioneer, Philips and Koss.
It's about motion vector length which is restricted for Main level.
In fact it was mean who pointed me to this very well hidden MV restriction.
The vertical motion vectors should be limited so they can be 'folded' in f_codes <= 5.
In about 15% of the frames Mencoder also uses values of 6 and 7 for f_code[0][1] and f_code[1][1].

Quote:

Originally Posted by sagittaire
motion vector range ... perhabs. I think that for MPEG2 compliant stream max vector must be 128 ... ???

Update with new mencoder sample
me_range=128 in mencoder CLI

Quote:

Originally Posted by hank315
Both clips seem OK now.


jason 03-29-2006 10:02 AM

Quote:

Originally Posted by rds_correia
And, BTW what a nice set of posts we can read further in that D9 thread :lol:.
Very...educational :lol:.

Little off-topic : is the Nic of Doom9 the person who created the Nic's Xvid ?

Boulder 03-29-2006 10:05 AM

Yes.

jason 03-29-2006 02:13 PM

Thanks.

Off-topic ended. :lol:

rds_correia 03-29-2006 03:37 PM

Small remark: Nic is not the creator of XviD.
XviD has it's own development team.
That means that Nic simply compiles the sources found in XviD.org ;).
I used the word simply not meaning that it is a simple task.
But it's definitly a simpler task compared with the development team.

@Sagittaire,
Actually I was not speaking of Hank315 when I said that there were interesting posts further on that D9 thread.
Instead I was refering to john3volta's and to kwag's posts vs Nic's and DragonGodz's posts.
I'd say that john3voltas and kwag had a point there.

Sagittaire 04-06-2006 02:30 PM

Well first result for Pionner:

- Pioneer DV-380 : Seem OK
- Pioneer DV-444 : Seem OK
- Pioneer DV-454 : Seem OK
- Pioneer DV-575 : Seem OK

I can't find tester for DVR-220 ... :oops:

rds_correia 04-08-2006 06:02 AM

I have a Pioneer DV-380-S and it reads virtually *anything* that I throw at it.
This is the latest generation for Pioneer SAP products and they're based on MediaTek's chipsets (basically chinese chipsets).
You can't run a test on SAP generations that read everything.
You gotta go deep into 3 or 4 year old SAPs and I'm sure you'll find plenty of SAPs that just can't read mplayer output correctly.
If I had an encoder and wanted to test it, I'd choose a 4 year old Philips state of the art DVD player.
They're know to *stick to the standards*.
Hell, some of them don't even read KSVCD :lol:.
Cheers

Sagittaire 04-08-2006 10:39 AM

Quote:

Originally Posted by rds_correia
I have a Pioneer DV-380-S and it reads virtually *anything* that I throw at it.
This is the latest generation for Pioneer SAP products and they're based on MediaTek's chipsets (basically chinese chipsets).
You can't run a test on SAP generations that read everything.
You gotta go deep into 3 or 4 year old SAPs and I'm sure you'll find plenty of SAPs that just can't read mplayer output correctly.
If I had an encoder and wanted to test it, I'd choose a 4 year old Philips state of the art DVD player.
They're know to *stick to the standards*.
Hell, some of them don't even read KSVCD :lol:.
Cheers

Well in fact your previous problem for mencoder was:
- Overflow problem
- Motion vector range problem

1) Overflow problem
My multipass profil solve this problem only for medium/low bitrate encoding. If you want something like average q3 encoding or less my profil work without underflow.

2) Motion Vector Range problem
Old SAP like Pioneer, Philips and Koss use strict motion vector range (512 pixel for horizonal vector and 128 for vertical vector) and these old SAP are completely unable to play MPEG2 without strict motion vector range compliance. Now Mencoder is able to set max motion vector range (me_range for horizontal/vertical motion vector) and can produce strict motion vector range compliance for these old player.


New: It's possible to use coef > 7 now for libavcodec. You can use if you want Notch matrix with mencoder.

danpos 04-08-2006 07:54 PM

@Sagittaire

And the others profiles that you would go post them here :?: I'm looking forward for them ...

Cheers,

Sagittaire 04-16-2006 01:44 PM

Quote:

Originally Posted by rds_correia
I have a Pioneer DV-380-S and it reads virtually *anything* that I throw at it.
This is the latest generation for Pioneer SAP products and they're based on MediaTek's chipsets (basically chinese chipsets).
You can't run a test on SAP generations that read everything.
You gotta go deep into 3 or 4 year old SAPs and I'm sure you'll find plenty of SAPs that just can't read mplayer output correctly.
If I had an encoder and wanted to test it, I'd choose a 4 year old Philips state of the art DVD player.
They're know to *stick to the standards*.
Hell, some of them don't even read KSVCD :lol:.
Cheers

You say "use this particular SAP for your test". I use this SAP and my stream play very well. IMO I can make test with all these old SAP too if you want ... but result will be always the same simply because my mencoder stream are compliant.

Now try to find incompatible SAP yourself if you want with my stream. IMO I prove that my mencoder stream are compliant (with all possible software and all your "reference" SAP).

@Danpos

Well I use simply MPEG2 encoder for PAL DVD progressive encoding. Unfurtunaly I don't have time for test other encoding profil ...

rds_correia 04-16-2006 03:36 PM

Listen Sagittaire, cut the bullshit and admit that noone besides you will ever use an encoder that can't handle certain settings that you might choose.
If someone/something has to refrain that should never be the end user.
If the encoder knows that it will fail in certain conditions then it should advise the user that it will disable certain settings in order to procede with the encoding.
Mencoder/ffmpeg can be the best codec out there but noone will be interested in it's magical quality until it gets some serious fixing in those bugs.
Plus, I told you that there were SAPs out there that couldn't play Mencoder output but besides my AG I didn't specify which models didn't like it.
It was Dialhot who told you about DV-444 and DVR-220, not me.
I will completely refuse to do your work.
You're the one interested in proving that mencoder is compliant, not me.
So don't come saying that you did your part of the game and that it worked for you and that now it's me who has to go out to prove my point.
You gotta be kidding me!!!
Cheers

Sagittaire 04-16-2006 05:06 PM

Well You say always "Mencoder can't make compliant stream". I say "I think that Mencoder can make complaint stream and I will try to prove that".

- I post my profil CLI and my procedure encoding for Mencoder
- I try all possible sofware to check stream
- I try all your "reference SAP"
- hank315 say problem is motion vector length and new me_range setting solve this problem


Try to use my mencoder stream with your "el cheapo" AG DVD-336K and post result here if you want ... :idea:

And I repeat for the last time little doom9 thread with hank315:

Quote:

Originally Posted by hank315
I just discovered it by accident because I introduced the same bug with HC015 (will be solved in HC016)
It can cause severe blocking on some (very strict) HW players like Pioneer, Philips and Koss.
It's about motion vector length which is restricted for Main level.
In fact it was mean who pointed me to this very well hidden MV restriction.
The vertical motion vectors should be limited so they can be 'folded' in f_codes <= 5.
In about 15% of the frames Mencoder also uses values of 6 and 7 for f_code[0][1] and f_code[1][1].

Quote:

Originally Posted by sagittaire
motion vector range ... perhabs. I think that for MPEG2 compliant stream max vector must be 128 ... ???

Update with new mencoder sample
me_range=128 in mencoder CLI

Quote:

Originally Posted by hank315
Both clips seem OK now.


I can't make more ... my stream is not DVD compliant ... well ... prove it if you want now.

rds_correia 04-17-2006 05:11 AM

Quote:

Originally Posted by Sagittaire
I can't make more ... my stream is not DVD compliant ... well ... prove it if you want now.

You still haven't get it, have you :?:
I don't need to proove a damn thing to you :!:
It's the other way around: it is you who need to proove everything.
And there's one thing that you can't forget: if you want to proove something you'll have to use a SAP that goes stricktly by the book.
So go find a 4 year old Philips SAP and try your encodes.
If they work fine then you have another problem: how will you try to convince anyone to use an encoder that goes nuts and produces garbage when you press the wrong button???
Sagittaire :arrow: get a life...

Sagittaire 04-17-2006 09:58 AM

Quote:

So go find a 4 year old Philips SAP and try your encodes.
If you want I can make that too but it's really useless particulary for Philips SAP (old or new) simply because DVD-Video Verifier v1.5.0 from Philips itself say "compliant stream". But I make actually new encoding for DivX CDR test update and I will certainely use Libavcodec for MPEG2 : certainely that more than 200 compatible SAP will be good argument ... lol


Quote:

If they work fine then you have another problem: how will you try to convince anyone to use an encoder that goes nuts and produces garbage when you press the wrong button???
It's not my objective. My objective is just to find the best MPEG2 compliant encoder for metric test.

kwag 04-17-2006 10:46 AM

Quote:

Originally Posted by Sagittaire
My objective is just to find the best MPEG2 compliant encoder for metric test.

Then stick to CCE or TMPGEnc, because anything that comes out of avcodec IS NOT 100% compliant :!:

-kwag

Sagittaire 04-17-2006 04:22 PM

Quote:

Then stick to CCE or TMPGEnc, because anything that comes out of avcodec IS NOT 100% compliant
Actually I think that friendly user Open Source encoder like HCEnc or QEnc produce compliant stream. More difficult with Mencoder (bitrate restriction) but it's possible for medium/low bitrate and I prove that with DVD-Video Verifier v1.5.0 from Philips (absolutly no error checking for motion vector or vbv) and with your referenced SAP (your mencoder stream are bad but not my mencoder stream with my profil). Like I was always say your mencoder sub-forum (libavcodec) done very old information but libavcodec is continuously developped : there are always RC problem for vbv restriction for high bitrate encoding (new beta RC from XviD in mencoder will solve perhaps that) but motion vector problem is solved since a long time (motion vector is the problem for SAP like Pionner and Philips).

gamma 04-19-2006 02:05 AM

Quote:

Originally Posted by Sagittaire
My objective is just to find the best MPEG2 compliant encoder for metric test.

And our objective is to create KDVD's which will actually PLAY in a SAP.

And IMO, libavcodec isn't the best encoder in the world so why bother with all kinds of scripts, profiles and others hassels?

rds_correia 04-19-2006 02:19 PM

Forget about it gamma.
He will never understand that there are better things in life instead of spending hours trying to create a Mencoder CLI that will not bomb when it plays in a SAP for every encoding project we have.
On the other hand he's right.
He launched a legit question to the forum: which is the best MPEG2 encoder according to metrics.
He didn't say that we wouldn't be able to rule out an encoder just because it ain't compliant or because it can easily produce an uncompliant stream...:roll:
To tell you the truth, I'm outta here for good :!:

gamma 04-20-2006 03:26 PM

Quote:

Originally Posted by rds_correia
Forget about it gamma.
He will never understand that there are better things in life instead of spending hours trying to create a Mencoder CLI that will not bomb when it plays in a SAP for every encoding project we have.
On the other hand he's right.
He launched a legit question to the forum: which is the best MPEG2 encoder according to metrics.
He didn't say that we wouldn't be able to rule out an encoder just because it ain't compliant or because it can easily produce an uncompliant stream...:roll:
To tell you the truth, I'm outta here for good :!:

Yeah you're right :lol:

I'm outta here also!


All times are GMT -5. The time now is 04:55 AM  —  vBulletin © Jelsoft Enterprises Ltd

Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.