Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ffmpeg not detected correctly #4933

sysadmin75 opened this issue Jan 2, 2021 · 3 comments

ffmpeg not detected correctly #4933

sysadmin75 opened this issue Jan 2, 2021 · 3 comments


Copy link

@sysadmin75 sysadmin75 commented Jan 2, 2021

Describe the bug

After upgrade from 10.6.4 to 10.7.0-rc2, I'm unable to playback any file. The logs show ffmpeg is not found correctly.

System (please complete the following information):

  • OS: CentOS Linux release 7.9.2009
  • Virtualization: None
  • Clients: Browser
  • Browser: Chrome 87.0.4280.88
  • Jellyfin Version:10.7.0-rc2
  • Playback: Not sure here. What can I look at and tell?
  • Installed Plugins: None
  • Reverse Proxy: None
  • Base URL: None
  • Networking: Host
  • Storage: local

To Reproduce

  1. Go to home page in browser
  2. Under "Next Up" section, I click play for the show listed.
  3. See error

Expected behavior

I expect the video to play as it did in 10.6.4


ffmpeg error during startup of JF service.

[2021-01-02 13:28:08.865 -05:00] [INF] [1] Emby.Server.Implementations.ApplicationHost: Running startup tasks
[2021-01-02 13:28:09.032 -05:00] [INF] [1] Emby.Server.Implementations.ScheduledTasks.TaskManager: Daily trigger for "Extract Chapter Images" set to fire at 01/03/2021 02:00, which is 12:31:50.9676091 from now.
[2021-01-02 13:28:09.409 -05:00] [INF] [1] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Found ffmpeg version "3.4.8"
[2021-01-02 13:28:09.412 -05:00] [WRN] [1] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: FFmpeg validation: The minimum recommended version is "4.0"
[2021-01-02 13:28:09.412 -05:00] [WRN] [1] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: FFmpeg: System: Failed version check: "/usr/bin/ffmpeg"
[2021-01-02 13:28:09.425 -05:00] [INF] [1] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: FFmpeg: NotFound: ""
[2021-01-02 13:28:09.427 -05:00] [INF] [1] Emby.Server.Implementations.ApplicationHost: ServerId: "20a87d0ba83849bcb5ebc4e4df419d72"
[2021-01-02 13:28:09.660 -05:00] [INF] [1] Emby.Server.Implementations.ApplicationHost: Executed all pre-startup entry points in 0:00:00.2083446
[2021-01-02 13:28:09.660 -05:00] [INF] [1] Emby.Server.Implementations.ApplicationHost: Core startup complete

From logs when playback error happened:

[2021-01-02 14:19:53.237 -05:00] [INF] [26] Jellyfin.Api.Helpers.MediaInfoHelper: Profile: "Unknown Profile", Path: "/naspool/media/TV/Stargate-SG1/Season 9/Stargate SG-1 9x08 Babylon.avi", isEligibleForDirectPlay: True, isEligibleForDirectStream: True
[2021-01-02 14:19:53.237 -05:00] [INF] [26] Jellyfin.Api.Helpers.MediaInfoHelper: Profile: "Unknown Profile", No video direct play profiles found for "/naspool/media/TV/Stargate-SG1/Season 9/Stargate SG-1 9x08 Babylon.avi" with codec "mpeg4"
[2021-01-02 14:19:53.291 -05:00] [WRN] [26] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from "http://media:8096/Items/727d5145793fe766510b137653113daf/PlaybackInfo?UserId=a5b00d0392074c408f5ca259f78eb9f7&StartTimeTicks=0&IsPlayback=true&AutoOpenLiveStream=true&MaxStreamingBitrate=140000000" to "" in 0:00:00.5237702 with Status Code 200
[2021-01-02 14:19:54.091 -05:00] [INF] [27] Jellyfin.Api.Controllers.DynamicHlsController: Current HLS implementation doesn't support non-keyframe breaks but one is requested, ignoring that request
[2021-01-02 14:19:54.143 -05:00] [ERR] [27] Jellyfin.Server.Middleware.ExceptionMiddleware: Error processing request. URL "GET" "/videos/727d5145-793f-e766-510b-137653113daf/hls1/main/0.ts".
System.ArgumentException: FFmpeg path not set.
   at Jellyfin.Api.Helpers.TranscodingJobHelper.StartFfMpeg(StreamState state, String outputPath, String commandLineArguments, HttpRequest request, TranscodingJobType transcodingJobType, CancellationTokenSource cancellationTokenSource, String workingDirectory)



Additional context

@sysadmin75 sysadmin75 added the bug label Jan 2, 2021
Copy link

@sysadmin75 sysadmin75 commented Jan 2, 2021

I forgot to mention that ffmpeg is installed on the server and worked on JF 10.6.4.

# /usr/bin/ffmpeg -version
ffmpeg version 3.4.8 Copyright (c) 2000-2020 the FFmpeg developers
built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-39)
Copy link

@BaronGreenback BaronGreenback commented Jan 5, 2021

Looks to be mediaEncoder line 106.

ValidateVersion returns false, even though it's a warning, and passes that value back to mediaEncoder which then looks elsewhere for another version. On finding neither the logic assumes one doesn't exist, rather than an un-recommended one exists.

Copy link

@sysadmin75 sysadmin75 commented Mar 13, 2021

Looks like this issue has been addressed by #5073

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

2 participants