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

Issues with Concurrently Downloading Multiple Live Streams #549

Open
doganjr opened this issue Dec 6, 2024 · 0 comments
Open

Issues with Concurrently Downloading Multiple Live Streams #549

doganjr opened this issue Dec 6, 2024 · 0 comments

Comments

@doganjr
Copy link

doganjr commented Dec 6, 2024

I’m working on a project that involves downloading and saving multiple streams concurrently.

Here is the function I’m using for each stream:

`def download_m3u8(m3u8_url, key_id, gamename, formatdate):
n_m3u8dl_path = r"C:/Users/username/Desktop/N_m3u8DL-RE_Beta_win-x64/N_m3u8DL-RE.exe"

if not os.path.exists(r"2425temp/"+gamename):
    os.makedirs(r"2425temp/"+gamename)

command = [n_m3u8dl_path, m3u8_url,
           "--tmp-dir", "2425temp/"+gamename,
           "--save-dir", "2425",
           "--save-name", formatdate + "_" + gamename,
           "--append-url-params",
           "--mp4-real-time-decryption",
           "--live-pipe-mux",
           "--key", key_id,
           "-sv", 'res="1280*":for=best',
           "-sa", "lang=en:for=best",
           "-M", "mp4",
           "--live-record-limit", "03:15:00"
           ]
subprocess.run(command)`

When I run multiple commands, some of the download processes yield problematic outputs.

Screenshot 2024-12-06 at 12 30 17

For example it decodes the audio files twice(in my opinion) then, the recording stops somewhere that not desired. And also weird creation times.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant