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

Michael Castellon castellonmichael at gmail.com
Mon Aug 19 19:31:45 EEST 2019


ffmpeg -i video.mp4 -vn -acodec libopus audio.opus



On Sun, Aug 18, 2019 at 3:12 PM Dziku <synmotopompy at gmail.com> wrote:

> Hello,
>
> 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?
>
> Best regards,
> Adam Nowak
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".


More information about the ffmpeg-user mailing list