ffmpeg
Combining audio and video
Cropping video with ffmpeg
What didn't work:
What worked:
It should be ss
which stands for start time and to
which stands for end
time.
What took the least amount of time:
Burning subtitles to video
- source: https://trac.ffmpeg.org/wiki/HowToBurnSubtitlesIntoVideo
- why pix_fmt yuv420p: https://stackoverflow.com/questions/71888766/ffmpeg-video-not-playable-on-android
ffmpeg -ss 00:30:53 -to 00:31:11 -copyts -i "/home/vector/media/Season 6/The Sopranos S06E19 The Second Coming.mkv" -ss 00:30:53 -to 00:31:11 -vf subtitles="/home/vector/media/Season 6/The Sopranos S06E19 The Second Coming.srt" -pix_fmt yuv420p out.mp4
One image + audio
source: https://trac.ffmpeg.org/wiki/Slideshow#Addingaudio
ffmpeg -loop 1 -i brutedeforce.jpg -i 'Absurdity of goals [1DXxyjoppWnKM].m4a' -c:v libx264 -c:a copy -shortest -pix_fmt yuv420p out2.mp4