[Libav-user] Unable to mux an audio only webm file using libavformat from a opus audio stream

ravikiran.bs ravikiran.bs at zohocorp.com
Fri Feb 16 17:02:36 EET 2018


Thanks for reply. You mean, codec_id in AVFormatContext->oformat->audio_codec ?? I am setting it. 


Ravi Kiran B S

---- On Fri, 16 Feb 2018 20:14:08 +0530 Carl Eugen Hoyos <ceffmpeg at gmail.com> wrote ----

2018-02-15 15:47 GMT+01:00 ravikiran.bs <ravikiran.bs at zohocorp.com>: 


> I am trying to mux a opus audio stream to a webm file. (I know audio only 

> can be muxed into a ogg container. I tried that. But, FFMpeg is not 

> detecting the file format when I write the file headers using 

> avformat_write_header() of libavformat). I have configured the FFMpeg build 

> with --enable-libopus and --enable-libvorbis. Now, after writing the audio 

> data when I call av_write_trailer() to close the file, it is throwing the 

> following error : 


> "Only VP8 or VP9 video and Vorbis or Opus audio and WebVTT subtitles are 

> supported for WebM." 


It appears you did not set codec_id to AV_CODEC_ID_OPUS. 


Carl Eugen 


Libav-user mailing list 

Libav-user at ffmpeg.org 


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20180216/6046a174/attachment.html>

More information about the Libav-user mailing list