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. 最近試著想要把.flv/.f4v轉成mp4給我的Apple裝置使用。首先呢要先知道這兩個檔案差別在哪裡,實際上直插在包裝格式不一樣而已,他們都是H.264壓縮的。所以呢,我們只需要轉包裝格式就好了。 *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 最簡單的方法就是用ffmpeg合併成一個 > ffmjpeg -i filelist.txt -f concat -c copy output.f4v where filelist.txt describes the split files in ordered. For example: 其中filelist.txt是描述要被合併的檔案,例如: 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 用ffmpeg可以簡單的將影片的包裝格式轉換,就像是這樣: > ffmjpeg -i input.f4v -c copy -copyts output.mp4 Hopes you guys can enjoy your movies! |
Homepage >