Closed articuno1au closed 2 years ago
I don't have TVHeadend set up so I'm not able to test this, but as far as I can tell the plugin isn't trying to do anything that isn't implemented in Jellyfin 10.8.
Can you try restarting Jellyfin and seeing if the issue persists?
Hey @crobibero,
Thanks for getting back to me.
I restarted my docker host and recreated the container just for completeness.
The same stack is still thrown. It kind of looks like an autowiring issue in the setter at https://github.com/jellyfin/jellyfin-plugin-tvheadend/blob/master/TVHeadEnd/LiveTvService.cs#L453
return new MediaSourceInfo
{
Id = channelId,
Path = _htsConnectionHandler.GetHttpBaseUrl() + ticket.Url,
Protocol = MediaProtocol.Http,
MediaStreams = new List<MediaStream>
{
new MediaStream
{
Type = MediaStreamType.Video,
// Set the index to -1 because we don't know the exact index of the video stream within the container
Index = -1,
// Set to true if unknown to enable deinterlacing
IsInterlaced = true
},
new MediaStream
{
Type = MediaStreamType.Audio,
// Set the index to -1 because we don't know the exact index of the audio stream within the container
Index = -1
}
}
};
I'm not sure how I can help debugging this further but if you have any ideas, I'm happy to try them.
Getting the same issue here, the plugin is broken since the upgrade to 10.8 with that same error
same problem with me: plugin broken with 10.8.
also the same problem: unable to open any stream from TVHeadend with jellyfin 10.8
Yeah, everyone using the plugin is going to be having this problem. It's not environmental, it's that there's a method that the plugin uses that is no longer exposed in 10.8.0. Until that gets fixed, it's going to keep breaking.
The code in current master (001d943) is more or less working, contrary to the current release version. I build it myself and copied the dll to a jellyfin docker container (10.8) and streaming works. I would not necessarily recommend using it in production, as it is not stable yet (e.g. accessing recordings do not seem to work yet, at least locally on my server, though it does on my raspberry pi).
So my take is, that it probably is already fixed, but not yet released.
My steps for building it myself:
apt install dotnet-sdk-6.0
git clone https://github.com/jellyfin/jellyfin-plugin-tvheadend.git
cd jellyfin-plugin-tvheadend
dotnet publish --configuration Release --output bin
cp bin/TVHeadEnd.dll /path/to/compose/project/jellyfin/config/data/plugins/TVHeadend_10.0.0.0/
docker compose -f /path/to/compose/project/jellyfin/docker-compose.yml restart
Build System: Linux Mint Cinnamon 20.3 uname -a: Linux Test456 5.13.0-44-generic #49~20.04.1-Ubuntu SMP Wed May 18 18:44:28 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Jellyfin Server (Image: lscr.io/linuxserver/jellyfin): see Build System, Jellyfin Version: 10.8
Raspberry Pi 4 (arm64), Raspberry Pi OS, Jellyfin Version: 10.8 uname -a: Linux raspberrypi 5.15.32-v8+ #1538 SMP PREEMPT Thu Mar 31 19:40:39 BST 2022 aarch64 GNU/Linux
Surprised to hear that master works, maybe the plugin jus needs a re-release as that commit doesn't change anything related to the issue.
I will cut a release, hopefully the issue will be fixed
Nice find @mytlogos.
I made a rather amateur mistake and checked the source against master. I should have been looking at the tag.
It's good you got it working, though I think it might actually have been this commit that fixed it: https://github.com/jellyfin/jellyfin-plugin-tvheadend/pull/46/files?diff=split&w=0#diff-e24f76995d3ebe29c653afc04d98ba67fb7adac235452294790e443292895adcR453
I attempted to use the DLL as you suggested, but I'm getting an FFmpeg issue now. So it seems to be getting further, but not fixed for me just yet.
@crobibero - Awesome. Thank you :)
updating to plugin v11 fixed it for me. Thx!
Fixed for me also.
The FFmpeg issue continues for me, but not related to this. Going to mark it as closed.
Thanks for cutting a release for us @crobibero :clap:
The latest does indeed resolve the method issue, although streaming anything still isn't working. No errors anywhere so I'm not sure what the issue is now, I'll look into it more later.
Jellyfin Version: 10.8.0 (Latest) Plugin Version: 10.0.0 (Latest) Environment: Docker
The following exception is thrown when attempting to start a stream from TV Headend