Facebook Live streams?
#1
Anyone got one of these working under Kodi?
Reply
#2
(2017-04-04, 20:32)DoubleT Wrote: Anyone got one of these working under Kodi?

You can play them in current Kodi nightlies by using the inputstream.adaptative addon. For instance, if you go to a random live video, let's say:

https://www.facebook.com/SaintDrMSG7/vid...842319980/

In the page source (view-source:https://www.facebook.com/SaintDrMSG7/videos/480626842319980/ in chrome) you can find the MPEG-DASH Media Presentation Description url:

Code:
{ad_client_token:null,video_id:"480626842319980",abortWithEmptySrc:true,fasterPlay:false,instantPlay:false,isSpherical:false,disableNativeControls:true, videoData:{is_hds:false,video_id: "480626842319980",is_live_stream:true,rotation:0,is_facecast_audio:false,aspect_ratio:1.7777777777778, hd_src:"[b]https://video.flis3-1.fna.fbcdn.net/hvideo-prn1/s2/v/rSsHfrnPw8G0nnRUf3Htg/live-dash/dash-abr4/480626852319979.mpd?_nc_rl=AfDzvi20tb--qIfp&oh=5a065aede022a3410ffe63bd21842dff&oe=59927CE8[/b]",sd_src:"[b]https://video.flis3-1.fna.fbcdn.net/hvideo-prn1/s2/v/rSsHfrnPw8G0nnRUf3Htg/live-dash/dash-abr4/480626852319979.mpd?_nc_rl=AfDzvi20tb--qIfp&oh=5a065aede022a3410ffe63bd21842dff&oe=59927CE8[/b]",hd_tag:"",sd_tag:"", stream_type:"dash",live_routing_token:"https......

You can then create a strm file (http://kodi.wiki/view/Internet_video_and_audio_streams) containing the mpd url and some properties to tell kodi you want to use inputstream.adaptative. The .strm file contents is below:

Code:
#KODIPROP:inputstreamaddon=inputstream.adaptive
#KODIPROP:inputstream.adaptive.manifest_type=mpd
https://video.flis3-1.fna.fbcdn.net/hvideo-prn1/s2/v/rSsHfrnPw8G0nnRUf3Htg/live-dash/dash-abr4/480626852319979.mpd?_nc_rl=AfDzvi20tb--qIfp&oh=5a065aede022a3410ffe63bd21842dff&oe=59927CE8

Kodi will then play the facebook live video:

Image

Cheers
Reply
#3
Good one. Thanks
Kodi 21RC2 Windows 10 and 11 | 21RC2 Xbox One X | 21RC2 Linux Mint Virginia XFCE | CoreELEC NO 21 nightly S905X4 aarch64
Reply
#4
Enen92,

I tryed your recomendation and it works, but after a few seconds the sound mutes.

Anybody knows why?

Using last Milhouse Libreelec

Thanks

Enviado desde mi K5-3G mediante Tapatalk
Reply
#5

This is weird but... is there a way to play a single file without having to create a folder/playlist? I had to create a folder/playlist just to test it out which didn't seem pratical, couldn't believe I couldn't just do "open video", "play" ah.

It worked with facebook. When I tried it with some other manifests from some other services (like beinsportsconnect)... it didn't work. "Could not open / parse mpdURL". Also tried it with some protected m3u8 playlists and didn't work.

Anyway, this looks very promising for the future.
Reply
#6
(2017-08-23, 13:59)watanave Wrote: Enen92,

I tryed your recomendation and it works, but after a few seconds the sound mutes.

Anybody knows why?

Using last Milhouse Libreelec

Thanks

Enviado desde mi K5-3G mediante Tapatalk

mutes after a few seconds for me too. the video buffers after a few and when the stream starts playing again the sound is muted

there's similar behavior when using input.adaptive and youtube. when you skip ahead/back in time the sound mutes for a few seconds, but on youtube the sound returns
Reply
#7
(2017-09-13, 23:27)BriceysCousin Wrote:
(2017-08-23, 13:59)watanave Wrote: Enen92,

I tryed your recomendation and it works, but after a few seconds the sound mutes.

Anybody knows why?

Using last Milhouse Libreelec

Thanks

Enviado desde mi K5-3G mediante Tapatalk

mutes after a few seconds for me too. the video buffers after a few and when the stream starts playing again the sound is muted

there's similar behavior when using input.adaptive and youtube. when you skip ahead/back in time the sound mutes for a few seconds, but on youtube the sound returns

bump. still mutes after the initial buffer (and it always buffers after a few seconds no matter the connection)
Reply
#8
(2017-10-22, 05:05)BriceysCousin Wrote:
(2017-09-13, 23:27)BriceysCousin Wrote:
(2017-08-23, 13:59)watanave Wrote: Enen92,

I tryed your recomendation and it works, but after a few seconds the sound mutes.

Anybody knows why?

Using last Milhouse Libreelec

Thanks

Enviado desde mi K5-3G mediante Tapatalk

mutes after a few seconds for me too. the video buffers after a few and when the stream starts playing again the sound is muted

there's similar behavior when using input.adaptive and youtube. when you skip ahead/back in time the sound mutes for a few seconds, but on youtube the sound returns   

bump. still mutes after the initial buffer (and it always buffers after a few seconds no matter the connection)   
 One more bump, same problem. sounds works on the first 12 seconds. Using Librelec 8.2.0 x86 

After 6 seconds of smooth play, non debug log gives two errors:ERROR: CCurlFile::Open failed with code 404 for (faceboook url).m4a|Connection=keep-alive&acceptencoding=gzip&seekable=0
ERROR: AddOnLog: InputStream Adaptive: Download (faceboook url).m4a doesn't provide any data: invalidThen, after another 6 seconds NOTICE: CVideoPlayerAudio:Tonguerocess - stream stalledthen the complete stream stalls for a sec and returns only with video.
Reply
#9
Same for me too, no sound after a brief buffer - is there an alternative method?
Reply
#10
same 2 errors in the log

ERROR: CCurlFile::Open failed with code 404 for (faceboook url).m4a|Connection=keep-alive&acceptencoding=gzip&seekable=0
ERROR: AddOnLog: InputStream Adaptive: Download (faceboook url).m4a doesn't provide any data: invalid
Reply

Logout Mark Read Team Forum Stats Members Help
Facebook Live streams?0