[Libav-user] RTP Opus demuxer is missing extradata with Opus header
Carl Eugen Hoyos
ceffmpeg at gmail.com
Sat Oct 31 14:17:58 EET 2020
Am Do., 29. Okt. 2020 um 22:46 Uhr schrieb Jonathan Baudanza <jon at jonb.org>:
> I am trying to write the contents of an RTP-OPUS stream to an OGG-OPUS file. The purpose is to send a WebRTC session to Google's Speech-to-text API, which accepts OGG-OPUS as input.
> The opus muxer requires that an opus header be present in extradata. It seems that the demuxer from my RTP stream doesn't include this.
> If I construct the opus header myself and insert it into extradata, everything works great. This seems like a hack though. Is this something that the RTP demuxer should be doing?
At least channel count and sample rate are supposed to be read
from the SDP file.
More information about the Libav-user