Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: MythTV: Commits

Ticket #7638: DVD: wrong audio track selected when switching

 

 

MythTV commits RSS feed   Index | Next | Previous | View Threaded


mythtv at cvs

Nov 22, 2009, 12:09 PM

Post #1 of 9 (1091 views)
Permalink
Ticket #7638: DVD: wrong audio track selected when switching

#7638: DVD: wrong audio track selected when switching
------------------------------------+---------------------------------------
Reporter: linux@… | Owner: ijr
Type: defect | Status: new
Priority: minor | Milestone: unknown
Component: MythTV - General | Version: unknown
Severity: medium | Mlocked: 0
------------------------------------+---------------------------------------
Hi,

when the logical order of audio streams on a DVD and the order of their
stream ids do not match, the internal player will select the wrong audio
streams for selections in the OSD 'Select Audio Track' menu or the DVD
menu.

I traced this to the sorting of audio streams in
'AvFormatDecoder::ScanStreams' and simply removing the sorting solved my
problem. However, I am not sure whether the sorting is actually needed in
other places, so in that case I think the logical trackNo should be added
to the 'StreamInfo' object to allow proper mapping.

I attached a patch that simply removes the sorting of the audio tracks
that works for me. It is against release-0-22-fixes.

Please let me know if you need further info or testing.

Best wishes,

Martin.

--
Ticket URL: <http://svn.mythtv.org/trac/ticket/7638>
MythTV <http://www.mythtv.org/>
MythTV
_______________________________________________
mythtv-commits mailing list
mythtv-commits [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-commits


mythtv at cvs

Nov 24, 2009, 8:01 PM

Post #2 of 9 (1015 views)
Permalink
Re: Ticket #7638: DVD: wrong audio track selected when switching [In reply to]

#7638: DVD: wrong audio track selected when switching
------------------------------------+---------------------------------------
Reporter: linux@… | Owner: skamithi
Type: defect | Status: assigned
Priority: minor | Milestone: unknown
Component: MythTV - General | Version: unknown
Severity: medium | Mlocked: 0
------------------------------------+---------------------------------------
Changes (by skamithi):

* owner: ijr => skamithi
* status: new => assigned


--
Ticket URL: <http://svn.mythtv.org/trac/ticket/7638#comment:1>
MythTV <http://www.mythtv.org/>
MythTV
_______________________________________________
mythtv-commits mailing list
mythtv-commits [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-commits


mythtv at cvs

Dec 1, 2009, 5:20 PM

Post #3 of 9 (944 views)
Permalink
Re: Ticket #7638: DVD: wrong audio track selected when switching [In reply to]

#7638: DVD: wrong audio track selected when switching
------------------------------------+---------------------------------------
Reporter: linux@… | Owner: skamithi
Type: defect | Status: assigned
Priority: minor | Milestone: unknown
Component: MythTV - General | Version: unknown
Severity: medium | Mlocked: 0
------------------------------------+---------------------------------------

Comment(by skamithi):

(In [22948]) Refs #7638. internal dvd player. patch provided by martin
kittel. problem is wrong audio track selected when switching. this is the
first of 3 patches related to dvd audio track management provided by
martin that i will commit so that it can be tested by a wider audience.

--
Ticket URL: <http://svn.mythtv.org/trac/ticket/7638#comment:2>
MythTV <http://www.mythtv.org/>
MythTV
_______________________________________________
mythtv-commits mailing list
mythtv-commits [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-commits


mythtv at cvs

Dec 4, 2009, 12:05 PM

Post #4 of 9 (903 views)
Permalink
Re: Ticket #7638: DVD: wrong audio track selected when switching [In reply to]

#7638: DVD: wrong audio track selected when switching
------------------------------------+---------------------------------------
Reporter: linux@… | Owner: skamithi
Type: defect | Status: assigned
Priority: minor | Milestone: unknown
Component: MythTV - General | Version: unknown
Severity: medium | Mlocked: 0
------------------------------------+---------------------------------------

Comment(by linux@…):

Hi,

I did some further testing and realized that the patch I initially
provided is not correct. I now also understand why the sorting of the
audio track list is necessary. However, the problem with the
implementation was that it was sorting based on the physical audio stream
ids and not the logical ones. The logical stream ids differ from the
physical ones as those are offset depending of the stream encoding.

I am attaching a new patch against the current trunk (r22950) which sorts
the audio streams according to their logical ids. This fixes all my
(known) outstanding language sorting problems for me.

Best wishes,

Martin.

--
Ticket URL: <http://svn.mythtv.org/trac/ticket/7638#comment:3>
MythTV <http://www.mythtv.org/>
MythTV
_______________________________________________
mythtv-commits mailing list
mythtv-commits [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-commits


mythtv at cvs

Dec 4, 2009, 3:47 PM

Post #5 of 9 (901 views)
Permalink
Re: Ticket #7638: DVD: wrong audio track selected when switching [In reply to]

#7638: DVD: wrong audio track selected when switching
------------------------------------+---------------------------------------
Reporter: linux@… | Owner: skamithi
Type: defect | Status: accepted
Priority: minor | Milestone: unknown
Component: MythTV - General | Version: unknown
Severity: medium | Mlocked: 0
------------------------------------+---------------------------------------
Changes (by skamithi):

* status: assigned => accepted


Comment:

can you use the patch i've attached as the basis for your fix. i'd like to
keep dvdnav code out of avformatdecoder. patch is untested. your bug is a
direct relation of [19956] which broke the sorting of dvd audio tracks.

--
Ticket URL: <http://svn.mythtv.org/trac/ticket/7638#comment:4>
MythTV <http://www.mythtv.org/>
MythTV
_______________________________________________
mythtv-commits mailing list
mythtv-commits [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-commits


mythtv at cvs

Dec 5, 2009, 8:18 AM

Post #6 of 9 (885 views)
Permalink
Re: Ticket #7638: DVD: wrong audio track selected when switching [In reply to]

#7638: DVD: wrong audio track selected when switching
------------------------------------+---------------------------------------
Reporter: linux@… | Owner: skamithi
Type: defect | Status: accepted
Priority: minor | Milestone: unknown
Component: MythTV - General | Version: unknown
Severity: medium | Mlocked: 0
------------------------------------+---------------------------------------

Comment(by otto at kolsi dot fi):

Latest dvd-audio-stream-ordering-v2.patch seems to work fine and fixes the
wrong audio track problem.

--
Ticket URL: <http://svn.mythtv.org/trac/ticket/7638#comment:5>
MythTV <http://www.mythtv.org/>
MythTV
_______________________________________________
mythtv-commits mailing list
mythtv-commits [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-commits


mythtv at cvs

Dec 5, 2009, 11:16 AM

Post #7 of 9 (884 views)
Permalink
Re: Ticket #7638: DVD: wrong audio track selected when switching [In reply to]

#7638: DVD: wrong audio track selected when switching
------------------------------------+---------------------------------------
Reporter: linux@… | Owner: skamithi
Type: defect | Status: accepted
Priority: minor | Milestone: unknown
Component: MythTV - General | Version: unknown
Severity: medium | Mlocked: 0
------------------------------------+---------------------------------------

Comment(by linux@…):

Hi,

dvd-audio-stream-ordering-v2.patch does not work for me, namely because
dvdnav_get_audio_logical_stream does not work as expected. If you feed it
the stream id the output will always be -1 (from looking at the code I
guess it only maps some internal numbers as the input stream id must be <=
8 to get anything besides -1). So in fact your patch will behave exactly
as before my original patch as dvd_track_num will always be set to -1.

In my second patch (dvd-audio-stream-ordering.dpatch) I have actually put
the functionality that one thinks dvdnav_get_audio_logical_stream provides
in the function dvd_get_logical_audio_stream_id. It will map the stream
ids to their logical track nos (the disc I am always having problems with
has a mix of AC3 and DTS tracks and the problem is that the AC3 tracks
have a stream id range between 128 and 135 while DTS tracks start a 136;
so in my example, the second logical track has stream id 137 which used to
be put at the end of the track map by simple sorting).

I personally think that providing the dvd-specific comparator for the
sorting a simpler solution now as it keeps irrelevant dvd-specific stuff
out of StreamInfo and its operator which seems to be a more generic
structure. The sorting only happens in the DVD case anyway so having a DVD
specific comparator should not be a problem.

As a sidenote, I was also wondering of whether the helper functions I
added belong into avformatdecoder.cpp or DVDRingbuffer.h and it should be
no problem to move them there.

Best wishes,

Martin.

--
Ticket URL: <http://svn.mythtv.org/trac/ticket/7638#comment:6>
MythTV <http://www.mythtv.org/>
MythTV
_______________________________________________
mythtv-commits mailing list
mythtv-commits [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-commits


mythtv at cvs

Jan 7, 2010, 8:14 AM

Post #8 of 9 (658 views)
Permalink
Re: Ticket #7638: DVD: wrong audio track selected when switching [In reply to]

#7638: DVD: wrong audio track selected when switching
------------------------------------+---------------------------------------
Reporter: linux@… | Owner: skamithi
Type: defect | Status: accepted
Priority: minor | Milestone: unknown
Component: MythTV - General | Version: unknown
Severity: medium | Mlocked: 0
------------------------------------+---------------------------------------

Comment(by skamithi):

(In [23079]) Refs #7638. internal dvd player. sorts audio tracks based on
logical order. based on patches provided by Martin Kittel.

--
Ticket URL: <http://svn.mythtv.org/trac/ticket/7638#comment:7>
MythTV <http://www.mythtv.org/>
MythTV
_______________________________________________
mythtv-commits mailing list
mythtv-commits [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-commits


mythtv at cvs

Jan 7, 2010, 8:44 AM

Post #9 of 9 (649 views)
Permalink
Re: Ticket #7638: DVD: wrong audio track selected when switching [In reply to]

#7638: DVD: wrong audio track selected when switching
------------------------------------+---------------------------------------
Reporter: linux@… | Owner: skamithi
Type: defect | Status: closed
Priority: minor | Milestone: unknown
Component: MythTV - General | Version: unknown
Severity: medium | Resolution: fixed
Mlocked: 0 |
------------------------------------+---------------------------------------
Changes (by skamithi):

* status: accepted => closed
* resolution: => fixed


Comment:

[23079] as been applied to 0.22fixes. Changeset for that is [23081]

--
Ticket URL: <http://svn.mythtv.org/trac/ticket/7638#comment:8>
MythTV <http://www.mythtv.org/>
MythTV
_______________________________________________
mythtv-commits mailing list
mythtv-commits [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-commits

MythTV commits RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.