Open Jau-Al opened 6 years ago
Hello @Jau-Al,
Thank you for opening an issue.
The Gifcurry snap sandbox environment unfortunately does not ship with certain codecs so this is expected.
Some workarounds:
1) Use the AppImage which will pick up any codecs that you yourself have installed on your system. Make sure to set the AppImage as executable. You can also install the AppImage using this script.
2) Download the binaries for linux. After you extract the archive, you'll find the executable under gifcurry-linux-3.0.0.2/bin/gifcurry_gui
. This will use the FFmpeg version you have installed.
3) Run the snap outside of its sandbox environment. It will then find any codecs you yourself have installed on your system. /snap/gifcurry/current/usr/bin/gifcurry_gui
If you'd like, I could create a Ubuntu PPA (Personal Package Archive). This would allow you to install Gifcurry via apt-get
after having added the PPA.
:+1:
Not even x264 ? License problem I suppose ? erf... Snap should be removed then. Your app is really nice even if you should let the user enter the end of the cut instead of duration. Anyway, I will tell friends about the Appimage. Thank you :wink:
did this work? i ma also having the same problem with snap, all the links mentioned in the above solution are dead :(
Hello @pknadella,
The Gifcurry snap sandbox environment unfortunately does not ship with certain codecs so this is expected.
Some workarounds:
1) Use the AppImage which will pick up any codecs that you yourself have installed on your system. Make sure to set the AppImage as executable. You can also install the AppImage using this script.
2) Download the binaries for linux. After you extract the archive, you'll find the executable under gifcurry-linux-5.0.0.0/bin/gifcurry_gui
. This will use the FFmpeg version you have installed.
3) Run the snap outside of its sandbox environment. It will then find any codecs you yourself have installed on your system. /snap/gifcurry/current/usr/bin/gifcurry_gui
:+1:
If I forked an fix the issue would you be willing to accept the pull request? Or is there a specific reason you ship a snap without a fully functional ffmpeg?
Hello @hurricanehrndz
The FFmpeg included with the snap is specifically built to only work with open source codecs. These are widely used formats but I can understand you wanting it to work with a certain format. It would be nice to include a fully functional version of FFmpeg but this is not possible as it puts both the project and its maintainer in jeopardy. Remember that Gifcurry is free software. Given that, there are zero resources to support such an endeavor.
Looking over the Snapcraft documentation again, the Gifcurry snap could presumably shell out to the FFmpeg snap but they don't seem to enable that on their end. If they did, the Gifcurry snap could shell out to the FFmpeg snap.
If you wish to use your own build of FFmpeg, your options are to use the provided AppImage, the provided binaries, or build Gifcurry.
Ultimately, Gifcurry is a CLI command builder. It sends out the command to whatever executable answers to FFmpeg. If nothing answers, nothing happens but Gifcurry still runs. In this sense, Gifcurry is air-gapped from FFmpeg allowing Gifcurry to be distributed without needing to distribute FFmpeg. Since the snap format is confined, however, some form of FFmpeg must be provided or the snap would be severely limited. The safest solution is to provide a build of FFmpeg that is only compatible with open source codecs. I'll look again if Snapcraft provides an interface (besides the content interface) allowing Gifcurry to shell out.
:+1:
@lettier
Wow, that was an amazing and in depth response. Thank you for taking the time.
Hello @pknadella,
The Gifcurry snap sandbox environment unfortunately does not ship with certain codecs so this is expected.
Some workarounds:
- Use the AppImage which will pick up any codecs that you yourself have installed on your system. Make sure to set the AppImage as executable. You can also install the AppImage using this script.
- Download the binaries for linux. After you extract the archive, you'll find the executable under
gifcurry-linux-5.0.0.0/bin/gifcurry_gui
. This will use the FFmpeg version you have installed.- Run the snap outside of its sandbox environment. It will then find any codecs you yourself have installed on your system.
/snap/gifcurry/current/usr/bin/gifcurry_gui
Can someone upload the binaries again? Because I cannot access the link mentioned in the comment.
@FeryET Go to Releases and find all files under "Assets".
Hello,
On Ubuntu 18.04, the snap gives me an error when I'm trying to open a video. "FFmpeg is missing decoders. Cannot make gifs for some videos." FFmpeg is installed on the system, with extra codecs. I checked, OBS works well.
Thanks