<p><br>
><br>
> Does this mean with a longer sample the beginning<br>
> plays (correctly?) 5.1, after a problem it starts<br>
> to be channel-3-only?<br>
><br>
> Carl Eugen<br>
></p>
<p>With a longer sample the result is the same as with the attachment, it only takes less than 1 second to start decoding only the 3rd channel. I don't know if it is only decoding the 3rd channel or if the decoder is merging all the channels into the 3rd one.<br>
Reopening the avcodec context solves the problem until the 'channel 0.2....' error happens. And that error keeps logging forever 1 or 2 times per second (and avcodec_decode_audio returns error each time)</p>
<p>I opened the output with audacity, at the very beginning there is audio in all the channels, after the ffmpeg throws that error, all the channels are in silence but one, being the PC in stereo I don't hear anything, but using audacity I can and what I listen to seems OK</p>
<p>I also tried opening the file with vlc and it doesn't complain.<br></p>