ytdl-org / youtube-dl

Command-line program to download videos from YouTube.com and other video sites
http://ytdl-org.github.io/youtube-dl/
The Unlicense
131.68k stars 9.97k forks source link

Trovo Livestream downlaod stops after a few seconds without debug output #28940

Open DerBunteBall opened 3 years ago

DerBunteBall commented 3 years ago

Checklist

Verbose log

[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', 'https://trovo.live/LiveplaygingTv']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, pref UTF-8
[debug] youtube-dl version 2021.04.26
[debug] Python version 3.9.4 (CPython) - macOS-11.3-x86_64-i386-64bit
[debug] exe versions: ffmpeg 4.4, ffprobe 4.4, rtmpdump 2.4
[debug] Proxy map: {}
[Trovo] LiveplaygingTv: Downloading JSON metadata
[debug] Default format spec: best/bestvideo+bestaudio
[debug] Invoking downloader on 'http://liveplay.trovo.live/live/73846_100708449_100708449_1080p.flv?bizid=73846&txSecret=1e7025f2e0304bca9842ea480143691d&txTime=6096a2e7&_bmlj_t=ChxmaktPSTRIZjQ0NUlwcGV2bXl2endZYTY0U1E9EiRjNDJlNTY5ZC1jZThkLTRhZjMtYjUzMS0zM2VkNzUzZjFlYjcaHjEwMDcwODQ0OV8xMDA3MDg0NDlfMTYxOTg3OTY1OCDeh7eEBjIfNzM4NDZfMTAwNzA4NDQ5XzEwMDcwODQ0OV8xMDgwcDiIJ0INNzkuMTkzLjIwNS43NUodTGl2ZVJlYWRlclNlcnZpY2VfR2V0TGl2ZUluZm9QBGAD'
[download] (GVMP RP  ) LSPD RANG 2Marco_Jackson 3553_3600 2021-05-01 23_10-100708449_100708449_1619879658.flv has already been downloaded
[download] 100% of 607.91KiB

Description

Download Livestreams on Trovo stops after a few secons without reason or debug output. Single VOD sownlaod still works. Tested with multiple streams on macOS and Debian. Debug output is from macOS.

Best Regards

TaoziDB commented 3 years ago

might need to add referer header for flv url now

DerBunteBall commented 3 years ago

In yt-dlp everyhting still works. The extractors are structured differently. Check this: https://github.com/yt-dlp/yt-dlp/blob/master/yt_dlp/extractor/trovolive.py

Best Regards

CeruleanSky commented 3 years ago

Trovo requires an Origin header and may require timestamps appended to url, here is a plugin for streamlink that supports both replays and vod: https://github.com/TopoIogist/streamlink/blob/57e664ed205f68f4cdf527bf02b9574e8fe1c401/src/streamlink/plugins/trovo.py