Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How VLC plays web video streams (like youtube.com)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
ayvango
Tux's lil' helper
Tux's lil' helper


Joined: 08 Feb 2012
Posts: 118

PostPosted: Sun Jul 19, 2015 9:40 am    Post subject: How VLC plays web video streams (like youtube.com) Reply with quote

I'm curious what library the VLC uses to play web streams. I'd like to see list of compatible sites for the library.
Back to top
View user's profile Send private message
Keruskerfuerst
Advocate
Advocate


Joined: 01 Feb 2006
Posts: 2289
Location: near Augsburg, Germany

PostPosted: Sun Jul 19, 2015 11:21 am    Post subject: Reply with quote

http://www.videolan.org/vlc/download-gentoo.html

You can check out the rest with Inet.

I guess Audio is streamed with flac or mp4 (lossless audio formats).
Back to top
View user's profile Send private message
ayvango
Tux's lil' helper
Tux's lil' helper


Joined: 08 Feb 2012
Posts: 118

PostPosted: Sun Jul 19, 2015 3:39 pm    Post subject: Reply with quote

I've checked all depends specified in the ebuild for vlc and found none. Seems like vlc uses no external software for extracting streams from webpages
Back to top
View user's profile Send private message
Keruskerfuerst
Advocate
Advocate


Joined: 01 Feb 2006
Posts: 2289
Location: near Augsburg, Germany

PostPosted: Sun Jul 19, 2015 6:19 pm    Post subject: Reply with quote

Actual videio compression formats are H 261, H 262, H 263, H 264, H265.
MPEG 1, MPEG 2, MPEG 4.
Back to top
View user's profile Send private message
ayvango
Tux's lil' helper
Tux's lil' helper


Joined: 08 Feb 2012
Posts: 118

PostPosted: Mon Jul 20, 2015 6:46 am    Post subject: Reply with quote

The question is about extracting video streams from a http page. I need to use youtube-dl or cclive in order to see youtube with mplayer. But VLC can use youtube out of box. So I'm interested what sites it is capable of displaying.
Back to top
View user's profile Send private message
Keruskerfuerst
Advocate
Advocate


Joined: 01 Feb 2006
Posts: 2289
Location: near Augsburg, Germany

PostPosted: Mon Jul 20, 2015 6:51 am    Post subject: Reply with quote

Then check the data format of these streams.
Back to top
View user's profile Send private message
ayvango
Tux's lil' helper
Tux's lil' helper


Joined: 08 Feb 2012
Posts: 118

PostPosted: Mon Jul 20, 2015 8:56 pm    Post subject: Reply with quote

Keruskerfuerst wrote:
Then check the data format of these streams.

I give http page to the vlc. Plain http. That is the data format.
Back to top
View user's profile Send private message
elko
n00b
n00b


Joined: 02 Feb 2010
Posts: 55

PostPosted: Tue Jul 21, 2015 1:01 pm    Post subject: Reply with quote

You need lua use flag to play youtube videos. With that use flag, youtube.luac and youtube_homepage.luac is compiled. I suppose that the scripts parse HTML youtube pages to find the video streams.
Back to top
View user's profile Send private message
ayvango
Tux's lil' helper
Tux's lil' helper


Joined: 08 Feb 2012
Posts: 118

PostPosted: Tue Jul 21, 2015 9:44 pm    Post subject: Reply with quote

Thank you for directions. That is full contents of /usr/lib64/vlc/lua/playlist
Code:

obj /usr/lib64/vlc/lua/playlist/pluzz.luac cb118ac2c2b41b6071196981b559f111 1435009458
obj /usr/lib64/vlc/lua/playlist/canalplus.luac 6b284e239cdc0179e3612f9813f5cc20 1435009458
obj /usr/lib64/vlc/lua/playlist/metachannels.luac 641476f6ece9d6a009a5a07f82f7ab0d 1435009458
obj /usr/lib64/vlc/lua/playlist/metacafe.luac 4d8e638cfd6c5be72fe706c5b0feeff4 1435009458
obj /usr/lib64/vlc/lua/playlist/soundcloud.luac 30576debce9830134ffda45ef8bcd578 1435009458
obj /usr/lib64/vlc/lua/playlist/youtube.luac e3b0f976f1073d8f2ee67631b8e8605b 1435009458
obj /usr/lib64/vlc/lua/playlist/rockbox_fm_presets.luac fa3a75ec626bc938c95b670396acaa95 1435009458
obj /usr/lib64/vlc/lua/playlist/cue.luac e367ce2f1c29a23e4b0663f0905a4b34 1435009458
obj /usr/lib64/vlc/lua/playlist/appletrailers.luac 980f99973963dd1016e465c4e659767a 1435009458
obj /usr/lib64/vlc/lua/playlist/vimeo.luac 00810640f904fac97725c785eaa1ecd3 1435009458
obj /usr/lib64/vlc/lua/playlist/france2.luac 469d50a3823e4a4e0acef5c489f2dd7d 1435009458
obj /usr/lib64/vlc/lua/playlist/pinkbike.luac d1b2f9b7470cbce1054eaccfd522a7ea 1435009458
obj /usr/lib64/vlc/lua/playlist/youtube_homepage.luac 0240b99202e797f289c4adff55d835d8 1435009458
obj /usr/lib64/vlc/lua/playlist/katsomo.luac ce0f04b6b643165f1c6f2a9506893996 1435009458
obj /usr/lib64/vlc/lua/playlist/bbc_co_uk.luac 00e2911105d431bfd791797ec03a498e 1435009458
obj /usr/lib64/vlc/lua/playlist/zapiks.luac 58eb0309590385ff1ef99e50f1f1f577 1435009458
obj /usr/lib64/vlc/lua/playlist/googlevideo.luac 332daedbd78fd3456986b76ed64b570d 1435009458
obj /usr/lib64/vlc/lua/playlist/extreme.luac 88753760cb803fe309a37ed4fa49275b 1435009458
obj /usr/lib64/vlc/lua/playlist/liveleak.luac 00f9fc0372711b594b842bec89735fc7 1435009458
obj /usr/lib64/vlc/lua/playlist/lelombrik.luac d12a88e43f2e26e277c78c00ed9f8263 1435009458
obj /usr/lib64/vlc/lua/playlist/break.luac 1c81176aa4fecdcac7dc5850214a36fc 1435009458
obj /usr/lib64/vlc/lua/playlist/joox.luac f17ad7d555bdfcd6d36a72f2370c59f2 1435009458
obj /usr/lib64/vlc/lua/playlist/mpora.luac 9265ea3100b3803ee9e82d24fa2731fb 1435009458
obj /usr/lib64/vlc/lua/playlist/dailymotion.luac f6a1d91fbb25af12a4f4007cbbb503b9 1435009458
obj /usr/lib64/vlc/lua/playlist/koreus.luac 20c871ce0c682aede597efcbb3c17a97 1435009458
obj /usr/lib64/vlc/lua/playlist/anevia_xml.luac fe41e4f04c4a23bc6c9242191f34ddf3 1435009458
obj /usr/lib64/vlc/lua/playlist/jamendo.luac 333ef95955e019b8c40a4b2d7a8079e9 1435009458
obj /usr/lib64/vlc/lua/playlist/anevia_streams.luac 4f876bba7fb227fc0b69066014c86132 1435009458

There are a few sites supported
Back to top
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10315
Location: Córdoba (Spain)

PostPosted: Tue Dec 26, 2017 12:14 pm    Post subject: Reply with quote

I've been wondering wtf was happening with my vlc installation for years, we should truly be more specific when describing USE flags...
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3664

PostPosted: Tue Dec 26, 2017 12:29 pm    Post subject: Reply with quote

ayvango wrote:
... in order to see youtube with mplayer. But VLC can use youtube out of box. So I'm interested what sites it is capable of displaying.

IMHO you's better rename this topic to better reflect questions about mplayer ...
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Tue Dec 26, 2017 6:27 pm    Post subject: Re: How VLC plays web video streams (like youtube.com) Reply with quote

ayvango wrote:
I'm curious what library the VLC uses to play web streams.

ayvango ... it uses ffmpeg (or libav) when USE="network" is enabled (which it is by default).

Code:
# equery -NC uses media-video/ffmpeg | egrep '^.\+.\+.network'
 + + network  : Enables network streaming support

That is the 'streaming' part (so the method used to decode the stream), the webpage extraction (in the case of mpv, vlc, etc) is done via lua, and so requires the lua script knows the particulars of the host site. In the case of mpv it simply hooks into youtube-dl (when USE="lua" is enabled and 'ytdl=yes' is set ) and so supports all the sites youtube-dl does.

Code:
# equery -NC uses media-video/mpv | grep 'lua '
 + + lua  : Enable Lua scripting, OSC (On Screen Controller) GUI and net-misc/youtube-dl hook-script

ayvango wrote:
I'd like to see list of compatible sites for the library.

There isn't a library, each site will require its own lua script, and as this is essencially what youtube-dl is designed for you will get greater support if the particular player uses this as its mechanism.

If you run 'youtube-dl --list-extractors' you will be provided a list of supported sites (of which there are currently over a thousand):

Code:
% youtube-dl --list-extractors | wc -l
1073

HTH & best ... khay
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum