Quantcast FFmpeg vs FFvfw vs Mencoder ? - Page 25 - digitalFAQ.com Forums [Archives]
  #481  
04-06-2004, 04:30 PM
incredible incredible is offline
Free Member
 
Join Date: May 2003
Location: Germany
Posts: 3,189
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to incredible
CONCLUSION! (for me as i did tests)

- mencoder20040403 gots a BUG in vbitrate! As vbitrate isnt respected! Which could be easely used for filesize determination!

- mencoder20040405 gots also a BUG as in my case it also says that there the makeavis codec is missed although its placed where it has to be.

- mencoder (? my version I do have) respects the vbitrate!! Means if I do say vbitrate=2000 ... almost a avg bitrate of 2000 comes out ... EVEN if used with bilus script posted above (the posting where he added the mercedes cabrio pic)

So friends watch out as some issues do base on diff. mencoder builds we do use
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Site Staff / Ad Manager
 
Join Date: Dec 2002
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #482  
04-06-2004, 04:36 PM
audioslave audioslave is offline
Free Member
 
Join Date: Mar 2003
Location: Sweden
Posts: 725
Thanks: 0
Thanked 0 Times in 0 Posts
@Incredible
Thank you for clearing that out for me! So which version should I use - and where can I download it I didn't keep my previous version and I don't remember where I downloaded it .

EDIT:
mencoder20031126 would be nice since I saw the great results you got with that version
__________________
AudioSlave
Reply With Quote
  #483  
04-06-2004, 04:48 PM
incredible incredible is offline
Free Member
 
Join Date: May 2003
Location: Germany
Posts: 3,189
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to incredible
Get the version I do use here.
(this link will expire tomorrow evening! as I want to avoid traffic overload!)

bilu with that build I was able to use your last script (mercedes cabrio posting) incl. an very near approach to the desired avg bitrate by just using Vbitrate as factor!

But anyway if used my build or yours .... The quantizer curve does behave by beeing kept at ca. 2 means still blocks on dark blue underwaterscenes ... but at other scenes so it does not play that abitary crazy.

Here from your script:


But that could maybe tweaked by some parameters as I want the Q curve to be more adaptive (but on the other hand NOT! abitary), means a bit more quantisation up to 3 on high bitrate scenes, which also avoids peaks and less quantisation down to 1 on low bitrate scenes.
Reply With Quote
  #484  
04-06-2004, 04:51 PM
digitall.doc digitall.doc is offline
Free Member
 
Join Date: Jul 2003
Location: Valencia (España)
Posts: 741
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by incredible
CONCLUSION! (for me as i did tests)

- mencoder20040403 gots a BUG in vbitrate! As vbitrate isnt respected! Which could be easely used for filesize determination!

- mencoder20040405 gots also a BUG as in my case it also says that there the makeavis codec is missed although its placed where it has to be.

- mencoder (? my version I do have) respects the vbitrate!! Means if I do say vbitrate=2000 ... almost a avg bitrate of 2000 comes out ... EVEN if used with bilus script posted above (the posting where he added the mercedes cabrio pic)

So friends watch out as some issues do base on diff. mencoder builds we do use
... I was afraid of that. In fact, I think I already advised about this issue. More data: with last bilu compilation, I cannot encode directly from vob (neither with official compilation), while with the compilation I'm using I can.

Inc, sorry me for being a pain, but how can mencoder in 1pass respect vbitrate? I don't say you're wrong, for sure not, but if there's a way a encoder can do this, it can't be keeping constant quality, isn't it?.

Every time I'm understanding less things (Socrates?)
Reply With Quote
  #485  
04-06-2004, 04:54 PM
incredible incredible is offline
Free Member
 
Join Date: May 2003
Location: Germany
Posts: 3,189
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to incredible
Quote:
Originally Posted by digitall.doc
Inc, sorry me for being a pain, but how can mencoder in 1pass respect vbitrate? I don't say you're wrong, for sure not, but if there's a way a encoder can do this, it can't be keeping constant quality, isn't
Ask the Lord!

I dont know but as I do use mencoder with my suggested script already some time (on captures with no problems!!! First problems with that clean K19 DVD source) I was at almost every prediction very very near, Means if I did set for example Vbitrate 2000 then once a 1920 or a 2087 (just for explaing) was the result.
Reply With Quote
  #486  
04-06-2004, 04:56 PM
audioslave audioslave is offline
Free Member
 
Join Date: Mar 2003
Location: Sweden
Posts: 725
Thanks: 0
Thanked 0 Times in 0 Posts

I will download it right away. Nice to get a version that works instead of trying to use a non-working one . Will be fun to finally be able to start experimenting with MEncoder.
Once again - thank you very much
__________________
AudioSlave
Reply With Quote
  #487  
04-06-2004, 05:07 PM
audioslave audioslave is offline
Free Member
 
Join Date: Mar 2003
Location: Sweden
Posts: 725
Thanks: 0
Thanked 0 Times in 0 Posts
@Incredible
How do you use Slicer() with this encoder? I'm guessing you make 2 fake avi's, 1 for each offset, but how do you change the "CQ" value (or what it's called in MEncoder)
__________________
AudioSlave
Reply With Quote
  #488  
04-06-2004, 05:16 PM
incredible incredible is offline
Free Member
 
Join Date: May 2003
Location: Germany
Posts: 3,189
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to incredible
With my mencoder build i just do change vbitrate, thats all

According to slicer .. you are correct!

As that encoder is very correct I just use a pong, means no 2 diff. offset turns. And I do one MakeAvis File for prediction and another for the whole encoding ... where I everytime do place the avsscript within the avi-fake! (option of makeavis).

Slicer(2,15,05,2,0) .... thats all.

2%ofMovie, Goplength15, Offset05, 2GopsSlicelenghtMeans30framesPerSlice, NoSubtitels

I do use an Offset of 05 as I dont want the dark intro at the movies beginning to be predictionned = more accuracy ... but mencoder so or so is very acurate.
Reply With Quote
  #489  
04-06-2004, 05:19 PM
audioslave audioslave is offline
Free Member
 
Join Date: Mar 2003
Location: Sweden
Posts: 725
Thanks: 0
Thanked 0 Times in 0 Posts
Great! Nice and easy.
__________________
AudioSlave
Reply With Quote
  #490  
04-06-2004, 06:06 PM
rds_correia rds_correia is offline
Free Member
 
Join Date: Apr 2003
Location: Chinese Democracy starts now!
Posts: 2,563
Thanks: 1
Thanked 0 Times in 0 Posts
Hi guys,
Hey Inc., thanks for the info on the non-working mencoder release.
Also to Audioslave for advising me of that

@bilu, Digi.doc,etc...
I've been wondering. Mencoder has it's own set of filters that do more or less what we do with avisynth scripts, right?
I'm not quite sure if the arguments we're using with mencoder are not "overridding" our scripts, then.
I only thought about saying this because I remembered that I once saw bilu saying that he didn't feel so bad about not using avs since he was going to use mencoder under BSD/Linux.
So can someone be positive that using the latest set of arguments and ini file posted by bilu we're not double timing filterings?
Thanks.
Cheers
__________________
Rui
Reply With Quote
  #491  
04-06-2004, 06:07 PM
audioslave audioslave is offline
Free Member
 
Join Date: Mar 2003
Location: Sweden
Posts: 725
Thanks: 0
Thanked 0 Times in 0 Posts
@Incredible
Would you mind posting your *.bat and *.ini settings?
I'm aiming at trying to make a KSVCD as my first project so if anyone have any suggestions about settings I would be grateful!
__________________
AudioSlave
Reply With Quote
  #492  
04-07-2004, 01:24 AM
incredible incredible is offline
Free Member
 
Join Date: May 2003
Location: Germany
Posts: 3,189
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to incredible
Quote:
Originally Posted by audioslave
I'm aiming at trying to make a KSVCD as my first project
First try to go to KDVD! Then you can try to approach to the birate control which is needed ror KsVCD. As KsVCD needs EVEN a smaller room for bitrate dynmics for breathing!
Reply With Quote
  #493  
04-07-2004, 06:43 AM
digitall.doc digitall.doc is offline
Free Member
 
Join Date: Jul 2003
Location: Valencia (España)
Posts: 741
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by incredible
Ask the Lord!
Inc, sorry, but your answer didn't clarify my ideas that much

I took a look at your BitrateViewer graphic, and as you state it's almost constant quantizer around 2. And, also as you posted, we should better go for constant quality than for constant quantizer. Where your settings vqmin=1:lmin=2.49?.
In my tests I get more dynamic quantizer values, I think that lmin so bigger than vqmin maybe fixes quantizer too much. Or maybe it's related to vbitrate setting (I see you get a bitrate peak around 4500 and min around 300), but the blocks appear in a low bitrate zone, where quantizer should go down close to 1 (if vqmin=1), and it doesn't. Which rate control mode do you use?.

Sometimes I think we're still too far to understand this ffmpeg thing...
Reply With Quote
  #494  
04-07-2004, 07:27 AM
incredible incredible is offline
Free Member
 
Join Date: May 2003
Location: Germany
Posts: 3,189
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to incredible
Well it does not clearify that much as I really don't know why its that exact (with my script) .... yesterday night I did an encode using biuls script, but interlaced settings deleted and set vrc_eq=tex as he recommended it afterwards.

Im at work now and getting home very late, so I can only post you ad midnight the exact settings. BTW with bilus settings when set vbitrate to 2050 a avg Bitrate of 1834 came out! So my script is in there more exact BUT bilus script does deliver beside a almost constant Q at 2 a veeeery good!!! average picture above 800kbit parts and the bitrate peak was solved when encoding K19 .... but still I got some bitrate lows at almost 150kbit! And thats the only problem, that at theses scenes some blocks (well, for my eyes) do occur as Q is still at approx. 2.

So wait for tonight .. Ill give you my settings.

BTW: The pic above is JUST FOR EXPLANATION! Means its from asliced sample, so min and max are not "realworld" as they do peak a bit more. But the "look" of Q is the same when encoding FULL.
Reply With Quote
  #495  
04-07-2004, 09:07 AM
bilu bilu is offline
Free Member
 
Join Date: Jan 2004
Posts: 341
Thanks: 0
Thanked 0 Times in 0 Posts
@inc

Have a look
http://www.kvcd.net/forum/viewtopic.php?t=10132

and compare results.


Bilu
Reply With Quote
  #496  
04-07-2004, 12:17 PM
digitall.doc digitall.doc is offline
Free Member
 
Join Date: Jul 2003
Location: Valencia (España)
Posts: 741
Thanks: 0
Thanked 0 Times in 0 Posts
inc,
you're not using vrc_minrate, isn't it?. Why don't you try again with minrate set at 300?. Maybe, just maybe, if mencoder doesn't go down to 150... no blocks... well, just an idea.
Reply With Quote
  #497  
04-07-2004, 05:13 PM
incredible incredible is offline
Free Member
 
Join Date: May 2003
Location: Germany
Posts: 3,189
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to incredible
Im right testing Knoppix Linux as where Im actualy wrting from (Konqueror) .... I couldn't resist it
Yep was using Vrc_minrate! It was set to 500 and even then it goes down till 150kbit ... wait until I switched to windows again and Ill inform you better.
Reply With Quote
  #498  
04-07-2004, 05:34 PM
digitall.doc digitall.doc is offline
Free Member
 
Join Date: Jul 2003
Location: Valencia (España)
Posts: 741
Thanks: 0
Thanked 0 Times in 0 Posts
inc,
OK, not minrate. What about vbitrate?. Try a crazy value, that mencoder won't keep as average bitrate, and see if still appear those blocks. Try the same value you used for maxrate.
Reply With Quote
  #499  
04-07-2004, 05:39 PM
incredible incredible is offline
Free Member
 
Join Date: May 2003
Location: Germany
Posts: 3,189
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to incredible
I tried (on MY Build)that vrc_maxrate set very high BUT that didnt solve the problem and on the other hand prediction wasnt possible anymore! And thats the way: to set predictions by using vbitrate and not the quantizer etc.

Here my last settings .... Vbitrate was set to 2100 but resulted in 1700, anyway I could just change the avg bitrate using "that" parameter.

Code:
set VideoStream=k19
mencoder -include H:\settings.ini -lavcopts keyint=15
H:\%VideoStream%.avi -o H:\%VideoStream%.mpg
Code:
of=mpeg=1 ---- will be demuxed afterwards! as my build does not support rawvideo output, but this build gave better qualit, seen as a whole
ovc=lavc=1
nosound=1
noskip=1
vf=yuvcsp
lavcopts=vcodec=mpeg2video
:vrc_buf_size=1835
:preme=2:precmp=2:vstrict=-1
:aspect=16/9::vqblur=0
:vrc_minrate=500:vrc_maxrate=7000
:vrc_eq=tex
:vqmin=1:mbqmin=1:lmin=2.49
:scplx_mask=0.24:naq=1
:vmax_b_frames=2
:intra_matrix=8,9,12,22,26,27,29,34,9,10,14,26,27,29,34,
37,12,14,18,27,29,34,37,38,22,26,27,31,36,37,38,40,26,27,
29,36,39,38,40,48,27,29,34,37,38,40,48,58,29,34,37,38,40,
48,58,69,34,37,38,40,48,58,69,79
:inter_matrix=16,18,20,22,24,26,28,30,18,20,22,24,26,28,
30,32,20,22,24,26,28,30,32,34,22,24,26,30,32,32,34,36,24,
26,28,32,34,34,36,38,26,28,30,32,34,36,38,40,28,30,32,34,
36,38,42,42,30,32,34,36,38,40,42,44
:vbitrate=2100
:vb_qfactor=0.7 ------- this gave me a better higher avg bitrate which I could modify using Vbitrate=xxxx
:vi_qfactor=0.8
As said, the resulted Video (full encode) is SUPERB for a avg bitrate at approx. 1700kbit! ---- a avg Quantizer of 2! (CCE or TmpgEnc can only dream of it) --- just the little issues of still bitrate drops at lower scenes and also to high quantizer of 2 at low bitrate scenes (as seen in my last BV pic which was from a sliced stream)... thats all.
Reply With Quote
  #500  
04-08-2004, 07:54 AM
bilu bilu is offline
Free Member
 
Join Date: Jan 2004
Posts: 341
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
high quantizer of 2 at low bitrate scenes
It shouldn't happen with lmin=1.

But is it noticeable on TV? And how does lmin=2.49 + Notch compare to lmin=1 + your last matrices when watching on TV?

Bilu
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
FFMPEG: Ffvfw VIDEO CODEC kwag Video Encoding and Conversion 364 08-12-2005 07:49 AM
FFMPEG: Curious about H.263 in ffvfw poerschr Video Encoding and Conversion 14 02-25-2004 07:54 PM
FFMPEG: Observation about ffvfw poerschr Video Encoding and Conversion 28 02-24-2004 05:50 PM
FFMPEG: Do ffvfw and mencoder/ffmpeg give the same results? Razorblade2000 Video Encoding and Conversion 4 02-06-2004 04:23 PM
FFMPEG: XMPEG 5.03 and ffvfw kwag Video Encoding and Conversion 2 02-05-2004 10:57 AM

Thread Tools



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