burnix
5th February 2008, 22:48
Hello. i want to encode some videos with mencoder or ffmpeg. So this is my method (source was pal vob 16/9 par=0.703).
- I read the video infos with mediainfo
pal 16/9 par=0.703 720*576
- i search the crop size
mencoder -vf cropdetect = 720*432
- i search the right vertical size
h = (dar/par)*v = 1087*432
- i divide by 2 and i search mod 16
544*244
- i encode with ffmpeg or mencoder
ffmpeg -y -i E:\Dvd\VIDEO_TS\VTS_01_1.VOB -t 30 -vcodec libxvid -trell -max_bframes=2 -croptop 72,0 -cropbottom 72,0 -s 544x224 -b 1000k -acodec libmp3lame -ac 2 -ab 128k -benchmark OUT.avi
mencoder -ss 300 -endpos 30 -ffourcc XVID dvd://1 -dvd-device e:\dvd -sws 9 -vf crop=720:432:0:72,scale=544:224 -ovc xvid -xvidencopts bitrate=1000000:trellis:me_quality=6:vhq=4:chroma_opt:noqpel:nogmc -oac copy -o E:\VideoSortie\Encode\temp\toto-temp.avi
So my question do i have to utilise aspect=16/9 or -aspect 16:9 or just leave the encoders without these parameters.
I thing that i have to set DAR on xvid file, but i seems it works well in 1:1 format.
If someone have good explanation or precision i thank you a lot.
- I read the video infos with mediainfo
pal 16/9 par=0.703 720*576
- i search the crop size
mencoder -vf cropdetect = 720*432
- i search the right vertical size
h = (dar/par)*v = 1087*432
- i divide by 2 and i search mod 16
544*244
- i encode with ffmpeg or mencoder
ffmpeg -y -i E:\Dvd\VIDEO_TS\VTS_01_1.VOB -t 30 -vcodec libxvid -trell -max_bframes=2 -croptop 72,0 -cropbottom 72,0 -s 544x224 -b 1000k -acodec libmp3lame -ac 2 -ab 128k -benchmark OUT.avi
mencoder -ss 300 -endpos 30 -ffourcc XVID dvd://1 -dvd-device e:\dvd -sws 9 -vf crop=720:432:0:72,scale=544:224 -ovc xvid -xvidencopts bitrate=1000000:trellis:me_quality=6:vhq=4:chroma_opt:noqpel:nogmc -oac copy -o E:\VideoSortie\Encode\temp\toto-temp.avi
So my question do i have to utilise aspect=16/9 or -aspect 16:9 or just leave the encoders without these parameters.
I thing that i have to set DAR on xvid file, but i seems it works well in 1:1 format.
If someone have good explanation or precision i thank you a lot.