jellyfin / jellyfin-media-player

Jellyfin Desktop Client
GNU General Public License v2.0
3.21k stars 321 forks source link

Live TV not playing on Jellyfin Media player while Firefox works #278

Open jluttine opened 2 years ago

jluttine commented 2 years ago

Describe the bug

Watching Live TV via Firefox works, but not via Jellyfin Media Player. In Jellyfin Media Player I'm getting the following error message: "media error: loading failed"

Logs: jelly.log

Edit: I have tvheadend plugin installed.

To Reproduce Steps to reproduce the behavior:

  1. Go to Live TV
  2. Click "play" on any channel
  3. Wait...
  4. See error

Expected behavior

The Live TV should start playing.

Desktop (please complete the following information):

mekwall commented 2 years ago

Live TV works on Google Chrome and MS Edge as well but is broken in the media player. It doesn't even start to load in the video player and no error is shown either.

watn3y commented 1 year ago

Same problem here. Firefox transcodes, Edge and Chrome direct play and JF Media Player buffers forever.

jluttine commented 1 year ago

Update: With Jellyfin 10.8.10, I still get the error in JMP but it offers to try with transcoding and then it works. But it won't direct play. Perhaps that's a separate issue?

tedhinklater commented 11 months ago

I have the same situation, if I use Jellyfin Media Player to watch Live TV it says "Playback failed with error "loading failed". Retry with transcode?" and transcode works. If I use Firefox, it provides a Direct Stream.

From the JF logs, this is from using Firefox:

C:\Users\ted\Apps\jellyfinffmpeg5136\ffmpeg.exe -analyzeduration 3000000 -user_agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.85 Safari/537.36" -fflags +igndts+genpts -i "http://localhost:8409/iptv/channel/10.m3u8?mode=segmenter" -map_metadata -1 -map_chapters -1 -threads 0 -sn -codec:v:0 copy -start_at_zero -flags -global_header -codec:a:0 libfdk_aac -ac 2 -ab 256000 -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_base_url "hls/00fb95b2e1dedbb531b487201086d63c/" -hls_segment_filename "C:\ProgramData\Jellyfin\Server\transcodes\00fb95b2e1dedbb531b487201086d63c%d.ts" -hls_playlist_type event -hls_list_size 0 -y "C:\ProgramData\Jellyfin\Server\transcodes\00fb95b2e1dedbb531b487201086d63c.m3u8"

ffmpeg version 5.1.3-Jellyfin Copyright (c) 2000-2022 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-libs='-lfftw3f -lstdc++' --extra-cflags=-DCHROMAPRINT_NODLL --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-libmfx --enable-ffnvcodec --enable-cuda --enable-cuda-llvm --enable-cuvid --enable-nvdec --enable-nvenc libavutil 57. 28.100 / 57. 28.100 libavcodec 59. 37.100 / 59. 37.100 libavformat 59. 27.100 / 59. 27.100 libavdevice 59. 7.100 / 59. 7.100 libavfilter 8. 44.100 / 8. 44.100 libswscale 6. 7.100 / 6. 7.100 libswresample 4. 7.100 / 4. 7.100 libpostproc 56. 6.100 / 56. 6.100 [hls @ 0000019b5a097800] Skip ('#EXT-X-VERSION:3') [hls @ 0000019b5a097800] Opening 'http://localhost:8409/iptv/session/10/hls.m3u8' for reading [hls @ 0000019b5a097800] Skip ('#EXT-X-VERSION:6')

and this is from using JF Media Player:

C:\Users\ted\Apps\jellyfinffmpeg5136\ffmpeg.exe -analyzeduration 3000000 -user_agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.85 Safari/537.36" -fflags +igndts -init_hw_device d3d11va=dx11:,vendor=0x1002 -init_hw_device opencl=ocl@dx11 -filter_hw_device ocl -hwaccel d3d11va -hwaccel_output_format d3d11 -autorotate 0 -i "http://localhost:8409/iptv/channel/9.m3u8?mode=segmenter" -autoscale 0 -map_metadata -1 -map_chapters -1 -threads 0 -sn -codec:v:0 h264_amf -quality speed -rc cbr -qmin 0 -qmax 32 -b:v 20000000 -maxrate 20000000 -bufsize 40000000 -profile:v:0 main -level 42 -g:v:0 72 -keyint_min:v:0 72 -vf "setparams=color_primaries=bt709:color_trc=bt709:colorspace=bt709,hwmap=derive_device=opencl,scale_opencl=format=nv12,hwmap=derive_device=d3d11va:reverse=1,format=d3d11" -flags -global_header -codec:a:0 copy -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_base_url "hls/ffc73b3884f31df73e16c2e9742b7465/" -hls_segment_filename "C:\ProgramData\Jellyfin\Server\transcodes\ffc73b3884f31df73e16c2e9742b7465%d.ts" -hls_playlist_type event -hls_list_size 0 -y "C:\ProgramData\Jellyfin\Server\transcodes\ffc73b3884f31df73e16c2e9742b7465.m3u8"

ffmpeg version 5.1.3-Jellyfin Copyright (c) 2000-2022 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-libs='-lfftw3f -lstdc++' --extra-cflags=-DCHROMAPRINT_NODLL --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-libmfx --enable-ffnvcodec --enable-cuda --enable-cuda-llvm --enable-cuvid --enable-nvdec --enable-nvenc libavutil 57. 28.100 / 57. 28.100 libavcodec 59. 37.100 / 59. 37.100 libavformat 59. 27.100 / 59. 27.100 libavdevice 59. 7.100 / 59. 7.100 libavfilter 8. 44.100 / 8. 44.100 libswscale 6. 7.100 / 6. 7.100 libswresample 4. 7.100 / 4. 7.100 libpostproc 56. 6.100 / 56. 6.100 [AVHWDeviceContext @ 000001f00f6170c0] Using device 1002:73ff (AMD Radeon RX 6600). [hls @ 000001f00f61d6c0] Skip ('#EXT-X-VERSION:3') [hls @ 000001f00f61d6c0] Opening 'http://localhost:8409/iptv/session/9/hls.m3u8' for reading [hls @ 000001f00f61d6c0] Skip ('#EXT-X-VERSION:6')

matthewpritchett commented 9 months ago

I’m seeing the same issue with live tv