3

I have converted the flv files into mp4 using the mencoder by using the following command

mencoder input.flv -o outout.mp4 -of lavf -oac mp3lame -lameopts abr:br=56 -ovc lavc -lavcopts vbitrate=800:mbd=2:mv0:trell:v4mv:cbp:last_pred=3 -srate 22050 -ofps 24 -vf harddup

It is converting the videos. But if i am using these videos in the html5 video tags. It is not playing. Please give me the suggestions.

pad
  • 41,040
  • 7
  • 92
  • 166
Kalaiyarasan
  • 12,134
  • 8
  • 31
  • 49
  • Not exactly answering your question, but do you have the original the flv was made from? the quality of the conversion would be way better if you were to create the mp4 from the original. Going Source -> FLV -> mp4 sounds like a bad idea – Ben Dec 13 '11 at 11:27
  • 1
    Which browser are you using to display the video? Some browsers cannot play mp4 as apart from html5 – shwetank Apr 02 '12 at 15:16

3 Answers3

1

lavf is pretty broken, is better for you to compress audio and video separately and then mux them with mp4box. You can look how my scripts work:

http://teknoraver.net/software/mp4tools/

teknoraver
  • 906
  • 8
  • 6
0

You will need to upload an open source video file format. ogg is, I believe, the current standard.

Here are some helpful links:

Stack Overflow topic

w3schools.com help with html5 video

Community
  • 1
  • 1
0

Have you tried using ffmpeg?

ffmpeg -i input.flv -c copy -copyts output.mp4
George
  • 183
  • 2
  • 10