Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Compression Techniques ffmpeg avi to flv conversion

  • ffmpeg avi to flv conversion

    Posted by Alim Ziyan on August 27, 2011 at 5:17 am

    Hi,
    I am new to ffmpeg.When I tried to convert an avi file to flv using FFMPEG,

    ffmpeg -i uploads/flame.avi -f flv -s 320x240 uploads/flame1.flv | flvtool2 -U stdin uploads/flame1.flv
    I can create a flv file but with size 0 k.
    it shows the following error.
    **[avi @ 0x10e8420]Could not find codec parameters (Video: IV41 / 0x31345649, 256×240)
    uploads/flame.avi: could not find codec parameters**
    ERROR: undefined method `timestamp’ for nil:NilClass
    ERROR: /usr/lib/ruby/1.8/flv/stream.rb:285:in `lasttimestamp’
    ERROR: /usr/lib/ruby/1.8/flv/stream.rb:274:in `duration’
    ERROR: /usr/lib/ruby/1.8/flvtool2/base.rb:181:in `add_meta_data_tag’
    ERROR: /usr/lib/ruby/1.8/flvtool2/base.rb:137:in `update’
    ERROR: /usr/lib/ruby/1.8/flvtool2/base.rb:47:in `send’
    ERROR: /usr/lib/ruby/1.8/flvtool2/base.rb:47:in `execute!’
    ERROR: /usr/lib/ruby/1.8/flvtool2/base.rb:46:in `each’
    ERROR: /usr/lib/ruby/1.8/flvtool2/base.rb:46:in `execute!’
    ERROR: /usr/lib/ruby/1.8/flvtool2/base.rb:206:in `process_files’
    ERROR: /usr/lib/ruby/1.8/flvtool2/base.rb:44:in `execute!’
    ERROR: /usr/lib/ruby/1.8/flvtool2.rb:168:in `execute!’
    ERROR: /usr/lib/ruby/1.8/flvtool2.rb:228
    ERROR: /usr/bin/flvtool2:2:in `require’
    ERROR: /usr/bin/flvtool2:2
    I also run it without using the flvtool2 portion in the command the errors related with flvtool2 is removed. Actually what we are using this flvtool2? Is it possible to create a flv file without using flvtool2? What is this codec parameters????

    Thanks in advance…

    Alim Ziyan replied 15 years ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy