Jellyfin Forum
FFMPEG not installed Ubuntu - 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: FFMPEG not installed Ubuntu (/t-ffmpeg-not-installed-ubuntu)



FFMPEG not installed Ubuntu - Jerrad Bieno - 2024-07-31

I've been having some issues with select movies where it errors out on client devices at the start of playback. The logs usually show some sort of FFMPEG error code status 1 exit. When I looked for FFmpeg on my jellyfin server it doesn't appear to be there. It is running ubuntu server, so I followed this install instructions: link. This seemed to imply it installs jellyfin automatically but that doesn't appear to be the case, at least it isn't in /usr/bin and running "ffmpeg" says command not found. Is there additional steps I need to do to get that installed?


RE: FFMPEG not installed Ubuntu - TheDreadPirate - 2024-08-01

By default, Jellyfin-ffmpeg is not symlinked to /usr/bin. But that is not required.

Share the ffmpeg log that is generated. Code 1 means it ran but something isn't configured correctly.

The logs are located in /var/log/jellyfin. Post one of the ffmpeg logs to pastebin.

And also provide your system specs.


RE: FFMPEG not installed Ubuntu - Jerrad Bieno - 2024-08-01

Specs below. I tried playing LOTW Return of the King. It shows it is HEVC encoded, and when I attempt to play it I can see from the jellyfin server dashboard that it sees the client device is compatible and attempts to direct play it. However it errors out immediately with "Too Many Errors". I've been able to play other HEVC movies successfully. For example, Two Towers works fine and appears to show the same media information when looking at the server:

Two Towers (Plays fine)

Code:
Video
Title: [WMAN-LorD] - 4K - HEVC - HDR
Codec: HEVC
AVC: No
Profile: Main 10
Level: 150
Resolution: 3840x2160
Aspect ratio: 16:9
Anamorphic: No
Interlaced: No
Framerate: 23.976025
Bitrate: 9176 kbps
Bit depth: 10 bit
Video range: HDR
Video range type: HDR10
Color space: bt2020nc
Color transfer: smpte2084
Color primaries: bt2020
Pixel format: yuv420p10le
Ref frames: 1


Return of the King (Doesn't Play)

Code:
Video
Title: 4K HEVC HDR
Codec: HEVC
AVC: No
Profile: Main 10
Level: 153
Resolution: 3840x1610
Aspect ratio: 2.40:1
Anamorphic: No
Interlaced: No
Framerate: 23.976025
Bitrate: 28306 kbps
Bit depth: 10 bit
Video range: HDR
Video range type: HDR10
Color space: bt2020nc
Color transfer: smpte2084
Color primaries: bt2020
Pixel format: yuv420p10le
Ref frames: 1

Here is the pastebin of the FFMPEG logs when trying to play Return of the King with it erroring out on startup: https://pastebin.com/2uGRShyP
Since I have a Haswell generation CPU I have only H264, MPEG2, and VP8 checked under "Enable HW Decoding". I also have VAAPI selected for HW Acceleration. The VA-API device is /dev/dri/renderD128, I don't know how to determine if that is correct. Perhaps that is part of my issue? I didn't explicitly choose that device at all.



Server:
OS: Ubuntu Servier 24.04 LTS
CPU: Intel® Core™ i5-4460S CPU @ 2.90GHz
IGPU: Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller
RAM: 16GB
HDD: ST2000DX001 Seagate 2-TB 3.5 SATA 6G MLC SSHD

Client:
Android TV OS Version: 12
Jellyfin Version: jellyfin-androidtv 0.16.11


RE: FFMPEG not installed Ubuntu - TheDreadPirate - 2024-08-01

You enabled tone mapping on a iGPU that does not support it. Your iGPU model is way off, btw.

https://www.intel.com/content/www/us/en/products/sku/80818/intel-core-i54460s-processor-6m-cache-up-to-3-40-ghz/specifications.html

Intel® HD Graphics 4600

Check the following boxes.

MPEG2
H264
VC-1
VP8

Enable hardware encoding

UNcheck any tone mapping boxes you checked.


RE: FFMPEG not installed Ubuntu - Jerrad Bieno - 2024-08-01

Thanks for the headsup on the igpu model.

I performed your recommended changes, I still get an error but it appears to be a different error than before:

Stream mapping:
  Stream #0:0 -> #0:0 (hevc (native) -> hevc (hevc_vaapi))
  Stream #0:1 -> #0:1 (truehd (native) -> aac (libfdk_aac))
Press [q] to stop, [?] for help
[hevc_vaapi @ 0x6246b525ff00] No usable encoding profile found.
[vost#0:0/hevc_vaapi @ 0x6246b525fc00] Error initializing output stream: Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
[libfdk_aac @ 0x6246bd1ef9c0] 2 frames left in the queue on closing
Conversion failed!

https://pastebin.com/cCSXb1jp


RE: FFMPEG not installed Ubuntu - TheDreadPirate - 2024-08-01

Also, the only meaningful difference in your videos is the codec level. 150 vs 153, both of which your device should support, and the bit rate being much higher for RotK. On your, I'm assuming, CCwGTV 4K do you have the max bit rate set to auto in the jellyfin app? The auto setting often incorrectly detects the connection's available bandwidth and will set the max bit rate really low, triggering a transcode unnecessarily. Manually select the highest available bit rate, 120Mbps.

You enabled HEVC encoding. Your iGPU does not support that.

Code:
Stream #0:0 -> #0:0 (hevc (native) -> hevc (hevc_vaapi))

Uncheck "Allow encoding in HEVC".


RE: FFMPEG not installed Ubuntu - Jerrad Bieno - 2024-08-01

Ah shoot I missed the "Allow encoding in HEVC" setting. I updated the bit rate from Auto to 120Mbps and that seemed to do the trick! Thanks so much!