Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Facebook Live Video Download not possible #11387

Closed
felixdreinulldrei opened this issue Dec 7, 2016 · 3 comments
Closed

Facebook Live Video Download not possible #11387

felixdreinulldrei opened this issue Dec 7, 2016 · 3 comments

Comments

@felixdreinulldrei
Copy link

@felixdreinulldrei felixdreinulldrei commented Dec 7, 2016

Please follow the guide below

  • You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
  • Put an x into all the boxes [ ] relevant to your issue (like that [x])
  • Use Preview tab to see how your issue will actually look like

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2016.12.01. If it's not read this FAQ entry and update. Issues with outdated version will be rejected.

  • I've verified and I assure that I'm running youtube-dl 2016.12.01

Before submitting an issue make sure you have:

  • At least skimmed through README and most notably FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones

What is the purpose of your issue?

  • Bug report (encountered problems with youtube-dl)
  • Site support request (request for adding support for a new site)
  • Feature request (request for a new functionality)
  • Question
  • Other

The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your issue


If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:

Add -v flag to your command line you run youtube-dl with, copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):

$ youtube-dl   -v "https://www.facebook.com/NBCNews/videos/1603390213014336/"  
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'https://www.facebook.com/NBCNews/videos/1603390213014336/', u'-v']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2016.12.01
[debug] Python version 2.7.10 - Darwin-14.5.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 3.0-tessus, ffprobe 3.0-tessus, rtmpdump 2.4
[debug] Proxy map: {}
[facebook] 1603390213014336: Downloading webpage
[facebook] 1603390213014336: Downloading webpage
[debug] Invoking downloader on u'https://video-fra3-1.xx.fbcdn.net/hvideo-prn1/v/dash-md/1603390216347669.mpd?_nc_rl=AfC-JcMttEY5gCFO&oh=eb923e934df2ce88022a291c022b15e2&oe=5849FF3D'
[download] Destination: Joe Biden Honored on Senate Floor-1603390213014336.mpd
[download] 100% of 2.87KiB in 00:00
...
<end of log>


Description of your issue, suggested solution and other information

It is not possible to download live videos. It just downloads the mpd file which is not working with ffmpeg or vlc. I also have tried it this way
$ youtube-dl -g "https://www.facebook.com/NBCNews/videos/1603390213014336/"
I get the stream url "https://video-fra3-1.xx.fbcdn.net/hvideo-prn1/v/dash-abr/1603390216347669.mpd?_nc_rl=AfAC1NE-mOyaDki-&oh=48157680dc0dbb6e0a27c769788abd97&oe=584AFED9"
Which is still not playing with common players.
If I place this streamurl string into youtube-dl than I get this debug log:
---log begin---------------------------------------------------------------------
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'https://video-fra3-1.xx.fbcdn.net/hvideo-prn1/v/dash-abr/1603390216347669.mpd?_nc_rl=AfAC1NE-mOyaDki-&oh=48157680dc0dbb6e0a27c769788abd97&oe=584AFED9', u'-v']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2016.12.01
[debug] Python version 2.7.10 - Darwin-14.5.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 3.0-tessus, ffprobe 3.0-tessus, rtmpdump 2.4
[debug] Proxy map: {}
[generic] 1603390216347669: Requesting header
WARNING: Could not send HEAD request to https://video-fra3-1.xx.fbcdn.net/hvideo-prn1/v/dash-abr/1603390216347669.mpd?_nc_rl=AfAC1NE-mOyaDki-&oh=48157680dc0dbb6e0a27c769788abd97&oe=584AFED9: HTTP Error 502: Bad Gateway
[generic] 1603390216347669: Downloading webpage
WARNING: Falling back on generic information extractor.
[generic] 1603390216347669: Extracting information
ERROR: No video formats found; 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.
Traceback (most recent call last):
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 694, in extract_info
ie_result = ie.extract(url)
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 357, in extract
return self._real_extract(url)
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/generic.py", line 1644, in _real_extract
self._sort_formats(info_dict['formats'])
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 924, in _sort_formats
raise ExtractorError('No video formats found')
ExtractorError: No video formats found; 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.
---log-end----------------------------------------------------------------------------------------------------

Am I doing something wrong or is it just not supported?!
Meanwhile if you try this urls, maybe they are not active anymore because they were live.
Just try any live video from http://facebook.com/livemap

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Dec 10, 2016

Works fine for me. Post the output of:
youtube-dl -v --dump-pages https://www.facebook.com/NBCNews/videos/1603390213014336/

@felixdreinulldrei
Copy link
Author

@felixdreinulldrei felixdreinulldrei commented Dec 11, 2016

@dstftw Your example is downloading a recorded video (vod) in mp4 format. This not a "Live Video".
My point was that it is not processing live video broadcasts on facebook.
Pick some Live Video i.e. from www.facebook.com/livemap and try to download that video. Or try to play the downloaded mpd file with vlc or ffplay. Some weeks ago this was possible as facebook has delivered videos in hls and rtmp format. But since a while they are delivering live videos in mpeg dash format which somehow can not be handled with the latest youtube-dl versions?!

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Dec 11, 2016

Duplicate of #10787.

@dstftw dstftw closed this Dec 11, 2016
@ytdl-org ytdl-org locked and limited conversation to collaborators Dec 24, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.