From c5ebdb703e081449a98f41034205f8d009e7520d Mon Sep 17 00:00:00 2001 From: dmotte <37443982+dmotte@users.noreply.github.com> Date: Fri, 15 Nov 2024 23:30:24 +0100 Subject: [PATCH] Added ffmpeg command to join image and audio into video --- snippets/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/snippets/README.md b/snippets/README.md index 8c0ddfd..6ddade1 100644 --- a/snippets/README.md +++ b/snippets/README.md @@ -28,6 +28,7 @@ Some pieces of code I find useful for some reason. - `( ow=640; oh=360; ffmpeg -i input.mp4 -vf "scale=$ow:$oh:force_original_aspect_ratio=decrease,pad=$ow:$oh:(ow-iw)/2:(oh-ih)/2" output.mp4 )` - `for i in *.mp3; do echo "$i"; ffmpeg -i "$i" -af volumedetect -vn -sn -dn -f null /dev/null 2>&1 | grep -E '^\[Parsed_volumedetect.+_volume: .+$'; done` - `ffmpeg -i input.mp3 -filter:a 'dynaudnorm=p=0.9:s=5' output.mp3` +- `ffmpeg -loop 1 -i image.jpg -i audio.mp3 -c:v libx264 -c:a aac -b:a 192k -shortest output.mp4` - `watch -n.2 date` - `scp myfile.txt user@hostname:/home/user/myfile.txt` - `ipfs daemon &`, `jobs`, `fg 1`, `kill %1`