We have moved to a new Sailfish OS Forum. Please start new discussions there.
29

[2.1.4.13][2.1.3.7][Bug] Gstreamer streaming buffering issues

Tracked by Jolla (In release)

asked 2016-12-05 21:44:16 +0200

leszek gravatar image

updated 2018-02-23 11:25:56 +0200

After the update of Gstreamer to 1.8 it somehow keeps stuttering more and more on video streams. It seems like it keeps playing 2 seconds, buffers for a second and repeats that again and again. Downloading the video (in this case youtube) and starting playback even if the download is still going on plays the file nicely without buffering issues.

Made a small demonstration video(ironically stored on youtube) and hope this will be addressed soon. https://youtu.be/g5QS6-dv3kQ

edit: Still have that problem on 2.1.3.7 occassionally on some Youtube Streams. (especially camera review videos or those with higher bitrates)
edit: 2.1.4.13 shows no improvement.

edit retag flag offensive close delete

Comments

I have also problems with videos. However not excactly the same, on my phones and apps only the sound is cracking / stuttering, the video itself seems fine.

soloist ( 2016-12-07 20:15:10 +0200 )edit
1

pretty much the same problem here since the last update.

FrederikF ( 2016-12-19 01:26:57 +0200 )edit

i experience this only sometimes in video, gif heavy invironments, only solution is to restart homescreen using utilities, that must clear out image and video cashe.

DarkTuring ( 2017-01-15 03:39:39 +0200 )edit
1

in order to play rtp streams more smoothly, gstreamer should be upgraded to 1.10.5 (especially plugins-good)

lpr ( 2017-11-13 13:25:32 +0200 )edit

4 Answers

Sort by » oldest newest most voted
9

answered 2017-01-14 18:33:03 +0200

Andy Branson gravatar image

updated 2017-01-14 18:37:07 +0200

I've got a candidate update for Gstreamer to take it to 1.10.2, and it seems much better to me for video streaming. Would appreciate some testing if anyone fancies it.

You can find the repo at http://repo.merproject.org/obs/home:/abranson:/branches:/mer:/core/latest_armv7hl/

(Don't worry about the version number, it won't bump to 1.10.2 in OBS until I merge and tag)

edit flag offensive delete publish link more

Comments

4

First test with a couple of videos that showed buffering issues shows that this new version works way better. Though still some small audio stucking issues. (so audio is stucked for half a second or so sometimes)

But in general I would say this 1.10.2 version is a must have fix especially for streaming. Thanks for your great work :)

leszek ( 2017-01-14 19:55:49 +0200 )edit
2

Is there a chance that this gstreamer update could also fix this: https://together.jolla.com/question/117566/possible-bug-gstreamer-10-high-cpu-usage-pulseaudio-resampling/ ?

Giskard ( 2017-01-14 21:35:45 +0200 )edit

I see muchs files to install. What i need install? I tryed sometimes add repo and all ok, but how search your files in Warehouse or in terminal? Thank

Rafaelvlmendes ( 2017-01-14 22:32:14 +0200 )edit

leszek: Fantastic, thanks for testing. It doesn't seem to help with that video recording stutter at all, but it seems like it's worthwhile anyway.

Giskard: not seen this bug before, but I can see that's the CPU consumption by the media player and pulse is still high - I'd guess that was a pulseaudio problem. That bug might help with the video recording though. The resample method is now listed as 'speex-fixed-2'.

Andy Branson ( 2017-01-15 10:51:33 +0200 )edit
2

Rafaelvlmendes: This is a repository. So I highly advise adding the whole repo instead of downloading files individually and trying to install them. Only do this if you know what you do ! I added the repo with (all as devel-su user (root))

ssu addrepo gstreamerFix_1.10 http://repo.merproject.org/obs/home:/abranson:/branches:/mer:/core/latest_armv7hl/

Made sure to refresh everything

ssu updaterepos
pkcon refresh

and finally updated the packages with

pkcon update
leszek ( 2017-01-15 11:54:59 +0200 )edit
5

answered 2018-02-24 19:10:22 +0200

leszek gravatar image

updated 2018-03-02 00:54:56 +0200

As this bugged me a lot. I worked on a fix that I want to propose here. That patches gstreamers default buffering settings. In my tests of several videos this works dozen times better than the default gstreamer version. Though it introduces also a higher usage of ram (which is obvious) and a longer delay for the initial buffering of videos. Feel free to test it and report back.

You can find the RPMs here: https://build.merproject.org/package/show/home:leszek/Gstreamer

edit: As I have now a dev repo on openrepos you can find rpms here aswell: https://openrepos.net/content/llelectronicsdev/gstreamer-1105-dev

edit flag offensive delete publish link more

Comments

you should use gstreamer 1.10.5 instead of 1.10.4 at least for your experiments.
better use gstreamer1.12.4 directly from jolla. (plugins bad&ugly available at openrepos)

lpr ( 2018-02-24 19:24:34 +0200 )edit

Thanks for the suggestion. 1.12.4 compiled plugins aren't compatible with Jolla C. So maybe I will upgrade to 1.10.5 though it will not change the streaming issue. So the patch applied for fixing streaming is still valid for this.

leszek ( 2018-02-24 19:29:29 +0200 )edit

libgstrtpmanager.so rename 15194945814406504.txt to libgstrtpmanager.so (not JollaC/inoi/Xperia/Tablet compatible)
my experience is that using libgstrtpmanager.so from gstreamer1.0-plugins-good-1.10.5 will make things better due to changes in rtpjitterbuffer (not perfect but better, with 1.12.4 things should get even better, all 1.12 plugins - gstreamer1.0, base, good, bad - could be compiled from mer-core sources)

lpr ( 2018-02-24 19:44:56 +0200 )edit

if you try to compile 1.10.5 on your own, don't forget to include and apply all jolla-git patches for 1.10.4...

lpr ( 2018-02-24 20:06:31 +0200 )edit

jolla-git patches? You mean the spec file configs? Or where do I see patches?

leszek ( 2018-02-24 21:55:25 +0200 )edit
2

answered 2016-12-07 14:44:06 +0200

PatsJolla gravatar image

I had a similar behavior with videos from the cam and from whatsapp contacts in my thread: [bug] 2.0.5.6 - Videos (also in Whatsapp) can not be played and found that this openrepo might have been the reason:

openrepos-ruedigergad with: gstreamer1.0-libav | GStreamer Streaming-media framework plug-in using libav (FFmpeg)

check if you use this too

edit flag offensive delete publish link more

Comments

1

I don't have that package installed.

leszek ( 2016-12-07 17:59:44 +0200 )edit
1

answered 2016-12-19 14:54:05 +0200

LinuxJollaIRC gravatar image

I'm in on this problem too now. Any simple solution yet? I wonder if this will be addressed on the next update?

edit flag offensive delete publish link more
Login/Signup to Answer

Question tools

Follow
4 followers

Stats

Asked: 2016-12-05 21:44:16 +0200

Seen: 2,231 times

Last updated: Mar 02 '18