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

Reply
 
LinkBack Thread Tools
  #21  
01-26-2004, 07:29 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 rds_correia
Have you noticed any problems with your patched matrix as I did??
I had to increase the quality to 100, because at the default of 85, it looks pretty bad.
I guess the KVCD matrix cuts off a lot of frequencies ( with this CODEC ).
So I increased the value to 100, and it looks great. To increase the MAX (and MIN ) bitrates, you can lower the MAX Q value (defaults to 31) so your average bitrate will increase. So we can do a "sort of" prediction a-la-CCE by lowering the MAX quantization value, and leaving the quality set to 100%.

-kwag
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
  #22  
01-27-2004, 07:04 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
Hi guys,
I'm affraid I didn't understand a word on Kwag's last post
I'm not a super noob anymore, but I'm definitely still a noob
Anyway, any news from Milan so far?
He sure could give us some help with this.
Let's see if I get home early to run some more testing.
Cheers
__________________
Rui
Reply With Quote
  #23  
01-27-2004, 07:36 AM
Hydeus Hydeus is offline
Free Member
 
Join Date: Dec 2003
Location: Omicron Persei 8
Posts: 322
Thanks: 0
Thanked 0 Times in 0 Posts
Don't be afraid Correia, Kwag is not speek in english joke
I must say that quality is great, but this sample is pretty dark, so I think that is the reason of low bitrate.
I have no comparition with other MPEG2 samples while i only produce MPEG1 clips.
So if we have that small MAX bitrate with 100CQ then maybe two pass encoding (when this start to work) may be very helpfull. We will make the most of full 2500 (or 2300) bitrate -> ergo, even beter quality, and more predictive file size.
__________________
Go for SECAM =)
Reply With Quote
  #24  
01-27-2004, 08:22 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
I also thought that the image was quite dark but anyway there are pretty nasty parts in the source (comet fire) that the encoder treated like a charm even without any kind of filtering.
Could u guys please post your procedure and tools involved in your trials?
Thanks
__________________
Rui
Reply With Quote
  #25  
01-27-2004, 10:43 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
Hello my friends

Last night I encoded the complete "Red Planet" movie, KDVD (704x480 + 2 overscan blocks), with the MA script.
To my surprise, the total video size was ~800MB (less audio)
The maximum bitrate peaks for this movie is 6,664Kbps, and the average bitrate is 1,216Kbps
The reported Q factor given by Bitrate viewer is 3.34, and is constant throughout the complete movie.
There was just no way to get my wanted sampler size of ~20MB, and the largest size was ~17MB. Even after setting MIN and MAX Q values to 2 (maximum quality).
The matrix is really making this CODEC compress the crap out of the movie
But the resulting quality is just amazing
Here are the VirtualDub screenshots (in sequence) for your reference, on the CODEC parameters I used, followed by actual screenshots of the full encode:















With this, for me, it's the end of file size prediction

Note: I had to change the last three values of the matrix, because the codec works on 8 bit values and can't go over a value of 63. You'll notice that in the right bottom side of the matrix.
Anyway, the quality is just AWESOME, and this CODEC blew away TMPEG (and every other encoder I have tried ) in motion estimation. Look at the screenshots, and you'll see that there are BARELY visible atrifacts(mosquitoes) around objects, specially in the last shot, around the small objects.


Note 2:
The produced .mpg file must be demuxed, and then run PULLDOWN.EXE on the file. This is for progressive sources.
Also, you must use DVDPatcher to patch the first header of the file to some bitrate, like 8,000Kbps. The encoded MPEG file reports a bitrate over the DVD standard, and DVD authoring programs won't import the file.
That's all you have to do. I imported my file into TMPGEnc DVD author, after this process, and worked like a charm

Enjoy
-kwag
Reply With Quote
  #26  
01-27-2004, 11:06 AM
Hydeus Hydeus is offline
Free Member
 
Join Date: Dec 2003
Location: Omicron Persei 8
Posts: 322
Thanks: 0
Thanked 0 Times in 0 Posts
GREAT

Results are amazing
I don't fully understand what you mean by " it's the end of file size prediction". We have not force two pas engine to work, and with one Qpass, we still don't know target file size, are we?

Edit:
I found this in short help files attached to instalation package:
Quote:
Tip: SAD is fast, SATD is good

Tip2: when using SATD for full pel search you should use a larger diamond something like dia=2 or dia=4
Don't full understand this, but AFAIR with SATD there should be even beter quality (but slower encode). Default is SAD.
This files you can find in \ffvfw\help.
__________________
Go for SECAM =)
Reply With Quote
  #27  
01-27-2004, 11:50 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
I don't fully understand what you mean by " it's the end of file size prediction".
It means no more calculations of file size for a target. For example, my "Red Planet" encode, with audio, is 1,022,292KB for a movie that is 106 minutes.
This means that I can put an average of about 7 hours of footage (movies) on a single DVD with this quality (just like the sample I posted)
This is almost full D-1 (704x is almost the same as 720x in quality)
So this will now allow 3 or 4 full run length movies, without having to do any file size prediction, and that is sweet

-kwag
Reply With Quote
  #28  
01-27-2004, 12:04 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 Kwags first post in this thread
Continued from ffmpeg thread...
Gentlemen, could someone give me a hint whats going on here??
I just flew over this thread "now", cause a few hours ago I thought someone gots again a codec problem

But NOW:

Inc. =

Is that a new release of ffvfw including that mpeg2 option or something extra to install.

BECAUSE Tonight I will be at home, girlfriend is in the house of her parents, AND SO I want to play with something!
Reply With Quote
  #29  
01-27-2004, 12:12 PM
Krassi Krassi is offline
Free Member
 
Join Date: Mar 2003
Location: Germany
Posts: 390
Thanks: 0
Thanked 0 Times in 0 Posts
@inc:
Think we missed alot. Have a look here:
http://www.kvcd.net/forum/viewtopic....r=asc&start=35
Just saw those jumping smileys...

@Kwag
I don't have the Mpeg2 Encoding option, do you know what's missing? I can select mpg2enc MPEG2...
Reply With Quote
  #30  
01-27-2004, 12: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
I'm "preparing da engines"!!
Reply With Quote
  #31  
01-27-2004, 12:16 PM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
Same than Inc and Krassi.

But I already have a question : in the screenshot we can see "encoder MPEG2" and "output to file : mpeg1 stream".

What is the format in the end ? MPEG1 or MPEG2 ???
Reply With Quote
  #32  
01-27-2004, 12:26 PM
Hydeus Hydeus is offline
Free Member
 
Join Date: Dec 2003
Location: Omicron Persei 8
Posts: 322
Thanks: 0
Thanked 0 Times in 0 Posts
Karrasi - you should use only MPEG2 (without mpeg2enc). If its missing, try reinstal ffvfw.
Dialhot - at the end we have MPEG2 video stream. ffvfw with MPEG1 stream option produces MPEG1 or MPEG2 streams (depend on choosen encoder).
__________________
Go for SECAM =)
Reply With Quote
  #33  
01-27-2004, 12:28 PM
Krassi Krassi is offline
Free Member
 
Join Date: Mar 2003
Location: Germany
Posts: 390
Thanks: 0
Thanked 0 Times in 0 Posts
@Hydeus
Thanks. I would like to select it, but i don't have this option. Maybe a missing codec
Reply With Quote
  #34  
01-27-2004, 12:31 PM
Hydeus Hydeus is offline
Free Member
 
Join Date: Dec 2003
Location: Omicron Persei 8
Posts: 322
Thanks: 0
Thanked 0 Times in 0 Posts
All codecs are in one package. Try reinstal.
I must go now. Kwag will probably explain everything beter than me
And we still waitnig for answer from Milan (developer of ffvfw). There are few bugs.
__________________
Go for SECAM =)
Reply With Quote
  #35  
01-27-2004, 12:35 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 just checked KWAGs ffvfw sample .... seems that it takes ca. 900kbit as average, really nice at 704x480!

Christmas I did test on TmpgEnc a new GOP and Matrix on that sequence where a avg Bitrate of 500kbit @ 480x576 came out.
http://home.arcor.de/the.incredible/sample.mpg
(do preview using Vdub!)
Also nice, so this evening I will see how do my settings will harm with that ffvfw engine! One hour and I'll be at home!!

But where I can set the GOP at these ffvfw settings?? Well I'll figure it out.

EDIT:


Aha!
"Maximum I frame interval" means max frames in a gop ??
"Minimum I frame interval" means max reducable I frame interval in case of like a scene change detection??? So if I set it also to 15 (PAL) would mean fixed GOP lenght?
"max consecutive b frames" means the count of b frames between an I and a P frame ???
Reply With Quote
  #36  
01-27-2004, 12:40 PM
Krassi Krassi is offline
Free Member
 
Join Date: Mar 2003
Location: Germany
Posts: 390
Thanks: 0
Thanked 0 Times in 0 Posts
A reinstall didn't help

So this is what i've installed:
ffdshow-20020617.exe
ffvfw-20030415.exe
mencoder-20031126.exe
Reply With Quote
  #37  
01-27-2004, 01:14 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 Dialhot
Same than Inc and Krassi.

But I already have a question : in the screenshot we can see "encoder MPEG2" and "output to file : mpeg1 stream".

What is the format in the end ? MPEG1 or MPEG2 ???
If you select MPEG-2, the output is MPEG-2, even though it says MPEG-1 stream.
You'll see it when you demux the MPEG with TMPEG.
BTW, the quality when you select MPEG-1 instead of MPEG-2 is lower
So this encoder seems to do a better job on MPEG-2 than in MPEG-1, so it's not as good as TMPEG for doing low bitrates. But for KDVD, it rocks

-kwag
Reply With Quote
  #38  
01-27-2004, 01:16 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 incredible
I'm "preparing da engines"!!


-kwag
Reply With Quote
  #39  
01-27-2004, 01:20 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 incredible

Aha!
"Maximum I frame interval" means max frames in a gop ??
Yep.
Quote:
"Minimum I frame interval" means max reducable I frame interval in case of like a scene change detection???
Yep. Yep
Quote:
So if I set it also to 15 (PAL) would mean fixed GOP lenght?
Yep ^3
Quote:
"max consecutive b frames" means the count of b frames between an I and a P frame ???
As set, gives IBBP structure

-kwag
Reply With Quote
  #40  
01-27-2004, 01:55 PM
Krassi Krassi is offline
Free Member
 
Join Date: Mar 2003
Location: Germany
Posts: 390
Thanks: 0
Thanked 0 Times in 0 Posts
I've found my error

I've downloaded the latest ffvfw from sh0dan's link:
http://cultact-server.novi.dk/kpo/avisynth/avs_cvs.html
Now i can select it
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 07:50 PM  —  vBulletin © Jelsoft Enterprises Ltd