[FFmpeg-user] h264 support in webm containers?

Carl Eugen Hoyos ceffmpeg at gmail.com
Mon Aug 21 18:29:54 EEST 2017


2017-08-21 8:43 GMT+02:00 Andy Baird <andybaird at gmail.com>:

> Here's a sample:
> https://www.dropbox.com/s/sf9agwlxxij5g93/replay-1503297479867.webm

The file contains the string "matroska" but not the string "webm"
so it is not a webm file but a matroska file with a webm suffix.
(And is correctly read by FFmpeg afaict.)

> And here's the ffmpeg output of a copy operation:
>
> $ ./bin/ffmpeg.exe -i replay-1503297479867.webm -c copy test.webm

This would produce an invalid file because h264 is not allowed in webm.
The following is supposed to work (and is what Chrome does):
$ ffmpeg -i replay-1503297479867.webm -f matroska -c copy test.webm

Please do not top-post here, Carl Eugen


More information about the ffmpeg-user mailing list