Re: [mythtv] Prefer lower-numbered audio stream

2004-12-29 Thread Daniel Thor Kristjansson
On Wed, 29 Dec 2004, Doug Larrick wrote: ]Daniel Thor Kristjansson wrote: ]> Most of audio information with ATSC is not in the stream that ffmpeg sees. ]> Even the limited audio descriptor sometimes present in the PMT is jettisoned ]> with the PMT rewriting. I don't think ffmpeg even tries to look

Re: [mythtv] Prefer lower-numbered audio stream

2004-12-29 Thread Doug Larrick
Daniel Thor Kristjansson wrote: Most of audio information with ATSC is not in the stream that ffmpeg sees. Even the limited audio descriptor sometimes present in the PMT is jettisoned with the PMT rewriting. I don't think ffmpeg even tries to look at this information, but we don't save it in the

Re: [mythtv] Prefer lower-numbered audio stream

2004-12-29 Thread Daniel Thor Kristjansson
On Wed, 29 Dec 2004, Doug Larrick wrote: ]I did some digging around last night, and here's what I found out. AC3 audio ]streams (used by ATSC and DVD) contain information in their headers about ]libavformat/libavcodec expose none of this except number of channels, and even ]that is not properly in

Re: [mythtv] Prefer lower-numbered audio stream

2004-12-29 Thread J. Donavan Stanley
Doug Larrick wrote: libavformat/libavcodec expose none of this except number of channels, and even that is not properly initialized (always 2) by the time we use it in avformatdecoder.cpp. My immediate problem would be solved if I fixed this bug, because it turns out the DVS stream is mono. Bu

Re: [mythtv] Prefer lower-numbered audio stream

2004-12-29 Thread Doug Larrick
Well, what it really requires is for someone to look up the rule used for audio streams in MPEG2 files. There must be some sort of rule, otherwise stand alone DVD players and HDTVs would get it wrong. In my (limited) testing, DVDs appear to follow a pattern of the highest numbered track that meet