[FFmpeg-user] how to decode raw opus file

Carl Eugen Hoyos ceffmpeg at gmail.com
Fri Sep 15 19:24:32 EEST 2017

2017-09-15 17:56 GMT+02:00 Dave Horton <daveh at beachdognet.com>:

> 1) Perhaps the data _is_ the problem.  I’m simply stripping the rtp payloads from the pcap into a raw file, then feeding that as input to ffmpeg.  This worked with other audio codecs (ulaw, alaw, G722, etc) so I assumed it could be so with opus, but perhaps not?

This does not work for vorbis, so I expected it does not work for opus
either (it works for flac iirc).

> I would probably prefer to pipe the rtp stream — ie rtp headers and all — to ffmpeg, but I have not been able to figure out whether that is possible — did some basic testing with ‘rtp’ format but could not get it to work.  So I fell back to providing the raw concatenated audio payloads.
> In any case, I can try to do some investigation to see if the input data is the problem.  (Or, if this sounds like something where I should be feeding the rtp packet stream directly to ffmpeg, pointers or examples on that will be helpful).
> 2) I can definitely retry the test with git head, and I understand that’s the way to go before filing bug reports etc.  The reason I was using this static release is that I am running this as a google cloud function so I can’t relay on any .so libs, and I could not figure out how to get a build from source done with libopus.a linked statically — runs ok where I build but when I upload it to google cloud I get ‘libopus.so not found’.

(Just remove libopus.so from the library directory before building.)

> So I downloaded this binary from https://www.johnvansickle.com/ffmpeg/ as it seemed to have what I needed already statically linked.

Where you will find a current (supported) build right over the one you

Please do not top-post here, Carl Eugen

More information about the ffmpeg-user mailing list