Feature request: Smooth Youtube video playback

Raspberry Pi 2

Feature request: Smooth Youtube video playback

Postby hendry » Fri Mar 27, 2015 11:58 am

The current webkitgtk2 2.4.8 required by the surf browser and the accompanying gstreamer packages like gst-libav do not playback HTML5 Youtube videos smoothly.

As mentioned before, the Collabra patches on Webkit IIUC do provide smooth playback. viewtopic.php?f=31&t=7743


I was hoping that just installing gst-omx-rpi from the alarm packages would do the trick, but it doesn't seem to offer any improvement.

I've noticed Collarbra's Webkit repo is here: http://cgit.collabora.com/git/raspberry-pi/WebKit.git/

But I don't have a build environment to build this on alarm sanely. Can anyone offer some ideas/help going forward to realising this use case?

Many thanks,
hendry
 
Posts: 40
Joined: Wed Jul 31, 2013 8:28 am
Location: Singapore

Re: Feature request: Smooth Youtube video playback

Postby hendry » Wed Apr 15, 2015 2:59 am

Thought I should post an update, since I'm driving this for https://github.com/webconverger/rpi2 which uses alarm.

I got in contact with Collabra's Emanuele Aina who has taken over the reigns from Marco Barisione for this RasperryPI foundation commissioned project to better integrate the accelerated Broadcom video with Webkit.

The bad news is that their patches only apply to libwebkitgtk-3.0, the older version of Webkit2. The current Webkit2 package in Archlinux is https://www.archlinux.org/packages/extr ... ebkitgtk2/ from http://webkitgtk.org/ which incidentally recently broke in alarm: https://github.com/archlinuxarm/PKGBUILDs/issues/1155 AFAICT.

Emanuele mentioned there is ongoing to work to port their patches to libwebkit2gtk-4.0, the latest revision of the API, using WebKit2 (multi-process). However no ETA. :(

To try webkitgtk2 in alarm, you can use ephipany or https://aur.archlinux.org/packages/surf2/
hendry
 
Posts: 40
Joined: Wed Jul 31, 2013 8:28 am
Location: Singapore

Re: Feature request: Smooth Youtube video playback

Postby jps3 » Thu Apr 16, 2015 12:19 am

Although this might be the exact solution you are looking for, that is within a browser, you can use youtube-dl and omxplayer. You can even "stream" the video (in quotes because I'm not certain if technically it's actually streaming, but it's a close as dammit).

Code: Select all
$ omxplayer `https://www.youtube.com/watch?v=Vj7G45pfu-w`


There might even be a way, using uzbl or another browser and it's scripting capabilities, to finagle something decently workable.

I've tried and tested the omxplayer solution above, and it (of course) even works on a fresh install on a RPi2 just from the console, without X. I've not tried to do anything with a scripted browser.

Edit: Maybe I should check the original post dates before I reply. :-)
jps3
 
Posts: 5
Joined: Wed Apr 15, 2015 11:46 pm

Re: Feature request: Smooth Youtube video playback

Postby eriktheitalian » Fri Apr 17, 2015 12:08 am

You can catch youtube's direct video link with youtube-dl tool. U can find direct video link with this tool. After u can add this link to omxplayer.

Alternative solution. U can use kodi with youtube plugin.
eriktheitalian
 
Posts: 8
Joined: Fri Feb 20, 2015 1:28 pm


Return to Broadcom

Who is online

Users browsing this forum: No registered users and 2 guests