[FFmpeg-user] Convert flv to tivo supported format

Dion Stempfley dtsonline at verizon.net
Mon Aug 20 17:10:15 CEST 2012


I have an FLV that is relatively good quality and I'm trying to convert it so that I can transfer it to my TiVo.  I've tried Mpeg-2, avi, and mov and regardless of the options I choose I can't seem to get the same quality out of the converted file.  Here are the results of my last try.  I also don't understand the Error while decoding stream message at the end.  The output seems to have all of the file in it.


bash-3.2# ffmpeg -y -i input.flv -vcodec mpeg2video -b 409600 -aspect 1.85 -async 1 -ac 2 -ab 224000 -ar 44100 output.mpg 
ffmpeg version 0.7.13, Copyright (c) 2000-2011 the FFmpeg developers
  built on Aug 18 2012 20:39:05 with clang 4.0 ((tags/Apple/clang-421.0.60))
  configuration: --prefix=/opt/local --enable-swscale --enable-avfilter --enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libdirac --enable-libschroedinger --enable-libopenjpeg --enable-libvpx --enable-libspeex --disable-libopencore-amrnb --disable-libopencore-amrwb --mandir=/opt/local/share/man --enable-shared --enable-pthreads --cc=/usr/bin/clang --arch=x86_64 --enable-yasm --enable-gpl --enable-postproc --enable-libx264 --enable-libxvid
  libavutil    50. 43. 0 / 50. 43. 0
  libavcodec   52.123. 0 / 52.123. 0
  libavformat  52.111. 0 / 52.111. 0
  libavdevice  52.  5. 0 / 52.  5. 0
  libavfilter   1. 80. 0 /  1. 80. 0
  libswscale    0. 14. 1 /  0. 14. 1
  libpostproc  51.  2. 0 / 51.  2. 0
[flv @ 0x7fb913820000] Estimating duration from bitrate, this may be inaccurate
Input #0, flv, from 'input.flv':
  Metadata:
    hasKeyframes    : true
    duration        : 4697
    hasVideo        : true
    audiodatarate   : 39
    canSeekToEnd    : false
    stereo          : true
    framerate       : 24
    audiosamplerate : 48000
    datasize        : 280650040
    lasttimestamp   : 4696
    videocodecid    : 7
    audiosize       : 40521306
    hasAudio        : true
    audiodelay      : 0
    videosize       : 240113025
    metadatacreator : inlet media FLVTool2 v1.0.6 - http://www.inlet-media.de/flvtool2
    lastkeyframetimestamp: 4696
    filesize        : 281969255
    audiosamplesize : 16
    hasMetadata     : true
    height          : 350
    audiocodecid    : 10
    videodatarate   : 398
    hasCuePoints    : false
    width           : 640
  Duration: 01:18:16.94, start: 0.084000, bitrate: 448 kb/s
    Stream #0.0: Video: h264 (High), yuv420p, 640x350 [PAR 1:1 DAR 64:35], 408 kb/s, 23.98 tbr, 1k tbn, 47.95 tbc
    Stream #0.1: Audio: aac, 48000 Hz, stereo, s16, 40 kb/s
[buffer @ 0x7fb9134302e0] w:640 h:350 pixfmt:yuv420p tb:1/1000000 sar:1/1 sws_param:
[mpeg @ 0x7fb913826200] VBV buffer size not set, muxing may fail
Output #0, mpeg, to 'output.mpg':
  Metadata:
    hasKeyframes    : true
    duration        : 4697
    hasVideo        : true
    audiodatarate   : 39
    canSeekToEnd    : false
    stereo          : true
    framerate       : 24
    audiosamplerate : 48000
    datasize        : 280650040
    lasttimestamp   : 4696
    videocodecid    : 7
    audiosize       : 40521306
    hasAudio        : true
    audiodelay      : 0
    videosize       : 240113025
    metadatacreator : inlet media FLVTool2 v1.0.6 - http://www.inlet-media.de/flvtool2
    lastkeyframetimestamp: 4696
    filesize        : 281969255
    audiosamplesize : 16
    hasMetadata     : true
    height          : 350
    audiocodecid    : 10
    videodatarate   : 398
    hasCuePoints    : false
    width           : 640
    encoder         : Lavf52.111.0
    Stream #0.0: Video: mpeg2video, yuv420p, 640x350 [PAR 173:171 DAR 11072:5985], q=2-31, 409 kb/s, 90k tbn, 23.98 tbc
    Stream #0.1: Audio: mp2, 44100 Hz, stereo, s16, 224 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
Press [q] to stop, [?] for help
[h264 @ 0x7fb913829200] AVC: nal size 2547B time=01:18:12.55 bitrate= 640.1kbits/s    
[h264 @ 0x7fb913829200] no frame!
Error while decoding stream #0.0
frame=112599 fps=213 q=31.0 Lsize=  366972kB time=01:18:16.24 bitrate= 640.1kbits/s    
video:235019kB audio:128413kB global headers:0kB muxing overhead 0.974000%



This was probably the closest. I did a number of searches with Google and in the archives but I can't seem to get it right.  Any help is appreciated.

I'm on Mac OS X 10.8 and installed ffmpeg from macports yesterday.

Thanks, 

/Dion



More information about the ffmpeg-user mailing list