Opened 14 years ago

Closed 13 years ago

#8260 closed defect (Unverified)

No sound in internal DVD player when playing DVD with mp2 audio

Reported by: henrik-mythtv@… Owned by: markk
Priority: minor Milestone: unknown
Component: MythTV - DVD Playback Version: 0.23rc1
Severity: medium Keywords:
Cc: Ticket locked: no

Description

A DVD with multiple titles - e.g. one created with MythArchive? to backup multiple episodes of a series - does not have any sound when played with the internal DVD player. Sound is present on the title page, but when a title is selected only the image plays, there is no sound.

This happens when playing ISO-images of DVD's. Haven't tested with physical media.

This happens with DVD's created both with MythTV 0.21 and 0.22, when played with the 0.22+fixes internal DVD player.

The attached ISO file illustrates the problem - it has two titles. Just drop it into your "videos" directory and play it with the internal player.

Attachments (2)

ticket_8260_fix_to_dvdnav_code.diff (871 bytes) - added by skamithi 14 years ago.
add MP2 audio to the list of possible streams detected in a dvd. it was missed by [23079] . still have issues detecting sample rate of mp2 from ffmpeg
hack_fix_for_mp2_samplerate_channel_not_found.diff (665 bytes) - added by skamithi 14 years ago.
set sample_rate if sample_rate is zero. not sure this is a good solution because the channels are set somewhere else. Need to locate where the channels are set and set the sample rate there too.

Download all attachments as: .zip

Change History (14)

comment:1 Changed 14 years ago by anonymous

File is too big to attach (272 MB), it can be downloaded from http://www.hswn.dk/~henrik/mythtv-ticket8620.iso

comment:2 Changed 14 years ago by skamithi

Status: newaccepted
Version: 0.22-fixes0.23rc1

may be related to #

comment:3 Changed 14 years ago by skamithi

may be related to #8107.

comment:4 Changed 14 years ago by J.Pilk@…

I've just managed to get .iso playback working in 0.22-fixes after a StorageGroup?/obsolete-username problem.

This example behaves just as mine do - sound in the recordings works if the menu is displayed for a few tens of seconds, until after a selection box repaint. I had thought it might be because I use mp2 sound throughout. Looking forward to seeing the fix!

http://www.gossamer-threads.com/lists/mythtv/users/422437#422437

Changed 14 years ago by skamithi

add MP2 audio to the list of possible streams detected in a dvd. it was missed by [23079] . still have issues detecting sample rate of mp2 from ffmpeg

comment:5 Changed 14 years ago by skamithi

(In [24018]) internal dvd player. Refs #8260 incorrect audio track id returned if audio stream is mp2. this was missed when [23079] was commited.

comment:6 Changed 14 years ago by J.Pilk@…

Running 0.23-230_rc2_r24029.fc12@x86_64 from ATrpms, the recordings in the sample .iso file do not play at all. Mine behave similarly. Perhaps this is what you saw in comment 5? Brief sample of log:

2010-04-11 17:57:31.375 AFD: Opened codec 0x7f12ec0f2710, id(DVD_SUBTITLE) type(Subtitle) 2010-04-11 17:57:31.376 AFD: codec MP2 has 2 channels 2010-04-11 17:57:31.376 AFD: Opened codec 0x7f12ec565970, id(MP2) type(Audio) 2010-04-11 17:57:31.542 AFD: Opened codec 0x27a1220, id(MPEG2VIDEO) type(Video) 2010-04-11 17:57:31.542 AFD: Opened codec 0x7f12ec0f2710, id(DVD_SUBTITLE) type(Subtitle) 2010-04-11 17:57:31.542 AFD: codec MP2 has 2 channels 2010-04-11 17:57:31.542 AFD: Opened codec 0x7f12ec565970, id(MP2) type(Audio) 2010-04-11 17:57:31.707 AFD: Opened codec 0x27a1220, id(MPEG2VIDEO) type(Video) 2010-04-11 17:57:31.707 AFD: Opened codec 0x7f12ec0f2710, id(DVD_SUBTITLE) type(Subtitle) 2010-04-11 17:57:31.707 AFD: codec MP2 has 2 channels 2010-04-11 17:57:31.707 AFD: Opened codec 0x7f12ec565970, id(MP2) type(Audio) 2010-04-11 17:57:31.779 NVP(0): Prebuffer wait timed out 100 times. 2010-04-11 17:57:31.779 NVP(0), Error: Timed out waiting for prebuffering too long. Exiting.. 2010-04-11 17:57:31.873 AFD: Opened codec 0x27a1220, id(MPEG2VIDEO) type(Video) 2010-04-11 17:57:31.873 AFD: Opened codec 0x7f12ec0f2710, id(DVD_SUBTITLE) type(Subtitle) 2010-04-11 17:57:31.873 AFD: codec MP2 has 2 channels 2010-04-11 17:57:31.873 AFD: Opened codec 0x7f12ec565970, id(MP2) type(Audio) 2010-04-11 17:57:31.954 ~OpenGLVideoSync() -- closing opengl vsync 2010-04-11 17:57:32.036 TV: Attempting to change from WatchingDVD to None 2010-04-11 17:57:32.036 TV: Changing from WatchingDVD to None

Changed 14 years ago by skamithi

set sample_rate if sample_rate is zero. not sure this is a good solution because the channels are set somewhere else. Need to locate where the channels are set and set the sample rate there too.

comment:7 Changed 14 years ago by skamithi

hack for this issue. looking for a better fix, but if i run of time , I may commit this hack for now if its okay with others.

comment:8 Changed 14 years ago by skamithi

Summary: No sound in internal DVD player when playing DVD with multiple titlesNo sound in internal DVD player when playing DVD with mp2 audio

comment:9 Changed 14 years ago by skamithi

(In [24240]) Refs #8260. internal dvd player. workaround for mp2 playback issues. mp2 sample rate is not detected during stream changes.

comment:10 Changed 14 years ago by skamithi

(In [24307]) Refs #8260. backport [24018] to 0.23 fixes.

comment:11 Changed 13 years ago by beirdo

Owner: changed from skamithi to markk
Status: acceptedassigned

Looks like it might have been fixed.

comment:12 Changed 13 years ago by markk

Resolution: Unverified
Status: assignedclosed

This may be fixed in master but I've never been able to reproduce the issue and the code has changed a lot since 0.21/22.

If this still an issue, please open a new ticket with new logs.

Note: See TracTickets for help on using tickets.