FFMPEG: Help me get rid of 'shimmering' effect with ffmpeg
I used ffmpeg from cvs on linux to make a vcd complaint mpg with this command:
Code:
ffmpeg -i myfile.avi -target vcd /tmp/vcd.mpg The myfile.avi has these properties: Code:
[tcprobe] RIFF data, AVI video Thx. ffmpeg version 0.4.8 from cvs. |
oops
|
Don't know if this will work with vcd's (might be out of spec), but try adding a -bufsize statement to your cmdline.
For example, this works great for me when converting from avi to xsvcd/dvd mpegs: -bufsize 1835. Shimmer is gone. YMMV. From reading the ffmpeg-dev list on sourceforge, this apparently is a problem with the buffer that handles i,p,and b frames..... essentially, the default rate is too low to keep up... For anyone interested, here's the Linux scriptlet I use: Code:
ffmpeg -i $1 -target svcd -s 352x360 -padtop 60 -padbottom 60 -qscale 1 -bufsize 1835 -strict 1 -mbd 2 -bt 1024 -bf 2 -aspect 16:9 -hq -qcomp 0.5 -ab 192 -ar 48000 -ac 2 $2.mpg AIR. |
cool, thx. I'll try that script out. I found this one to use on vcd's:
Code:
ffmpeg -i file.avi -y -f vcd -vcodec mpeg1video -map 0.0:0.0 -b 1150 -s 352x240 -r 29.97 -g 12 -qmin 3 -qmax 13 -hq -acodec mp2 -ab 224 -ar 44100 -ac 2 -map 0.1:0.1 movie.mpg |
Hi guys,
For linux encodings you could try this thread http://www.kvcd.net/forum/viewtopic.php?t=7771 It's a template made up by russiansexpat. Other users have given good feedback when using it. Though it uses mencoder's audio encoding routines. But since you're trying ffmpeg and mencoder itself has a lot of ffmpeg code inside I thought you guys would care to give it a try. Cheers |
yes, i did look at that script. But i just can't figure out which one to use on that thread, there are like 6 pages of posts..
|
There is not anything like the perfect script.
That rules for windows, *nix, etc. If you care to look at the scripts there you will see that authors did their job based on russiansexpat initial script. And they've made some remarks on what they tried to achieve by doing their own script. Did you read it thoroughly? Anyway it seems that ffmpeg will not be able to pull as much quality as the one obtained by mplayer/mencoder. But keep it coming. Maybe we haven't still used the right parameters. Cheers |
I did try to use the sript (the first one he posted), but i am not sure if i am using it correctly.
Here is what i used as a command: Code:
./script.sh movieout moviein.avi Code:
mencoder -sws 0 -vf denoise3d,eq2,scale=352:-3,expand=0:288 \ |
I also had no video output using the 1st two versions of the script.
Using the last version (page 3 or 4 of the thread, I think), the encoding went ok. The only issue I'm having with it now (I'll get around to posting this in the proper thread) is that when I switch the vid output from PAL to any type of NTSC, no video gets encoded. I don't know if it's my build of Mencoder or what, but when I try values like: 23.976 or 29.97 Mencoder won't process the video. Changing the values to 23 or 29 works (whole numbers). I'm going to re-compile Mencoder before I post on the thread, just to make sure it's not _my_ sloppy arse screwing things up :oops: AIR. |
Quote:
AIR. |
Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.