[mythtv-users] trouble transcoding to FLV

Brad Staton brad.staton at gmail.com
Fri Dec 22 00:14:36 UTC 2006

While following the instructions at
test out transcoding my recordings to flash for web-based playback, I
found that I'm having some trouble getting ffmpeg to properly transcode my
MythTV recordings.

The command

ffmpeg -y -i 1001_20061220172900.nuv -r 20 -s 480x480 -deinterlace -ar 22050

yields the following results:

FFmpeg version SVN-r7317, Copyright (c) 2000-2006 Fabrice Bellard, et al.
  libavutil version: 49.1.0
  libavcodec version: 51.27.0
  libavformat version: 51.6.0
  built on Dec 20 2006 19:47:05, gcc: 3.4.4 20050721 (Red Hat 3.4.4-2)

Seems stream 0 codec frame rate differs from container frame rate:
1000.00(1000/1) ->
29.97 (30000/1001)
Input #0, nuv, from '1001_20061220172900.nuv':
  Duration: 04:34:57.9, start: 0.000000, bitrate: 1411 kb/s
  Stream #0.0: Video: RJPG / 0x47504A52, 480x480, 29.97 fps(r)
  Stream #0.1: Audio: pcm_s16le, 44101 Hz, stereo, 1411 kb/s
Output #0, flv, to '1001_20061220172900.nuv.flv':
  Stream #0.0: Video: flv, yuv420p, 480x480, q=2-31, 200 kb/s, 20.00 fps(c)
Stream mapping:
  Stream #0.0 -> #0.0
Unsupported codec (id=0) for input stream #0.0

It looks like for some reason ffmpeg isn't recognizing the codec from MythTV
recordings.  The version of ffmpeg is recent (compiled from SVN on 12/20),
not one of the outdated versions found packaged with some distros.  My
MythTV version is 0.20 (compiled from source tarball).  BE is running Debian
3.1, FE is FC3.

Something that looks very strange to me from the ffmpeg output is the
"Duration: 04:34:57.9" part - the recording that I'm trying to transcode is
only 32 minutes long and plays back properly in Myth.  I tried playing the
recording back with ffplay and got the correct audio, but the video was just
a black frame.

Have I missed something obvious or is this possibly a bug in ffmpeg or Myth?

--Brad Staton
Brad.Staton at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-users/attachments/20061221/4b4dd837/attachment.htm 

More information about the mythtv-users mailing list