Jellyfin Forum
Live TV Recordings playback issues error 500 - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+--- Thread: Live TV Recordings playback issues error 500 (/t-live-tv-recordings-playback-issues-error-500)



Live TV Recordings playback issues error 500 - Wolfman726 - 2024-02-08

Hi all. I am having issues playing back live recordings. Latest version 10.8.13 installed on a Windows 7 PC. Viewing live TV works perfectly fine. Trying to play back a recording results in " This client isn't compatible with the media and the server isn't sending a compatible media format.". A 500 error code is generated i the log file.

I am running NextPVR on a separate machine than Jellyfin. I tried having it installed on same machine and a similar error was produced but with a "400" error code.

I have tried everything i can think of and cannot find a fix.

Any suggestions would be greatly appreciated! See below for log file.



/videos/a369cfc6-d6f0-e1e6-0f42-771d3b9e2db4/hls1/main/0.ts

{"Protocol":1,"Id":"2278","Path":"http://192.168.10.229:8866/live?recording=2278","EncoderPath":null,"EncoderProtocol":null,"Type":0,"Container":null,"Size":null,"Name":null,"IsRemote":false,"ETag":null,"RunTimeTicks":216570000000,"ReadAtNativeFramerate":false,"IgnoreDts":false,"IgnoreIndex":false,"GenPtsInput":false,"SupportsTranscoding":true,"SupportsDirectStream":true,"SupportsDirectPlay":true,"IsInfiniteStream":true,"RequiresOpening":false,"OpenToken":null,"RequiresClosing":false,"LiveStreamId":null,"BufferMs":null,"RequiresLooping":false,"SupportsProbing":true,"VideoType":null,"IsoType":null,"Video3DFormat":null,"MediaStreams":[],"MediaAttachments":[],"Formats":[],"Bitrate":null,"Timestamp":null,"RequiredHttpHeaders":{},"TranscodingUrl":null,"TranscodingSubProtocol":null,"TranscodingContainer":null,"AnalyzeDurationMs":null,"DefaultAudioStreamIndex":null,"DefaultSubtitleStreamIndex":null}

ffmpeg -analyzeduration 200M -autorotate 0 -i "http://192.168.10.229:8866/live?recording=2278" -map_metadata -1 -map_chapters -1 -threads 0 -sn  -copyts -avoid_negative_ts disabled -max_muxing_queue_size 2048 -f hls -max_delay 5000000 -hls_time 3 -hls_segment_type mpegts -start_number 0 -hls_segment_filename "C:\ProgramData\Jellyfin\Server\transcodes\1cb1fd67d06ebad80437d5933240fb95%d.ts" -hls_playlist_type vod -hls_list_size 0 -y "C:\ProgramData\Jellyfin\Server\transcodes\1cb1fd67d06ebad80437d5933240fb95.m3u8"


ffmpeg version 6.0.1-Jellyfin Copyright © 2000-2023 the FFmpeg developers
  built with gcc 12-win32 (GCC)
  configuration: --prefix=/opt/ffmpeg --arch=x86_64 --target-os=mingw32 --cross-prefix=x86_64-w64-mingw32- --pkg-config=pkg-config --pkg-config-flags=--static --extra-version=Jellyfin --disable-ffplay --disable-debug --disable-doc --disable-sdl2 --disable-ptx-compression --disable-w32threads --enable-pthreads --enable-shared --enable-lto --enable-gpl --enable-version3 --enable-schannel --enable-iconv --enable-libxml2 --enable-zlib --enable-lzma --enable-gmp --enable-chromaprint --enable-libfreetype --enable-libfribidi --enable-libfontconfig --enable-libass --enable-libbluray --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libopenmpt --enable-libwebp --enable-libvpx --enable-libzimg --enable-libx264 --enable-libx265 --enable-libsvtav1 --enable-libdav1d --enable-libfdk-aac --enable-opencl --enable-dxva2 --enable-d3d11va --enable-amf --enable-libvpl --enable-ffnvcodec --enable-cuda --enable-cuda-llvm --enable-cuvid --enable-nvdec --enable-nvenc
  libavutil      58.  2.100 / 58.  2.100
  libavcodec    60.  3.100 / 60.  3.100
  libavformat    60.  3.100 / 60.  3.100
  libavdevice    60.  1.100 / 60.  1.100
  libavfilter    9.  3.100 /  9.  3.100
  libswscale      7.  1.100 /  7.  1.100
  libswresample  4. 10.100 /  4. 10.100
  libpostproc    57.  1.100 / 57.  1.100
[http @ 00000000000fc500] HTTP error 500 Internal Server Error
http://192.168.10.229:8866/live?recording=2278: Server returned 5XX Server Error reply


RE: Live TV Recordings playback issues error 500 - tmsrxzar - 2024-02-08

since nextpvr is having the issue you will almost certainly find better support from their forum https://forums.nextpvr.com

i would start by trying to open that url in a browser, VLC or MPV though, expectation is it will still return the 500


RE: Live TV Recordings playback issues error 500 - Wolfman726 - 2024-02-08

(2024-02-08, 04:07 AM)tmsrxzar Wrote: since nextpvr is having the issue you will almost certainly find better support from their forum https://forums.nextpvr.com

i would start by trying to open that url in a browser, VLC or MPV though, expectation is it will still return the 500

Thanks for your suggestion! NextPVR plays the files fine. I can play thru there or download and play the recorded file. Using the URL does seem to work.


RE: Live TV Recordings playback issues error 500 - tmsrxzar - 2024-02-08

wading into unfamiliar waters but...

if it works outside of jellyfin, is there any method to see the logs on nextpvr to explain the 500
or see what headers are sent from jellyfin then replicate with curl to find something being sent that may be causing an error
possibly re-authenticate the plugin?

i have never used nextpvr and only once used jellyfin for live tv with iptv so these are just things i would be attempting if i were in your situation


RE: Live TV Recordings playback issues error 500 - TheDreadPirate - 2024-02-08

Going to echo what tmsrxzar said. NextPVR is the probably source of the problem in some way or another. 500 errors indicates an upstream server problem. Maybe something to do with the Jellyfin user agent?

When you manually go to that URL what format is it sending it as?


RE: Live TV Recordings playback issues error 500 - Wolfman726 - 2024-02-08

(2024-02-08, 05:06 AM)TheDreadPirate Wrote: Going to echo what tmsrxzar said.  NextPVR is the probably source of the problem in some way or another.  500 errors indicates an upstream server problem.  Maybe something to do with the Jellyfin user agent?

When you manually go to that URL what format is it sending it as?

No errors in the NextPVR logs.

When I navigate to the URL it downloads the file right into my browser, as a normal file type. putting ts at the end lets me play it.


RE: Live TV Recordings playback issues error 500 - emveepee - 2024-03-13

You should use the NextPVR forums for support. This issue is explained here, https://forums.nextpvr.com/showthread.php?tid=63361&pid=564960#pid564960 As explained it is not a NextPVR issue.

If Jellyfin ever adds a callback so the addon could provide a new token rather that static URL's the addon could be updated.

Martin