Homepage‎ > ‎

透過ffmpeg將flv/f4v的格式轉成mp4 / Convert video container from flv/f4v to mp4 using ffmjpegd

posted Oct 11, 2014, 9:40 PM by YUEN WU   [ updated Oct 11, 2014, 11:08 PM ]
Recently I am trying to convert .flv/.f4v to .mp4 for my Apple devices. First thing we have to know is that: the codecs in both flv/f4v and mp4 are the same H.264 encoding. The difference is container format. Hence we only need to convert the container to mp4.

*If you have split files, you could also found the solution in this article.

Download ffmjpeg static build here: https://www.ffmpeg.org/download.html
從這邊下載靜態鏈接的ffmpeg: https://www.ffmpeg.org/download.html

Tips for join split files into one

The simple way to join these split files into one

    > ffmjpeg -i filelist.txt -f concat -c copy output.f4v

where filelist.txt describes the split files in ordered. For example:
    file '1.f4v'
    file '2.f4v'
    file '3.f4v'

Notice that, the video/audio codecs must be the same configured in these files.

Tips for convert container 

It's easy to convert container from f4v to mp4 just using ffmjpeg like

    > ffmjpeg -i input.f4v -c copy -copyts output.mp4

Hopes you guys can enjoy your movies!