<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I have a fairly simple .mov with one track of stereo PCM 16-bit audio. Quicktime has the channels tagged as left and right.<div><br></div><div>When I open the file with libavformat & libavcodec, I get the 'Unimplemented container channel layout' warning and it won't play properly (in my app).</div><div><br></div><div>If I re-save the audio in QT Player 7.6, it apparently tags the layout better, and it plays fine - no warning.</div><div><br></div><div>I don't see a 'chan' atom in the file, and this old fix seems related:</div><div><br></div><div><a href="http://git.videolan.org/gitweb.cgi?p=ffmpeg.git;a=commitdiff;h=4f4d1358ae30c2b8588f4dc6b3ef964a048004e8;hp=dbf23d191a808734679bd7d0c8737c082ad24a72">http://git.videolan.org/gitweb.cgi?p=ffmpeg.git;a=commitdiff;h=4f4d1358ae30c2b8588f4dc6b3ef964a048004e8;hp=dbf23d191a808734679bd7d0c8737c082ad24a72</a></div><div><br></div><div>My isom.c looks like the patched version:</div><div><br></div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal ProFont; color: rgb(176, 21, 34); "><span style="color: #000000">    </span><span style="color: #7a164d">if</span><span style="color: #000000"> (layout_tag == </span><span style="color: #172bf4">0</span><span style="color: #000000">) { </span>// kCAFChannelLayoutTag_UseChannelDescriptions</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal ProFont; color: rgb(176, 21, 34); "><span style="color: #000000">        </span>// Channel descriptions not implemented</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal ProFont; color: rgb(76, 151, 61); "><span style="color: #000000">        av_log_ask_for_sample(s, </span>"Unimplemented container channel layout.\n"<span style="color: #000000">);</span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal ProFont; ">        avio_skip(pb, size);</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal ProFont; ">        <span style="color: #7a164d">return</span>;</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal ProFont; ">    }</div></div><div><br></div><div>So - I wonder, did something else change that is preventing the patch from working? Is it something as simple as the default used to be 'stereo'? it looks like the code is meant to return if no layout is found, I imply that to mean return, leaving the movie as stereo? Does it now mean, return, leaving the movie as unknown?</div><div><br></div><div>I'm working on getting a sample that can be shared.</div><div><br></div><div>Bruce</div></body></html>