PDA

View Full Version : Invalid pixel aspect ratio


comorbid
10-25-2008, 03:36 PM
iPod Converter 4 is giving me a weird error in the console. Not so much the "Code: 102202" error; which seems to me to be the most useless error code ever, as when the dialog pops up, it tells you your video didn't convert, and to check the troubleshooting guide, which tells you that "Code: 102202" means… your video didn't convert (gee, thanks :rolleyes:). No, the problem here is that apparently, My video (ripped with DVD Decrypter, run through DGindex, processed with AVIsynth, as always) uses an "Invalid pixel aspect ratio." :confused:

Anyone know where this problem lies? I can only guess that it's with Videora 4.x as I've downgraded back to 3.x - and it works just fine, but maybe it could be with DGindex. It just seems like an odd problem, as I'm pretty sure there are only 2 PARs that any DVD would use, and this was never an issue until 4.x.

Here's the 4.x console log:

EXEC: C:\Program Files\Red Kawa\Video Converter App\Tools\VideoInfo\VideoInfo.exe "C:\VIDEO\temp\zeiram\video.avs"

VideoInfo Tool 3.1
(C) 2007 Red Kawa Inc.
http://www.redkawa.com

MediaInfoLib - v0.7.7.6

Container=
FileSize=172 Bytes














DONE
MSG - OS - Version: Microsoft Windows NT 5.1.2600 Service Pack 3
MSG - Converter - Version: 4.02
MSG - Converter - Device: iPod_5G
MSG - Converter - Profile: iPod, PSP, & PS3 - Real[istic]
MSG - VideoInfo - Length: -1s
MSG - VideoInfo - Width: -1 pixels
MSG - VideoInfo - Height: -1 pixels
MSG - VideoInfo - Aspect Ratio: -1
MSG - VideoInfo - Framerate: -1 fps
MSG - VideoInfo - Frame Count: -1
MSG - Converter - Resolution not detected. Using AutoResize Max Resolution as default.
MSG - Converter - Width: 640 pixels
MSG - Converter - Height: 480 pixels
EXEC: C:\Program Files\Red Kawa\Video Converter App\Tools\FFmpeg\ffmpeg.exe -y -i "C:\VIDEO\temp\zeiram\video.avs" -an -pass 1 -f mp4 -title "video" -timestamp "2008-10-25 02:11:01" -vcodec libxvid -s 640x480 -b 2432k -maxrate 2432k -g 250 -flags +loop -cmp +chroma -partitions +parti4x4+partp8x8+partb8x8 -flags2 +mixed_refs -me_method umh -subq 6 -trellis 1 -refs 3 -me_range 16 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -qmin 10 -qmax 51 -qdiff 4 -threads 0 "C:\VIDEO\temp\video.mp4"

FFmpeg version Sherpya-r15596, Copyright (c) 2000-2008 Fabrice Bellard, et al.
libavutil 49.11. 0 / 49.11. 0
libavcodec 52. 0. 0 / 52. 0. 0
libavformat 52.22. 1 / 52.22. 1
libavdevice 52. 1. 0 / 52. 1. 0
libswscale 0. 6. 1 / 0. 6. 1
libpostproc 51. 2. 0 / 51. 2. 0
built on Oct 11 2008 17:20:38, gcc: 4.2.5 20080919 (prerelease) [Sherpya]
Input #0, avs, from 'C:\VIDEO\temp\zeiram\video.avs':
Duration: 01:38:32.04, start: 0.000000, bitrate: N/A
MSG - FFmpeg - Video Length is 5912s
Stream #0.0: Video: rawvideo, yuv420p, 640x360, 165722 kb/s, 59.94 tb(r)
Stream #0.1: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
Output #0, mp4, to 'C:\VIDEO\temp\video.mp4':
Stream #0.0: Video: libxvid, yuv420p, 640x480, q=10-51, pass 1, 2432 kb/s, 59.94 tb(c)
Stream mapping:
Stream #0.0 -> #0.0
Press [q] to stop encoding
[libxvid @ 03BFFB00]Invalid pixel aspect ratio 0/1
Video encoding failed
MSG - FFmpeg - Conversion Failed (Code: 102202)
MSG - Converter - Error Code: 102202
Conversion Stats
Pass: 1
Filesize:
Bitrate:
Time Elapsed: 00h 00m 01s
Frame:
Total Frames:
Processed:
Video Length: 5912s


Then the 3.x console:


EXEC: C:\Program Files\Red Kawa\iPod Converter\Tools\VideoInfo\VideoInfo.exe "C:\VIDEO\temp\zeiram\video.avs"

VideoInfo Tool 3.1
(C) 2007 Red Kawa Inc.
http://www.redkawa.com

MediaInfoLib - v0.7.5.2

Container=
FileSize=172 Bytes














DONE
MSG - OS - Version: Microsoft Windows NT 5.1.2600 Service Pack 3
MSG - Converter - Version: 3.07
MSG - Converter - Device: iPod_5G
MSG - Converter - Profile: iPod, PSP & PS3 - Real[istic]
MSG - VideoInfo - Length: -1s
MSG - VideoInfo - Width: -1 pixels
MSG - VideoInfo - Height: -1 pixels
MSG - VideoInfo - Aspect Ratio: -1
MSG - VideoInfo - Framerate: -1 fps
MSG - VideoInfo - Frame Count: -1
EXEC: C:\Program Files\Red Kawa\iPod Converter\Tools\FFmpeg\ffmpeg.exe -y -i "C:\VIDEO\temp\zeiram\video.avs" -an -pass 1 -f mp4 -title "video" -timestamp "2008-10-25 02:32:09" -vcodec libxvid -b 2500k -bufsize 2000k -maxrate 2500k -g 250 -threads auto "C:\VIDEO\[converted]\video.mp4"

FFmpeg version Sherpya-r11050, Copyright (c) 2000-2007 Fabrice Bellard, et al.
libavutil version: 49.5.0
libavcodec version: 51.48.0
libavformat version: 51.19.0
built on Nov 18 2007 09:00:58, gcc: 4.2.1 [Sherpya]
Input #0, avs, from 'C:\VIDEO\temp\zeiram\video.avs':
Duration: 01:38:32.0, start: 0.000000, bitrate: N/A
MSG - FFmpeg - Video Length is 5912s
Stream #0.0: Video: rawvideo, yuv420p, 640x360 [PAR 0:1 DAR 0:1], 165722 kb/s, 59.94 tb(r)
Stream #0.1: Audio: pcm_s16le, 48000 Hz, stereo, 1536 kb/s
Output #0, mp4, to 'C:\VIDEO\[converted]\video.mp4':
Stream #0.0: Video: libxvid, yuv420p, 640x360 [PAR 0:1 DAR 0:1], q=2-31, pass 1, 2500 kb/s, 59.94 tb(c)
Stream mapping:
Stream #0.0 -> #0.0
Press [q] to stop encoding


It's converting as I write this, displaying frame information as it chugs along.
This is the AVISynth script I'm using:

video = mpeg2source("C:\Video\Temp\zeiram\zeiram.d2v")
audio = wavsource("C:\Video\Temp\zeiram\en.wav")
AudioDub(video, audio)
Bob()
Autocrop(0)
LanczosResize(640,360)

And, if it helps, the header from the .d2v that came outta DGindex:

DGIndexProjectFile08
16
44 C:\VIDEO\temp\zeiram\VTS_10_CHAPTER_01_1.VOB
44 C:\VIDEO\temp\zeiram\VTS_10_CHAPTER_02_1.VOB
44 C:\VIDEO\temp\zeiram\VTS_10_CHAPTER_03_1.VOB
44 C:\VIDEO\temp\zeiram\VTS_10_CHAPTER_04_1.VOB
44 C:\VIDEO\temp\zeiram\VTS_10_CHAPTER_05_1.VOB
44 C:\VIDEO\temp\zeiram\VTS_10_CHAPTER_06_1.VOB
44 C:\VIDEO\temp\zeiram\VTS_10_CHAPTER_07_1.VOB
44 C:\VIDEO\temp\zeiram\VTS_10_CHAPTER_08_1.VOB
44 C:\VIDEO\temp\zeiram\VTS_10_CHAPTER_09_1.VOB
44 C:\VIDEO\temp\zeiram\VTS_10_CHAPTER_10_1.VOB
44 C:\VIDEO\temp\zeiram\VTS_10_CHAPTER_11_1.VOB
44 C:\VIDEO\temp\zeiram\VTS_10_CHAPTER_12_1.VOB
44 C:\VIDEO\temp\zeiram\VTS_10_CHAPTER_13_1.VOB
44 C:\VIDEO\temp\zeiram\VTS_10_CHAPTER_14_1.VOB
44 C:\VIDEO\temp\zeiram\VTS_10_CHAPTER_15_1.VOB
44 C:\VIDEO\temp\zeiram\VTS_10_CHAPTER_16_1.VOB

Stream_Type=1
iDCT_Algorithm=4 (1:MMX 2:SSEMMX 3:FPU 4:REF 5:SSE2MMX)
YUVRGB_Scale=1 (0:TVScale 1:PCScale)
Luminance_Filter=0,0 (Gamma, Offset)
Clipping=0,0,0,0 (ClipLeft, ClipRight, ClipTop, ClipBottom)
Aspect_Ratio=16:9
Picture_Size=720x480
Field_Operation=0 (0:None 1:ForcedFILM 2:RawFrames)
Frame_Rate=29970
Location=0,0,15,27

Red Kawa
10-26-2008, 10:00 AM
The problem lies with the new conversion core used in 4.02. When using AviSynth input files to create MP4 SP files, an aspect ratio must be specified (-aspect).

We will try to automate this process better in the next version for common ratios like 4:3 and 16:9.

Pixelen
10-29-2008, 12:54 PM
I'm having the same problem! I fixed it by going to another website and downloading version 4.01 of Videora (since it won't let you download old versions here :confused:) Please fix this in the new version!

comorbid
10-29-2008, 01:15 PM
The problem lies with the new conversion core used in 4.02. When using AviSynth input files to create MP4 SP files, an aspect ratio must be specified (-aspect).

We will try to automate this process better in the next version for common ratios like 4:3 and 16:9.

Ah, ok. So I just have to set the respective aspect ratio in my custom encoding profile, and basically have a fullscreen and widescreen version of it?