[mythtv-commits] Ticket #1489: No Audio on some dvb recordings.

MythTV mythtv at cvs.mythtv.org
Sat Mar 11 14:24:44 UTC 2006


#1489: No Audio on some dvb recordings.
--------------------+-------------------------------------------------------
 Reporter:  TimE    |        Owner:  ijr    
     Type:  defect  |       Status:  closed 
 Priority:  minor   |    Milestone:  0.19   
Component:  mythtv  |      Version:  0.19   
 Severity:  medium  |   Resolution:  invalid
--------------------+-------------------------------------------------------
Changes (by danielk):

  * resolution:  => invalid
  * status:  new => closed

Old description:

> Recordings play fine in mplayer.
>
> Heres a frontend log.
>
> stream: start_time: 14977.846 duration: 3.840 bitrate=1672 kb/s
> 2006-03-08 11:19:07.054 AFD: Stream #0, has id 0x8101 codec id MP3, type
> Audio at 0x0xa2a86e0
> 2006-03-08 11:19:07.054 AFD: Looking for decoder for MP3
> 2006-03-08 11:19:07.073 reads allowed (131073 32768)
> 2006-03-08 11:19:07.075 AFD: Opened codec 0x93e0b60, id(MP3) type(Audio)
> 2006-03-08 11:19:07.076 AFD: Audio Track #1 is A/V stream #0 and has 0
> channels in the English language(6647399).
> 2006-03-08 11:19:07.078 AFD: Stream #1, has id 0x7941 codec id
> MPEG2VIDEO, type Video at 0x0x93e0ea0
> 2006-03-08 11:19:07.080 VideoOutputXv: InputChanged(544,576,1.33333)
>

> It has something to do with the Stream#0 having the audio.
>
> If we put this into avformatdecoder.cpp
>
> -#if 0
> +#if 1
>      // enable this to print streams
>      for (uint i=0; i<audioStreams.size(); i++)
>      {
> @@ -1961,7 +1963,13 @@
>          AudioInfo item(codec_ctx->codec_id,
>                         codec_ctx->sample_rate, codec_ctx->channels,
>                         do_ac3_passthru || do_dts_passthru);
> -        VERBOSE(VB_AUDIO, LOC + " * " + item.toString());
> +        VERBOSE(VB_AUDIO, LOC + " ouput audio streams  * " +
> item.toString());
> +       if (codec_ctx->channels == 0)
> +               {
> +               codec_ctx->channels = 2;
> +               codec_ctx->sample_rate = 48000;
> +
> +               }
>      }
>  #endif
>
> It starts working, however you can see that this is a total hack.
>
> Any advice on tracking down the real source of this bug will help.
>
> endeant at hotmail.com

New description:

 Recordings play fine in mplayer.

 Heres a frontend log.

 stream: start_time: 14977.846 duration: 3.840 bitrate=1672 kb/s
 2006-03-08 11:19:07.054 AFD: Stream #0, has id 0x8101 codec id MP3, type
 Audio at 0x0xa2a86e0
 2006-03-08 11:19:07.054 AFD: Looking for decoder for MP3
 2006-03-08 11:19:07.073 reads allowed (131073 32768)
 2006-03-08 11:19:07.075 AFD: Opened codec 0x93e0b60, id(MP3) type(Audio)
 2006-03-08 11:19:07.076 AFD: Audio Track #1 is A/V stream #0 and has 0
 channels in the English language(6647399).
 2006-03-08 11:19:07.078 AFD: Stream #1, has id 0x7941 codec id MPEG2VIDEO,
 type Video at 0x0x93e0ea0
 2006-03-08 11:19:07.080 VideoOutputXv: InputChanged(544,576,1.33333)


 It has something to do with the Stream#0 having the audio.

 If we put this into avformatdecoder.cpp

 -#if 0
 +#if 1
      // enable this to print streams
      for (uint i=0; i<audioStreams.size(); i++)
      {
 @@ -1961,7 +1963,13 @@
          AudioInfo item(codec_ctx->codec_id,
                         codec_ctx->sample_rate, codec_ctx->channels,
                         do_ac3_passthru || do_dts_passthru);
 -        VERBOSE(VB_AUDIO, LOC + " * " + item.toString());
 +        VERBOSE(VB_AUDIO, LOC + " ouput audio streams  * " +
 item.toString());
 +       if (codec_ctx->channels == 0)
 +               {
 +               codec_ctx->channels = 2;
 +               codec_ctx->sample_rate = 48000;
 +
 +               }
      }
  #endif

 It starts working, however you can see that this is a total hack.

 Any advice on tracking down the real source of this bug will help.

 endeant at hotmail.com

Comment:

 Insufficient info for ticket, please ask for guidence on developer mailing
 list.

-- 
Ticket URL: <http://cvs.mythtv.org/trac/ticket/1489>
MythTV <http://www.mythtv.org/>
MythTV


More information about the mythtv-commits mailing list