[SOLVED] Choppy sound after upgrade - Printable Version +- Forum (http://forum.xbian.org) +-- Forum: Hardware (/forum-7.html) +--- Forum: Video and Audio (/forum-28.html) +--- Thread: [SOLVED] Choppy sound after upgrade (/thread-3991.html) Pages: 1 2 |
Choppy sound after upgrade - Chiron - 3rd Sep, 2018 07:26 AM Good afternoon. Two days ago I updated my xbian, but had to downgrade because, while displaying TV shows, the sound was getting very choppy after 1 minute. Code: apt-get install linux-image-bcm2836=4.14.58+-1532545509 xbian-package-tvheadend=4.2.5-72-1532487463 xbian-package-config-shell=20180626-0 Don't know what the culprit is. I use a brand new class 10 sdcard. RE: Choppy sound after upgrade - Nachteule - 3rd Sep, 2018 08:01 AM TVheadend: No changes in code since 2 months config-shell: don't believe that this package is culprit kernel: one version between current (4.14.66+ and 4.14.58+ (its .58 not .50) version). Can you please test those 2 kernel's again to see if kernel package (and if yes, which one) is the culprit RE: Choppy sound after upgrade - Chiron - 10th Sep, 2018 07:48 AM Hello, sorry for the delay. :-) I've fully updated and then I've downgraded the kernel, version by version, and seen what happened. the available versions [code] apt-cache madison linux-image-bcm2836 linux-image-bcm2836 | 4.14.68+-1536170138 | http://apt.xbian.org stable/rpi2-stretch armhf Packages linux-image-bcm2836 | 4.14.66+-1535023184 | http://apt.xbian.org stable/rpi2-stretch armhf Packages linux-image-bcm2836 | 4.14.62+-1534333153 | http://apt.xbian.org stable/rpi2-stretch armhf Packages linux-image-bcm2836 | 4.14.58+-1532545509 | http://apt.xbian.org stable/rpi2-stretch armhf Packages linux-image-bcm2836 | 4.14.56+-1532352834 | http://apt.xbian.org stable/rpi2-stretch armhf Packages linux-image-bcm2836 | 4.14.54+-1531266666 | http://apt.xbian.org stable/rpi2-stretch armhf Packages linux-image-bcm2836 | 4.14.52+-1530495366 | http://apt.xbian.org stable/rpi2-stretch armhf Packages linux-image-bcm2836 | 4.9.108+-1530490703 | http://apt.xbian.org stable/armv7l-stretch armhf Packages [code] The two versions more recent than linux-image-bcm2836=4.14.62+-1534333153 have the problem of choppy sound. The other packages I mentioned earlier are unrelated to the problem. RE: Choppy sound after upgrade - Nachteule - 11th Sep, 2018 03:05 AM (10th Sep, 2018 07:48 AM)Chiron Wrote: Hello, sorry for the delay. :-) No problem Quote:The two versions more recent than linux-image-bcm2836=4.14.62+-1534333153 have the problem of choppy sound. Ok, that's what I expected. There is a revert of a commit which is included since 4.14.66+ (I suppose it is this commit) This should solve some sound issues, seems that does not work of everybody Can you please describe your system a bit more in detail Does that sound stuttering also appears when watching a normal video? RE: Choppy sound after upgrade - Chiron - 11th Sep, 2018 07:26 AM my system: Code: xbian@xbian ~ $ cat /proc/cpuinfo I think you already know which remote I own. ;-) Code: xbian@xbian /proc $ lsusb Code: xbian@xbian /proc $ df -h The choppy sound problem occurs only with TV, not with videos. RE: Choppy sound after upgrade - Nachteule - 11th Sep, 2018 07:52 AM Ok, and you're watching SD TV Live stream (DVB-T), PVR backend is TVheadend, and TV resolution is set to 1920x1080, sound over HDMI, right? Are you using TVH's timeshift function - means buffering stream on sd-card? RE: Choppy sound after upgrade - Chiron - 12th Sep, 2018 05:26 AM (11th Sep, 2018 07:52 AM)Nachteule Wrote: Ok, and you're watching SD TV Live stream (DVB-T), PVR backend is TVheadend, and TV resolution is set to 1920x1080, sound over HDMI, right?SD TV Live stream (DVB-T) yes PVR backend is TVheadend yes TV resolution is set to 1920x1080 no it's 1024x768p sound over HDMI yes timeshift function yes, it's set to 60mns, path /home/xbian/timeshift, maximum size 1808 (I've just increased it to 5000, since I have a 16gb card) RE: Choppy sound after upgrade - Nachteule - 12th Sep, 2018 05:31 AM (12th Sep, 2018 05:26 AM)Chiron Wrote: timeshift function yes, it's set to 60mns, path /home/xbian/timeshift, maximum size 1808 (I've just increased it to 5000, since I have a 16gb card) Thanks for your info. Already tried to disable timeshift? IMO it is a bad idea putting timeshift buffer on sd card (that will stress sd card too much) RE: Choppy sound after upgrade - Chiron - 12th Sep, 2018 06:08 AM Something strange: I have another install of kodi on a laptop with another dvb-t usb dongle. On this one timeshift is not enabled. If I run the same tv show on both devices, I've noticed that on the raspi the show will be more and more late compared to the latop. If I disable timeshift on the raspi, the devices stay synchronized. RE: Choppy sound after upgrade - Nachteule - 12th Sep, 2018 06:49 AM That's why I don't use TVH for live tv - timeshift is still absolutely unsusable for me But what about sound? Still garbage sound after disabling timeshift? RE: Choppy sound after upgrade - Chiron - 12th Sep, 2018 07:10 AM The problem seems to be gone. That could also explain why sometimes the image freezes during a show, and I have to do a stop/play. That's strange that this feature has an effect, even if you don't have used it since the last reboot... However it is very useful. What could be the solution? Connect a hard disk through an AC/DC powered usb hub, and create a mount point in the fstab? Or through an nfs mount on my nas? RE: Choppy sound after upgrade - Nachteule - 13th Sep, 2018 03:01 AM (12th Sep, 2018 07:10 AM)Chiron Wrote: The problem seems to be gone. Nice Quote:That could also explain why sometimes the image freezes during a show, and I have to do a stop/play. TVH has 3 timeshift settings: Off, On, OnDemand On means, timeshift buffer is written always OnDemand means, buffer is written after the first time you'll pause live stream Quote:However it is very useful. What could be the solution? Connect a hard disk through an AC/DC powered usb hub, and create a mount point in the fstab? You can try it on a mounted nfs share, maybe network for SD streams is fast enough. I tested that some years ago, but with 720p streams and over WLAN (AFAIR) connection - and under those conditions it was absolutely impossible to get a smooth live stream RE: Choppy sound after upgrade - Chiron - 13th Sep, 2018 06:51 AM thanks very much. I've given a try with an nfs share, it's working flawlessly. My network is ethernet, gigabit. I only lost one hour figuring out why this damn fedora nfs server would'nt let me connect. the answer was no_acl in /etc/exports Code: /home/jyl/TVstream 192.168.30.3(rw,no_root_squash,no_acl,sync) Edit: I've been too optimistic, the choppy sound is back, but now after 5 minutes, instead of 1. :-D RE: Choppy sound after upgrade - Nachteule - 14th Sep, 2018 03:37 AM (13th Sep, 2018 06:51 AM)Chiron Wrote: Edit: I've been too optimistic, the choppy sound is back, but now after 5 minutes, instead of 1. :-D Hmmm, that's weird. I was testing it today with my devel Pi3B+, Kodi 18.0 Beta 2, Kernel 4.14.68+, DVB-C (spare part), SD and HD (720p) channels: Was not able to get sound issues. But, my DVB-C device seems to have some issues, I'm always getting errors like that in the tvheadend log: Code: Sep 13 19:22:46 kmxbilr2 TS: dvb-c Home/402MHz/ServusTV: MPEG2VIDEO @ #2371 Continuity counter error (total 64) This depends on the DVB-C stick - I know that this part does not work very well here (that's why it's spare part only ) . RE: Choppy sound after upgrade - Dzintars Bergs - 2nd Oct, 2018 03:38 AM I think, I have same audio glitches on Pi2 after recent upgrade. This happens while playing 720p mkv videos. Any suggestions how to resolve it? |