[FFmpeg-user] Extracting opus frames from webm/mkv

Carl Eugen Hoyos ceffmpeg at gmail.com
Sun Aug 18 22:19:42 EEST 2019

Am So., 18. Aug. 2019 um 21:12 Uhr schrieb Dziku <synmotopompy at gmail.com>:

> I have webm files with only opus encoded audio track that I'm streaming
> through a voice chat that requires opus encoded packets as input. So far
> I've been using ffmpeg to convert the webms with opus audio to ogg
> containers and then use my own code to extract opus packets from ogg, which
> is obviously inefficient, because webms already contain the very same opus
> packets.
> I would like to extract opus encoded packets so that I can directly serve
> them to the voice chat. Is it possible to achieve with ffmpeg cli or any of
> its C libraries?

There is no raw opus, it always has to be encapsulated, FFmpeg allows you
to write it to several containers.
You can use the image2 muxer to write raw opus frames but I doubt that
anything can read these frames.

Carl Eugen

More information about the ffmpeg-user mailing list