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

Mailing List Archive: MythTV: Commits

Ticket #7496: pulseaudio A/V sync

 

 

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


mythtv at cvs

Nov 3, 2009, 4:05 AM

Post #1 of 7 (932 views)
Permalink
Ticket #7496: pulseaudio A/V sync

#7496: pulseaudio A/V sync
---------------------------------------------+------------------------------
Reporter: Alan Calvert <cal@…> | Owner: jyavenard
Type: enhancement | Status: new
Priority: minor | Milestone: 0.23
Component: MythTV - Audio Output | Version: head
Severity: low | Mlocked: 0
---------------------------------------------+------------------------------
As requested by danielk (ref #5473), a ticket to focus efforts to improve
pulseaudio sync/latency.

Ref <http://pulseaudio.org/wiki/LatencyControl>

So far the approach to buffer setup has been to choose params that seem
comfortable for myth, then try to persuade pulseadio to conform. Pulseadio
has some wonderful attributes, but "accommodating" is not necessarily one
of them. Patch pulse-latency-001.patch goes the other way - try to set
pulseaudio latency to what's required, and have myth's fragment_size &
soundcard_buffer_size conform to pulseaudio's ultimate choice of buffer
metrics.

PA_STREAM_ADJUST_LATENCY has limited utility in myth's quest for "out of
the box" performance. It depends on having tsched=1 in the load-module
module-alsa-sink params, which according to the above reference "... is
the default for most modern distributions, with the infamous exception of
Ubuntu" . Since ubuntu is possibly the main reason for even bothering with
pulseaudio in myth, that's inconvenient. I've tried this with both
tsched=1 and tsched=0, and sync does seem to be a little tighter in both
cases. The experience of others would be interesting.

--
Ticket URL: <http://svn.mythtv.org/trac/ticket/7496>
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 3, 2009, 10:05 AM

Post #2 of 7 (900 views)
Permalink
Re: Ticket #7496: pulseaudio A/V sync [In reply to]

#7496: pulseaudio A/V sync
---------------------------------------------+------------------------------
Reporter: Alan Calvert <cal@…> | Owner: jyavenard
Type: enhancement | Status: new
Priority: minor | Milestone: 0.23
Component: MythTV - Audio Output | Version: head
Severity: low | Mlocked: 0
---------------------------------------------+------------------------------

Comment(by Colin Guthrie <mythtv@…>):

I wouldn't worry too much about tsched=0 on Ubuntu. I've no idea why
they've set this as pretty much all the alsa problems have been ironed out
now, but even with this in mind, one more release cycle should see Ubuntu
towing the line and enabling glitch-free like everyone else (we've been
using it for the last six months in Mandriva without any significant
problems - although we do provide a GUI to tweak it). As this patch is on
trunk and it will be ~6months until 0.23 is out (unless I'm mistaken) I
suspect this will be targeting mainly 10.04 of Ubuntu. So hopefully
tsched=1 will be on all the distros by then.

--
Ticket URL: <http://svn.mythtv.org/trac/ticket/7496#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

Mar 1, 2010, 9:16 AM

Post #3 of 7 (779 views)
Permalink
Re: Ticket #7496: pulseaudio A/V sync [In reply to]

#7496: pulseaudio A/V sync
---------------------------------------------+------------------------------
Reporter: Alan Calvert <cal@…> | Owner: jyavenard
Type: enhancement | Status: new
Priority: minor | Milestone: unknown
Component: MythTV - Audio Output | Version: head
Severity: low | Mlocked: 0
---------------------------------------------+------------------------------
Changes (by robertm):

* milestone: 0.23 => unknown


--
Ticket URL: <http://svn.mythtv.org/trac/ticket/7496#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

Mar 25, 2010, 11:59 AM

Post #4 of 7 (735 views)
Permalink
Re: Ticket #7496: pulseaudio A/V sync [In reply to]

#7496: pulseaudio A/V sync
---------------------------------------------+------------------------------
Reporter: Alan Calvert <cal@…> | Owner: jyavenard
Type: enhancement | Status: new
Priority: minor | Milestone: unknown
Component: MythTV - Audio Output | Version: head
Severity: low | Mlocked: 0
---------------------------------------------+------------------------------

Comment(by geoffp@…):

I just tried out the new Pulseaudio support in 0.23 trunk on Ubuntu
10.04b. Thanks a lot for making that happen; I have a need to be able to
route network audio to my Myth box, and Pulse lets me do that.

And that works great, but the audio latency when using Myth's native
Pulseaudio driver is much higher than with ALSA -> Pulseaudio. It's
unwatchable, unfortunately.

I wonder why it is that latency isn't an issue when using ALSA ->
Pulseaudio, but is when using Pulse's native API...

I don't know if Ubuntu has moved to glitch-free yet, I can't find any
reference to tsched in it's Pulse config files.

--
Ticket URL: <http://svn.mythtv.org/trac/ticket/7496#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

Mar 25, 2010, 12:10 PM

Post #5 of 7 (732 views)
Permalink
Re: Ticket #7496: pulseaudio A/V sync [In reply to]

#7496: pulseaudio A/V sync
---------------------------------------------+------------------------------
Reporter: Alan Calvert <cal@…> | Owner: jyavenard
Type: enhancement | Status: new
Priority: minor | Milestone: unknown
Component: MythTV - Audio Output | Version: head
Severity: low | Mlocked: 1
---------------------------------------------+------------------------------
Changes (by stuartm):

* mlocked: 0 => 1


--
Ticket URL: <http://svn.mythtv.org/trac/ticket/7496#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

Jun 28, 2010, 6:33 AM

Post #6 of 7 (450 views)
Permalink
Re: Ticket #7496: pulseaudio A/V sync [In reply to]

#7496: pulseaudio A/V sync
---------------------------------------------+------------------------------
Reporter: Alan Calvert <cal@…> | Owner: jyavenard
Type: enhancement | Status: closed
Priority: minor | Milestone: unknown
Component: MythTV - Audio Output | Version: head
Severity: low | Resolution: fixed
Mlocked: 0 |
---------------------------------------------+------------------------------
Changes (by jyavenard):

* status: new => closed
* resolution: => fixed
* mlocked: 1 => 0


Comment:

PulseAudio support was rewritten and reports so far confirm that A/V sync
issues have greatly reduced.

Re-open ticket if you see any more issues

--
Ticket URL: <http://svn.mythtv.org/trac/ticket/7496#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

Jun 28, 2010, 1:55 PM

Post #7 of 7 (443 views)
Permalink
Re: Ticket #7496: pulseaudio A/V sync [In reply to]

#7496: pulseaudio A/V sync
---------------------------------------------+------------------------------
Reporter: Alan Calvert <cal@…> | Owner: jyavenard
Type: enhancement | Status: closed
Priority: minor | Milestone: unknown
Component: MythTV - Audio Output | Version: head
Severity: low | Resolution: fixed
Mlocked: 0 |
---------------------------------------------+------------------------------

Comment(by anonymous):

Is the new PA driver in the -fixes branch or trunk?

--
Ticket URL: <http://svn.mythtv.org/trac/ticket/7496#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 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.