VideoHelp Forum




+ Reply to Thread
Results 1 to 4 of 4
  1. Member
    Join Date
    Mar 2011
    Location
    Italy - Livorno
    Search PM
    Hi guys, I am not an expert user in this field, I've started to use ffmpeg to convert few videotutorial that I am building for my blog. The problem here is that I am not able to convert a video with the h264 codec to a flv file...

    This is my log, but as said earlier, I do not understand at all what that means, so could you be so kind to help me understanding why I am not able to convert an h264 to a flv?
    Code:
    Encoding started on Wed Mar 30 16:46:47 CEST 2011
    FFmpeg version CVS, Copyright (c) 2000-2004 Fabrice Bellard
    Mac OSX universal build for ffmpegX
      libavutil version: 49.0.0
      libavcodec version: 51.9.0
      libavformat version: 50.4.0
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Volumes/Dati/WebDesign/Lavori/Freelance/HTML5andMore/Video/HTML5 Forms.mp4':
      Duration: 00:12:31.9, start: 0.000000, bitrate: 312 kb/s
      Stream #0.0(und), 29.97 fps(r): Video: h264, yuv420p, 1280x800
      Stream #0.1(und): Audio: aac, 48000 Hz, stereo
    Output #0, flv, to '/Volumes/Dati/WebDesign/Lavori/Freelance/HTML5andMore/Video/HTML5 Forms.mp4.ff.flv':
      Stream #0.0, 12.00 fps(c): Video: flv, yuv420p, 1280x720, q=2-15, 200 kb/s
      Stream #0.1: Audio: ac3, 22050 Hz, stereo, 56 kb/s
    Stream mapping:
      Stream #0.0 -> #0.0
      Stream #0.1 -> #0.1
    bench: utime=0.011s
    codec not compatible with flv
    Could not write header for output file #0 (incorrect codec parameters ?)
    ERROR: undefined method `timestamp' for nil:NilClass
    ERROR: /Library/Ruby/Site/1.8/flv/stream.rb:285:in `lasttimestamp'
    ERROR: /Library/Ruby/Site/1.8/flv/stream.rb:274:in `duration'
    ERROR: /Library/Ruby/Site/1.8/flvtool2/base.rb:181:in `add_meta_data_tag'
    ERROR: /Library/Ruby/Site/1.8/flvtool2/base.rb:137:in `update'
    ERROR: /Library/Ruby/Site/1.8/flvtool2/base.rb:47:in `send'
    ERROR: /Library/Ruby/Site/1.8/flvtool2/base.rb:47:in `execute!'
    ERROR: /Library/Ruby/Site/1.8/flvtool2/base.rb:46:in `each'
    ERROR: /Library/Ruby/Site/1.8/flvtool2/base.rb:46:in `execute!'
    ERROR: /Library/Ruby/Site/1.8/flvtool2/base.rb:239:in `process_files'
    ERROR: /Library/Ruby/Site/1.8/flvtool2/base.rb:225:in `each'
    ERROR: /Library/Ruby/Site/1.8/flvtool2/base.rb:225:in `process_files'
    ERROR: /Library/Ruby/Site/1.8/flvtool2/base.rb:44:in `execute!'
    ERROR: /Library/Ruby/Site/1.8/flvtool2.rb:168:in `execute!'
    ERROR: /Library/Ruby/Site/1.8/flvtool2.rb:228
    ERROR: /Applications/ffmpegX.app//Contents/Resources/flvtool2:2:in `require'
    ERROR: /Applications/ffmpegX.app//Contents/Resources/flvtool2:2
    Encoding completed on Wed Mar 30 16:46:48 CEST 2011
    Thanks for your help! Which are the correct codec parameters?
    Quote Quote  
  2. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date
    Aug 2000
    Location
    Sweden
    Search Comp PM
    Mp4 with h264 video and aac works fine in flash. So you don't need to reconvert to a flv container. Have you tried it?
    Quote Quote  
  3. Member
    Join Date
    Mar 2011
    Location
    Italy - Livorno
    Search PM
    The inpout source is a h264 with a acc audio, but I still have this error... Or maybe there's something that I'm missing?
    Quote Quote  
  4. Why do you need to convert it? It should already be compatible. If you want to re-wrap into flv container

    ffmpeg -i input.mp4 -vcodec copy -acodec copy output.flv
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!