Wiki
New
List all pages
ffmpeg
Delete
Edit
the place for ffmpeg oneliners
convert a android mp4 video to webm for browser playback
create a WebM with VP8 and Opus like this:
ffmpeg -i INPUT.mp4 -c:v libvpx -c:a libopus OUTPUT.webm
create a WebM with VP8 and Vorbis like this:
ffmpeg -i input.mp4 -c:v libvpx -c:a libvorbis output.webm
VP9 and Opus (Slower, unless gpu accel)
ffmpeg -i input.mp4 -c:v libvpx-vp9 -c:a libopus output.webm
Creating a WebM file with AV1 and Opus (Slower still, unless gpu accel)
ffmpeg -i input.mp4 -c:v libaom-av1 -c:a libopus output.webm
To replace audio in a video without having to re-encode the video
ffmpeg -i source_video.mp4 -i source_audio.wav -acodec copy -vcodec copy -map 0:v:0 -map 1:a:0 final_video.mp4
Last modified: Mon Sep 8 12:26:29 2025
Are you sure to delete this page?
This action can not be undone!