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)

nicksteel 01-29-2004 06:23 AM

Very basic question
 
To use, do I:

Rip with Decrypter?
Use AVS script with Telecide,Decimate,Filters as usual?
What do I load into VDub?

I know how to set up in VDub, just don't understand how to create the source.

incredible 01-29-2004 06:56 AM

@ Nick

No hard to treat captures now, please! We are not at that step in the state here right now.

Just do a test on a clear and very good NTSC DVD Source using "forced Film" in DVD2Avi to obtain a 23.976 fps stream and by this generating a simple script WITHOUT telecining etc. further explanations you see in some posts more above (read the thread from the beginning to the end).

vmesquita 01-29-2004 06:56 AM

Ok, just to be complete:
Tmpgenc gave me a SSIM of 81.33. Higher than CCE, but still below FFVFW. Maybe CCE got so low score because somehow softs the picture, making it different from the original.

vmesquita 01-29-2004 07:23 AM

I encoded my sample from the Lawnmover man using the noise parameters Kwag suggested on FFVFW. The file got real big, jumping from 33.594kb (without noise) to 67.112kb (more than double). Quality is better, but at this cost, I think it's not worth it.

incredible 01-29-2004 08:01 AM

Try to play with blockbuster() as yesterday (ok, I was working with that older build of ffvfw) I figured out that it cooperates very good with the ffvfw engine.

Find the optimal settings in blockbuster that stairs won't appear after encoding and also that most of the added noise will be quantisized off during encoding, means filtered out! By this my resulted filesizes did only grew up by ca. 1-2%.

As I also see in Kwags and mine samples, that ffvfw engine produces excellent edges/Details, but gots its problems in areas mention by me above. And thats a quatisation problem. We could say "ok, so the encoder does allocade more! quantisation to fast/complex parts within a whole frame, where on the other hand he provides less quant. on low movement picture parts within a frame" (which you also can set in CCE), but thats not logic as plain surfaces and dark/dark gray plain surfaces do sometimes also suffer. And thats I think the "secret" of that engine as it allocades quantisation in a different way as TmpgEnc or CCE ... so it could be just a matter of priority of quantisation where every encoder gots its on specs. and ways :idea:

nicksteel 01-29-2004 09:08 AM

When I attempt to load simple avs for force film output from DVD2AVI:

## DLL Section ##
LoadPlugin("c:\video\dlls\MPEG2DEC3.dll")
mpeg2source("h:\ff\sw2.d2v"


I get "Couldn't locate decompressor for format 'YV12' (unknown)" from VirtualDub.

:?: Should I download a YV12 codec and install? :?: Where can I find this?

If I load a single VOB rip, it seems ok. Only when I try to use AVS script.

Also, as the source is 16:9, I am setting to this in ffmpeg. The DVD is anamorphic. :?: Should I be setting to 16:9 and is there anything else I should be doing?

:?: With DVDPatcher, what settings should I use?

Dialhot 01-29-2004 09:16 AM

Quote:

Originally Posted by nicksteel
:?: Should I download a YV12 codec and install? :?: Where can I find this?

You never did any DVD before ?
Yes you need a YV12 codec and Xvid is a perfect one. So even if you do not plan to do any xvid in your life you must install it.

incredible 01-29-2004 09:33 AM

Quote:

Originally Posted by nicksteel
I get "Couldn't locate decompressor for format 'YV12' (unknown)" from VirtualDub.
:?: Should I download a YV12 codec and install? :?: Where can I find this?

Even you never did reencode a DVD, your PVR250 mpeg2 captures also come out as YUV 4:2:0 means YV12 to avisynth, and thats what I also don't understand like Phil above!
Quote:

If I load a single VOB rip, it seems ok. Only when I try to use AVS script.
Also, as the source is 16:9, I am setting to this in ffmpeg. The DVD is anamorphic. :?: Should I be setting to 16:9 and is there anything else I should be doing?
:?: With DVDPatcher, what settings should I use?
:?: Sorry, but first this is NOT ffmpeg, we're talking here about ffvfw. And you should use Moviestacker as THAT one is responsable for correct 16:9 or 4:3 resized outputs via Avisynth code.

By using Moviestacker you will open a moviestacker generated avs in Virtualdub and safe there (as AVI) the new mpg by using fast recompress and the ffvfwmpeg4 codec at mpeg2 settings and data output to external mpeg file only. As explained some postings more above.

As explained by Kwag, you only use DVD patcher AFTER demuxing that outputted mpg to m2v to set a DVD compilant max bitrate in the header so the DVD auth. appl. does accept the stream.

kwag 01-29-2004 09:53 AM

Quote:

Originally Posted by incredible
Now the ffvfw: To me it seems that the noise adding even does make the surfaces like her arm a little bit uneasy BUT as seen as a whole the picture looks more natural! Look at her skin and it just "seems" to be more detailed (her eyes).

Exactly :D
And BTW, you might want to drop the noise value I suggested above by one or two points, to 7 or 6. I encoded the complete movie without noise and with noise, and without noise the video stream is 1,268,647KB and with a noise value of 8 it's 1,840,642KB. But the quality is AWESOME with noise :!: :lol:
Quote:


Well we could now start a philosophy which one is better, the added noise one or the left as it is one of the ffvfw samples. But my conlcusion is that I do agree that in case of YOUR samples the ffvfw do look best!
Yep. Visually, ffvfw's encode is the most pleasing picture :)
And again, the motion estimation and colors of this CODEC are just EXCELENT :mrgreen:

-kwag

kwag 01-29-2004 09:56 AM

Quote:

Originally Posted by vmesquita
I encoded my sample from the Lawnmover man using the noise parameters Kwag suggested on FFVFW. The file got real big, jumping from 33.594kb (without noise) to 67.112kb (more than double). Quality is better, but at this cost, I think it's not worth it.

Hi Vmesquita,

Drop the noise to 6 or 7.
But I'm sure that when you encode the complete movie, the final size will not be twice the size of the same encode, without noise applied ;)

-kwag

incredible 01-29-2004 09:58 AM

YEP! But there's still the problem that most of the participants do not match your quality of quantisation even when using same settings, well as said, two possibilities could be responsable for this:

1. Update to the newest build of ffvfw needed (and that I'll figure out this evening)

2. For a good quantisation the weather is too cold in europe now compared to Puerto Rico or Brazil :lol:

kwag 01-29-2004 10:03 AM

@incredible,

I retract from my previous comment about 3 B frames being better quality that 2.
The last sample screenshots, and the Sample #3, were encode with 2 B frames.
With 3 B frames, I can see more visible DCT blocks.
So it seems 2 B frames (IBBP) is the best overall quality setting for this CODEC.

-kwag

kwag 01-29-2004 10:04 AM

Quote:

Originally Posted by incredible

2. For a good quantisation the weather is too cold in europe now compared to Puerto Rico or Brazil :lol:

LOL :lol:

nicksteel 01-29-2004 10:08 AM

Sorry, I meant ffvfw, not ffmpeg.
 
Quote:

Originally Posted by Dialhot
Quote:

Originally Posted by nicksteel
:?: Should I download a YV12 codec and install? :?: Where can I find this?

You never did any DVD before ?
Yes you need a YV12 codec and Xvid is a perfect one. So even if you do not plan to do any xvid in your life you must install it.

Of course I do DVD and KVCD (using a lot of your advice!). I have never before installed Xvid and have had no YV12 problems using any avs script going into TMPGEnc. I just downloaded Xvid and installed. Now VirtualDub will accept the AVS. Thanks.

Incredible, I think this is the correct thread and I'm not talking about MovieStacker. Thanks.

incredible 01-29-2004 10:11 AM

Quote:

Originally Posted by kwag
@incredible,
I retract from my previous comment about 3 B frames being better quality that 2.
The last sample screenshots, and the Sample #3, were encode with 2 B frames.
With 3 B frames, I can see more visible DCT blocks.
So it seems 2 B frames (IBBP) is the best overall quality setting for this CODEC.

I do totally agree afterwards as my samples yesterday showed best quality and compression when using 2 B Frames. Or my outputs do change every day in their behaviour ;-)

Or we should do try using 1 Bframe as it to me seems that in fast moving scenes I frames in some cases come out smooth and detailed where the following B Frames (sometimes) in these cases got Blocks.
This normally stays for a very hard Non-Intra quantisation of B and P Frames! So we also should figure out those B and P Frame parameters :idea: :?:

kwag 01-29-2004 10:16 AM

Here are a couple of screenshots from my previous encode. One fast action scene, and one dark scene.

http://www.digitalfaq.com/archives/i...2004/01/11.png
http://www.digitalfaq.com/archives/i...2004/01/12.png

-kwag

Dano 01-29-2004 10:30 AM

This encoder is sweet. I did an encode of a PVR-250 cap of Earth Final Conflict (from the SciFi channel) and the result was the best looking encode I have ever done, including DVD backups. I used Kwag's settings with 2 B frames and the MA script using lanczosresize at 704 x 480 with 2 blocks of overscan. I was shooting for a one cd encode and ended up with a 550 Mb .m2v even at 100 quality. I have been trying for a long time to get acceptable quality from STNG caps from Spike TV channel but the noise from this channel and the complexity of this show made me give up after a long time of trying all sorts of things. I was so impressed with the quality from the SciFi channel (which is a very clean source) I figured I would see what ffvfw could do with a noisy source. I know this might be hard to believe but the quality of the STNG was actually better than the EFC encode 8O The only problem was the file size was over so I am reencoding it by adjusting the Quality to 95 based on sampler results. This should result in a slightly undersized file but I think greater accuracy can be gained by adjusting the quantisizers as well. This encoder seems to really like Kwag's MA script.

kwag 01-29-2004 10:36 AM

Quote:

Originally Posted by Dano
The only problem was the file size was over so I am reencoding it by adjusting the Quality to 95 based on sampler results. This should result in a slightly undersized file but I think greater accuracy can be gained by adjusting the quantisizers as well.

Hi Dano,

How about simply running ReJig (Requant) on your .m2v :idea:
Then, you don't have to re-encode :!:
Worth a try :?:
Quote:

This encoder seems to really like Kwag's MA script.
Yes it does, and even without the MA script, just with the notch the matrix, it seems to compress very well :)
BTW, forgot to say that the last sample (Sample #3) and the last screenshots (taken from that encode), were encoded without the MA script 8O 8)

-kwag

nicksteel 01-29-2004 10:37 AM

Kwag
 
Quote:

(Maximum quality) and MAX bitrate set to 8,000Kbps
So I made a test with ffvfw CODEC, and I turned on "Enable Image Processing" on Input, and added "Noise" .
Check the following options:

Noise
New noise algorithm(avih)
Uniform Noise
Set Luminance noise strength to 8
Set Chroma strength to 0
:?: How did you turn on "Enable Image Processing"?

I downloaded and installed ffdshow-20020617.exe from the site given on the "Input" screen, but still cannot enable.

vmesquita 01-29-2004 10:48 AM

@nicksteel
Visit this thread and grab the latest ffvfw and ffdshow:
http://www.kvcd.net/forum/viewtopic.php?t=8824


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