Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.


Go Back   Doom9's Forum > Video Encoding > MPEG-2 Encoding

Thread Tools Search this Thread Display Modes
Old 26th November 2010, 16:48   #1  |  Link
Registered User
Klagar's Avatar
Join Date: Sep 2010
Posts: 46
[FFmpeg] libxvid - Invalid aspect ratio

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 ? ;-)

Klagar is offline   Reply With Quote
Old 3rd January 2011, 10:00   #2  |  Link
Registered User
Join Date: Mar 2008
Posts: 34
Klagar use this "-vcodec mpeg4 -vtag xvid" instead of "-vcodec libxvid".
lindylex is offline   Reply With Quote

aspect ratio, ffmpeg, invalid, libxvid, nexus

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +1. The time now is 05:29.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, vBulletin Solutions Inc.