MrBrax / LiveStreamDVR

An automatic livestream recorder
MIT License
337 stars 25 forks source link

sometimes recording doesn't work #188

Open dabenzel opened 2 years ago

dabenzel commented 2 years ago

Sometimes the recording doesn't work. It creates a json file, but no TS-File or any other file

Log:

2022-05-05 20:01:25 | hook | INFO | Hook called
2022-05-05 20:01:25 | automator | INFO | Stream online for wubbl0rz (retry 0)
2022-05-05 20:01:25 | vodclass | INFO | Create VOD JSON for wubbl0rz: wubbl0rz_2022-05-05T18_00_44Z_46340881437.json @ /usr/local/share/twitchautomator/data/storage/vods/wubbl0rz
2022-05-05 20:01:25 | vodclass | SUCCESS | Saving JSON of wubbl0rz_2022-05-05T18_00_44Z_46340881437 (create json)
2022-05-05 20:01:25 | vodclass | ERROR | No chapters on wubbl0rz_2022-05-05T18_00_44Z_46340881437!
2022-05-05 20:01:25 | vodclass | WARNING | Loaded VOD wubbl0rz_2022-05-05T18_00_44Z_46340881437 is not finalized!
2022-05-05 20:01:25 | vodclass | WARNING | Saving JSON of wubbl0rz_2022-05-05T18_00_44Z_46340881437 with no chapters!!
2022-05-05 20:01:25 | vodclass | SUCCESS | Saving JSON of wubbl0rz_2022-05-05T18_00_44Z_46340881437 (is_capturing set)
2022-05-05 20:01:25 | automator | INFO | Update game for wubbl0rz_2022-05-05T18_00_44Z_46340881437
2022-05-05 20:01:25 | automator | SUCCESS | Channel data for wubbl0rz fetched from cache.
2022-05-05 20:01:25 | vodclass | WARNING | Saving JSON of wubbl0rz_2022-05-05T18_00_44Z_46340881437 with no chapters!!
2022-05-05 20:01:25 | vodclass | SUCCESS | Saving JSON of wubbl0rz_2022-05-05T18_00_44Z_46340881437 (dt_capture_started set)
2022-05-05 20:01:25 | automator | INFO | Starting capture with filename wubbl0rz_2022-05-05T18_00_44Z_46340881437.ts
2022-05-05 20:01:25 | automator | SUCCESS | Spawned process 127 for capture_wubbl0rz_2022-05-05T18_00_44Z_46340881437
2022-05-05 20:01:25 | job | INFO | Save job capture_wubbl0rz_2022-05-05T18_00_44Z_46340881437 with PID 127 to /usr/local/share/twitchautomator/data/cache/pids/capture_wubbl0rz_2022-05-05T18_00_44Z_46340881437.json
2022-05-05 20:01:25 | vodclass | SUCCESS | Saving JSON of wubbl0rz_2022-05-05T18_00_44Z_46340881437 (game update)
2022-05-05 20:01:26 | automator | SUCCESS | Stream updated on 'wubbl0rz' to 'Just Chatting' (Einkaufen ๐Ÿ›’๐Ÿ›๏ธ) using cache.
2022-05-05 20:01:26 | vodclass | INFO | VOD JSON wubbl0rz_2022-05-05T18_00_44Z_46340881437 changed (external/change)!
2022-05-05 20:01:26 | vodclass | INFO | VOD JSON wubbl0rz_2022-05-05T18_00_44Z_46340881437 exists (again?) change
2022-05-05 20:01:26 | vodclass | INFO | VOD JSON wubbl0rz_2022-05-05T18_00_44Z_46340881437 changed (external/change)!
2022-05-05 20:01:26 | vodclass | INFO | VOD JSON wubbl0rz_2022-05-05T18_00_44Z_46340881437 exists (again?) change
2022-05-05 20:01:28 | automator | ERROR | Job capture_wubbl0rz_2022-05-05T18_00_44Z_46340881437 exited with code 1, signal null
2022-05-05 20:01:28 | job | INFO | Clear job capture_wubbl0rz_2022-05-05T18_00_44Z_46340881437 with PID 127
2022-05-05 20:01:28 | job | SUCCESS | Job capture_wubbl0rz_2022-05-05T18_00_44Z_46340881437 removed from jobs list
2022-05-05 20:01:28 | automator | ERROR | Capture wubbl0rz_2022-05-05T18_00_44Z_46340881437 failed
2022-05-05 20:01:28 | automator | FATAL | Failed to capture video: false

This is what it looks like in the UI: image

MrBrax commented 2 years ago

anything in the /logs/software files and the console output?

dabenzel commented 2 years ago

thats what I found in the console output:

2022-05-05 20:01:25.913 | vodclass <SUCCESS> Saving JSON of wubbl0rz_2022-05-05T18_00_44Z_46340881437 (is_capturing set)
Stopped watching wubbl0rz_2022-05-05T18_00_44Z_46340881437
Watching wubbl0rz_2022-05-05T18_00_44Z_46340881437
2022-05-05 20:01:25.919 | automator <INFO> Update game for wubbl0rz_2022-05-05T18_00_44Z_46340881437
2022-05-05 20:01:25.922 | automator <SUCCESS> Channel data for wubbl0rz fetched from cache.
2022-05-05 20:01:25.925 | vodclass <WARNING> Saving JSON of wubbl0rz_2022-05-05T18_00_44Z_46340881437 with no chapters!!

2022-05-05 20:01:25.928 | vodclass <SUCCESS> Saving JSON of wubbl0rz_2022-05-05T18_00_44Z_46340881437 (dt_capture_started set)
Stopped watching wubbl0rz_2022-05-05T18_00_44Z_46340881437
Watching wubbl0rz_2022-05-05T18_00_44Z_46340881437
2022-05-05 20:01:25.935 | automator <INFO> Starting capture with filename wubbl0rz_2022-05-05T18_00_44Z_46340881437.ts
2022-05-05 20:01:25.952 | automator <SUCCESS> Spawned process 127 for capture_wubbl0rz_2022-05-05T18_00_44Z_46340881437
2022-05-05 20:01:25.977 | job <INFO> Save job capture_wubbl0rz_2022-05-05T18_00_44Z_46340881437 with PID 127 to /usr/local/share/twitchautomator/data/cache/pids/capture_wubbl0rz_2022-05-05T18_00_44Z_46340881437.json
No clients connected to broker for data: {"server":true,"action":"job_save","data":{"job_name":"capture_w...
2022-05-05 20:01:25.988 | vodclass <SUCCESS> Saving JSON of wubbl0rz_2022-05-05T18_00_44Z_46340881437 (game update)
Stopped watching wubbl0rz_2022-05-05T18_00_44Z_46340881437
Watching wubbl0rz_2022-05-05T18_00_44Z_46340881437
No clients connected to broker for data: {"server":true,"action":"start_capture","data":{"vod":{"basename...
No clients connected to broker for data: {"server":true,"action":"chapter_update","data":{"chapter":{"tit...
2022-05-05 20:01:26.006 | automator <SUCCESS> Stream updated on 'wubbl0rz' to 'Just Chatting' (Einkaufen ๐Ÿ›’๐Ÿ›๏ธ) using cache.
Notifying clients: wubbl0rz is online with one of your favourite categories: Just Chatting!: Einkaufen ๐Ÿ›’๐Ÿ›๏ธ, category streamStatusChangeFavourite
2022-05-05 20:01:26.011 | vodclass <INFO> VOD JSON wubbl0rz_2022-05-05T18_00_44Z_46340881437 changed (external/change)!
2022-05-05 20:01:26.014 | vodclass <INFO> VOD JSON wubbl0rz_2022-05-05T18_00_44Z_46340881437 exists (again?) change
2022-05-05 20:01:26.018 | vodclass <INFO> VOD JSON wubbl0rz_2022-05-05T18_00_44Z_46340881437 changed (external/change)!
2022-05-05 20:01:26.021 | vodclass <INFO> VOD JSON wubbl0rz_2022-05-05T18_00_44Z_46340881437 exists (again?) change
No clients connected to broker for data: {"server":true,"action":"job_update","data":{"job_name":"capture...
2022-05-05 20:01:28.175 | automator <ERROR> Job capture_wubbl0rz_2022-05-05T18_00_44Z_46340881437 exited with code 1, signal null

2022-05-05 20:01:28.181 | job <INFO> Clear job capture_wubbl0rz_2022-05-05T18_00_44Z_46340881437 with PID 127
No clients connected to broker for data: {"server":true,"action":"job_clear","data":{"job_name":"capture_...
2022-05-05 20:01:28.187 | job <SUCCESS> Job capture_wubbl0rz_2022-05-05T18_00_44Z_46340881437 removed from jobs list
2022-05-05 20:01:28.194 | automator <ERROR> Capture wubbl0rz_2022-05-05T18_00_44Z_46340881437 failed

2022-05-05 20:01:28.197 | automator <FATAL> Failed to capture video: false

found my problem in /logs/software:

$ /usr/local/bin/streamlink --hls-live-restart --hls-live-edge 99999 --hls-timeout 200 --hls-segment-timeout 200 --hls-segment-threads 5 --twitch-disable-hosting --twitch-disable-ads --retry-streams 10 --retry-max 5 --twitch-disable-reruns -o /usr/local/share/twitchautomator/data/storage/vods/wubbl0rz/wubbl0rz_2022-05-05T18_00_44Z_46340881437.ts --url twitch.tv/wubbl0rz --default-stream 720p
[cli][info] streamlink is running as root! Be careful!
[cli][info] Found matching plugin twitch for URL twitch.tv/wubbl0rz
error: The specified stream(s) '720p' could not be found.
       Available streams: audio_only, 160p (worst), 360p, 480p, 720p48, 1080p48 (best)

seems like there is no 720p in his stream today. I recorded a stream few days ago with 720 successfully

MrBrax commented 2 years ago

1651780821500

right, so it's this issue

make the quality like "720p60 720p best" if you always want it to record, like a fallback

dabenzel commented 2 years ago

yeah, but what the heck is 48p... best is the easiest choice but consumes more space, so I've tried to take 720p

MrBrax commented 2 years ago

sure, but if you don't put best in, you won't get a stream at all if 720p is not possible

48 is what they have set their frame rate to, not sure if it's possible to set some kind of wildcard

MrBrax commented 2 years ago

https://streamlink.github.io/cli.html#cmdoption-stream-sorting-excludes

this might work as an option value, but seems pretty complicated

dabenzel commented 2 years ago

how about an input-box per stream for "extra" streamlink options?

MrBrax commented 2 years ago

1651869862516

maybe, the arg format is just a bit specific