Quantcast FFmpeg: FFvfw Video Codec - Page 6 - digitalFAQ.com Forums [Archives]
Go Back    digitalFAQ.com Forums [Archives] > Video Production Forums > Video Encoding and Conversion

Reply
 
LinkBack Thread Tools
  #101  
01-28-2004, 07:29 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
You should better "overclock" your other activities this week which do steal your time and do keep you away from 24h testings on this here!

5 postings more and I receive my first golden watch from Kwag

@ All others:

Noone else posting pic samples in here???? Come on! We want to see results from diff. users and their success or failures which could enlighten some more possibilities
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
  #102  
01-28-2004, 08:31 AM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by incredible

I did use a GOP of 84 with a B frame count of 3 means IBBBPBBBPBBBP...etc.
Hi Inc,

Yesterday, I was also trying a GOP structure of IBBBP (3 B frames), and I think the results are better than with 2 B frames. Still to be confirmed, but I think this CODEC does produce better quality and compression!, with a 3 B frames.

-kwag
Reply With Quote
  #103  
01-28-2004, 08:33 AM
vmesquita vmesquita is offline
Invalid Email / Banned / Spammer
 
Join Date: May 2003
Posts: 3,726
Thanks: 0
Thanked 0 Times in 0 Posts
Hello everyone!

I just found this thread and I am very impressed by the screenshots and samples... If this gives such good results, maybe then it could replace CCE in D.I.K.O. as a option for MPEG2 encoding. Or maybe for real-time KDVD encoding, this would be great too (I always wanted to do that and MainConcept does not work as it should... And I won't even mention the other options). I am starting my own tests right now. (My vacation is getting over... I have to enjoy the last days!) I'll post if I find anything interesting.
Reply With Quote
  #104  
01-28-2004, 08:34 AM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by incredible
- TmpgEnc takes almost the same time like ffvfw, so there is (at my machine) no difference.
Same here.

-kwag
Reply With Quote
  #105  
01-28-2004, 08:37 AM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Hydeus
To Kwag.
I don't have reply from Milan And you
No, not yet.

-kwag
Reply With Quote
  #106  
01-28-2004, 08:42 AM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Krillenok
I followed this thread at home last night.

See if I get this

Open your avs in vdubmod.
Select full compression, ffvfw codec.
Make all adjustments kwag showed before.
In output choose store frames to external file
Ex. E:\test.mpg
close codec window
Then what.

Save as E:\test.mpg?????
Save as AVI, and that will start the encode.
The end result is "test.mpg", which you have to demux with TMPEG, run pulldown.exe on the .m2v (which creates "pulldown.m2v"), run DVDPatcher to fix the reporting bitrate, and mux with your 48Khz encoded audio.

-kwag
Reply With Quote
  #107  
01-28-2004, 08:45 AM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Dialhot
Will this thread beat the record of "CQ vs CQ_VBR" one ?
At this pace, maybe

-kwag
Reply With Quote
  #108  
01-28-2004, 08:49 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 kwag
Hi Inc,

Yesterday, I was also trying a GOP structure of IBBBP (3 B frames), and I think the results are better than with 2 B frames. Still to be confirmed, but I think this CODEC does produce better quality and compression!, with a 3 B frames.
So you do als confirm like me that its better to use 3 Bframes in ffvfw mpeg2? Cause of the "but" in your line above.

At now I still can participate indirectly as Im at my MAC in the Office.

ok. more B Frames do give more compression in case of ffvfw mpeg2, but still we have to solve that problem on dark fading surfaces and also the fast movement-part issue. The last one "could" be solved (if its not possible within ffvfw) by MA, but this only will affect frames with full movement and where blur does not harm quality. But whats about "parts" in static frames where in case of movement that ffvfw mpeg2 comes out crispy/blocky ... well we'll see tonight! mabye...
And to me it seems that the encoder handles the DCT matrix different compared to TmpgEnc or CCE.
That "crispy-fast movement-encoded-frames" phenomenom I still remember from FFmpegX where its encoding engine in 2002/03 also did base on mpeg2enc's algorythm, maybe still it also optionally bases on mpeg2enc.

Kwag, any suggestions on my muxing problem?
Reply With Quote
  #109  
01-28-2004, 08:55 AM
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
Quote:
Originally Posted by kwag
Save as AVI, and that will start the encode.
The end result is "test.mpg", which you have to demux with TMPEG, run pulldown.exe on the .m2v (which creates "pulldown.m2v"), run DVDPatcher to fix the reporting bitrate, and mux with your 48Khz encoded audio.

-kwag
Hi Kwag,
Don't have the slightest idea of what is pulldown.exe and what it does to the video stream.
Could you enlighten me on that please?
Is it only for NTSC or do PAL guys need it too?
Thanks and C ya all at page 8
__________________
Rui
Reply With Quote
  #110  
01-28-2004, 09:11 AM
vmesquita vmesquita is offline
Invalid Email / Banned / Spammer
 
Join Date: May 2003
Posts: 3,726
Thanks: 0
Thanked 0 Times in 0 Posts
@rds_correia
Pulldown is only for NTSC. There is a utility called pulldown.exe that can be found on doom9 software page. This utility enables a pulldown flag in 23.976 FPS mpeg2 files, what makes the DVD player "create" 29.97 out of 23.976 fps to play on a NTSC TV.

@all
Encoding can go a little faster (jumps from 8 to 9 fps for me) using Fast Recompress instead of full processing mode in VirtualDub.
Reply With Quote
  #111  
01-28-2004, 09:38 AM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by incredible
So you do als confirm like me that its better to use 3 Bframes in ffvfw mpeg2? Cause of the "but" in your line above.
Yes I can, "but" at a very slight file size iincrease (about 300KB per minute)
So that's about 18MB per hour. So for KDVDs, that's fine. For KVCDs, NO
Quote:

At now I still can participate indirectly as Im at my MAC in the Office.
Shame on you.
Quote:

But whats about "parts" in static frames where in case of movement that ffvfw mpeg2 comes out crispy/blocky ... well we'll see tonight! mabye...
I still think this is a PAL issue, because my encodes are less blocky than with TMPEG.
Quote:
And to me it seems that the encoder handles the DCT matrix different compared to TmpgEnc or CCE.
Yes it does. As I said before, it's a completely different motion estimation algo. There are barely any visible artifacts around objects, even on low bitrate scenes.
Quote:
That "crispy-fast movement-encoded-frames" phenomenom I still remember from FFmpegX where its encoding engine in 2002/03 also did base on mpeg2enc's algorythm, maybe still it also optionally bases on mpeg2enc.
I think the encoder is not going up high enough in bitrate. I've tried to change settings, but can't get it to work at high bitrates. Even setting MIN and MAX quality to "2" and macroblocks to 2/2.
Quote:

Kwag, any suggestions on my muxing problem?
Can't say
I just finished muxing "The Bourne Identity" with MPlex, after running pulldown.exe and DVDpatcher, and it muxed without any errors. This is the second movie I've encoded with this CODEC since yerterday, and the result is flawless. But you know I'm on NTSC, so maybe that's why I don't get errors (or blockier picture ).

-kwag
Reply With Quote
  #112  
01-28-2004, 10:03 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by kwag
But you know I'm on NTSC, so maybe that's why I don't get errors (or blockier picture ).
As far as I know, there is only two diff between NTSC and PAL : the framerate and the resolution.
For the resolution we can't do anything. But if the problem is in the framerate, you can try to encode with a "AssumeFPS(23.976)" in the script and as you are in DVDPatcher, set back the fps to 25.
This way the encoder will be fooled and think it encodes NTSC but the player will see a regular PAL to play (remember to use a valid PAL resolution).
Reply With Quote
  #113  
01-28-2004, 10:09 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 kwag
Quote:
Originally Posted by incredible
So you do als confirm like me that its better to use 3 Bframes in ffvfw mpeg2? Cause of the "but" in your line above.
Yes I can, "but" at a very slight file size iincrease (about 300KB per minute)
So that's about 18MB per hour. So for KDVDs, that's fine. For KVCDs, NO
In my case the opposite as you see above, in general I got less filesize and therefore more compression + Quality with 3 B frames must be the colder weather in germany
Quote:
Quote:

But whats about "parts" in static frames where in case of movement that ffvfw mpeg2 comes out crispy/blocky ... well we'll see tonight! mabye...
I still think this is a PAL issue, because my encodes are less blocky than with TMPEG.
Well as I tested it also on 23.976 encodings, therefore same in NTSC as in PAL, ...... BUT we'll see this evening more, I hope you all will be online.

Quote:
Originally Posted by DialHot
But if the problem is in the framerate, you can try to encode with a "AssumeFPS(23.976)" in the script and as you are in DVDPatcher, set back the fps to 25.
Exactly that I did Dialhot, Assuming the FPS to 23.976, resizing to NTSC specs. and did several encodings.

Ähm ... are you shure your workout above with simple mpeg patching will restore the playback speed afterwards? I don't think so.
That would mean you just take a 23.976 enoded DVD m2v - doing the FPS patching - pitching the audio to 25fps - burn
Reply With Quote
  #114  
01-28-2004, 10:17 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by incredible
Ähm ... are you shure your workout above with simple mpeg patching will restore the playback speed in the Standalone? I don't think so.
How can a player know the framerate to use if it is not by reading it in the header ?
The video stream by itself do not contains information about the speed you have to read the information. That is the purpose of the header !
No ?
Quote:
That would mean you just take a 23.976 enoded DVD m2v - doing the FPS patching - pitching the audio to 25fps
I said taht there are two differences
You can't do that because of the resolution.
Reply With Quote
  #115  
01-28-2004, 10:29 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 Dialhot
How can a player know the framerate to use if it is not by reading it in the header ?
The video stream by itself do not contains information about the speed you have to read the information. That is the purpose of the header !
No ?
Well (generally) the header does not provide everything, also many thing are in the encode itself, thats why a Pulldown flag with pulldown.exe won't be applied just in the header as Pulldown.exe rewrites (not reencodes) the specs. in the whole stream .... and thats I think not only a thing of seq headers. Also the 23.976 to 25 (patching) won't correspond good with the timestamps(timeline) in the mpeg stream as that you also can set in CCE for example, .... but that are all estimations, ... so we should check this out .... cause I've never heard about such a patching method elsewhere

EDIT: in my Cyberhome Player the resolution won't be a problem as its also be able to play back 480x480 or 704x480 streams at 25 FPS
Reply With Quote
  #116  
01-28-2004, 10:45 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by incredible
EDIT: in my Cyberhome Player the resolution won't be a problem as its also be able to play back 480x480 or 704x480 streams at 25 FPS
I was thinking about distort on the TV set. How is the image on your TV when you do such things ?
Reply With Quote
  #117  
01-28-2004, 11:31 AM
vmesquita vmesquita is offline
Invalid Email / Banned / Spammer
 
Join Date: May 2003
Posts: 3,726
Thanks: 0
Thanked 0 Times in 0 Posts
Just did my tests. I got a 3m04s chapter from the Lawnmover Man DVD and encoded with the latest MA script at 704x480 using:
- FFVFW - quality 100, Max quantizer 25, B frames 2, KVCD notch matrix, I frame interval (GOP) 18. Using Fast Recompress. Size: 33.504 kb.
- CCE - my 704x480 template, also using kvcd Notch, at Q40: 33.353 kb.

Both encodes took about 8 minutes, what surprised me a lot, since I espected FFVW to be a lot slower.

I tried to used the script below to find any difference in quality, scanning frame by frame:

c=mpeg2source("test_ffvw.d2v")
d=mpeg2source("test_cce.d2v")
return(stackhorizontal(c,d))

But nothing called my attention in respect of quality. So I decided to use SSIM (http://forum.doom9.org/showthread.php?threadid=61128), which is a avisynth filter that computes the quality metric, based on perceived distortion and not only on mathematics. According to the author, it should correlate very well with the human eye. This filter receives two clips as input (the original and the encoded) and gives a table with the coeficients for every scene and a median of all of them.

To compare, I create a huffyuv version of the chapter, already processed by the MA script.

The results were very surprising. The final value is between 0 and 100, and the bigger the value, the great the quality. Check this:

CCE:
SSIM: Structural Similarity Index Metric 0.23
Average SSIM= 55.22

FFVFW:
SSIM: Structural Similarity Index Metric 0.23
Average SSIM= 83.64

It' scary how better FFVFW performed agains CCE according to SSIM. I'll tried to create the same clip with TMPGENC but forgot to change the template and did it at 720x480. But I'll do it again and post the results. To me, looks like this is THE encoder for MPEG2.
Reply With Quote
  #118  
01-28-2004, 11:35 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
@ Phil

Well the cyberhome to me seems that he just simply reads out of the Header the Aspectratio and increases whatever he gets to the pal 704x576 which will be delivered to the Tv Set.

Ok, as NTSC doesn't got that much pixelinformation/resolution like PAL, it doesn't look that detailed, because its resized to 704x576.

But motion is smooth and appears ok, but I do not see that advantag to go from 480x576 to 480x480 both 25FPS. Maybe 480x480 will give a little more CQ but on the other side it has to be stretched afterwards the more little artifacts cause of less size and therefore more CQ will be again scaled afterwards and sometimes do look if you would have directly encode that at less CQ from 480x576 but its not that sharp!. Ok, it depends of the Tv Set quality.
Reply With Quote
  #119  
01-28-2004, 01:04 PM
Dano Dano is offline
Free Member
 
Join Date: Apr 2003
Location: Brockton, MA
Posts: 134
Thanks: 0
Thanked 0 Times in 0 Posts
For those of you looking for more speed the 20039027 build is faster.

Hey Kwag, I don't know about Milan but I do know Athos (he did the more recent builds) is active at doom9. Cheers.
__________________
-Dano
Reply With Quote
  #120  
01-28-2004, 01:27 PM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by vmesquita

It' scary how better FFVFW performed agains CCE according to SSIM.
Not scary at all
It confirms what my eyes have been seeing in the clips I've been encoding

-kwag
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
FFMPEG vs FFVFW vs Mencoder ? bilu Video Encoding and Conversion 561 04-15-2004 06:16 AM
FFMPEG: Observation about ffvfw poerschr Video Encoding and Conversion 28 02-24-2004 05:50 PM
FFMPEG: Ffvfw - What is video buffer verifier and what is it matter? Prodater64 Video Encoding and Conversion 1 02-23-2004 07:46 AM
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




 
All times are GMT -5. The time now is 06:00 PM  —  vBulletin © Jelsoft Enterprises Ltd