sparanoid/live-dl

Fails to download live music video

vladox opened this issue ยท 7 comments

I'm using the following and it's stopping for an unknown reason: docker run --rm -it -v $(pwd)/downloads:/opt/live-dl/downloads sparanoid/live-dl:latest "MSMjU5Z9_Ug"

docker run --rm -it -v $(pwd)/downloads:/opt/live-dl/downloads sparanoid/live-dl:latest "MSMjU5Z9_Ug"
[Thu Sep 16 13:30:16 UTC 2021] URL (URI) to process           : MSMjU5Z9_Ug
[Thu Sep 16 13:30:16 UTC 2021] Mode                           : download
[Thu Sep 16 13:30:16 UTC 2021] Output base dir                : ./downloads
[Thu Sep 16 13:30:16 UTC 2021] Run interval (when loop)       : 10
[Thu Sep 16 13:30:16 UTC 2021] Use youtube-dl for streams     : false
[Thu Sep 16 13:30:16 UTC 2021] Skip convert                   : false
[Thu Sep 16 13:30:16 UTC 2021] Skip embedding metadata        : false
[Thu Sep 16 13:30:16 UTC 2021] Skip email notification        : false
[Thu Sep 16 13:30:16 UTC 2021] Skip Slack notification        : false
[Thu Sep 16 13:30:16 UTC 2021] Skip Telegram notification     : false
[Thu Sep 16 13:30:16 UTC 2021] Skip Discord notification      : 
[Thu Sep 16 13:30:16 UTC 2021] Email provider                 : ses
[Thu Sep 16 13:30:16 UTC 2021] One-time execution             : false
[Thu Sep 16 13:30:16 UTC 2021] URI detected, guessing... (Use full URL to avoid guessing URL)
[Thu Sep 16 13:30:16 UTC 2021] YouTube video ID detected
[Thu Sep 16 13:30:16 UTC 2021] Checking https://www.youtube.com/watch?v=MSMjU5Z9_Ug...
parse error: Invalid numeric literal at line 2, column 17
[Thu Sep 16 13:30:17 UTC 2021] cURL check seems goes live now, continue checking...
[Thu Sep 16 13:30:17 UTC 2021] Re-checking via youtube-dl...
./downloads/PMB Music/20210826 Background Music - Relaxing Covers ๐Ÿน 2021-09-16 13_30 (MSMjU5Z9_Ug).jpg: No Exif data found in the file
[Thu Sep 16 13:30:20 UTC 2021] Prepare downloading...

ID:        MSMjU5Z9_Ug
Title:     Background Music - Relaxing Covers ๐Ÿน 2021-09-16 13:30
URL:       https://www.youtube.com/watch?v=MSMjU5Z9_Ug
Author:    PMB Music
Channel:   https://www.youtube.com/channel/UCFm4zM6-08kb9abXDk4fxXQ
Date:      20210826
Thumbnail: https://i.ytimg.com/vi/MSMjU5Z9_Ug/maxresdefault.jpg?v=613a630b
Filename:  20210826 Background Music - Relaxing Covers ๐Ÿน 2021-09-16 13_30 (MSMjU5Z9_Ug)
Location:  ./downloads/PMB Music/
Hostname:  03abd7c24db3

[Thu Sep 16 13:30:20 UTC 2021] Start downloading 20210826 Background Music - Relaxing Covers ๐Ÿน 2021-09-16 13_30 (MSMjU5Z9_Ug)
[Thu Sep 16 13:30:20 UTC 2021] Logging: tail -f "./downloads/PMB Music/20210826 Background Music - Relaxing Covers ๐Ÿน 2021-09-16 13_30 (MSMjU5Z9_Ug).log"
[Thu Sep 16 13:30:21 UTC 2021] Stop downloading
[Thu Sep 16 13:30:21 UTC 2021] File summary not available due to missing files.

Reading the log the problem seems to be an unexisting page: error: Unable to open URL: https://youtube.com/get_video_info (410 Client Error: Gone for url: https://www.youtube.com/get_video_info?video_id=MSMjU5Z9_Ug&el=detailpage)

[13:29:57.478702][cli][info] streamlink is running as root! Be careful!
[13:29:57.480481][cli][debug] OS:         Linux-5.11.0-7633-generic-x86_64-with
[13:29:57.480545][cli][debug] Python:     3.8.5
[13:29:57.480587][cli][debug] Streamlink: 2.1.1
[13:29:57.480628][cli][debug] Requests(2.25.1), Socks(1.7.1), Websocket(0.58.0)
[13:29:57.480830][cli][debug] Arguments:
[13:29:57.480872][cli][debug]  url=https://www.youtube.com/watch?v=MSMjU5Z9_Ug
[13:29:57.480913][cli][debug]  stream=['best']
[13:29:57.480958][cli][debug]  --loglevel=trace
[13:29:57.481011][cli][debug]  --output=./downloads/PMB Music/20210826 Background Music - Relaxing Covers ๐Ÿน 2021-09-16 13_29 (MSMjU5Z9_Ug).ts
[13:29:57.481058][cli][debug]  --force=True
[13:29:57.481109][cli][debug]  --hls-live-edge=5
[13:29:57.481151][cli][debug]  --hls-segment-attempts=300
[13:29:57.481191][cli][debug]  --hls-playlist-reload-attempts=30
[13:29:57.481232][cli][debug]  --hls-segment-threads=10
[13:29:57.481277][cli][debug]  --hls-segment-timeout=120.0
[13:29:57.481319][cli][debug]  --hls-segment-ignore-names=['preloading']
[13:29:57.481361][cli][debug]  --hls-timeout=90.0
[13:29:57.481403][cli][debug]  --hls-live-restart=True
[13:29:57.481444][cli][debug]  --ringbuffer-size=268435456
[13:29:57.481503][cli][debug]  --http-timeout=180.0
[13:29:57.481604][cli][info] Found matching plugin youtube for URL https://www.youtube.com/watch?v=MSMjU5Z9_Ug
[13:29:57.481654][plugins.youtube][debug] Video ID from URL
[13:29:57.481693][plugins.youtube][debug] Using video ID: MSMjU5Z9_Ug
error: Unable to open URL: https://youtube.com/get_video_info (410 Client Error: Gone for url: https://www.youtube.com/get_video_info?video_id=MSMjU5Z9_Ug&el=detailpage)

@sparanoid seems to be the streamlink version: streamlink/streamlink#3990

I've rebuilt the image on Docker Hub. Could you please try it again with the latest version?

@sparanoid looks good! Thanks! Just one more question, how do you get a live stream from the beginning?

@sparanoid thanks for the hint! But I'm downloading a seemingly never ending live event, how can I stop the recording and kick off the conversion to MP4?

@vladox The download will not stop unless the stream ends or you cancel it manually via ctrl - c.