差異處
這裏顯示兩個版本的差異處。
ffmpeg [2017/05/10 23:46] jz 建立 |
ffmpeg [2017/05/11 00:31] (目前版本) jz |
||
---|---|---|---|
行 2: | 行 2: | ||
===== convert mov to mp4 ===== | ===== convert mov to mp4 ===== | ||
- | <code> | + | |
+ | <code bash> | ||
ffmpeg -i movie.mov -vcodec copy -acodec cop out.mp4 | ffmpeg -i movie.mov -vcodec copy -acodec cop out.mp4 | ||
</code> | </code> | ||
+ | |||
+ | ===== convert a set of jpeg to mp4 ===== | ||
+ | |||
+ | <code bash> | ||
+ | ffmpeg -framerate 30 -i image-%05d.jpg -c:v libx264 -profile:v high -crf 20 -pix_fmt yuv420p output.mp4 | ||
+ | </code> | ||
+ | |||
+ | If you images are like this: | ||
+ | |||
+ | <code> | ||
+ | image-1 | ||
+ | image-2 | ||
+ | ... | ||
+ | image-35 | ||
+ | </code> | ||
+ | then change the -i part to -i image-%00d. | ||
+ | |||
+ | **ref** | ||
+ | |||
+ | https://askubuntu.com/questions/610903/how-can-i-create-a-video-file-from-a-set-of-jpg-images |