4 ms·
Here's mine for doing crab videos ffmpeg -ss 66 -i crab.mp4 -t 30 -crf 27 -preset veryfast -vf "drawtext=fontfile=/usr/share/fonts/truetype/liberation/Libe
by dqv 6y ago
Here's mine for doing crab videos
ffmpeg -ss 66 -i crab.mp4 -t 30 -crf 27 -preset veryfast -vf "drawtext=fontfile=/usr/share/fonts/truetype/liberation/LiberationSans-Bold.ttf:text='YOUR TEXT HERE':fontcolor=white:fontsize=240:shadowx=5:shadowy=5:box=1:boxcolor=black@0.0:boxborderw=5:x=(w-text_w)/2:y=(h-text_h)/2:enable='between(t,9,30)',scale=iw/3:ih/3" -c:v libx264 -filter:a "volume=0.2" -c:a libmp3lame output.mp4
You just need to get the original crab rave video from youtube: https://www.youtube.com/watch?v=LDU_Txk06tM https://www.youtube.com/watch?v=LDU_Txk06tM
You might also need to supply your own font path I'm not sure how universal they are.
- jjice 6y agoWhen I switched to Linux and started using FFmpeg, the idea of automating video production (this thing that was so time intensive in my mind) was so appealing. This is an awesome little example. What a damn good piece of software.
- ralph87 6y agoJust wait until you try out Gstreamer (and suffer a few weeks learning it! I don't even remember C++ being so painful)
- FR10 6y agoI downloaded the video (720p) and I have to tweak slightly the command to make it work on MacOS Catalina (FFmpeg installed via brew) ffmpeg -ss 66 -i crab.mp4 -t 30 -crf 27 -preset veryfast \ -vf "drawtext=fontfile=~/Library/Fonts/SF-Compact-Display-Bold.otf:text='YOUR TEXT HERE':fontcolor=white:fontsize=68:shadowx=5:shadowy=5:box=1:boxcolor=black@0.0:boxborderw=5:x=(w-text_w)/2:y=(h-text_h)/2:enable='between(t,9,30)'" \ -c:v libx264 -filter:a "volume=0.2" output.mp4 Thank you very much, crazy how powerful but hard is FFmpeg.
- dqv 6y agoAh yes! Sorry the settings I posted are for the original crab rave music video in 4k.
- dmd 6y agoIf you don't mind my asking... what's a crab video
- dqv 6y agoYou afix a caption describing an unfortunate scenario onto the song for comical juxtaposition, since the Crab Rave song itself is jovial sounding. For example, one might add the caption "I got fired".
- latchkey 6y agohttps://www.youtube.com/watch?v=TKg8GSsPSMg https://www.youtube.com/watch?v=TKg8GSsPSMg