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

x264 upgrade has broken ffmpeg #49

Closed
inducer opened this issue Jul 13, 2018 · 9 comments
Closed

x264 upgrade has broken ffmpeg #49

inducer opened this issue Jul 13, 2018 · 9 comments

Comments

@inducer
Copy link

inducer commented Jul 13, 2018

If you currently install ffmpeg=4.0, the resulting binary (on Linux) gives:

ffmpeg: error while loading shared libraries: libx264.so.138: cannot open shared object file: No such file or directory

It seems that the packages insufficiently version the x264 dependency.

@sdvillal
Copy link
Contributor

This should be solved once #48 is merged, at least for 4.0. Until then, a workaround is to downgrade x264 in your environment.

@sdvillal
Copy link
Contributor

#48 is merged now.

@victorhcm
Copy link

In case you had the same issue, here's the clean command:

# ffmpeg 3.4.1
conda install ffmpeg x264=20131218 -c conda-forge

# ffmpeg 4
conda install x264=='1!152.20180717' ffmpeg=4.0.2 -c conda-forge

@sdvillal
Copy link
Contributor

sdvillal commented Aug 21, 2018

@victorhcm x264=='1!152.*' should also work with the latest build of ffmpeg 3.4.1, we worked hard to ensure that is the case. Try this:

$ conda create -n testfff conda-forge::ffmpeg=3.4.1
$ conda activate testfff

$ conda list | grep -E "ffm|x26"
# ffmpeg                    3.4.1                hf82bc7d_4    conda-forge
# x264                      1!152.20180717       h470a237_0    conda-forge

$ ffmpeg 
# works!

I actually would discourage installing x264=20131218

@Flamefire
Copy link

@sdvillal I cannot confirm this:

$ conda list | grep -E "ffm|x26"
ffmpeg                    3.4.1                         0    conda-forge
x264                      1!152.20180806       h14c3975_0    conda-forge

$ ffmpeg 
ffmpeg: error while loading shared libraries: libx264.so.138: cannot open shared object file: No such file or directory

@zhongyi-zhou
Copy link

@victorhcm
I have tried your code for two conda envs.
One works but the other does not.

The code continuously stuck here, at least for half an hour:
image

@zhongyi-zhou
Copy link

@victorhcm
I have tried your code for two conda envs.
One works but the other does not.

The code continuously stuck here, at least for half an hour:
image

Problem solved by

conda update ffmpeg

@Maltimore
Copy link

I just had a similar problem to the one stated in the first item in this thread.
It turned out that my ffmpeg was actually installed from the pytorch channel, not conda-forge. After installing from conda-forge with
conda install -c conda-forge ffmpeg
it worked. Just leaving this here in case someone else finds it useful.

@vincentfpgarcia
Copy link

Using latest package versions works fine too:

conda install -c conda-forge x264=='1!161.3030' ffmpeg=4.3.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants