moviuro.bin icon indicating copy to clipboard operation
moviuro.bin copied to clipboard

Problem with gif-soup

Open ganifladi opened this issue 7 years ago • 9 comments

Hey, i just tried to use 'gif-soup'. Therefore i created a file called 'gif-soup' in my '/home/user/.local/bin', copy/pasted your code in it and made it executable. I executed it with '/home/user/.local/bin/gif-soup /home/user/gif/wallpaper/path &' and got the following error:

convert: geometry does not contain image `/home/user/gif/wallpaper/path/file.gif' @ warning/transform.c/CropImage/666.

Unfortunately my research for a solution didn't get me anywhere. Could you help me to get this thing running? :)

Best regards!

ganifladi avatar Nov 04 '17 11:11 ganifladi

I sometimes get similar messages, but nothing preventing mpv(1) from running.

  1. Run pgrep mpv, it should return a PID.
  2. If it does, % ps -p "$(pgrep mpv)" -o args (mine returns mpv --border --video-unscaled --background=#000000 --wid=0 /home/moviuro/Pictures/wallpapers/gif/Mg7g3wH.gif --loop-file=inf --speed=1.0)

Further information about a compositor, desktop environment, etc. that might be interfering with drawing directly to the root X window may be of interest.

As a further check, you could remove the --wid=0 option from gif-soup; the gif should then play in its own window, with a solid background.

moviuro avatar Nov 05 '17 17:11 moviuro

Thanks, for your answere!

  1. pid is returned
  2. my output says: mpv --border --video-unscaled --background=#DE0858 --wid=0 /home/username/.wallpapers/gif/

Here some more information about my setup: A. gif-soup is located in ~/.local/bin B. gifs are located in ~/.wallpapers/gif C. running compton, no de, i3-gaps, feh set background

What's next? :)

ganifladi avatar Nov 12 '17 12:11 ganifladi

I got it running by disabling my compton. Is it possible to use them together? Here my compton.conf: https://pastebin.com/Dgt4xYth

ganifladi avatar Nov 12 '17 13:11 ganifladi

Is it possible to use them together?

No idea. We have to check with compton settings and how they interfere with Xorg's root window. I have very little experience with Xorg, so if you find how to have them both running, I'm interested!

moviuro avatar Nov 12 '17 15:11 moviuro

@ganifladi did you manage to get it working?

ducklin5 avatar Dec 13 '18 23:12 ducklin5

I managed to get it working by wrapping around with xwinwrap. For anyone interested, here is the modified version. Modification at L78-L79 PS: Thanks a lot for the very useful gif-soup script.

the-c0d3r avatar May 16 '19 14:05 the-c0d3r

@the-c0d3r with proper comments, documentation and optional switch (-c like compositor), I'll integrate your code in the repo.

moviuro avatar May 19 '19 21:05 moviuro

@moviuro Thanks for the suggestion. I'll give it a go and send in a PR in a few days. My bash-fu is not that good, that is why I'm a bit hesitant :smile:

So I should just add a -c switch then if -c is enabled, then use the xwinwrap command?

the-c0d3r avatar May 23 '19 05:05 the-c0d3r

Yeah, I guess :smile:

moviuro avatar May 23 '19 05:05 moviuro