How to best convert Flash compatible mp4 files with FFMPEG?

前端 未结 8 1037
北恋
北恋 2021-01-30 02:32

I am trying to convert different files to a flash compatible .mp4 file with ffmpeg, but I can\'t seem to get it to work. Of course the objective is to get the great

8条回答
  •  爱一瞬间的悲伤
    2021-01-30 03:17

    FLV and MP4 are media containers.

    MPEG-4 part 2 and H.264 are video codecs. (and H.264 gives much better quality)

    libx264 is an encoder for H.264 codec.

    mpeg4 is an encoder for MPEG-4 part 2 codec.

    Flash can only play video codec H.264 in FLV container.

    So the params should be like that:

    -f flv -vcodec libx264
    

提交回复
热议问题