I've been plugging on a problem I have has since CVS of about Feb 7,
just before 0.17.   Recordings from PBS Digital don't play back with
sound.  The sound is in the file, in that if you use mplayer on the
recorded files, you hear the soundtrack, it's only in myth you get
trouble.

So I played one of these files with more debug on and get the following
from stderr... (Not sure why just this is on stderr)

    Input #0, mpegts, from 
'myth://192.168.123.10:6543/2010_20050216110000_20050216120000.nuv':
    Stream #0.0[0x41]: Video: mpeg2video, 704x480, 29.97 fps, 3975 kb/s
    Stream #0.1[0x44]: Audio: ac3, 48000 Hz, stereo, 384 kb/s
    Stream #0.2[0x45]: Audio: ac3, 48000 Hz, stereo, 192 kb/s
    Stream #0.3[0x46]: Audio: ac3, 48000 Hz, stereo, 192 kb/s

And then from stdout see below.  Notice it sees 3 audio streams, and
it picks the third one which is, as far as I can tell, silent.  The
bitrates above indicate that stream 0 is the one with the audio.
I've not seen anything in myth to let the user pick which audio stream
of an AC3 multistream to listen to (I guess I knew from DVDs that you can
have multiple audio streams in AC3 but hadn't thought about it for TV.)

Looking at the code, I see the comments saying it picks the "first"
AC3 stream, but the code is a countdown loop, that will match on the
last stream rather than the first.

I have done a loop reverse but can't install because I am recording
right now, so I thought I would ask if anybody knows why the code
is a countdown loop:

-------------------------------------
--- avformatdecoder.cpp 10 Feb 2005 07:33:01 -0000      1.136
+++ avformatdecoder.cpp 17 Feb 2005 05:21:10 -0000
@@ -1229,7 +1229,8 @@

     while ((selectedTrack == -1) && (minChannels >= 0))
     {
-        for (track = maxTracks; track >= 0; track--)
+        for (track = 0; track <= maxTracks; track++)
         {
             int tempStream = audioStreams[track];
             AVCodecContext *e = &ic->streams[tempStream]->codec;

-------------------------------------


    2005-02-16 20:48:20.522 mythfrontend version: 0.17.20050130-1 www.mythtv.org
    adding pes stream at pid 0x46 with type 129
    2005-02-16 20:49:01.119 AVFD
    2005-02-16 20:49:01.119 AVFD: Opening Stream #0: codec id 2
    2005-02-16 20:49:01.120 detectInterlace(Detect Scan, Detect Scan, 29.97, 
480) ->Interlaced Scan
    2005-02-16 20:49:01.121 Interlaced: Interlaced Scan  video_height: 480  
fps: 29.97
    2005-02-16 20:49:01.121 AVFD: Looking for decoder for 2
    2005-02-16 20:49:01.121 AVFD
    2005-02-16 20:49:01.121 AVFD: Opening Stream #1: codec id 86020
    2005-02-16 20:49:01.121 AVFD: Looking for decoder for 86020
    2005-02-16 20:49:01.122 Stream #1 (audio track #1) is an audio stream with 
2 channels.
    2005-02-16 20:49:01.122 AVFD
    2005-02-16 20:49:01.122 AVFD: Opening Stream #2: codec id 86020
    2005-02-16 20:49:01.122 AVFD: Looking for decoder for 86020
    2005-02-16 20:49:01.123 Stream #2 (audio track #2) is an audio stream with 
2 channels.
    2005-02-16 20:49:01.123 AVFD
    2005-02-16 20:49:01.123 AVFD: Opening Stream #3: codec id 86020
    2005-02-16 20:49:01.123 AVFD: Looking for decoder for 86020
    2005-02-16 20:49:01.123 Stream #3 (audio track #3) is an audio stream with 
2 channels.
    2005-02-16 20:49:01.123 Auto-selecting AC3 audio track (stream #3).
    2005-02-16 20:49:01.124 Initializing audio parms from stream #2.
    2005-02-16 20:49:01.136 Estimated bitrate = 4743
    2005-02-16 20:49:01.476 Position map filled from DB to: 109588
    2005-02-16 20:49:01.478 SyncPositionMap prerecorded, from DB: 7307 entries
    2005-02-16 20:49:01.478 Position map found
    2005-02-16 20:49:01.484 Killing AudioOutputDSP
    2005-02-16 20:49:01.485 Opening audio device '/dev/dsp'.
    2005-02-16 20:49:01.485 Opening OSS audio device '/dev/dsp'.
    2005-02-16 20:49:01.489 Audio fragment size: 4096
    2005-02-16 20:49:01.490 Audio Stretch Factor: 1
    2005-02-16 20:49:01.490 Ending reconfigure
    2005-02-16 20:49:01.490 kickoffOutputAudioLoop: pid = 27656
    2005-02-16 20:49:01.490 OutputAudioLoop: Play Event
    2005-02-16 20:49:01.491 Broadcasting free space avail
    2005-02-16 20:49:01.495 Broadcasting free space avail


On other digital recordings, such as this 1080i recording, we have just
one stream so we pick it and hear it correctly.

On stderr

    Input #0, mpegts, from 
'myth://192.168.123.10:6543/2014_20050209210000_20050209220000.nuv':
    Stream #0.0[0x41]: Video: mpeg2video, 1920x1080, 29.97 fps, 15000 kb/s
    Stream #0.1[0x44]: Audio: ac3, 48000 Hz, stereo, 384 kb/s

And on stdout:  (some lines removed)

    2005-02-16 20:51:38.406 mythfrontend version: 0.17.20050130-1 www.mythtv.org
    2005-02-16 20:51:38.407 Enabled verbose msgs : important general audio 
playback libav
    2005-02-16 20:51:38.665 switchToGUI: Switched to 1280 x 720
    2005-02-16 20:51:47.766 Using protocol version 14
    adding pes stream at pid 0x41 with type 2
    adding pes stream at pid 0x44 with type 129
    2005-02-16 20:51:53.217 AVFD
    2005-02-16 20:51:53.217 AVFD: Opening Stream #0: codec id 2
    2005-02-16 20:51:53.218 detectInterlace(Detect Scan, Detect Scan, 29.97, 
1088) ->Interlaced Scan
    2005-02-16 20:51:53.218 Interlaced: Interlaced Scan  video_height: 1088  
fps: 29.97
    2005-02-16 20:51:53.218 AVFD: Looking for decoder for 2
    2005-02-16 20:51:53.218 AVFD
    2005-02-16 20:51:53.219 AVFD: Opening Stream #1: codec id 86020
    2005-02-16 20:51:53.219 AVFD: Looking for decoder for 86020
    2005-02-16 20:51:53.219 Stream #1 (audio track #1) is an audio stream with 
2 channels.
    2005-02-16 20:51:53.219 Auto-selecting AC3 audio track (stream #1).
    2005-02-16 20:51:53.219 Initializing audio parms from stream #0.
    2005-02-16 20:51:53.234 Estimated bitrate = 15384
    2005-02-16 20:51:53.686 Position map filled from DB to: 109572
    2005-02-16 20:51:53.688 SyncPositionMap prerecorded, from DB: 7306 entries
    2005-02-16 20:51:53.688 Position map found
    2005-02-16 20:51:53.694 Killing AudioOutputDSP
    2005-02-16 20:51:53.694 Opening audio device '/dev/dsp'.
    2005-02-16 20:51:53.694 Opening OSS audio device '/dev/dsp'.
    2005-02-16 20:51:53.698 Audio fragment size: 4096
    2005-02-16 20:51:53.699 Audio Stretch Factor: 1
    2005-02-16 20:51:53.699 Ending reconfigure
    2005-02-16 20:51:53.700 kickoffOutputAudioLoop: pid = 27669
    2005-02-16 20:51:53.700 OutputAudioLoop: Play Event
    2005-02-16 20:51:53.701 Broadcasting free space avail
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users

Reply via email to