Log in

View Full Version : (FFmpeg) Problem specifying DAR and PAR with libavfilter


drunken_clam
19th November 2010, 15:40
Hi is use following command line:

ffmpeg -y -i /Users/tobias/Desktop/livn/Cam_Samples/SD/01.MPG -vframes 50 -vf "pixelaspect=1:1,aspect=4:3,scale=480:360,pad=480:360:0:0:black" -r 25 -threads 0 -vcodec libx264 -level 30 -b 570k -minrate 400k -maxrate 600k -bf 3 -cmp +chroma -flags +loop -flags2 +bpyramid+wpred+fastpskip -me_method hex -subq 6 -trellis 1 -refs 2 -coder 1 -me_range 16 -g 25 -keyint_min 25 -qcomp 0.6 -qmin 20 -qmax 51 -qdiff 4 -partitions +parti8x8+parti4x4+partp8x8+partb8x8 -sc_threshold 40 -i_qfactor 0.71 -rc_eq 'blurCplx^(1-qComp)' -directpred 1 -acodec libfaac -ac 2 -ar 44100 -ab 128k test1-nopad.mp4

(You can ignore the pad filter, this only a placeholder for programming because for some input i have to pad)

When i check with "ffmpeg -i" i get the following values for DAR and PAR:

Stream #0.0(und): Video: h264, yuv420p, 480x360 [PAR 12:11 DAR 16:11], 597 kb/s, PAR 523:480 DAR 523:360, 25 fps, 25 tbr, 25 tbn, 50 tbc

How can i get the correct values for PAR and DAR or is my command line wrong.


Kind regards