Code Monkey home page Code Monkey logo

Comments (21)

Wurzelmann avatar Wurzelmann commented on June 12, 2024 1

Does /usr/lib/jellyfin-ffmpeg/ffmpeg exist in your system?

Oh, it does not, but I'm sure it was there before the 10.9.0 upgrade. I checked the installed packages and jellyfin-ffmpeg was not working any more, but either jellyfin-ffmpeg6 or jellyfin-ffmpeg5 were offered as a replacement. I installed jellyfin-ffmpeg6 and not it is working again!

Thank you very much for this pointer, case closed!

from jellyfin.

gnattu avatar gnattu commented on June 12, 2024 1

You should not use jellyfin-ffmpeg5 with 10.9. Please don't look at the changelog from years ago to make any deicision

for the record: jellyfin-ffmpeg5 is mentioned in yesterday's changelog or was your comment not targeted at me?

That is done a year ago before our new CI. Remember the changelog contains 2 years of changes and not all of them reflects to the latest status.

We are on ffmpeg6 now, all 10.9 installation should use ffmpeg6

from jellyfin.

boredazfcuk avatar boredazfcuk commented on June 12, 2024 1

I couldn't modify the location of ffmpeg in the UI

This is intentionally removed due to security reasons. Please, please, please, use the --ffmpeg cli parameter to configure the ffmpeg location, okay?

CLI parameter for which command? I'm using the Docker container and don't ever connect to the container to issue commands. Will configuring with the parameter survive container re-creation? I have /config mapped to persistent storage.

Then it seems like you are not using our official docker container image.

This cli is straight in our entrypoint:

https://github.com/jellyfin/jellyfin-packaging/blob/a974263fbfdb924632c0553ceb83588cf75e0272/docker/Dockerfile#L199

Cool. I created my own Dockerfile built from jellyfin/jellyfin and my entrypoint is pointing to a script I wrote. I was then handing over to your entrypoint with:

exec "/jellyfin/jellyfin" --datadir "/config" --cachedir "/cache" --ffmpeg "/usr/local/bin/ffmpeg"

Seems the relocation of the ffmpeg binary messed it up. Thanks for the help though everyone.

from jellyfin.

jellyfin-bot avatar jellyfin-bot commented on June 12, 2024

Hi, it seems like your issue report has the following item(s) that need to be addressed:

  • This bug report was not filed using the issue template.

This is an automated message, currently under testing. Please file an issue here if you encounter any problems.

from jellyfin.

gnattu avatar gnattu commented on June 12, 2024

Does /usr/lib/jellyfin-ffmpeg/ffmpeg exist in your system?

from jellyfin.

joshuaboniface avatar joshuaboniface commented on June 12, 2024

Also what is your output of systemctl status jellyfin? Somehow it's not finding ffmpeg where it should be.

from jellyfin.

Wurzelmann avatar Wurzelmann commented on June 12, 2024

Also what is your output of systemctl status jellyfin? Somehow it's not finding ffmpeg where it should be.

I'm not using systemd, I checked all relevant logs for hints and found nothing indicating the real problem (missing jellyfin-ffmpeg6 package). Thanks anyway!

from jellyfin.

boredazfcuk avatar boredazfcuk commented on June 12, 2024

Not sure why this has been closed. I've just upgraded and to 10.9.0 and I'm experiencing the same issue.

I've found ffmpeg at /usr/lib/jellyfin-ffmpeg/ffmpeg

The encoding.xml file lists it being here: /usr/lib/jellyfin-ffmpeg/ffmpeg

But this is blank and not editable:
image

and I'm seeing this in the log when attempting to start a video:
image

from jellyfin.

Wurzelmann avatar Wurzelmann commented on June 12, 2024

Not sure why this has been closed. I've just upgraded and to 10.9.0 and I'm experiencing the same issue.

I've found ffmpeg at /usr/lib/jellyfin-ffmpeg/ffmpeg

The encoding.xml file lists it being here: /usr/lib/jellyfin-ffmpeg/ffmpeg

But this is blank and not editable: image

Technically, it is not a bug, I guess, because the replacement of ffmpeg is mentioned in the changelog (I skimmed it before upgrading, but did not see that part):

https://github.com/jellyfin/jellyfin/releases/v10.9.0 see

"fix: swap to jellyfin-ffmpeg5 [PR https://github.com//pull/9256], by @brettpetch"

but the package jellyfin-server does not require the package jellyfin-ffmpeg5 which would replace the old ffmpeg package, so I guess this is the real bug: missing dependencies in the Debian package.

Anyway: I installed jellyfin-ffmpeg6, restarted jellyfin and it worked again (see FFmpeg path, which should be populated again afterwards)

from jellyfin.

gnattu avatar gnattu commented on June 12, 2024

encoding.xml

encoding.xml's path is deprecated and should no longer being used. You should use --ffmpeg cli parameter to specify where the ffmpeg is.

from jellyfin.

boredazfcuk avatar boredazfcuk commented on June 12, 2024

Anyway: I installed jellyfin-ffmpeg6, restarted jellyfin and it worked again (see FFmpeg path, which should be populated again afterwards)

How did you manage that?

My container thinks it's already installed:

dpkg --list *jellyfin-ffmpeg6*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name             Version          Architecture Description
+++-================-================-============-================================================================
ii  jellyfin-ffmpeg6 6.0.1-6-bookworm amd64        Tools for transcoding, streaming and playing of multimedia files

Or do you mean you installed jellyfin-ffmpeg5?

Edit: I've installed ffmpeg5 and now it crashes with MediaBrowser.MediaEncoding.Encoder.MediaEncoder: FFmpeg: Failed version check: /usr/local/bin/ffmpeg

from jellyfin.

Wurzelmann avatar Wurzelmann commented on June 12, 2024

I installed jellyfin-ffmpeg6, not 5, don't ask me why, I just chose the "newer" one. Oh and I'm not using Docker, sorry, Debian on baremetal.

from jellyfin.

gnattu avatar gnattu commented on June 12, 2024

You should not use jellyfin-ffmpeg5 with 10.9. Please don't look at the changelog from years ago to make any deicision

from jellyfin.

boredazfcuk avatar boredazfcuk commented on June 12, 2024

Found this in the logs, but again, I couldn't modify the location of ffmpeg in the UI

[19:27:26] [ERR] [1] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Error validating encoder

System.ComponentModel.Win32Exception (2): An error occurred trying to start process '/usr/local/bin/ffmpeg' with working directory '/config'. No such file or directory

   at System.Diagnostics.Process.ForkAndExecProcess(ProcessStartInfo startInfo, String resolvedFilename, String[] argv, String[] envp, String cwd, Boolean setCredentials, UInt32 userId, UInt32 groupId, UInt32[] groups, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean usesTerminal, Boolean throwOnNoExec)

   at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)

   at MediaBrowser.MediaEncoding.Encoder.EncoderValidator.GetProcessOutput(String path, String arguments, Boolean readStdErr, String testKey)

   at MediaBrowser.MediaEncoding.Encoder.EncoderValidator.ValidateVersion()

Linked the location with:

root@jellyfin:/config# ln -s /usr/share/jellyfin-ffmpeg/ffmpeg /usr/local/bin/ffmpeg

Restarted Jellyfin and it's back in action

from jellyfin.

gnattu avatar gnattu commented on June 12, 2024

I couldn't modify the location of ffmpeg in the UI

This is intentionally removed due to security reasons. Please, please, please, use the --ffmpeg cli parameter to configure the ffmpeg location, okay?

from jellyfin.

boredazfcuk avatar boredazfcuk commented on June 12, 2024

I couldn't modify the location of ffmpeg in the UI

This is intentionally removed due to security reasons. Please, please, please, use the --ffmpeg cli parameter to configure the ffmpeg location, okay?

CLI parameter for which command? I'm using the Docker container and don't ever connect to the container to issue commands. Will configuring with the parameter survive container re-creation? I have /config mapped to persistent storage.

from jellyfin.

gnattu avatar gnattu commented on June 12, 2024

I couldn't modify the location of ffmpeg in the UI

This is intentionally removed due to security reasons. Please, please, please, use the --ffmpeg cli parameter to configure the ffmpeg location, okay?

CLI parameter for which command? I'm using the Docker container and don't ever connect to the container to issue commands. Will configuring with the parameter survive container re-creation? I have /config mapped to persistent storage.

Then it seems like you are not using our official docker container image.

This cli is straight in our entrypoint:

https://github.com/jellyfin/jellyfin-packaging/blob/a974263fbfdb924632c0553ceb83588cf75e0272/docker/Dockerfile#L199

from jellyfin.

Wurzelmann avatar Wurzelmann commented on June 12, 2024

You should not use jellyfin-ffmpeg5 with 10.9. Please don't look at the changelog from years ago to make any deicision

for the record: jellyfin-ffmpeg5 is mentioned in yesterday's changelog or was your comment not targeted at me?

from jellyfin.

boredazfcuk avatar boredazfcuk commented on June 12, 2024

for the record: jellyfin-ffmpeg5 is mentioned in yesterday's changelog or was your comment not targeted at me?

I just connected to my container and saw that jellyfin-ffmpeg6 was already installed. With the link mentioning the swap out to jellyfin-mpeg5, I thought you meant you'd rolled back but typo'd it.

from jellyfin.

Wurzelmann avatar Wurzelmann commented on June 12, 2024

You should not use jellyfin-ffmpeg5 with 10.9. Please don't look at the changelog from years ago to make any deicision

for the record: jellyfin-ffmpeg5 is mentioned in yesterday's changelog or was your comment not targeted at me?

That is done a year ago before our new CI. Remember the changelog contains 2 years of changes and not all of them reflects to the latest status.

We are on ffmpeg6 now, all 10.9 installation should use ffmpeg6

Thanks for clarifying, I just wanted to make sure I did the right thing. Thanks for your work and the support too! <3

from jellyfin.

boredazfcuk avatar boredazfcuk commented on June 12, 2024

Oops. Sorry if I caused any panic lol.

from jellyfin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.