[FFmpeg-user] how to decode raw opus file

Dave Horton daveh at beachdognet.com
Fri Sep 15 18:56:41 EEST 2017


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?

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’.   So I downloaded this binary from https://www.johnvansickle.com/ffmpeg/ as it seemed to have what I needed already statically linked.


On Sep 15, 2017, at 11:09 AM, Carl Eugen Hoyos <ceffmpeg at gmail.com> wrote:

2017-09-15 16:51 GMT+02:00 Dave Horton <daveh at beachdognet.com>:
> ffmpeg version 3.3.4-static http://johnvansickle.com/ffmpeg/

And please remember for future questions that only current git
head is supported here, I believe this is explained on the site
where you downloaded this outdated binary.

Carl Eugen
ffmpeg-user mailing list
ffmpeg-user at ffmpeg.org

To unsubscribe, visit link above, or email
ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".

More information about the ffmpeg-user mailing list