[mythtv-commits] Ticket #4976: Cannot change Audio Channels in DVB Streams

MythTV mythtv at cvs.mythtv.org
Fri Jun 20 18:36:13 UTC 2008


#4976: Cannot change Audio Channels in DVB Streams
-----------------------+----------------------------------------------------
 Reporter:  anonymous  |        Owner:  ijr       
     Type:  defect     |       Status:  new       
 Priority:  major      |    Milestone:  0.21.1    
Component:  mythtv     |      Version:  0.21-fixes
 Severity:  medium     |   Resolution:            
  Mlocked:  0          |  
-----------------------+----------------------------------------------------

Comment(by Markus Schulz <msc at antzsystem.de>):

 with -v audio i've seen the problem. the channel has no language
 information (or wrong language informations?) and myth tries to reselect
 permanently the audio channel and can't reselect the same as the user has
 selected manually cause the loop breaks for same language index and all
 streams has language_index == 0.

 output with enabled debugging inside:
 int AvFormatDecoder::AutoSelectAudioTrack(void)

 looks then like this:
 2008-06-20 19:26:47.209 AFD: Selected track 1: German MP2 2ch (A/V Stream
 #1)
 2008-06-20 19:26:47.209 AFD:  * id( MP3) 48000Hz  2ch  16bps
 2008-06-20 19:26:47.211 AFD:  * id( MP3) 48000Hz  2ch  16bps
 2008-06-20 19:26:47.211 AFD:  * id( MP3) 48000Hz  2ch  16bps
 2008-06-20 19:26:47.211 AFD:  * id( MP3) 48000Hz  2ch  16bps
 2008-06-20 19:26:47.211 AFD:  * id( AC3) 48000Hz  6ch  16bps
 2008-06-20 19:26:47.212 AFD: Trying to reselect audio track
 2008-06-20 19:26:47.212 AFD: Selected track 2: German MP2 2ch (A/V Stream
 #1)
 2008-06-20 19:26:47.230 AFD:  * id( MP3) 48000Hz  2ch  16bps
 2008-06-20 19:26:47.231 AFD:  * id( MP3) 48000Hz  2ch  16bps
 2008-06-20 19:26:47.231 AFD:  * id( MP3) 48000Hz  2ch  16bps
 2008-06-20 19:26:47.231 AFD:  * id( AC3) 48000Hz  6ch  16bps
 2008-06-20 19:26:47.231 AFD: Trying to reselect audio track
 2008-06-20 19:26:47.231 AFD: Selected track 1: German MP2 2ch (A/V Stream
 #1)
 2008-06-20 19:26:47.270 AFD:  * id( MP3) 48000Hz  2ch  16bps
 2008-06-20 19:26:47.270 AFD:  * id( MP3) 48000Hz  2ch  16bps
 2008-06-20 19:26:47.270 AFD:  * id( MP3) 48000Hz  2ch  16bps
 2008-06-20 19:26:47.270 AFD:  * id( MP3) 48000Hz  2ch  16bps
 2008-06-20 19:26:47.270 AFD:  * id( AC3) 48000Hz  6ch  16bps
 ...

 this spams permanently on this channel.

 with this short hack you can then permanently select the ac3 stream:

 ---- snip ----
 Index: avformatdecoder.cpp
 ===================================================================
 --- avformatdecoder.cpp (Revision 17504)
 +++ avformatdecoder.cpp (Arbeitskopie)
 @@ -2876,8 +2876,8 @@
              if (wlang == atracks[i].language)
                  selTrack = i;

 -            if (windx == atracks[i].language_index)
 -                break;
 +//            if (windx == atracks[i].language_index)
 +//                break;
          }
      }
 ---- snip ----

 then he permanently selects the ac3. not nice but a quick hack until
 someone founds out why he permanently tries to reselect.

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/4976#comment:3>
MythTV <http://www.mythtv.org/>
MythTV


More information about the mythtv-commits mailing list