New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pause in streaming gets icecast clients lagging and confused #9979
Comments
Commented by: mbrouillet |
Commented by: mbrouillet It has to do with OGG Codec and icecast2. I play the same sequence with AutoDJ(5' fade) : a 60 second silence track in sandwich between two tracks. I listen to the broadcast on a different PC on radiotray, and on my phone on Samsung Browser. During the play of the first track I play a short bell (sample), start a stopwatch, and measure when it comes out of the phone and the phone. I reload the page, or stop/start the radio and do several lag measures. I do these measures before the 60 sec silence and after.
I [u]play that recording[/u] of last streaming in Totem : no expansion of silence. 50+ seconds between the fades (5" on each side, seems good).
Note that in these tests, I just loaded the stream address in the browsers, so I did not specify preload or no preload (as opposed to what I described in the bugreport, specifying the HTML attribute preload=none). Marcel. |
Commented by: JosepMaJAZ Explanation of the problem and the way to reproduce at this post on the forums. https://mixxx.org/forums/viewtopic.php?f=3&t=13423&view=unread#unread |
Reported by: mbrouillet
Date: 2020-05-19T16:24:45Z
Status: Confirmed
Importance: Undecided
Launchpad Issue: lp1879529
Tags: broadcast
Attachments: MixxxBugReportStreaming.zip
[Last point is probably the easiest to reproduce]
Here is what I do :
I get the icecast very confused with major lags in the browser (can be playing a song I was playing 10 min before). Within a minute, when doing three pauses of 10 seconds (measuring with stopwatch), I can get the lag go from initially 4' to 20' or more.
When I unpause Mixxx, the browser plays instantly (i.e after the expected 4" lag) a fragment of 1/2" that is probably the chunk when paused, then stops again for a long pause, longer than what actually was paused (pause 30' on mixxx -> resulting silence 50' in player).
Using Wireshark I can see that Mixxx sends null packets continuously when paused (see screenshot with "."). Client is still playing, seconds are changing.
In Icecast admin web interface I see that total_bytes_sent remains roughly at a constant offset from total_bytes_read.
zeroing the volume while letting the musing play (not using the pause button but lowering voulme to zero while playing) yields the same as using the pause.
playing in autodj a one-minute blank sound (see attached) yields to lag going from 6" (before) to 50' (after). Lag is measured from the moment I play a sample to the moment I hear it. Nothing was touched on the player which continued to play, nor on Mixxx which continued to play the blank for 60 seconds, starting autoDJ fade after 50secs. During that blank file, I see that packets are not to zero but to "U" 0x55 (see second screenshot in AASCI and Hex).
Mixxx : 2.2.3 (r6750)
Ubuntu : 18.04.4 LTS (64b)
Hardware : AMD Athlon, avg load 0.88, 8Gb mem (roughly 50% use)
Firefox : 76.0.1 (64b),
Icecast : 2.4.2
Stream : Ogg Vorbis 96kbps
Attachement : MixxxBugReportStreaming.zip =
adding: Screenshot from 2020-05-19 17-01-23.png (deflated 8%)
adding: Screenshot from 2020-05-19 18-05-23.png (deflated 13%)
adding: Screenshot from 2020-05-19 18-06-01.png (deflated 20%)
adding: 0917.ogg (deflated 67%)
The text was updated successfully, but these errors were encountered: