workflow battlecard

FFmpeg Web Video Pipeline

Trim, resize, and compress a video for web delivery.

Step 1

ffmpeg: extract-sound-from-video

Cut the source video down to the section you want to publish.

ffmpeg -i <path/to/video.mp4> -vn <path/to/sound.mp3>

Step 2

ffmpeg: save-video-as-gif

Resize the video to a web-friendly output size.

ffmpeg -i <path/to/video.mp4> -vf 'scale=-1:1000' -r 15 <path/to/output.gif>

Step 3

ffmpeg: extract-sound-from-video

Compress or convert the final file for browser playback.

ffmpeg -i <path/to/video.mp4> -vn <path/to/sound.mp3>