Klagar
26th November 2010, 16:48
Hi all !
I developed a FFmpeg command line that would allow me to encode videos in a format suitable for my Nexus One. So I must use libxvid with the mp4 container, cause the phone won't play libx264 encodings by default.
So I use a 2-pass formula, which second pass line resembles the following :
ffmpeg -y -i INPUT -f mp4 -pass 2 -vcodec libxvid -vpre PRESET -passlogfile FILE -b 500k -bt 500k -s 480x320 -aspect 3:2 -r 29.97 OUTPUT
(I left out audio parameters, among other things).
And I get the following error :
[libxvid @ 01c57b80] Invalid pixel aspect ratio 0/1
Now, maybe I am very poor at maths but a 480x320 size does mean a 3:2 aspect, right ? And anyways, I tried with 4:3 ans 16:9 aspects as well and got the same error.
I searched a bit and found many other people who had this problem, but never got answers or any useful clue. Maybe I'll be more lucky ? ;-)
Regards.
I developed a FFmpeg command line that would allow me to encode videos in a format suitable for my Nexus One. So I must use libxvid with the mp4 container, cause the phone won't play libx264 encodings by default.
So I use a 2-pass formula, which second pass line resembles the following :
ffmpeg -y -i INPUT -f mp4 -pass 2 -vcodec libxvid -vpre PRESET -passlogfile FILE -b 500k -bt 500k -s 480x320 -aspect 3:2 -r 29.97 OUTPUT
(I left out audio parameters, among other things).
And I get the following error :
[libxvid @ 01c57b80] Invalid pixel aspect ratio 0/1
Now, maybe I am very poor at maths but a 480x320 size does mean a 3:2 aspect, right ? And anyways, I tried with 4:3 ans 16:9 aspects as well and got the same error.
I searched a bit and found many other people who had this problem, but never got answers or any useful clue. Maybe I'll be more lucky ? ;-)
Regards.