combine a jpeg image and a mp3 song to a video mpeg4

Tested in windows ffmpeg program.

Target: a jpeg image + a mp3 audio song ==> convert to a mpeg4 video with frames specified.

ex:

ffmpeg -loop_input -vframes 2340 -i u:/chu.jpg -i u:/chu.mp3 -y -r 12 -vcodec mpeg4 u:/chu.mp4

in above case, convert chu.jpg and chu.mp3 to chu.mp4, 12 frames per second, there are 195 secs total length of the chu.mp3, so, 195*12=2340 (frames).

This is a useful command if upload a mp3 to tube in mp4 video format.

留言

這個網誌中的熱門文章

星之卡比 白屏 當機問題終於解決!! Wii

使用 Mikrotik RouterOS 執行家長管理 (定時網站存取權)

宏傳財務地雷 投資者變事主