digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Video Encoding and Conversion (http://www.digitalfaq.com/archives/encode/)
-   -   FFMPEG: Ffvfw VIDEO CODEC (http://www.digitalfaq.com/archives/encode/7913-ffmpeg-ffvfw-video.html)

kwag 01-26-2004 07:29 PM

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

rds_correia 01-27-2004 07:04 AM

Hi guys,
I'm affraid I didn't understand a word on Kwag's last post :oops:
I'm not a super noob anymore, but I'm definitely still a noob :oops:
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

Hydeus 01-27-2004 07:36 AM

Don't be afraid Correia, Kwag is not speek in english :D 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.

rds_correia 01-27-2004 08:22 AM

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

kwag 01-27-2004 10:43 AM

Hello my friends :D

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) 8O
The maximum bitrate peaks for this movie is 6,664Kbps, and the average bitrate is 1,216Kbps 8O
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 :lol:
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:

http://www.digitalfaq.com/archives/i.../2004/01/1.jpg
http://www.digitalfaq.com/archives/i.../2004/01/2.jpg
http://www.digitalfaq.com/archives/i.../2004/01/3.jpg
http://www.digitalfaq.com/archives/i.../2004/01/4.jpg
http://www.digitalfaq.com/archives/i.../2004/01/5.jpg
http://www.digitalfaq.com/archives/i.../2004/01/6.jpg
http://www.digitalfaq.com/archives/i.../2004/01/7.jpg
http://www.digitalfaq.com/archives/i.../2004/01/8.jpg
http://www.digitalfaq.com/archives/i.../2004/01/9.jpg

http://www.digitalfaq.com/archives/i.../2004/01/2.png
http://www.digitalfaq.com/archives/i.../2004/01/3.png
http://www.digitalfaq.com/archives/i.../2004/01/4.png

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

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

Hydeus 01-27-2004 11:06 AM

GREAT :angel: :hammer:
:ole:
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.

kwag 01-27-2004 11:50 AM

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 :cool:

-kwag

incredible 01-27-2004 12:04 PM

8O 8O 8O 8O 8O

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 :lol:

But NOW:

Inc. = 8O

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! :lol:

Krassi 01-27-2004 12:12 PM

@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...

incredible 01-27-2004 12:16 PM

I'm "preparing da engines"!! :D 8)

Dialhot 01-27-2004 12:16 PM

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 ???

Hydeus 01-27-2004 12:26 PM

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).

Krassi 01-27-2004 12:28 PM

@Hydeus
Thanks. I would like to select it, but i don't have this option. Maybe a missing codec :?:

Hydeus 01-27-2004 12:31 PM

All codecs are in one package. Try reinstal.
I must go now. Kwag will probably explain everything beter than me :lol:
And we still waitnig for answer from Milan (developer of ffvfw). There are few bugs.

incredible 01-27-2004 12:35 PM

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!! :arrow: :D

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

EDIT:
http://www.digitalfaq.com/archives/i.../2004/01/4.jpg

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 ???

Krassi 01-27-2004 12:40 PM

A reinstall didn't help :(

So this is what i've installed:
ffdshow-20020617.exe
ffvfw-20030415.exe
mencoder-20031126.exe

kwag 01-27-2004 01:14 PM

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 :mrgreen:

-kwag

kwag 01-27-2004 01:16 PM

Quote:

Originally Posted by incredible
I'm "preparing da engines"!! :D 8)

:driveby: :lol:

-kwag

kwag 01-27-2004 01:20 PM

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 :lol:
Quote:

"max consecutive b frames" means the count of b frames between an I and a P frame ???
As set, gives IBBP structure ;)

-kwag

Krassi 01-27-2004 01:55 PM

I've found my error :D

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 8)


All times are GMT -5. The time now is 12:25 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.