Stream reactivation script - Printable Version +- Jellyfin Forum (https://forum.jellyfin.org) +-- Forum: Off Topic (https://forum.jellyfin.org/f-off-topic) +--- Forum: General Discussion (https://forum.jellyfin.org/f-general-discussion) +--- Thread: Stream reactivation script (/t-stream-reactivation-script) Pages:
1
2
|
Stream reactivation script - fdrslegs - 2024-05-06 Hello Everyone! I do not know if this is even possible, but I think it's a really cool idea. I have no script building/programming experience at all except my high school java script class. I've been asking chatGPT to create a script for me and it is not working so I'm here now to see if any of you have any thoughts on how to achieve this. The idea. I am using the windows desktop application of Jellyfin Media Player to launch live tv channels I create using dizqueTV and xteve. After a while of watching a tv channel, Jellyfin will stop playing the video all together. I'm never around to see when the fail actually happened to check the log, so I do not know exactly what is happening at that point. I would like to make a script that could monitor the jellyfin media player's live tv stream and see that it is active and once the stream fails, the script recognizes this and restarts the channel. Is this even possible or am I just having fun talking to a robot about scripts ? Thanks everyone. EDIT: for anyone else looking for a script solution I found one that at least works with my use case. I got a program called Autohotkey v2.0 and created a script in that to look for the play button and click it. here is a paste bin of the script. there is still comments for testing you can remove and feel free to edit it to your hearts desire. https://pastebin.com/c76mM891 RE: Stream reactivation script - TheDreadPirate - 2024-05-06 Check if your live TV is being transcoded. If it is, you can tail the ffmpeg log and monitor when it stops. BUT, if it is transcoding you should check if you are running out of disk space since transcodes are written to disk. RE: Stream reactivation script - fdrslegs - 2024-05-06 I've seen in the logs that it is transcoding. I'm not sure why though as I have used Tdarr to make everything the same, but that is neither here nor there. Wich disk are you talking about running out of space? The one on my server side or the one that is running the jellyfin media player applications ? RE: Stream reactivation script - TheDreadPirate - 2024-05-06 On the server. In Dashboard > Playback there is a field that shows you where transcodes are written to. RE: Stream reactivation script - fdrslegs - 2024-05-07 Thank you! I'll see if i can tell if that is what is happening or not. If it is what is causing it to crash, is there a way to increase the limit of the transcode folder? Where mine is located there is 6TB available and I don't think it's filling that up haha. Is there a setting hiding somewhere that would limit this? I am running this on TrueNAS Scale using the TrueNAS version from their "app" store. RE: Stream reactivation script - TheDreadPirate - 2024-05-07 No. It just uses whatever is available on the disk. So probably not the cause. Can you share the server and any ffmpeg logs there are via pastebin? RE: Stream reactivation script - fdrslegs - 2024-05-07 Sure thing! I enabled debug logs yesterday to try and get more data. So this is just a few seconds of me launching a video. If you need me to disable to debug and go back to normal, i will. I did see over night it deleting the transcode folder as well. This is the regular logs. https://pastebin.com/0VKw61T9 ffmpeg logs from the same time period https://pastebin.com/3aF6YD0n I also found a thread from last year talking about "jellyfin ignoring transcode options" and a user said they had unchecked all the options under user that would allow transcoding/encoding to happen. I did that this morning before these logs were created and it appears to still be doing it. You even made a guest appearance in the thread! haha If there is any other information you need, just let me know and i'll do my best to get it. I'm still rather ignorant when it comes to this whole jam and if I could get this working without failing or a script to bring it back up. that would be amazing. P.S. I never really use pastebin or forums for that matter and I hope my links worked. RE: Stream reactivation script - TheDreadPirate - 2024-05-07 From what you provided, I see nothing wrong. The ffmpeg log indicates that it is remuxing without transcoding. RE: Stream reactivation script - fdrslegs - 2024-05-07 that's good to know, however, it did do this last night around the time i believe the stream just stopped. https://pastebin.com/zikr2jH1 i'll let it run again and see if starts deleting stuff again. RE: Stream reactivation script - TheDreadPirate - 2024-05-07 Same as the previous log. No indication that the server stopped the stream. Just a report that the client stopped. Can you find and share the jellyfin media player log? I'm pretty sure it reset the log each time you start so you'd need to have the problem happen again before sharing. C:\Users\yourUser\appdata\local\jellyfinmediaplayer |