Ticket #670 (closed defect: fixed)

Opened 2 years ago

Last modified 12 months ago

multicast sound quality degrades over time

Reported by: aapgorilla Owned by: mkbosmans
Milestone: Component: daemon
Keywords: Cc: philip.peitsch@…, f.knodt@…, mkbosmans@…

Description (last modified by coling) (diff)

Description of problem: When I start playing sound over RTP multicast everything is fine but sound quality degrades over a few minutes untill it just becomes a skipping sound. When I log out and back into the client desktop again the sound is okay again. Local audio is not affected and continues to play fine

This is the output from pulseaudio -vvv where the actual skipping starts:

D: module-rtp-recv.c: Updated sampling rate to 47506 Hz.                        
D: module-rtp-recv.c: Requesting rewind due to end of underrun                  
D: alsa-sink.c: Requested to rewind 52896 bytes.                                
D: alsa-sink.c: Limited to 52896 bytes.                                         
D: alsa-sink.c: before: 4408                                                    
D: alsa-sink.c: after: 3426                                                     
D: alsa-sink.c: Rewound 41112 bytes.                                            
D: sink.c: Processing rewind...                                                 
D: sink-input.c: Have to rewind 41112 bytes on render memblockq.                
D: source.c: Processing rewind...                                               
D: module-rtp-recv.c: Updating sample rate                                      
D: module-rtp-recv.c: wi=98342477 ri=97348545                                   
D: module-rtp-recv.c: Write index deviates by 1090,80 ms, expected 500,00 ms    
D: module-rtp-recv.c: Updated sampling rate to 52716 Hz.                        
D: module-rtp-recv.c: Requesting rewind due to end of underrun                  
D: alsa-sink.c: Requested to rewind 52896 bytes.                                
D: alsa-sink.c: Limited to 52896 bytes.                                         
D: alsa-sink.c: before: 4408                                                    
D: alsa-sink.c: after: 4148                                                     
D: alsa-sink.c: Rewound 49776 bytes.                                            
D: sink.c: Processing rewind...                                                 
D: sink-input.c: Have to rewind 49776 bytes on render memblockq.                
D: source.c: Processing rewind...                                               
D: module-rtp-recv.c: Requesting rewind due to end of underrun                  
D: alsa-sink.c: Requested to rewind 52896 bytes.                                
D: alsa-sink.c: Limited to 39672 bytes.                                         
D: alsa-sink.c: before: 3306                                                    
D: alsa-sink.c: after: 3291                                                     
D: alsa-sink.c: Rewound 39492 bytes.                                            
D: sink.c: Processing rewind...

Attachments

module-rtp-recv.patch (3.2 kB) - added by mkbosmans 13 months ago.

Change History

Changed 2 years ago by coling

  • description modified (diff)

Changed 2 years ago by coling

For reference this will be v0.9.19

Changed 2 years ago by peitschie

  • cc philip.peitsch@… added

Changed 2 years ago by adlerweb

  • cc f.knodt@… added

Could be scheduler-related. I had a similar problem with RTP multicast: choppy sound and wrong sample rates. In my case switching from deadline to CFQ on the server solved most of these issues.

Changed 21 months ago by jonaz

I would like to point out that im having the exact same issue with pulseaudio 0.9.21-63-gd3efa-dirty (latest ubuntu).

Sound is okay for about 10-20 seconds then it just gets laggier and choppier until you can only hear static...

im using 2 computer with gigabit network so the bandwith is not an issue here.

Changed 13 months ago by mkbosmans

  • cc mkbosmans@… added

I'm seeing this to.

module-rtp-recv increases the sample rate to insanely high values pretty quickly

Changed 13 months ago by mkbosmans

Changed 13 months ago by mkbosmans

  • owner changed from lennart to mkbosmans

Can you confirm that this patch solves the problem?

Obviously the patch is not suitable for inclusion in pulse as is, but it would be nice to have confirmation that the approach used is a right one.

Changed 12 months ago by mkbosmans

  • status changed from new to closed
  • resolution set to fixed

Should be solved by http://git.0pointer.de/?p=pulseaudio.git;a=commit;h=8534149fbe87c63a5af85f5610c0f62b45500d90 Feel free to reopen if the problem persists.

Note: See TracTickets for help on using tickets.