Posts

Showing posts from March, 2021

ffmpeg ffprobe - get duration in seconds of audio, video file

$ ffprobe -v error -show_entries format=duration -of default=noprint_wrappers=1:nokey=1 video.mp4 $ ffprobe -v error -show_entries format=duration -of default=noprint_wrappers=1:nokey=1 audio.m4a

ffmpeg - concatenate multiple videos, and one audio into one video

$ cat list.txt file new00.mp4 file new01.mp4 file new11.mp4 file new12.mp4 file new22.mp4 file new23.mp4 file new33.mp4 file new34.mp4 file new44.mp4 $ ffmpeg -f concat -i list.txt -i audio.m4a -c:v copy -shortest -y video.mp4

ffmpeg - generate video with audio, and solid background color

  $ ffmpeg -i audio.m4a -f lavfi -i "color=black:s=1280x720" -c:a copy -shortest -y video.mp4