Repository: yt-dlp
Issue: [Facebook] Unable to download active Livestream
Labels: site-bug

### DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

- [X] I understand that I will be **blocked** if I *intentionally* remove or skip any mandatory\* field

### Checklist

- [X] I'm asking a question and **not** reporting a bug or requesting a feature
- [X] I've looked through the [README](https://github.com/yt-dlp/yt-dlp#readme)
- [X] I've verified that I'm running yt-dlp version **2023.03.04** ([update instructions](https://github.com/yt-dlp/yt-dlp#update)) or later (specify commit)
- [X] I've searched [known issues](https://github.com/yt-dlp/yt-dlp/issues/3766) and the [bugtracker](https://github.com/yt-dlp/yt-dlp/issues?q=) for similar questions **including closed ones**. DO NOT post duplicates
- [X] I've read the [guidelines for opening an issue](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#opening-an-issue)

### Please make sure the question is worded well enough to be understood

I may be wrong as this as a feature. But currently when you use this to download a facebook livestream it stops after the first set of fragments instead of continuing on to the next. I have no clue if this is a bug or intended. If it is intended thats a bummer. If its a bug here you go. If its currently not a feature. 

If there are any other methods people use to download a stream it would be nice

I currently have tried using ffmpeg
ffmpeg -i $(yt-dlp -f code -f url) -c copy -t output

and just about every variation. They all result in 10 - 30 good seconds of video before it starts looping constantly.

I have done hours of searching but havent found much to fix this. Any help is requested. I know this isn't exactly a yt dlp question.

### Provide verbose output that clearly demonstrates the problem

- [X] Run **your** yt-dlp command with **-vU** flag added (`yt-dlp -vU <your command line>`)
- [X] If using API, add `'verbose': True` to `YoutubeDL` params instead
- [X] Copy the WHOLE output (starting with `[debug] Command-line config`) and insert it below

### Complete Verbose Output

```shell
PS C:\Users\Admin\Desktop> ./yt-dlp -vU https://www.facebook.com/5news/videos/598838065537816
[debug] Command-line config: ['-vU', 'https://www.facebook.com/5news/videos/598838065537816']
[debug] Encodings: locale cp1252, fs utf-8, pref cp1252, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version stable@2023.03.04 [392389b7d] (win_exe)
[debug] Python 3.8.10 (CPython AMD64 64bit) - Windows-10-10.0.19044-SP0 (OpenSSL 1.1.1k  25 Mar 2021)
[debug] exe versions: ffmpeg 2023-04-17-git-65e537b833-full_build-www.gyan.dev (setts), ffprobe 2023-04-17-git-65e537b833-full_build-www.gyan.dev
[debug] Optional libraries: Cryptodome-3.17, brotli-1.0.9, certifi-2022.12.07, mutagen-1.46.0, sqlite3-2.6.0, websockets-10.4
[debug] Proxy map: {}
[debug] Loaded 1786 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Available version: stable@2023.03.04, Current version: stable@2023.03.04
Current Build Hash: 5590c57bd0433ed239a2deaaf92e2ad6f37fe50f53664c821575cafe106a9421
yt-dlp is up to date (stable@2023.03.04)
[facebook] Extracting URL: https://www.facebook.com/5news/videos/598838065537816
[facebook] 598838065537816: Downloading webpage
[facebook] 598838065537816: Downloading MPD manifest
[facebook] 598838065537816: Downloading MPD manifest
[facebook] 598838065537816: Downloading MPD manifest
[debug] Sort order given by extractor: res, quality
[debug] Formats sorted by: hasvid, ie_pref, res, quality, lang, fps, hdr:12(7), vcodec:vp9.2(10), channels, acodec, filesize, fs_approx, tbr, vbr, abr, asr, proto, vext, aext, hasaud, source, id
[debug] Default format spec: bestvideo*+bestaudio/best
[info] 598838065537816: Downloading 1 format(s): dash-lp-hd2-v-3+dash-lp-ld-a-3
[debug] Invoking dashsegments downloader on "https://video-lga3-1.xx.fbcdn.net/hvideo-cln-odn/_nc_cat-106/_nc_sr_t-4/v/rASecC_jpVIK930k6QeAmQN1iDaX7RUFdRkPw2zwnYxR1Lg/_nc_ohc-jH-E5LdIJ4AAX_t4m4A/live-dash/dash-abr-ibr-audio/10167679787045720.mpd?ccb=2-4&ms=m_CTPAL&sc_t=1&oh=00_AfA-RJmn8-7HgI7mCduse0MO853rFcz4cAULuA5eHRkiuQ&oe=644328FF"
[dashsegments] Total fragments: 11
[download] Destination: LIVE ｜ Hail Storms Moving East [598838065537816].fdash-lp-hd2-v-3.mp4
[debug] File locking is not supported. Proceeding without locking
[download] 100% of    8.53MiB in 00:00:03 at 2.79MiB/s
[debug] Invoking dashsegments downloader on "https://video-lga3-1.xx.fbcdn.net/hvideo-cln-odn/_nc_cat-106/_nc_sr_t-4/v/rASecC_jpVIK930k6QeAmQN1iDaX7RUFdRkPw2zwnYxR1Lg/_nc_ohc-jH-E5LdIJ4AAX_t4m4A/live-dash/dash-abr-ibr-audio/10167679787045720.mpd?ccb=2-4&ms=m_CTPAL&sc_t=1&oh=00_AfA-RJmn8-7HgI7mCduse0MO853rFcz4cAULuA5eHRkiuQ&oe=644328FF"
[dashsegments] Total fragments: 11
[download] Destination: LIVE ｜ Hail Storms Moving East [598838065537816].fdash-lp-ld-a-3.m4a
[download] 100% of  318.58KiB in 00:00:01 at 160.45KiB/s
[Merger] Merging formats into "LIVE ｜ Hail Storms Moving East [598838065537816].mp4"
[debug] ffmpeg command line: ffmpeg -y -loglevel "repeat+info" -i "file:LIVE ｜ Hail Storms Moving East [598838065537816].fdash-lp-hd2-v-3.mp4" -i "file:LIVE ｜ Hail Storms Moving East [598838065537816].fdash-lp-ld-a-3.m4a" -c copy -map "0:v:0" -map "1:a:0" -movflags "+faststart" "file:LIVE ｜ Hail Storms Moving East [598838065537816].temp.mp4"
Deleting original file LIVE ｜ Hail Storms Moving East [598838065537816].fdash-lp-ld-a-3.m4a (pass -k to keep)
Deleting original file LIVE ｜ Hail Storms Moving East [598838065537816].fdash-lp-hd2-v-3.mp4 (pass -k to keep)
PS C:\Users\Admin\Desktop>
```