Jellyfin Forum
Can't open show on TV - 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: Can't open show on TV (/t-can-t-open-show-on-tv)

Pages: 1 2


Can't open show on TV - ohshitgorillas - 2023-10-20

I am running Jellyfin inside of Docker on a headless Ubuntu Server with a dedicated Nvidia GTX 1660 Ti for hardware decoding. I am trying to play the media via the Jellyfin app on my Roku TV. Both are connected to the same LAN network.

When I try to play the file, I get the error "An error was encountered while playing this item." and the stream never starts. There is no ffmpeg log.

Code:
[2023-10-19 20:19:30.494 -07:00] [INF] [135] Jellyfin.Api.Helpers.MediaInfoHelper: User policy for "media". EnablePlaybackRemuxing: True EnableVideoPlaybackTranscoding: True EnableAudioPlaybackTranscoding: True
[2023-10-19 20:19:30.494 -07:00] [INF] [135] Jellyfin.Api.Helpers.MediaInfoHelper: RemoteClientBitrateLimit: 15000000, RemoteIp: "10.0.0.27", IsInLocalNetwork: True
[2023-10-19 20:19:30.494 -07:00] [INF] [135] Jellyfin.Api.Helpers.MediaInfoHelper: StreamBuilder.BuildVideoItem( Profile="Anonymous Profile", Path="/tv/The Witcher/The.Witcher.S03.2160p.COMPLETE.Dolby.Vision.And.HDR10.ENG.And.ESP.LATINO.Multi.Sub.DDP5.1.Atmos.DV.x265.MP4-BEN.THE.MEN/The.Witcher.S03E02.2160p.Dolby.Vision.And.HDR10.ENG.And.ESP.LATINO.mp4", AudioStreamIndex=1, SubtitleStreamIndex=-1 ) => ( PlayMethod=DirectPlay, TranscodeReason=0 ) "media:/videos/a6f88457-a70f-a36c-b2d0-66dd3927d1ac/stream.mov?MediaSourceId=a6f88457a70fa36cb2d066dd3927d1ac&Static=true&VideoCodec=hevc&AudioCodec=eac3&AudioStreamIndex=1&api_key=<token>&SubtitleMethod=Encode&Tag=8fd12fc4c88ddc61e09d047883fc9c7e"
[2023-10-19 20:19:31.366 -07:00] [INF] [87] Emby.Server.Implementations.Session.SessionManager: Playback stopped reported by app "Jellyfin Roku" "1.6.6" playing "Unbound". Stopped at "0" ms
[2023-10-19 20:19:34.148 -07:00] [INF] [135] Jellyfin.Api.Helpers.MediaInfoHelper: User policy for "media". EnablePlaybackRemuxing: True EnableVideoPlaybackTranscoding: True EnableAudioPlaybackTranscoding: True
[2023-10-19 20:19:34.148 -07:00] [INF] [135] Jellyfin.Api.Helpers.MediaInfoHelper: RemoteClientBitrateLimit: 15000000, RemoteIp: "10.0.0.27", IsInLocalNetwork: True
[2023-10-19 20:19:34.149 -07:00] [INF] [135] Jellyfin.Api.Helpers.MediaInfoHelper: StreamBuilder.BuildVideoItem( Profile="Anonymous Profile", Path="/tv/The Witcher/The.Witcher.S03.2160p.COMPLETE.Dolby.Vision.And.HDR10.ENG.And.ESP.LATINO.Multi.Sub.DDP5.1.Atmos.DV.x265.MP4-BEN.THE.MEN/The.Witcher.S03E02.2160p.Dolby.Vision.And.HDR10.ENG.And.ESP.LATINO.mp4", AudioStreamIndex=1, SubtitleStreamIndex=-1 ) => ( PlayMethod=DirectPlay, TranscodeReason=0 ) "media:/videos/a6f88457-a70f-a36c-b2d0-66dd3927d1ac/stream.mov?MediaSourceId=a6f88457a70fa36cb2d066dd3927d1ac&Static=true&VideoCodec=hevc&AudioCodec=eac3&AudioStreamIndex=1&api_key=<token>&SubtitleMethod=Encode&Tag=8fd12fc4c88ddc61e09d047883fc9c7e"
[2023-10-19 20:19:35.112 -07:00] [INF] [279] Emby.Server.Implementations.Session.SessionManager: Playback stopped reported by app "Jellyfin Roku" "1.6.6" playing "Unbound". Stopped at "0" ms
[2023-10-19 20:26:42.930 -07:00] [INF] [32] Jellyfin.Networking.Manager.NetworkManager: Defined LAN addresses : "[10.0.0.0/24]"
[2023-10-19 20:26:42.930 -07:00] [INF] [32] Jellyfin.Networking.Manager.NetworkManager: Defined LAN exclusions : "[]"
[2023-10-19 20:26:42.930 -07:00] [INF] [32] Jellyfin.Networking.Manager.NetworkManager: Using LAN addresses: "[10.0.0.0/24]"
[2023-10-19 20:26:44.933 -07:00] [INF] [32] Jellyfin.Networking.Manager.NetworkManager: Defined LAN addresses : "[10.0.0.0/24]"
[2023-10-19 20:26:44.933 -07:00] [INF] [32] Jellyfin.Networking.Manager.NetworkManager: Defined LAN exclusions : "[]"
[2023-10-19 20:26:44.933 -07:00] [INF] [32] Jellyfin.Networking.Manager.NetworkManager: Using LAN addresses: "[10.0.0.0/24]"

Any ideas?

I have already tried limiting the client's bitrate to 20M which helped with a previous problem but hasn't done anything to fix this one.

I should mention that the files play fine on Plex.

Edit: I just tried on my tablet and got a more descriptive error: "The client isn't compatible with the media and the server isn't sending a compatible media format."

ffmpeg log: https://00.yt/2p
jellyfin log: https://00.yt/2q


RE: Can't open show on TV - TheDreadPirate - 2023-10-20

It can't find or use the GPU. Did you pass the GPU into the container?

https://jellyfin.org/docs/general/administration/hardware-acceleration/nvidia/#configure-with-linux-virtualization


RE: Can't open show on TV - ohshitgorillas - 2023-10-20

Yes, the GPU is inside the container.

Here's the full docker-compose file:

Code:
version: "2.1"
services:
  jellyfin_ddns4:
    image: sjmayotte/route53-dynamic-dns:latest
    container_name: jellyfin_ddns4
    env_file:
      - ./4.env
    restart: unless-stopped
    logging:
      driver: gelf
      options:
        gelf-address: "udp://10.0.0.1:12201"
        tag: "jellyfin_ddns4"


  jellyfin_ddns6:
    image: sjmayotte/route53-dynamic-dns:latest
    container_name: jellyfin_ddns6
    env_file:
      - ./6.env
    network_mode: host
    restart: unless-stopped
    logging:
      driver: gelf
      options:
        gelf-address: "udp://10.0.0.1:12201"
        tag: "jellyfin_ddns6"


  jellyfin:
    image: linuxserver/jellyfin:latest
    container_name: jellyfin
    runtime: nvidia
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=America/Los_Angeles
      - NVIDIA_VISIBLE_DEVICES=all
      - NVIDIA_DRIVER_CAPABILITIES=all
    volumes:
      - ./config:/config
      - /srv/media/music:/music
      - /srv/media/tv:/tv
      - /srv/media/movies:/movies
    network_mode: host
    depends_on:
      - jellyfin_ddns4
      - jellyfin_ddns6
    restart: unless-stopped

  nginx:
    container_name: nginx_jellyfin
    image: nginx:latest
    volumes:
      - ./nginx/log:/var/log/nginx
      - ./nginx/keys:/config/keys
      - ./nginx/nginx.conf:/etc/nginx/nginx.conf
    ports:
      - 42069:80
    depends_on:
      - jellyfin
    restart: unless-stopped

and checking in the container:

Code:
:: /srv/jellyfin » docker exec -it jellyfin nvidia-smi
Fri Oct 20 11:01:16 2023      
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 470.199.02   Driver Version: 470.199.02   CUDA Version: 11.4     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  NVIDIA GeForce ...  Off  | 00000000:01:00.0 Off |                  N/A |
|  0%   41C    P8     8W / 130W |      1MiB /  5944MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
                                                                              
+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|  No running processes found                                                 |
+-----------------------------------------------------------------------------+

I can also confirm that watching certain content on Jellyfin causes the GPU to kick in.

In Settings, I have enabled encoding and decoding for all available formats.


RE: Can't open show on TV - TheDreadPirate - 2023-10-20

Your driver is almost 2 years old. Try updating. The fact that it works and then suddenly can't find it. Try reseating the GPU. Not sure what it could be at this point.


RE: Can't open show on TV - ohshitgorillas - 2023-10-21

Good call on the video driver, I've updated to nvidia-535. Still doesn't work, though. I'll maybe try re-seating the GPU.

Given that Plex plays it fine without transcoding, is it likely to be a hardware-related issue?


RE: Can't open show on TV - TheDreadPirate - 2023-10-21

It wouldn't be the first time a client OS update breaks the client profiles for Jellyfin (states capabilities of device to determine when to transcode). Your device could 100% be capable of direct play but the Jellyfin client is inappropriately asking the server for a transcode.

Are you running Plex on the same server as Jellyfin?


RE: Can't open show on TV - Manly Manlison - 2023-10-21

Just a heads-up, I had issues related to FFMPEG.exe disappearing a few days ago which made my server try to transcode all my content that should have 100% direct played, and the transcode of course failed because ffmpeg.exe wasn't anywhere to be found, so try to check if it's still there, otherwise if it's not, download the pack from github: https://github.com/jellyfin/jellyfin-ffmpeg
and point JF to the new ffmpeg.exe and ffprobe.exe and see if that works Smiling-face


RE: Can't open show on TV - Deleted User - 2023-10-21

(2023-10-21, 05:10 PM)Manly Manlison Wrote: Just a heads-up, I had issues related to FFMPEG.exe disappearing a few days ago which made my server try to transcode all my content that should have 100% direct played, and the transcode of course failed because ffmpeg.exe wasn't anywhere to be found, so try to check if it's still there, otherwise if it's not, download the pack from github: https://github.com/jellyfin/jellyfin-ffmpeg
and point JF to the new ffmpeg.exe and ffprobe.exe and see if that works Smiling-face

nice of you to try and be helpful but your issue is unlikely to translate to ubuntu or docker, your solution certainly is not correct for it


RE: Can't open show on TV - Manly Manlison - 2023-10-21

(2023-10-21, 05:14 PM)000 Wrote:
(2023-10-21, 05:10 PM)Manly Manlison Wrote: Just a heads-up, I had issues related to FFMPEG.exe disappearing a few days ago which made my server try to transcode all my content that should have 100% direct played, and the transcode of course failed because ffmpeg.exe wasn't anywhere to be found, so try to check if it's still there, otherwise if it's not, download the pack from github: https://github.com/jellyfin/jellyfin-ffmpeg
and point JF to the new ffmpeg.exe and ffprobe.exe and see if that works Smiling-face

nice of you to try and be helpful but your issue is unlikely to translate to ubuntu or docker, your solution certainly is not correct for it

Yeah, my issue was Windows-related, but in my search to fix my own issue I ran into a few threads with users having similar issues on docker/ubuntu, but you're most likely right Smiling-face


RE: Can't open show on TV - Deleted User - 2023-10-21

(2023-10-21, 05:49 PM)Manly Manlison Wrote: Yeah, my issue was Windows-related, but in my search to fix my own issue I ran into a few threads with users having similar issues on docker/ubuntu, but you're most likely right Smiling-face

likely... ?

if ffmpeg were missing there would be no ffmpeg log instead of a log from ffmpeg stating it couldn't open the video device
if ffmpeg were missing in ubuntu it would be apt install jellyfin-ffmpeg5 not download from github (same in or out of docker)
and linux doesn't use .exe