LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   ffmpeg error: invalid width x height (0x320) (http://www.linuxquestions.org/questions/linux-software-2/ffmpeg-error-invalid-width-x-height-0x320-609286/)

MythN00b 12-26-2007 07:29 PM

ffmpeg error: invalid width x height (0x320)
 
I've got an iPod now - so decided to try and set up myth2ipod to try and get some really cool things happening in terms of recording tv, automatically transcoding it and podcasting so that I can watch last nights TV on the iPod whilst commuting to work....

ok - thats the background!

I followed a pretty good set of instructions from here:
http://www.myth2ipod.com/myth2ipod.html/
http://g-ding.tv/?q=node/2217

and the thing damn nearly works right off the bat! - the rss feed work, iTunes can see anything published in the podcast etc etc
BUT - the transcode itself fails..

I've picked apart the myth2ipod script and it fails at teh call to nuvexport. When I run nuvexport from a command line it too fails.
Next step was to run in debug mode using this:

Code:

nuvexport --chanid=1025 --start=20071227064500 --mode=iPod --nice=19 --cutlist --nodenoise --nodeinterlace --nomultipass --filename=1025_20071227064500.temp --path=/storage/ipodfeed/ --debug
Which tells me exactly what 'nuvexport' is trying to do. The crux of the matter is it running this command:

Code:

/bin/nice -n19 ffmpeg -y -f s16le -ar 48000 -ac 2 -i /tmp/fifodir_24217/audout -f rawvideo -pix_fmt yuv420p -s 720x576 -aspect 1.77777777777778 -r 25.000 -i /tmp/fifodir_24217/vidout -aspect 1.77777777777778 -r 25 -croptop    8 -cropright 10 -cropbottom 8 -cropleft  10 -s 320x176  -vcodec h264 -b '384k' -title 'Filipino News' -level 30 -loop 1 -g 250 -keyint_min 25 -sc_threshold 40 -rc_eq 'blurCplx^(1-qComp)' -bt '384k' -maxrate '768k' -bufsize '244k' -i_qfactor '0.71428572' -b_qfactor '0.76923078' -bf '0' -refs 2 -subq 7 -partitions parti4x4+parti8x8+partp4x4+partp8x8+partb8x8 -flags2 +bpyramid+wpred+mixed_refs+8x8dct+brdo -me_range 21 -trellis 2 -chroma 1 -slice 2 -cmp 1 -deblockalpha 0 -deblockbeta 0 -acodec aac -ar 48000 -async 1 -ab '64k' '/storage/ipodfeed/1025_20071227064500.temp.mp4' 2>&1
and that gives me the following error:
Code:

Input #0, s16le, from '/tmp/fifodir_24217/audout':
  Duration: N/A, bitrate: N/A
  Stream #0.0: Audio: pcm_s16le, 48000 Hz, stereo, 1536 kb/s
Input #1, rawvideo, from '/tmp/fifodir_24217/vidout':
  Duration: N/A, bitrate: N/A
  Stream #1.0: Video: rawvideo, yuv420p, 720x576, 25.00 fps(r)
Output #0, mp4, to '/storage/ipodfeed/1025_20071227064500.temp.mp4':
  Stream #0.0: Video: h264, yuv420p, 320x176, q=2-31, 384 kb/s, 25.00 fps(c)
  Stream #0.1: Audio: aac, 48000 Hz, stereo, 64 kb/s
Stream mapping:
  Stream #1.0 -> #0.0
  Stream #0.0 -> #0.1
x264 [error]: invalid width x height (0x320)
Error while opening codec for output stream #0.0 - maybe incorrect parameters su
ch as bit_rate, rate, width or height

Obviously a width of 0 isnt quite what I'm after, so theres something going on with ffmpeg - a bit of a google shows this seems to be common enough:
http://ubuntuforums.org/archive/index.php/t-334219.html
- Has anyone in Fedora world overcome this? Can anyone point me in the right direction?

ta

Pearlseattle 12-27-2007 07:39 AM

Well, you should seriously take into consideration a width of 0, which will make you save a lot of bandwith and storage space. :D
Jokes apart I had exactly the same issue using ffmpeg through VLC. The only walkaround I found was to change the bitrate and/or the codec and/or the resolution of the video. x264 was the codec which generated most of the problems. In the end I opted for xvid.
I imagine you cannot hijack myth2ipod to make it use v264-enc or mencoder instead of ffmpeg, right?


All times are GMT -5. The time now is 02:09 PM.