[mythtv-commits] Ticket #1489: No Audio on some dvb recordings.
MythTV
mythtv at cvs.mythtv.org
Sat Mar 11 13:14:13 UTC 2006
#1489: No Audio on some dvb recordings.
--------------------+-------------------------------------------------------
Reporter: TimE | Owner: ijr
Type: defect | Status: new
Priority: minor | Milestone: 0.19
Component: mythtv | Version: 0.19
Severity: medium | Resolution:
--------------------+-------------------------------------------------------
Comment (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
}}}
--
Ticket URL: <http://svn.mythtv.org/trac/ticket/1489>
MythTV <http://www.mythtv.org/>
MythTV
More information about the mythtv-commits
mailing list