Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 12-26-2007, 08:29 PM   #1
LQ Newbie
Registered: Nov 2005
Location: Brisbane, Australia
Distribution: FC6
Posts: 20

Rep: Reputation: 0
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:

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:

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:

/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:
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:
- Has anyone in Fedora world overcome this? Can anyone point me in the right direction?

Old 12-27-2007, 08:39 AM   #2
Registered: Aug 2007
Location: Zurich, Switzerland
Distribution: Gentoo
Posts: 978

Rep: Reputation: 118Reputation: 118
Well, you should seriously take into consideration a width of 0, which will make you save a lot of bandwith and storage space.
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?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do you find video info (duration, width, height) for avi, mov, mpg, etc.? BrianK Linux - Software 2 04-17-2007 10:31 PM
Reduce width and height of gdmgreeter and Xfce desktop lothario Linux - Software 5 06-02-2006 03:27 PM
Wine error with window height FrostBot Linux - Software 0 07-27-2004 09:42 PM
Odd error installing ffmpeg af_dave Linux - Software 1 07-12-2004 03:01 AM
Laptop Screen Height and Width blueStatic Linux - Hardware 1 09-03-2003 01:06 AM > Forums > Linux Forums > Linux - Software

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration