PDA

View Full Version : Strange resolutions


tnipod
03-04-2007, 11:17 AM
When tryting to encode using 2.05 (or 2.03/4 before) i am coming accross an error where i don't seem to be able to get the correct resolutions.

I'm always trying to use h.264,and have tried altering the following settings:

H.264 VGA 1024kbps Stereo128kbps ( or any other H.264 settings)


General properties, i leave as they are
Video properties i have at H.264, Baseline, Level 3.
Bitrate i leave as it is.
But under Resolution section, no matter what i put in, ie Leave all resolutions as Original, or try changing them to max of 640x480, or just change 640 or 480 etc, i end up with resoutions that will not transfer onto the ipod. ie 785x480 or 640x525 etc.
I have also tried playing with the auto resize, but get the same results.
Is anyone else having similar problems? or any suggested solutions?

tnipod
03-04-2007, 03:54 PM
Ok, after playing around for a few hours, i have a question.

It seems that when encoding videos, the setting that changes how the file is eventually output is the Width setting within resolution settings.
If i set this at less than 480, the video will encode and will end up at maybe 480x320.
However if i set it to 480, then the file will end up at maybe 660x480.
I'm guessing this is because the aspect ratio is fixed and can't be changed.
Is there any way to alter this, so the ratio could be changed?

EDIT

This only seems to be the case when using H.264.
It seems to work fine when using MPEG4.

Red Kawa
03-04-2007, 04:09 PM
If the AutoResize feature is enabled for the profile used, Videora iPod Converter will ignore the profile's resolution settings and try to automatically change the resolution of the video to fit the size specified in the AutoResize Max Resolution field while maintaining the aspect ratio.

If you want to manually set the resolution yourself, simply disable the AutoResize feature and set the Width and Height values to what ever you want.

tnipod
03-04-2007, 04:51 PM
Sorry, maybe i'm not explaining very well.

If i convert a video of original resolution 720x576 using MPEG4 VGA 768kbps and enter 640x480 in the resolution settings then the resulting file produced is 640x480.
If i use H.264 VGA 768kbps on exactly the same file, then the resulting file produced is 600x480 despite me asking it to resize to 640x480.
This is all done using Resolutions rather thatn Auto Resize.

So i guess i'm asking if there is an error in the program when converting using H.264 - ie does it somehow overule the resolutions i'm asking it to use.
I seem to be able to ask it to convert to any resolution when using MPEG4, but asking it to do the same when using H.264, it resizes it to a completely different resolution than the one i've asked it to do.

On another file (original resolution of 704x512) using MPEG4 i end with a file of 640x480 but using H.264 i end up with 660x480.

Red Kawa
03-04-2007, 05:06 PM
Are you sure that the AutoResize "Enabled" checkbox is not checked for the profile you are using?

We tested a 720x576 video oursleves and it works fine for us.

Please post a console log of this occuring. Just copy the first part of the log up until it starts saying "frame=..." and post it in this thread.

tnipod
03-04-2007, 05:18 PM
Thanks for the reply.
The auto resize is definately NOT ticked.


Here is the info you requested:


EXEC: C:\Program Files\Videora\Video Converter\Tools\MediaInfo\mediainfobatch.bat "C:\Program Files\Videora\Video Converter\Tools\MediaInfo\MediaInfo.exe" "C:\Program Files\Videora\Video Converter\Tools\MediaInfo\parameters.txt" "E:\Music Videos\AVIs\Atomic Kitten - Eternal Flame.avi"

PlayTime=00:03:11.560

Width=720

Height=576

AspectRatio=1.250

FrameRate=25.000
MediaInfo Command line, MediaInfoLib - v0.7.4.5
MSG - Converter - Profile: H.264 VGA 768kbps Stereo/128kbps
MSG - MediaInfo - Length: 191s
MSG - MediaInfo - Width: 720 pixels
MSG - MediaInfo - Height: 576 pixels
MSG - MediaInfo - Aspect Ratio: 1.25
MSG - MediaInfo - Framerate: 25 fps
EXEC: C:\Program Files\Videora\Video Converter\Tools\FFmpeg\ffmpeg.exe -y -i "E:\Music Videos\AVIs\Atomic Kitten - Eternal Flame.avi" -f mp4 -title "Atomic Kitten - Eternal Flame" -timestamp "2007-03-04 10:03:39" -vcodec h264 -s 640x480 -b 768k -bt 768k -flags +loop -cmp +chroma -partitions +parti4x4+partp4x4+partp8x8+partb8x8 -me umh -subq 7 -trellis 2 -refs 1 -coder 0 -me_range 16 -g 300 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -maxrate 10M -bufsize 10M -rc_eq "blurCplx^(1-qComp)" -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 -level 30 -acodec aac -ac 2 -ab 128 "C:\Users\Terry\Desktop\Atomic Kitten - Eternal Flame.mp4-1"

FFmpeg version SVN-r8047, Copyright (c) 2000-2007 Fabrice Bellard, et al.
configuration: --enable-gpl --enable-pp --enable-swscaler --enable-pthreads --enable-liba52 --enable-avisynth --enable-libdts --enable-libfaac --enable-libfaad --enable-libgsm --enable-libmp3lame --enable-libnut --enable-libogg --enable-libtheora --enable-libvorbis --enable-x264 --enable-xvid --enable-amr_nb --enable-amr_wb --cpu=i686 --enable-memalign-hack --extra-ldflags=-static
libavutil version: 49.3.0
libavcodec version: 51.34.0
libavformat version: 51.10.0
built on Feb 21 2007 23:20:24, gcc: 4.3.0 20070126 (experimental)
[mpeg4 @ 009C3820]frame skip 8

Seems stream 0 codec frame rate differs from container frame rate: 30000.00 (30000/1) -> 25.00 (25/1)
Input #0, avi, from 'E:\Music Videos\AVIs\Atomic Kitten - Eternal Flame.avi':
Duration: 00:03:11.5, start: 0.000000, bitrate: 2196 kb/s
Stream #0.0: Video: mpeg4, yuv420p, 720x576, 25.00 fps(r)
Stream #0.1: Audio: pcm_s16le, 44100 Hz, stereo, 1411 kb/s
Output #0, mp4, to 'C:\Users\Terry\Desktop\Atomic Kitten - Eternal Flame.mp4-1':
Stream #0.0: Video: h264, yuv420p, 640x480, q=10-51, 768 kb/s, 25.00 fps(c)
Stream #0.1: Audio: aac, 44100 Hz, stereo, 128 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Stream #0.1 -> #0.1
[h264 @ 009C3820]using SAR=15/16
[h264 @ 009C3820]using cpu capabilities MMX MMXEXT SSE SSE2
Press [q] to stop encoding
[mpeg4 @ 009C3820]frame skip 8
frame= 25 q=11.0 size= 44kB time=0.9 bitrate= 388.1kbits/s

Red Kawa
03-04-2007, 06:32 PM
According to the log you posted, the video was converted to 640x480 and AutoResize was not used. How do you know that the video is not 640x480?


EXEC: C:\Program Files\Videora\Video Converter\Tools\FFmpeg\ffmpeg.exe -y -i "E:\Music Videos\AVIs\Atomic Kitten - Eternal Flame.avi" -f mp4 -title "Atomic Kitten - Eternal Flame" -timestamp "2007-03-04 10:03:39" -vcodec h264 -s 640x480 -b 768k -bt 768k -flags +loop -cmp +chroma -partitions +parti4x4+partp4x4+partp8x8+partb8x8 -me umh -subq 7 -trellis 2 -refs 1 -coder 0 -me_range 16 -g 300 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -maxrate 10M -bufsize 10M -rc_eq "blurCplx^(1-qComp)" -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 -level 30 -acodec aac -ac 2 -ab 128 "C:\Users\Terry\Desktop\Atomic Kitten - Eternal Flame.mp4-1"

FFmpeg version SVN-r8047, Copyright (c) 2000-2007 Fabrice Bellard, et al.
configuration: --enable-gpl --enable-pp --enable-swscaler --enable-pthreads --enable-liba52 --enable-avisynth --enable-libdts --enable-libfaac --enable-libfaad --enable-libgsm --enable-libmp3lame --enable-libnut --enable-libogg --enable-libtheora --enable-libvorbis --enable-x264 --enable-xvid --enable-amr_nb --enable-amr_wb --cpu=i686 --enable-memalign-hack --extra-ldflags=-static
libavutil version: 49.3.0
libavcodec version: 51.34.0
libavformat version: 51.10.0
built on Feb 21 2007 23:20:24, gcc: 4.3.0 20070126 (experimental)
[mpeg4 @ 009C3820]frame skip 8

Seems stream 0 codec frame rate differs from container frame rate: 30000.00 (30000/1) -> 25.00 (25/1)
Input #0, avi, from 'E:\Music Videos\AVIs\Atomic Kitten - Eternal Flame.avi':
Duration: 00:03:11.5, start: 0.000000, bitrate: 2196 kb/s
Stream #0.0: Video: mpeg4, yuv420p, 720x576, 25.00 fps(r)
Stream #0.1: Audio: pcm_s16le, 44100 Hz, stereo, 1411 kb/s
Output #0, mp4, to 'C:\Users\Terry\Desktop\Atomic Kitten - Eternal Flame.mp4-1':
Stream #0.0: Video: h264, yuv420p, 640x480, q=10-51, 768 kb/s, 25.00 fps(c)
Stream #0.1: Audio: aac, 44100 Hz, stereo, 128 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Stream #0.1 -> #0.1

tnipod
03-05-2007, 01:10 AM
Hi, i'm going by what windows media player tell me.

If i look at the properties for that video that was converted, it tells me that it's 600x480.
Could it be it's just reporting wrong then?

EDIT

Ok, looking into it further - WMP reports the file as 600x480, but QT reports it as 640x480.
I've checked a couple of others - 1 WMP reports as 785x480, but QT reports it as 640x480.
Very odd.
My bad. Should have explored it further.
Thanks very much for looking into it for me.