this post was submitted on 04 Apr 2025
1 points (100.0% liked)

It's A Digital Disease!

23 readers
1 users here now

This is a sub that aims at bringing data hoarders together to share their passion with like minded people.

founded 2 years ago
MODERATORS
 
The original post: /r/datahoarder by /u/ignoble93 on 2025-04-04 16:06:19.

Been using Streamlink and never encountered video/audio sync issues until the streaming service decided to separate the video and audio streams. So I now use this command (see below) but until now there are occasional outputs that aren't in sync. Also, some files have incorrect timestamps and missing video frames towards the end. I am familiar with python but Streamlink is too complicated to modify. Can somebody help me what should be the correct command?

command = [
        'streamlink',
        '--url', url,
        '--default-stream', 'best',
        '--output', output_file,
        '--stream-segment-threads', '5',
        '--logfile', log_file.replace('.txt', '_hls.txt'),
        '--loglevel', 'trace',
        '--ffmpeg-ffmpeg', r'C:\ffmpeg\bin\ffmpeg.exe',
        '--ffmpeg-verbose-path', log_file.replace('.txt', '_mux.txt')
    ]

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here