24 ноября 2012 г.

FFMPEG: Could not find codec parameters for stream 0 (Video: png): unspecified size Consider increasing the value for the 'analyzeduration' and 'probesize' options

If you get this error message, try to do this:

  1. Check if the input file is exist: ffmpeg -i "filename"
  2. Check if the provided file(s) has appropriate format and extension matches.
  3. Check you are using ffmpeg, which built properly. Versions have built with MinGW, clang or gcc may differ and have some limitations depending on provided build parameters. Also, don't forget to check out binary distribution.
  4. OK, take a look at ffmpeg's bug tracker

Here are few useful snippets you should know...

Turn sequence of images into MPEG video
ffmpeg -f image2 -i image%d.jpg video.mpg

Display video info
ffmpeg -i video.avi

Turn the video to sequence of images
ffmpeg -i video.mpg image%d.jpg

Encode video for the iPod/iPhone
ffmpeg -i input_video.avi input -acodec aac -ab 128kb -vcodec mpeg4 -b 1200kb -mbd 2 -flags +4mv+trell -aic 2 -cmp 2 -subcmp 2 -s 320x180 -title X output_video.mp4

Convert WAV format file to MP3
ffmpeg -i input.wav -vn -ar 44100 -ac 2 -ab 192 -f mp3 output.mp3

Convert AVI to MPG
ffmpeg -i input.avi output.mpg

ffmpeg -i input.avi -ab 56 -ar 44100 -b 200 -r 15 -s 320x240 -f flv output_video.flv

Convert AVI to animated GIF
ffmpeg -i input.avi animated.gif

More definitive guide you could find on the official website. I'm sure you will find a huge number of wonderful features.
Отправить комментарий