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 2 (98 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.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-commits


mythtv at cvs

Nov 3, 2009, 10:05 AM

Post #2 of 2 (82 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.org
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 lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.