Closed caliangxie closed 1 month ago
I need to manually create the audio decoder as I am sending the packets to another process
No no no no no no. This is not how this works. This is not how any of this works. Decoding packets depends on the original container and decoder. Your new_cc
variable could never decode packets correctly because of how ffmpeg works.
Overview
I am trying to decode audio packets from a Hikvision camera stream using a
AudioCodecContext
that was created outside the input container.I need to manually create the audio decoder as I am sending the packets to another process and I need to decode the packets there instead. I was planning on sending over the parameters of the original decoder and recreating the decoder with those parameters.
Expected behavior
I expect the decoding to proceed successfully.
Actual behavior
An internal BugError is thrown.
Traceback:
Investigation
Reproduction
A sample video is placed in the zip that is attached to this issue.
Versions
Research
I have done the following:
Additional context
The camera is a Hikvision DS-2CD2443G0-I(W) that is using the following parameters for the codecs: Audio: