2023-08-12, 04:12 PM
I am looking for help with getting M3U liveTV to work on my windows dev setup. I am able to view channels for my m3u iptv provider and have verified the streams being loaded by jellyfin are valid. I think when the live stream is being loaded / copied to the shared stream there an issue but am not sure based on exception thrown as pretty generic.
I have a Visual Studio project runnon on a windows box using the .sln in the git repo. server version is 10.9.0. I was not able to build that project with jellyfin-web served from it so run jellyfin-web seperatly then connect to my local 8096 server from that web client on 8080. not sure I set that up correct for my dev environment but it works. I can use Jellyfin normal with my library files streaming correctly from the web client. I was not able to use the -InstallFFMEPG option on my server but manually downloaded (what I think is correct version) the jellyfin windows compiled FFMPEG and pointed to it from Jellyfin config. I also have number of tunors set to 10 to make sure the code to check that limit is not hit and streaming would occur.
I have traced as far as
in SharedHttpStream.cs and it seems to be where issue starts at - but am not sure. It looks like the code to copy over the stream from the iptv url is not working. I am wondering if there is maybe a 'RAW' mode or something for iptv streams I am not setting? or permissions in windows on target folder?
any help would be appreciated.
I have a Visual Studio project runnon on a windows box using the .sln in the git repo. server version is 10.9.0. I was not able to build that project with jellyfin-web served from it so run jellyfin-web seperatly then connect to my local 8096 server from that web client on 8080. not sure I set that up correct for my dev environment but it works. I can use Jellyfin normal with my library files streaming correctly from the web client. I was not able to use the -InstallFFMEPG option on my server but manually downloaded (what I think is correct version) the jellyfin windows compiled FFMPEG and pointed to it from Jellyfin config. I also have number of tunors set to 10 to make sure the code to check that limit is not hit and streaming would occur.
I have traced as far as
Code:
await StreamHelper.CopyToAsync(
stream,
fileStream,
IODefaults.CopyToBufferSize,
() => Resolve(openTaskCompletionSource),
cancellationToken).ConfigureAwait(false);
in SharedHttpStream.cs and it seems to be where issue starts at - but am not sure. It looks like the code to copy over the stream from the iptv url is not working. I am wondering if there is maybe a 'RAW' mode or something for iptv streams I am not setting? or permissions in windows on target folder?
Code:
[12:57:26] [INF] [69] Emby.Server.Implementations.LiveTv.TunerHosts.M3UTunerHost: Opening SharedHttpStream Live stream from https://lb.privatevps.org/play/<NOTREALURL>MAu_pFImttgCagZVRwrcqya-quaFne6
[12:57:28] [INF] [60] Emby.Server.Implementations.LiveTv.TunerHosts.M3UTunerHost: Beginning SharedHttpStream stream to C:\Users\windo\AppData\Local\jellyfin\cache\transcodes\0f2d014b559b4199965a41e0750585bb.ts
[12:57:29] [WRN] [69] Emby.Server.Implementations.LiveTv.TunerHosts.M3UTunerHost: Zero bytes copied from stream SharedHttpStream to C:\Users\windo\AppData\Local\jellyfin\cache\transcodes\0f2d014b559b4199965a41e0750585bb.ts but no exception raised
[12:57:29] [INF] [60] Emby.Server.Implementations.LiveTv.TunerHosts.M3UTunerHost: Deleting temp file C:\Users\windo\AppData\Local\jellyfin\cache\transcodes\0f2d014b559b4199965a41e0750585bb.ts
[12:57:30] [ERR] [69] Emby.Server.Implementations.LiveTv.TunerHosts.M3UTunerHost: Error opening tuner
System.IO.EndOfStreamException: Zero bytes copied from stream SharedHttpStream
at Emby.Server.Implementations.LiveTv.TunerHosts.SharedHttpStream.Open(CancellationToken openCancellationToken)
any help would be appreciated.