PDA

View Full Version : Converting - [libxvid @ 0x39df80]Invalid pixel aspect ratio 0/1



JemyM
11-26-2010, 03:11 AM
Whenever I try to convert a file to XviD I get the following message;


Converting - [libxvid @ 0x39df80]Invalid pixel aspect ratio 0/1
Converting - Video encoding failed
Complete with errors. Double click to view.

I use K-Kite latest version for all my codec needs.

From browsing the web it seems like ffmpeg requires the aspect ratio to be given but I am not sure.

Any clues?

stream-recorder.com
11-26-2010, 09:41 AM
Here are some workarounds ( https://roundup.ffmpeg.org/issue1931 ) :

Use mpeg4 video codec instead of libxvid
or
Specify the resolution and aspect ratio in an avfilter like this:

-vf "scale=480:320,aspect=3:2"

TheoS
01-17-2011, 03:16 PM
I had this problem too when I tried to convert from ASF to XVID. It is like stream-recorder.com says, libxvid needs the 'aspect' setting.
The mpeg4 codec is more forgiving and does the job without the 'aspect' setting.

What I did is create a new conversion preset: 'tools > conversion settings'.
I made a preset with only:
Ouput Format: avi
Output File Ext.: avi
Start Time Offset: 0.00
Other: -vtag xvid
Video Codec: mpeg4

I guess the developers could also change Replay Media Catcher so it will either pass the aspect ratio to the ffmpeg program, or just use the mpeg4 codec to do the job.