Jellyfin Forum
SOLVED: FFmpeg - 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: SOLVED: FFmpeg (/t-solved-ffmpeg)

Pages: 1 2 3


FFmpeg - MrFabou - 2024-02-25

I'm using Jellyfin 10.8.13 as a Linux Container in Proxmox with a i5 7500t and it's iGPU. 

It work's fine with 1080p content, but if I try to watch 4K Movies, it only works on my native 4K TV and PC with Google Chrome, not on a 1080p Display with a Google Chromecast 4K (Getting Client Side Error: "This client is not compatible with the media and the server is not sending a compatible media format.")

If its playing the movie (on my pc and 4k tv) it's showing the gpu usage by around 92%, so that's working.

I checked the logs and got a 204 FFmpeg Error: 

No VA display found for any default device. 
Device creation failed: -22. 
Failed to set value "vaapi=va:,kernel_driver=i915,driver=iHD" for option "init_hw_device": Invalid argument
Error parsing global options: Invalid argument

Hope you can help me out here, 

greetings


RE: FFmpeg - TheDreadPirate - 2024-02-25

What is the output of

Code:
sudo apt list --installed | grep intel



RE: FFmpeg - MrFabou - 2024-02-26

(2024-02-25, 10:00 PM)TheDreadPirate Wrote: What is the output of

Code:
sudo apt list --installed | grep intel

Code:
intel-gpu-tools/jammy,now 1.26-2 amd64 [installed]
intel-media-va-driver/jammy-updates, now 22.3.1+dfsg1-1ubuntu2 amd64 [installed, automatic]
intel-opencl-icd/jammy,now 22.14.22890-1 amd64 [installed]
libdrm-intel1/jammy-updates,now 2.4.113-2~ubuntu0.22.04.1 amd64 [installed, automatic]



RE: FFmpeg - TheDreadPirate - 2024-02-26

Follow the instructions in this link to add non-free and non-free-firmware to your apt config.

https://unix.stackexchange.com/questions/736065/how-do-i-install-non-free-firmware-in-debian-12-bookworm

Once you have done that

Code:
sudo apt update ; sudo apt install intel-media-va-driver-non-free intel-microcode



RE: FFmpeg - MrFabou - 2024-02-26

(2024-02-26, 05:43 PM)TheDreadPirate Wrote: Follow the instructions in this link to add non-free and non-free-firmware to your apt config.

https://unix.stackexchange.com/questions/736065/how-do-i-install-non-free-firmware-in-debian-12-bookworm

Once you have done that

Code:
sudo apt update ; sudo apt install intel-media-va-driver-non-free intel-microcode

Thanks for the reply, sadly I get the same error even with microcode installed: 

Code:
/videos/number/hls1/main/0.ts

{"Protocol":0,"Id":"number","Path":"/mnt/media/movies/movie4k.mkv","EncoderPath":null,"EncoderProtocol":null,"Type":0,"Container":"mkv,webm",">

/usr/lib/jellyfin-ffmpeg/ffmpeg -analyzeduration 200M -init_hw_device vaapi=va:,kernel_driver=i915,driver=iHD -init_hw_device qsv=qs@va -filter_hw_device qs -hwaccel vaapi -hwaccel_output_format vaapi -autorotate 0 -i file:"/mnt/m>


ffmpeg version 5.1.4-Jellyfin Copyright (c) 2000-2023 the FFmpeg developers
  built with gcc 11 (Ubuntu 11.4.0-1ubuntu1~22.04)
  configuration: --prefix=/usr/lib/jellyfin-ffmpeg --target-os=linux --extra-libs=-lfftw3f --extra-version=Jellyfin --disable-doc --disable-ffplay --disable-ptx-compression --disable-static --disable-libxcb --disable-sdl2 --disabl>
  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 @ 0x55ac86a6f080] No VA display found for any default device.
Device creation failed: -22.
Failed to set value 'vaapi=va:,kernel_driver=i915,driver=iHD' for option 'init_hw_device': Invalid argument
Error parsing global options: Invalid argument

If I run apt install intel-microcode: 
Code:
root@proxmox:~# apt install intel-microcode
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
intel-microcode is already the newest version (3.20231114.1).
0 upgraded, 0 newly installed, 0 to remove and 16 not upgraded.



RE: FFmpeg - TheDreadPirate - 2024-02-26

Did you install the non-free Intel media driver in the install command I provided? Your previous apt list only showed the free media driver, which doesn't contain the needed drivers.

Just to clarify, non-free in this context means the contents of the package aren't open source. Not that it costs money.


RE: FFmpeg - MrFabou - 2024-02-26

(2024-02-26, 07:15 PM)TheDreadPirate Wrote: Did you install the non-free Intel media driver in the install command I provided?  Your previous apt list only showed the free media driver, which doesn't contain the needed drivers.

Just to clarify, non-free in this context means the contents of the package aren't open source.  Not that it costs money.

Sorry, now, yes. 

I installed "intel-media-va-driver-non-free/oldstable,now 21.1.1+ds1-1 amd64" on my proxmox server as you said, but now I can't even play the 4k footage on the chrome browser on my wqhd display

Or do I have to install it on the jellyfin container?

I tried to install it on the container, now if I run sudo apt list --installed | grep intel I got:
Code:
intel-gpu-tools/jammy,now 1.26-2 amd64 [installed]
intel-media-va-driver-non-free/jammy-updates,now 22.3.1+ds1-1ubuntu0.1 amd64 [installed]
intel-microcode/jammy-updates,jammy-security,now 3.20231114.0ubuntu0.22.04.1 amd64 [installed]
intel-opencl-icd/jammy,now 22.14.22890-1 amd64 [installed]
libdrm-intel1/jammy-updates,now 2.4.113-2~ubuntu0.22.04.1 amd64 [installed,automatic]


Sadly it still doesn't play it Slightly-frowning-face


RE: FFmpeg - TheDreadPirate - 2024-02-26

How much of our guide did you follow?

https://jellyfin.org/docs/general/administration/hardware-acceleration/intel/#lxc-and-lxd-container


RE: FFmpeg - MrFabou - 2024-02-26

(2024-02-26, 08:28 PM)TheDreadPirate Wrote: How much of our guide did you follow?

https://jellyfin.org/docs/general/administration/hardware-acceleration/intel/#lxc-and-lxd-container

All I did was using a script to install and a youtube video that showed how to enable iGPU transcoding😅

Now I can't even play any video Slightly-frowning-face

EDIT: After restart I got it, again, to work in my browser, with the 4k chromecast it doesnt work.

Code:
        ENGINES    BUSY                                                                                                                      MI_SEMA MI_WAIT
      Render/3D    0.00% |                                                                                                                  |      0%      0%
        Blitter    0.00% |                                                                                                                  |      0%      0%
          Video  98.70% |█████████████████████████████████████████████████████████████████████████████████████████████████████████████████▋ |      0%      0%
    VideoEnhance  34.40% |███████████████████████████████████████▋



RE: FFmpeg - TheDreadPirate - 2024-02-26

Can you share what you have in /etc/pve/lxc/<CONTAINER_ID>.conf.