Opened 12 years ago

Closed 11 years ago

#3731 closed defect (fixed)

NuppelVideoPlayer disabling audio with DVB recordings when streams change

Reported by: otto at kolsi dot fi Owned by: danielk
Priority: minor Milestone: 0.22
Component: mythtv Version: head
Severity: medium Keywords:
Cc: Ticket locked: no

Description

Issue described in following link was fixed at the time, but now it happens again: http://www.gossamer-threads.com/lists/mythtv/dev/201065

Before stream/track change, audio is okay but after stream change, audio is disabled. I believe log below shows this happening. As mentioned in the earlier post, if you go to menu you can see 2 audio tracks and you can manually change both of the tracks and it works okay.

I can attach more logs if needed.

2007-07-15 17:10:02.430 AFD: HandleStreamChange(): streams_changed 0x8526cd8 -- stream count 5
2007-07-15 17:10:02.430 AFD: SeekReset(0, 0, do flush, do discard)
2007-07-15 17:10:02.431 AFD: SeekReset() flushing
2007-07-15 17:10:02.432 AFD: Stream #0, has id 0x512 codec id MPEG2VIDEO, type Video, bitrate 0 at 0x0xb34e9470
2007-07-15 17:10:02.435 AFD: InitVideoCodec failed to align dimensions, resetting decoder.
2007-07-15 17:10:02.435 VideoOutputXv: InputChanged(640,480,1.33333)
2007-07-15 17:10:02.440 VideoOutputXv: CreateShmImages(32): video_dim: 640x480
2007-07-15 17:10:02.451 NVP: prebuffering pause
2007-07-15 17:10:02.456 AO: OutputAudioLoop: audio paused
2007-07-15 17:10:02.501 Display Rect  left: 0, top: 0, width: 1360, height: 768, aspect: 1.77778
2007-07-15 17:10:02.501 Video Rect    left: 0, top: 0, width: 640, height: 480, aspect: 1.77778
2007-07-15 17:10:03.305 NVP: ClearAfterSeek(1)
2007-07-15 17:10:03.306 VideoOutputXv: ClearAfterSeek()
2007-07-15 17:10:03.307 detectInterlace(Detect Scan, Interlaced Scan, 29.97, 480) ->Interlaced Scan
2007-07-15 17:10:03.307 AFD: Looking for decoder for MPEG2VIDEO
2007-07-15 17:10:03.307 AFD: Opened codec 0xb34f1a00, id(MPEG2VIDEO) type(Video)
2007-07-15 17:10:03.307 AFD: Stream #1, has id 0x650 codec id MP3, type Audio, bitrate 0 at 0x0xac7d3d70
2007-07-15 17:10:03.307 AFD: Looking for decoder for MP3
2007-07-15 17:10:03.308 AFD: Opened codec 0xb34d69f0, id(MP3) type(Audio)
2007-07-15 17:10:03.308 AFD: Audio Track #1 is A/V stream #1 and has 0 channels in the English language(6647399).
2007-07-15 17:10:03.308 AFD: Stream #2, has id 0x2321 codec id DVB_VBI, type Data, bitrate 0 at 0x0xb34d1110
2007-07-15 17:10:03.309 AFD: data codec (Data)
2007-07-15 17:10:03.309 AFD: Stream #3, has id 0x1027 codec id DVB_SUBTITLE, type Subtitle, bitrate 0 at 0x0xac7d8a10
2007-07-15 17:10:03.309 AFD: subtitle codec (Subtitle)
2007-07-15 17:10:03.309 AFD: Looking for decoder for DVB_SUBTITLE
2007-07-15 17:10:03.309 AFD: Opened codec 0xad00cb20, id(DVB_SUBTITLE) type(Subtitle)
2007-07-15 17:10:03.309 AFD: Subtitle track #1 is A/V stream #3 and is in the Finnish language(6711662).
2007-07-15 17:10:03.310 AFD: Stream #4, has id 0x651 codec id MP3, type Audio, bitrate 0 at 0x0xb34f24c0
2007-07-15 17:10:03.310 AFD: Looking for decoder for MP3
2007-07-15 17:10:03.310 AFD: Opened codec 0xad00ce70, id(MP3) type(Audio)
2007-07-15 17:10:03.310 AFD: Audio Track #2 is A/V stream #4 and has 0 channels in the Dutch; Flemish language(6583668).
2007-07-15 17:10:03.311 AFD: Trying to reselect audio track
2007-07-15 17:10:03.311 AFD: Selected track 1: English MP0 ?ch (A/V Stream #1)
2007-07-15 17:10:03.311 AFD: Initializing audio parms from audio track #1
2007-07-15 17:10:03.311 AFD: Audio format changed 
2007-07-15 17:10:03.311 NVP: Disabling Audio, params(0,0,0)
2007-07-15 17:10:03.312 AO: Killing AudioOutputDSP
2007-07-15 17:10:03.316 AO: OutputAudioLoop: Stop Event
2007-07-15 17:10:03.316 AO: kickoffOutputAudioLoop exiting

Attachments (1)

3731.diff (765 bytes) - added by paulh 12 years ago.
Possible fix

Download all attachments as: .zip

Change History (9)

comment:1 Changed 12 years ago by otto at kolsi dot fi

This issue is still occuring with latest SVN with some recordings (not all). I have a sample recording that causes this, any help how to debug this would be nice. I can also try to reduce the size (now 2.2G) of the recording and share it somehow if anyone has time to take a look at this.

comment:2 Changed 12 years ago by otto at kolsi dot fi

Sample recording (25M) that shows this problem is available at: http://www.zshare.net/video/732022624263d6/ I think this download is available only for limited time (30 days or so). I can add new samples later again if this expires too soon.

When the program starts, audio disappears altogether. Can be easily reproduced with "mythtv" program. mplayer plays this file normally.

comment:3 Changed 12 years ago by stuartm

Milestone: unknown0.21

I can confirm this from the sample provided.

Changed 12 years ago by paulh

Attachment: 3731.diff added

Possible fix

comment:4 Changed 12 years ago by paulh

Otto, Can you please test the attached patch on a few problem recordings and a few good ones as well to make sure it doesn't break anything.

comment:5 in reply to:  4 Changed 12 years ago by otto at kolsi dot fi

Replying to paulh:

Otto, Can you please test the attached patch on a few problem recordings and a few good ones as well to make sure it doesn't break anything.

Thanks Paul, this fixes the problem for couple of test recordings that I have :)

I'll keep it applied and try to see if it breaks anything else.

comment:6 Changed 12 years ago by danielk

(In [16462]) Refs #3731. Adds a hack from Paul H. that allows the audio to be redetected after a stream change.

Leaving ticket open to investigate further after 0.21 release.

comment:7 Changed 12 years ago by danielk

Milestone: 0.210.22
Owner: changed from Isaac Richards to danielk
Status: newassigned

comment:8 Changed 11 years ago by danielk

Resolution: fixed
Status: assignedclosed

Hack we applied in [16462] appears to work fine, and error is rare, closing as fixed.

Note: See TracTickets for help on using tickets.