[SOLVED] Help! Slack 14.2: video stuttering/looping/pausing in browsers
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Help! Slack 14.2: video stuttering/looping/pausing in browsers
Hi all, I'm a Slackware since a long time ago, currently running version 14.2 64bit (it is the first time I go 64) and I am having strange issues when playing videos.
In both Firefox and Chromium, when playing youtube videos (just to name a site, it happens with any site), I must move the cursor in the video window otherwise it stutters, loops or pauses, and during these episodes audio is sometimes in sync, sometimes goes back and forth not in sync.
Xine and Kplayer seem to be unaffected, unlikely due to some tweaks I've done in their configuration.
To solve a similar issue with audio I have disabled pulse where possible, but this is something I had to do also with some previous Slackware versions, too; again, I think it is unrelated.
The system is up-to-date by the time of writing; for what I rememeber, the issue has been there since the installation of Slackware 14.2, so problems don't come from patches.
Any clue? Heeeelp!!!
Information follow...
(uname -a)
Linux pharlap 4.4.88 #2 SMP Thu Sep 14 14:21:06 CDT 2017 x86_64 AMD Athlon(tm) II X3 450 Processor AuthenticAMD GNU/Linux
(lspci)
00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] RS780 Host Bridge
00:02.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] RS780 PCI to PCI bridge (ext gfx port 0)
00:04.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] RS780/RS880 PCI to PCI bridge (PCIE port 0)
00:0a.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] RS780/RS880 PCI to PCI bridge (PCIE port 5)
00:11.0 SATA controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 SATA Controller [AHCI mode]
00:12.0 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
00:12.1 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0 USB OHCI1 Controller
00:12.2 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller
00:13.0 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
00:13.1 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0 USB OHCI1 Controller
00:13.2 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 SMBus Controller (rev 3a)
00:14.1 IDE interface: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 IDE Controller
00:14.2 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 Azalia (Intel HDA)
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 LPC host controller
00:14.4 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 PCI to PCI Bridge
00:14.5 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI2 Controller
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 10h Processor HyperTransport Configuration
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 10h Processor Address Map
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 10h Processor DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 10h Processor Miscellaneous Control
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 10h Processor Link Control
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] RV710 [Radeon HD 4350/4550]
01:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] RV710/730 HDMI Audio [Radeon HD 4000 series]
02:00.0 USB controller: Renesas Technology Corp. uPD720202 USB 3.0 Host Controller (rev 02)
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 02)
04:0e.0 FireWire (IEEE 1394): Texas Instruments TSB43AB23 IEEE-1394a-2000 Controller (PHY/Link)
Mozilla and Chromium versions (most likely, nothing to do with the issue):
None of the browsers is using Flash when the issue occurs.
What happens is that after a few seconds, rarely a bit more, the video freezes and the audio loops a couple of seconds of the track.
In Firefox, if I ritgh-click on "Stats for nerds" while the video is running, I see the two bars but they freeze with the rest of the video.
I'd rule out the video kernel modules, such as the DRM module, but can I be sure?
I also add this information (ecluded modules that really really cannot have anythig to do with it like tpm, ipv6, fuse, kvm*, serio_raw...):
Could your problem perhaps be something external like your Internet connection or your router and not necessarily your PC or the Slackware install itself? Does streaming video work OK on any other devices you also have connected to your LAN? What kind of bandwidth speed do you typically get from your cable/DSL connection?
... and this is a remote possibility but check the Ethernet cable feeding your PC.
Definitely not a network issue. Apart from that every other PC at home does fine, the Chromium "Nerd Stats" shows the buffer is OK.
The point is: if I move the mouse in the video frame or Chromium (or Firefox) window, everything is OK, this is crazy! Seems like that activity on the window is related with its "priority" (what would the mouse interaction have to do with it, otherwise?) and that as soon the priority drops video playing goes nuts.
If I stop moving the mouse, after a few seconds, sometimes a minute, the video stops paying and audio loops (an excerpt of seconds).
If I move the mouse in the window, it is perfectly working. Tried many many times.
I've just verified that any activity will keep the video alive, also just pressing keys on the keyboard in another program window.
I can't say for certain on an AMD/ATi system as I always get nVidia but when a function freezes unless you interrupt the system with mouse or keyboard activity usually indicates a driver problem and likely the graphics system driver at that.
What quality of video were you trying? I spent a bit of time this last weekend, solving the same very thing. You said earlier that it is likely not the web browser, but then mentioned that Xine, Kplayer was fine. Then this means it isn't the driver/card, but the browser.
I installed a ATI HD6450 in an old single core Athlon 64. This replaced an RS480 (Xpress 200M) ATI, which really doesn't have much HW support in video decoding in Linux. This gave an instant improvement in MPlayer (vdpau active now), but not with Seamonkey. Note your RV710 should have vdpau support, so that explains your original report.
So looking into this discrepancy, I found that recent versions of Seamonkey/Firefox (Mozilla browsers) lack completely any HW support for graphics. This proves the browser is the issue. I found Chromium on Linux generally blacklists the HW support on Linux, except it can be forced on in chrome://gpu. For Chromium HW video decoding, it's not supported at this time in Linux, but there is work being done, and it can be compiled and tested. I enabled the HW support in Chromium, and it noticeably improved performance. And that you have an Athlon X3, you should get pretty decent improvement for the multi-threading I see Chromium uses.
For an alternative to all this, you can try the flash option, which the plugin is supposed to support HW video decoding on Linux, but I don't use flash at all, so I don't know if it supports ATI.
On beefy systems, if no one noticed, they are likely have really good CPU / BUS, that likely makes up the difference with the lack of video HW support in browsers in Linux. I know for that, I never noticed this issue on my main system. Here I use ATI HD4670 on a quad core, and never noticed the lack of proper support.
Actually, before buying the new card I have spent some more time testing, and I had issues also with stand-alone players.
For instance, one player (I think it was KPlayer, but I can't test any more) sometimes displayed a black window instead of the video (but sound was there). Same file opened immediately after, same player... and I got the video!
Behaviour was too irregular to spot a certain cause, I gave up and tried with a new card.
Also... videos in browsers should work without hardware acceleration, too, right?!
There is a possibility that there was a bug in the driver or player, causing a crash, or a bad use of resources, that required opening the video a second time. But this is speculative without looking into it. There could be a system or software config issue as well. But I think it's probably ok you ditched the card. It's one of the slowest cards. I'm not sure how much vdpau could squeeze out of it, without more info, but it's not worth it.
On your question on video in browsers. Yes you can run without HW accel, but you need a beefy CPU to compensate. It's hard to understand how I've gone so long without noticing this myself in the browser. But html5 video coming in more use, now I realize how bad certain browsers are at supporting a decent playback as I set up more machines in Linux. I used to play everything through mplayer, so I never needed to deal with how bad flash was.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.