# webm-recording-for-social: commands.log (2026-11-21, ffmpeg 6.1.1) test file: rec.webm (test pattern, VP9 + Opus, 1280x720, 8 s) codec_name=vp9 width=1280 height=720 pix_fmt=yuv420p color_transfer=unknown r_frame_rate=30/1 codec_name=opus sample_rate=48000 channels=1 r_frame_rate=0/0 duration=8.008000 size=4223977 edge file: rec-live.webm (same content written as a live stream: no duration in the header, like many browser recordings) codec_name=vp9 width=1280 height=720 pix_fmt=yuv420p color_transfer=unknown r_frame_rate=30/1 codec_name=opus sample_rate=48000 channels=1 r_frame_rate=0/0 duration=N/A size=4224923 ## 1. WebM to MP4 (H.264 + AAC) published: ffmpeg -i rec.webm -c:v libx264 -crf 20 -pix_fmt yuv420p -c:a aac -b:a 160k -movflags +faststart rec.mp4 exit=0 time=3.975s codec_name=h264 width=1280 height=720 pix_fmt=yuv420p color_transfer=unknown r_frame_rate=30/1 codec_name=aac sample_rate=48000 channels=1 r_frame_rate=0/0 duration=8.007000 size=4524182 edge: the live-style file with no duration published: ffmpeg -i rec-live.webm -c:v libx264 -crf 20 -pix_fmt yuv420p -c:a aac -b:a 160k -movflags +faststart rec-live.mp4 exit=0 time=4.024s codec_name=h264 width=1280 height=720 pix_fmt=yuv420p color_transfer=unknown r_frame_rate=30/1 codec_name=aac sample_rate=48000 channels=1 r_frame_rate=0/0 duration=8.007000 size=4524182 ## 2. same, forcing a constant 30 frames per second published: ffmpeg -i rec.webm -c:v libx264 -crf 20 -pix_fmt yuv420p -r 30 -fps_mode cfr -c:a aac -b:a 160k -movflags +faststart rec-cfr.mp4 exit=0 time=3.740s codec_name=h264 width=1280 height=720 pix_fmt=yuv420p color_transfer=unknown r_frame_rate=30/1 codec_name=aac sample_rate=48000 channels=1 r_frame_rate=0/0 duration=8.007000 size=4524182 edge: a file with uneven frame timing (rec-vfr.webm: every third frame dropped, as a busy recorder does; no audio); distinct frame gaps before: 2 distinct gaps, from 0.033 to 0.067 s published: ffmpeg -i rec-vfr.webm -c:v libx264 -crf 20 -pix_fmt yuv420p -r 30 -fps_mode cfr -c:a aac -b:a 160k -movflags +faststart rec-vfr-cfr.mp4 exit=0 time=3.181s codec_name=h264 width=1280 height=720 pix_fmt=yuv420p color_transfer=unknown r_frame_rate=30/1 duration=6.000000 size=2491526 distinct frame gaps after: 1 distinct gaps: [0.033] ## 3. what a plain copy into MP4 does (not published as a fix) exit=0 codec_name=vp9 width=1280 height=720 pix_fmt=yuv420p color_transfer=unknown r_frame_rate=30/1 codec_name=opus sample_rate=48000 channels=1 r_frame_rate=0/0 duration=8.021000 size=4227719 4524182 bytes rec.mp4 4223977 bytes rec.webm