Search code examples
flashvideoffmpegflvjwplayer

Converting videos to flv using FFMPEG and losing the duration


I use FFMPEG to convert some videos for the extension FLV, thereafter through an application is sent this video to a web page, where it is displayed through the JW Player. My problem happens on the website because the player does not display the total time of the video, thus I can not move forward or back my video. For conversion use the following code:

-i "{ArquivoOrigem}" -vcodec flv -f flv -r 29.97 -s 320x240 -aspect 16:9 -b 200k -ac 1 -ar 22050 -ab 56k d "{ArquivoDestino}"

So, is there any way I can do that? tks


Solution

  • In order to display flash flv information and stream it on the web properly via jw player or any other player, flash flv video need meta information.

    FFMPEG can't add meta information to flv videos by default after encoding. You need to use additional open source utility e.g http://rubyforge.org/projects/flvtool2/ to add meta information after encoding completed.