Open hairycactus opened 3 years ago
for this link - https://www.facebook.com/bbcnews/posts/10158313576807217 play the video and click the enlarge button, copy the link at the top of the search bar and enter youtube-dlc --force-generic-extractor https://www.facebook.com/watch/?v=2464080690554475 the video will now download.
I wonder if the reason the first two are failing is because they aren't actual video sources, they are posts. A post will usually only have an embed of the video which redirects to the actual video source.
Checklist:
Description:
Youtube-dlc encounters "RegexNotFoundError: Unable to extract single video id" error, & fails to extract the video from this common Facebook video-post URL:
https://www.facebook.com/<PageName or PageID>/post/<IDString1>
.This URL contains only a single video, which is public & watchable in the browser without any account login.
The same video is also accessible in the browser via the below URLs ("video", "watch"), from which Youtube-dlc has no problem extracting the video:
https://www.facebook.com/<PageName or PageID>/videos/<IDString2>
https://www.facebook.com/watch/?v=<IDString2>
Note that (2)'s
IDString2
differs from (1)'sIDString1
found within the video-post URL. ThisIDString2
can be obtained by checking the video-post's timestamp URL (beside the "Public" marker at the top of the post).Sample URLs for Testing:
RegexNotFoundError: Unable to extract single video id:
▶ https://www.facebook.com/bbcnews/posts/10158313576807217
▶ https://www.facebook.com/228735667216/posts/10158313576807217
Working OK in Youtube-dlc:
▶ https://www.facebook.com/bbcnews/videos/2464080690554475
▶ https://www.facebook.com/228735667216/videos/2464080690554475
▶ https://www.facebook.com/watch/?v=2464080690554475
where:
Verbose Log: