Thursday, August 15, 2019

ffmpeg related

AWB to MP3 :
ffmpeg -i amr-wb.amr amr-wb.mp3

Merge/join/concatenate multiple mp4 video files: ffmpeg concat command error
example: ffmpeg -f concat -safe 0 -i concat.txt -c copy concat.mp4
the file names in the list have to be specially formatted to look like:
file '/path/to/file1.wav' (doesn't accept spaces and double quotes!)

Convert .3gpp file to .mp3
ffmpeg -i recording.3gpp output.mp3

ffmpeg -i concat.mp4 -vn -ac 2 -ar 44100 -ab 320k -f mp3 concat.mp3

Combine mp3 with mp4 :
ffmpeg -i video.mp4 -i genaudio.mp3 -map 0:v -map 1:a -c:v copy -c:a copy output.mp4 -y
Combine audio (.mp3) file with still image :
ffmpeg -i "concat.mp3" -f image2 -loop 1 -r 2 -i "static.jpeg" -shortest -c:a copy -c:v libx264 -vf "pad=ceil(iw/2)*2:ceil(ih/2)*2" -crf 23 -preset veryfast static.mp4
References :
Join Audio and Image -> Output as Video using FFmpeg
FFMPEG (libx264) “height not divisible by 2”
Alternatif syntax dari openAI :
ffmpeg -loop 1 -i "C:\image.jpg" -i "c:\audio.mp3" -c:a copy -c:v libx264 -shortest static.mp4

Easier to use:
One Image Music Video
Free web service to combine one image with one audio (MP3) file to make a MP4 video.
(HAVEN'T TRIED IT YET): TOVID.IO
Convert mp3 and image to video online and publish to YouTube or download

Related:
Create image file to be merged: CONVERT TEXT TO IMAGE

No comments:

Post a Comment