Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

converting flv to mp4

Tags:

html

mencoder

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.

like image 567
Kalai Avatar asked Dec 06 '25 20:12

Kalai


1 Answers

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/

like image 166
teknoraver Avatar answered Dec 09 '25 15:12

teknoraver