ytdl-org / youtube-dl

Command-line program to download videos from YouTube.com and other video sites
http://ytdl-org.github.io/youtube-dl/
The Unlicense
131.22k stars 9.93k forks source link

Missing support for Facebook live stream #17098

Open ravkr opened 6 years ago

ravkr commented 6 years ago

What is the purpose of your issue?


Description

Currently youtube-dl doesn't support downloading live streams on Facebook. It only downloads .mpd file and nothing more. there is line with URL of that file: [debug] Invoking downloader on u'......', if I put it as input of ffmpeg like here:

ffmpeg -i 'https://video-waw1-1.xx.fbcdn.net/hvideo-ftw1/v/rQEjLOU4aJyavnjiCkExh/live-dash/dash-abr3/300160820720224.mpd?_nc_rl=AfBwOdAKm4i-NmXo&oh=d14993643d37bbaf767fd5155eac6f65&oe=5B5FCE97' video.mkv

then the video is streamed to a file, and after the live stream finishes, ffmpeg spams HTTP error 410 Gone to the console.


Full log

$ youtube-dl -v https://www.facebook.com/groups/magicsquad1/permalink/1327449161081228/ --username PRIVATE --password PRIVATE
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'https://www.facebook.com/groups/magicsquad1/permalink/1327449161081228/', u'--username', u'PRIVATE', u'--password', u'PRIVATE']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2018.07.29
[debug] Python version 2.7.15 (CPython) - Linux-4.17.0-kali1-amd64-x86_64-with-Kali-kali-rolling-kali-rolling
[debug] exe versions: ffmpeg 4.0.2-1, ffprobe 4.0.2-1
[debug] Proxy map: {}
[facebook] Downloading login page
[facebook] Logging in
[facebook] 1327449161081228: Downloading webpage
WARNING: unable to extract thumbnail URL; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
[debug] Default format spec: bestvideo+bestaudio/best
[debug] Invoking downloader on u'https://video-waw1-1.xx.fbcdn.net/hvideo-ftw1/v/rQEjLOU4aJyavnjiCkExh/live-dash/dash-abr3/300160820720224.mpd?_nc_rl=AfBwOdAKm4i-NmXo&oh=d14993643d37bbaf767fd5155eac6f65&oe=5B5FCE97'
[download] Destination: Facebook video #1327449161081228-1327449161081228.mpd
[download] 100% of 6.05KiB in 00:00

Downloaded .mpd file

https://gist.github.com/ravkr/4c7957719d04999e0adf98dbf5414d7d

ohhai commented 5 years ago

Still missing for 2019.02.08

bamtan commented 5 years ago

See https://github.com/rg3/youtube-dl/issues/13005#issuecomment-299651219

davr commented 4 years ago

Is support for MPD livestreams planned? It seems like we already support non livestream MPDs so there shouldn't be a ton of work for this. Anyone have any tips on ripping facebook MPD livestreams? (especially since so many live streams are happening nowadays)

frozenpandaman commented 4 years ago

+1 on support for this!