MrBrax / LiveStreamDVR

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

Lives don't automatically record #510

Closed Flora345 closed 3 months ago

Flora345 commented 3 months ago

*Describe the bug

Lives don't automatically record, I have to force recording to capture a stream. All subscriptions are set up correctly.

Channels go live, but they don't download.

Is that normal?

I see nothing wrong in the logs.

Thanks

MrBrax commented 3 months ago

can you check the capture logs in the logs/software folder?

Flora345 commented 3 months ago

can you check the capture logs in the logs/software folder?

capture_ninavonnebenan_51269783885_stdout.log :

$ /home/node/.local/share/virtualenvs/twitchautomator-rNbiFSV2/bin/streamlink --hls-live-edge 99999 --stream-timeout 200 --stream-segment-timeout 200 --stream-segment-threads 5 --ffmpeg-fout mpegts --twitch-disable-hosting --twitch-disable-ads --twitch-disable-reruns --retry-streams 10 --retry-max 5 -o /usr/local/share/twitchautomator/data/cache/capture/ninavonnebenan_51269783885_2024-06-08_00-26-50.ts --url https://twitch.tv/ninavonnebenan --default-stream 720p60,best [cli][info] streamlink is running as root! Be careful! [cli][info] Found matching plugin twitch for URL https://twitch.tv/ninavonnebenan [cli][info] Available streams: audio_only, 160p (worst), 360p, 480p, 720p60, 900p60 (best) [cli][info] Opening stream: 720p60 (hls) [cli][info] Writing output to /usr/local/share/twitchautomator/data/cache/capture/ninavonnebenan_51269783885_2024-06-08_00-26-50.ts [plugins.twitch][info] Will skip ad segments [plugins.twitch][info] Waiting for pre-roll ads to finish, be patient [stream.hls][info] Filtering out segments and pausing stream output [stream.hls][warning] Encountered a stream discontinuity. This is unsupported and will result in incoherent output data. [stream.hls][info] Resuming stream output [cli][info] Stream ended [cli][info] Closing currently open stream...

capture_ninavonnebenan_51269783885_stderr.log :

$ /home/node/.local/share/virtualenvs/twitchautomator-rNbiFSV2/bin/streamlink --hls-live-edge 99999 --stream-timeout 200 --stream-segment-timeout 200 --stream-segment-threads 5 --ffmpeg-fout mpegts --twitch-disable-hosting --twitch-disable-ads --twitch-disable-reruns --retry-streams 10 --retry-max 5 -o /usr/local/share/twitchautomator/data/cache/capture/ninavonnebenan_51269783885_2024-06-08_00-26-50.ts --url https://twitch.tv/ninavonnebenan --default-stream 720p60,best

Thanks for your help

MrBrax commented 3 months ago

is that launched manually?

do the channels show as live in the sidebar?

is the output very short?

Flora345 commented 3 months ago

Yes it was when I forced the capture

Yes it show live in the sidebar

Yes but it was because I stopped the forced capture, it work fine with long recording

MrBrax commented 3 months ago

quite odd then, there must be something in the main logs pointing to what's going on. have you disabled capture or any other weird stuff in the channel options?

Flora345 commented 3 months ago

image

I don't think so, just added a new channel here the logs :

2024-06-08 12:14:42 dvr.saveChannelsConfig info Saving channel config
2024-06-08 12:14:42 tw.channel.loadAbstract warn Channel traytonlol is online, stale?
2024-06-08 12:14:42 tw.channel.loadAbstract info Channel traytonlol has no logo during load, fetching
2024-06-08 12:14:42 tw.channel.fetchChannelLogo info Fetching channel logo for 81446331 (traytonlol)
2024-06-08 12:14:42 helper.imageThumbnail info Run thumbnail on /usr/local/share/twitchautomator/data/cache/public/avatars/81446331.jpeg
2024-06-08 12:14:42 tw.ch.subWebhook info Subscribe to 81446331:stream.online (traytonlol)
2024-06-08 12:14:43 tw.ch.subWebhook info Subscribe request for 81446331:stream.online (traytonlol) sent, awaiting response...
2024-06-08 12:14:44 hook.HookTwitch info Hook called with message ID f9bc038c-b83d-4ece-ac4e-222bdc0e5714, s-version 1, s-type stream.online, b false (m-retry 0, m-type webhook_callback_verification, m-date 2024-06-08T10:14:43.003889423Z)
2024-06-08 12:14:44 hook.HookTwitch info Challenge received for 81446331:stream.online (traytonlol) (3108e88a-c921-44f7-8870-ed4107fc8699), retry 0
2024-06-08 12:14:44 hook.HookTwitch success Challenge completed, subscription active for 81446331:stream.online (traytonlol) (3108e88a-c921-44f7-8870-ed4107fc8699), retry 0.
2024-06-08 12:14:44 tw.ch.subWebhook success Subscription for 81446331:stream.online (traytonlol) active.
2024-06-08 12:14:44 tw.ch.subWebhook info Subscribe to 81446331:stream.offline (traytonlol)
2024-06-08 12:14:44 tw.ch.subWebhook info Subscribe request for 81446331:stream.offline (traytonlol) sent, awaiting response...
2024-06-08 12:14:45 hook.HookTwitch info Hook called with message ID 9d84d9b6-a07e-4cb3-9b20-028aa614f343, s-version 1, s-type stream.offline, b false (m-retry 0, m-type webhook_callback_verification, m-date 2024-06-08T10:14:44.467880455Z)
2024-06-08 12:14:45 hook.HookTwitch info Challenge received for 81446331:stream.offline (traytonlol) (2c4dd007-9134-4046-ac80-1f1c4a1190af), retry 0
2024-06-08 12:14:45 hook.HookTwitch success Challenge completed, subscription active for 81446331:stream.offline (traytonlol) (2c4dd007-9134-4046-ac80-1f1c4a1190af), retry 0.
2024-06-08 12:14:45 tw.ch.subWebhook success Subscription for 81446331:stream.offline (traytonlol) active.
2024-06-08 12:14:45 tw.ch.subWebhook info Subscribe to 81446331:channel.update (traytonlol)
2024-06-08 12:14:46 tw.ch.subWebhook info Subscribe request for 81446331:channel.update (traytonlol) sent, awaiting response...
2024-06-08 12:14:47 hook.HookTwitch info Hook called with message ID 9364c1ac-acd9-4102-88da-2d16290c2eec, s-version 1, s-type channel.update, b false (m-retry 0, m-type webhook_callback_verification, m-date 2024-06-08T10:14:45.925843517Z)
2024-06-08 12:14:47 hook.HookTwitch info Challenge received for 81446331:channel.update (traytonlol) (ab7258d0-c351-469f-b4a0-71647d2d9be0), retry 0
2024-06-08 12:14:47 hook.HookTwitch success Challenge completed, subscription active for 81446331:channel.update (traytonlol) (ab7258d0-c351-469f-b4a0-71647d2d9be0), retry 0.
2024-06-08 12:14:47 tw.ch.subWebhook success Subscription for 81446331:channel.update (traytonlol) active.
2024-06-08 12:14:47 tw.channel.getStreams info Querying streams for streamer id 81446331 returned 1 streams
2024-06-08 12:14:47 route.channels.add success Created channel: traytonlol

MrBrax commented 3 months ago

is this the first time the channel is live, or did you wait for it to go live? if you add a subscription to a channel while it's live it will miss that recording

Flora345 commented 3 months ago

Oh yes this is the first time, so it won't record if the live already started ? Even if I restart the server ? Thanks a lot for you help

Flora345 commented 3 months ago

is this the first time the channel is live, or did you wait for it to go live? if you add a subscription to a channel while it's live it will miss that recording

You was right it working if the live not started, thanks for you help !

MrBrax commented 3 months ago

to add to that, if the streamer changes title or game, it will start recording from that point with the previous video missing