Opened 18 years ago

Closed 18 years ago

#1489 closed defect (invalid)

No Audio on some dvb recordings. — at Version 3

Reported by: TimE Owned by: Isaac Richards
Priority: minor Milestone: 0.19
Component: mythtv Version: 0.19
Severity: medium Keywords:
Cc: Ticket locked: no

Description (last modified by danielk)

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@…

Change History (3)

comment:1 Changed 18 years ago by anonymous

Milestone: 0.19
Version: 0.19

comment:2 Changed 18 years ago by TimE

In readable format...

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 @@ 


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 

comment:3 Changed 18 years ago by danielk

Description: modified (diff)
Resolution: invalid
Status: newclosed

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

Note: See TracTickets for help on using tickets.