Jellyfin Forum
Issue with trickplay - 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: Issue with trickplay (/t-issue-with-trickplay)

Pages: 1 2 3 4


Issue with trickplay - playserver - 2024-05-13

Hey guys, 
whenever I try to run trickplay,  it stops working at 62%. I tried looking at the error log, but I don't find the error.

I am running 10.9.1 on ubuntu 22.04 LTS with docker. I have ffmpeg 6.X installed.


RE: Issue with trickplay - TheDreadPirate - 2024-05-13

I think you accidentally typed extra numbers in the quality field.

Code:
mjpeg_vaapi @ 0x61f61ed21e00] Invalid quality value 472 (must be 1-100).

   


RE: Issue with trickplay - playserver - 2024-05-13

In the trickplay settings there is nothing having the number 472. I added my screenshots https://ibb.co/DkgLJ4m
https://ibb.co/h91mp4v
https://ibb.co/pXZ02gL

Edit: If I select 5 instead of 4 in the Qscale, it gives me the error with 590 instead of 472, with 2 it gives 236


RE: Issue with trickplay - TheDreadPirate - 2024-05-13

Open up /etc/jellyfin/system.xml. What is in this code block for you?

Code:
<TrickplayOptions>
    <EnableHwAcceleration>true</EnableHwAcceleration>
    <EnableHwEncoding>true</EnableHwEncoding>
    <ScanBehavior>NonBlocking</ScanBehavior>
    <ProcessPriority>BelowNormal</ProcessPriority>
    <Interval>10000</Interval>
    <WidthResolutions>
      <int>320</int>
    </WidthResolutions>
    <TileWidth>10</TileWidth>
    <TileHeight>10</TileHeight>
    <Qscale>4</Qscale>
    <JpegQuality>90</JpegQuality>
    <ProcessThreads>2</ProcessThreads>
  </TrickplayOptions>



RE: Issue with trickplay - playserver - 2024-05-14

<Trickplayoptions>
<EnableHwAcceleration>true</EnableHwAcceleration>
<EnableHwEncoding>true</EnableHwEncoding>
<ScanBehavior>NonBlocking</ScanBehavior>
<ProcessPriority>Normal</ProcessPriority>
<Interval>10000</Interval>
<WidthResolutions>
<int>320</int>
</WidthResolutions>
<TileWidth>10</Tilewidth>
<TileHeight>10</TileHeight>
<Qscale>4</Qscale>
<JpegQuality>90</JpegQuality>
<ProcessThreads>1</ProcessThreads>


RE: Issue with trickplay - TheDreadPirate - 2024-05-14

Can you enable debug logging, restart jellyfin, and restart the trickplay job? Then share the new log.

https://jellyfin.org/docs/general/administration/troubleshooting/#debug-logging


RE: Issue with trickplay - playserver - 2024-05-14

I tried to upload the log with the code option but the text is too long. I hope you don't mind the mediafire link.
https://www.mediafire.com/file/49zs9p6qkxj62d2/log_20240514.log/file


RE: Issue with trickplay - TheDreadPirate - 2024-05-14

I am not seeing the error "Invalid quality value" error message anymore, but it appears that it isn't able to read files in "/data/tvshowsa". The "a" at the end isn't a typo. Can you double check the library path and permissions.

Code:
[2024-05-14 15:38:15.638 +02:00] [INF] [6] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Trickplay generation: "/usr/lib/jellyfin-ffmpeg/ffmpeg -loglevel error -init_hw_device vaapi=va:/dev/dri/renderD128,driver=iHD -noautorotate -i file:\"/data/tvshowsa/[wozzy]SG DL PCM DTS Ssub 1080-10bit 25 OVA(AL)/Steins.Gate.25.OVA.BD.1080p.10bit.DL.PCM.DTS-wozzy.mkv\" -an -sn -vf \"fps=0.10000000149011612,setparams=color_primaries=bt709:color_trc=bt709:colorspace=bt709,scale=trunc(min(max(iw\,ih*a)\,320)/2)*2:trunc(ow/a/2)*2,format=nv12,hwupload_vaapi\" -threads 1 -c:v mjpeg_vaapi -qscale:v 4 -f image2 \"/config/cache/temp/c7d82cca50a84d80bdd022ffa32174df/%08d.jpg\""
[2024-05-14 15:38:16.229 +02:00] [ERR] [6] Jellyfin.Server.Implementations.Trickplay.TrickplayManager: Error creating trickplay images.
System.ArgumentException: Can't create trickplay from 0 images.

IMO, this looks like a permissions/invalid path issue since it affects pretty much everything in /data/tvshowsa.


RE: Issue with trickplay - playserver - 2024-05-14

tvshowsa is the correct path. The a is added because I have a shows directory for anime and for normal shows. So the normal shows would be tvshow and the anime shows would be tvshowa. I only added trickplay to tvshowsa but I don't think there should be any path issue because everything else works completely fine with this path system. It also adds nfo's to my file system, so I don't know what permission problem it should be. Any ideas what else I could check?

Edit: Permissions for the folder are set to root. I am however using the following composefrom linuxserver

Code:
services:
  jellyfin:
    image: lscr.io/linuxserver/jellyfin:latest
    container_name: jellyfin-ls
    environment:
      - DOCKER_MODS=linuxserver/mods:jellyfin-opencl-intel
      - PUID=1000
      - PGID=1000
      - TZ=Europe/Berlin
      - JELLYFIN_PublishedServerUrl=192.168.0.5 #optional
    volumes:
      - /home/nas/jellyfin-ls/config:/config
      - /media/ntfs2/jellyfin/Serien:/data/tvshows
      - /media/ntfs3/jellyfin/Serien:/data/tvshows1
      - /media/ntfs2/jellyfin/Anime/Serien:/data/tvshowsa
      - /media/ntfs3/jellyfin/Anime/Serien:/data/tvshowsa1
      - /media/ntfs2/jellyfin/Filme:/data/movies
      - /media/ntfs3/jellyfin/Filme:/data/movies1
      - /media/ntfs2/jellyfin/Anime/Filme:/data/moviesa
      - /media/ntfs3/jellyfin/Anime/Filme:/data/moviesa1
      - /media/ntfs2/jellyfin/Musik:/data/music
      - /media/ntfs3/jellyfin/Musik:/data/music1
    network_mode: 'host'
    restart: unless-stopped
    devices:
      - /dev/dri:/dev/dri



RE: Issue with trickplay - Efficient_Good_5784 - 2024-05-14

(2024-05-14, 02:58 PM)playserver Wrote: Edit: Permissions for the folder are set to root. I am however using the following composefrom linuxserver

Code:
services:
  jellyfin:
    image: lscr.io/linuxserver/jellyfin:latest
    container_name: jellyfin-ls
    environment:
      - DOCKER_MODS=linuxserver/mods:jellyfin-opencl-intel
      - PUID=1000
      - PGID=1000
      - TZ=Europe/Berlin
      - JELLYFIN_PublishedServerUrl=192.168.0.5 #optional
    volumes:
      - /home/nas/jellyfin-ls/config:/config
      - /media/ntfs2/jellyfin/Serien:/data/tvshows
      - /media/ntfs3/jellyfin/Serien:/data/tvshows1
      - /media/ntfs2/jellyfin/Anime/Serien:/data/tvshowsa
      - /media/ntfs3/jellyfin/Anime/Serien:/data/tvshowsa1
      - /media/ntfs2/jellyfin/Filme:/data/movies
      - /media/ntfs3/jellyfin/Filme:/data/movies1
      - /media/ntfs2/jellyfin/Anime/Filme:/data/moviesa
      - /media/ntfs3/jellyfin/Anime/Filme:/data/moviesa1
      - /media/ntfs2/jellyfin/Musik:/data/music
      - /media/ntfs3/jellyfin/Musik:/data/music1
    network_mode: 'host'
    restart: unless-stopped
    devices:
      - /dev/dri:/dev/dri
That's your problem. The folder is owned by root, but you set your Jellyfin instance to be under user 1000 and group 1000, which doesn't have access to the folder.

Either add user & group 1000 to own/have access to the folder, or run your Jellyfin as the root user.

Root is always set as 0. Change PUID & PGID to 0, or just delete both to have Jellyfin run as root.