FFMPEG converted mp4 file does not play in firefox and chrome

后端 未结 8 2079
刺人心
刺人心 2020-12-28 09:28

I have used FFMPEG command to convert flv video file to mp4 and use html5 video tag and play video in browser. But after the video is converted to mp4 using ffmpeg it does n

8条回答
  •  渐次进展
    2020-12-28 09:54

    The changes I've made to your command line:

    • I've specified the audio codec explicitely so it is AAC-LC.
    • The addition of "-strict -2" to use the experimental AAC-LC codec.

    This works for me in both Firefox and in Chrome.

    ffmpeg -y -i "INPUT" -ar 22050 -ab 512 -b 800k -f mp4 -s 514*362 -strict -2 -c:a aac "OUTPUT.mp4"
    

    I hope that helps, if so please mark this as good answer!

提交回复
热议问题