It is currently Tue Jul 02, 2024 7:08 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 17 posts ] 
Author Message
 Post subject: GAP 2.7 and MPlayer settings
PostPosted: Wed Jun 17, 2020 5:26 am  (#1) 
Offline
GimpChat Member

Joined: Jun 15, 2020
Posts: 6
GIMP Version: 2.8.14
Operating System: Windows
GIMP Experience: New User

List any ERROR messages you received:
path



Did anyone solve the GAP 2.7 & MPlayer connection, when attempting to extract images from a movie?
It says GAP_MPLAYER_APP ...how GAP connects to MPLAYER, if when MPLAYER is already installed in Win10?!
Thanx


Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: GAP 2.7 and MPlayer settings
PostPosted: Wed Jun 17, 2020 4:29 pm  (#2) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2260
Location: Poland
I don't know the solution to this problem (I suppose only Linux will handle the * .sh file)
I have tried repeatedly (for gimp-2.8 and 2.10) but for Windows it does not work (unrecognized * .sh file)
For Gimp-2.10.20 and Windows10 only Extract Videorange works.


Attachments:
MPlayer.png
MPlayer.png [ 22.58 KiB | Viewed 4174 times ]
Extract Videorange.png
Extract Videorange.png [ 36.53 KiB | Viewed 4174 times ]

_________________
Image

Slava
Ukraini!
Top
 Post subject: Re: GAP 2.7 and MPlayer settings
PostPosted: Wed Jun 17, 2020 5:11 pm  (#3) 
Offline
GimpChat Member
User avatar

Joined: Nov 04, 2015
Posts: 1365
The sh file is a 'shell script'. You need 'bash' in your path.

Point of interest.
"Bash is the shell, or command language interpreter, for the GNU operating system. The name is an acronym for the ‘Bourne-Again SHell’, a pun on Stephen Bourne, the author of the direct ancestor of the current Unix shell sh, which appeared in the Seventh Edition Bell Labs Research version of Unix".

Another point of interest.
'GNU' stands for 'GNU's not Unix'.


Last edited by Tas_mania on Thu Jun 18, 2020 6:06 pm, edited 1 time in total.

Top
 Post subject: Re: GAP 2.7 and MPlayer settings
PostPosted: Wed Jun 17, 2020 7:21 pm  (#4) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2260
Location: Poland
A small experiment:
I changed sh to bat, launched it and mplayer unpacked the files into the folder (tmp; FILE 00000001.png ...00000100.png) - not very useful (because it did not open in Gimp) - it is better to use Extract Videorange.
It's possible that this only works with Mplayer 1.0 rc5 but I can't find it for Windows.


Attachments:
mplayer bat.png
mplayer bat.png [ 20.2 KiB | Viewed 4156 times ]

_________________
Image

Slava
Ukraini!
Top
 Post subject: Re: GAP 2.7 and MPlayer settings
PostPosted: Thu Jun 18, 2020 4:59 am  (#5) 
Offline
GimpChat Member
User avatar

Joined: Apr 15, 2017
Posts: 1826
I've never used GAP before and don't know anything about it. Reading this thread tells me it's a plugin to extract frames using a video player and load those frames into Gimp as layers. I assume it's to edit those frames. There are tools much better suited for this, such as Video Editors.

If one needs to extract video frames as PNG files that can be imported into Gimp, there are a number of options such as ffmpeg. Here is a command to extract a range of frames in a video into an image-sequence. It stipulates to start the capture at the 23 sec mark and extract 4 sec of video.

ffmpeg -i "video.avi" -ss 00:00:23 -t 4 -f image2 "img_%03d.png"

A real Video Editor is still the recommended way to go...


Top
 Post subject: Re: GAP 2.7 and MPlayer settings
PostPosted: Thu Jun 18, 2020 5:44 am  (#6) 
Offline
GimpChat Member
User avatar

Joined: Nov 04, 2015
Posts: 1365
Hi racer. I have to agree with you about video editors. GAP also makes another menu entry in Gimp Filters above G'MIC called 'Filter all Layers'. I found this pretty useful because it can apply any built-in Gimp filter to all layers.

I was using Aviutl today and found how to export a clip as PNG's. (export with ffmpeg > video encoding> Profile> PNG sequence
Better put them in a folder as well) :)

I notice Gimp-GAP is in the Ubuntu 20.04 repository but its version 2.6.


Top
 Post subject: Re: GAP 2.7 and MPlayer settings
PostPosted: Thu Jun 18, 2020 5:59 am  (#7) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2260
Location: Poland
GAP = Gimp Animation Package is powerful - but it is difficult to learn how to use it well (I have only read now that "MPlayer based extraction" is only to save the frames as images on the disk - which was successful by the experiment - but in fact it is probably an error for Windows: it creates a file * .sh instead of *. bat). Good video editors are actually easier to use.

@Tas_mania: Unfortunately 'Filter all Layers' - it can apply some filters Gimp to all layers.


Attachments:
Options  GAP.png
Options GAP.png [ 7.17 KiB | Viewed 4116 times ]
MPlayer be.png
MPlayer be.png [ 14.72 KiB | Viewed 4116 times ]

_________________
Image

Slava
Ukraini!
Top
 Post subject: Re: GAP 2.7 and MPlayer settings
PostPosted: Thu Jun 18, 2020 6:52 am  (#8) 
Offline
GimpChat Member

Joined: Mar 04, 2011
Posts: 2436
I did eventually get GAP 2.7 and mplayer working. You do need to set up the environmental variables.

Using an old (ancient) version of mplayer, about the same age as the plugin. I pulled one out of my archive of 'old-stuff' ;)

Zipped and on dropbox https://www.dropbox.com/s/5myf9t55xg229 ... r.zip?dl=0 Let me know if any problems there. It is 20 MB zipped

This a demo using Win7 64 bit (just to show all the old 32bit files still works) and Gimp 2.8.22

https://youtu.be/tv2DeLLCq3Y 4 minutes

There is no guarantee that old version of mplayer will decode modern videos. A better tool, with a GUI, to extact a range of frames is Avidemux.

_________________
Image


Top
 Post subject: Re: GAP 2.7 and MPlayer settings
PostPosted: Thu Jun 18, 2020 8:16 am  (#9) 
Offline
GimpChat Member
User avatar

Joined: Apr 15, 2017
Posts: 1826
Tas_mania wrote:
I notice Gimp-GAP is in the Ubuntu 20.04 repository but its version 2.6.

Same goes for Debian. I have yet to see a good reason to install it though.

Attachment:
gimp-gap.jpg
gimp-gap.jpg [ 112.27 KiB | Viewed 4086 times ]


Top
 Post subject: Re: GAP 2.7 and MPlayer settings
PostPosted: Thu Jun 18, 2020 8:37 am  (#10) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2260
Location: Poland
Hi Rich2005.

The model solution - although in my portable Gimp-2.8.22 it always creates images in the bin directory - not in the tmp directory (for me a trifle).
For Gimp-2.10.20 and Win10, if I use the same files, it creates a * .bat file (so the MPlayer version is also valid) but deletes it before execution - it's possible that it is because of msys64/mingw64 or numerous Gimp versions installed.

I previously used:

Mplayer:
https://sourceforge.net/projects/portab ... 0Portable/
Codecs:
https://mplayerhq.hu/MPlayer/releases/codecs/?C=M;O=D

Thank You Rich2005 for Your support in solving the problem.

_________________
Image

Slava
Ukraini!


Top
 Post subject: Re: GAP 2.7 and MPlayer settings
PostPosted: Thu Jun 18, 2020 9:16 am  (#11) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4752
Tas_mania wrote:
Another point of interest.
'GNU' stands for 'God Not Unix'.

Actually means "GNU's not Unix!". Unless you mean this.

_________________
Image


Top
 Post subject: Re: GAP 2.7 and MPlayer settings
PostPosted: Thu Jun 18, 2020 4:11 pm  (#12) 
Offline
GimpChat Member
User avatar

Joined: Apr 15, 2017
Posts: 1826
Rich2005 posted this interesting post: viewtopic.php?f=8&t=18461&start=0#p252157 I've tested and it works surprisingly well. I have ffmpeg installed system wide as do most Linux users. The only problem is it won't respect Alpha Channel for some reason. That and the fact that you can't set in and out points. It's still an interesting discovery non the less. It's worth looking into just the same.

Attachment:
g'mic.jpg
g'mic.jpg [ 162.44 KiB | Viewed 2780 times ]


Top
 Post subject: Re: GAP 2.7 and MPlayer settings
PostPosted: Thu Jun 18, 2020 6:45 pm  (#13) 
Offline
GimpChat Member
User avatar

Joined: Nov 04, 2015
Posts: 1365
ofnuts - I changed my post to 'GNU's not Unix'. (Actually GNU is Unix).

Here is what the GAP 'Filter all Layers' looks like.
Image

Looks like G'MIC can import video using the method suggested by racer-x and Rich.

Looks like the Windows Gimp-GAP was cross-compiled on an openSuse system.


Top
 Post subject: Re: GAP 2.7 and MPlayer settings
PostPosted: Fri Jun 19, 2020 8:02 pm  (#14) 
Offline
GimpChat Member
User avatar

Joined: Nov 04, 2015
Posts: 1365
I just compiled gimp-gap for the last Ubuntu running Gimp 2.10.x
This has the 'Video' menu entry and the 'Filter all Layers' menu entry.

Download here.
It has one dependency - sudo apt-get install libfaac0

One of the Filter all Layers 'alien map' was changed in the latest Gimps.
I found how to install older filters dropped by Gimp. In this case I put the old filter in
/usr/lib/gimp/2.0/plug-ins/alien-map
make executable
Image


BTW This is for the installed Gimp not an appimage.


Top
 Post subject: Re: GAP 2.7 and MPlayer settings
PostPosted: Fri Jun 19, 2020 11:35 pm  (#15) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2260
Location: Poland
Thank You Tas_mania. :tyspin
Works very well for Gimp-2.10.20 (own build with Python2). :bigthup
Have You ever tried on Ubuntu: "Cross compilation for Windows"?:

(quote from the site: https://gitlab.gnome.org/GNOME/gimp-gap/ )

GIMP-GAP was succesfully built for Windows 64 bit systems
on a 64 bit Linux Host by following those cross compilation steps:

o) installed most dependency libs from openSuSE 13.1 windows 64 bit
Note that openSuSE already provides many cross compiled libraries for Windows.
The url for the win 64 bit repository is:
http://download.opensuse.org/repositori ... SUSE_13.1/
o) have a script to setup environment varbles
(PREFIX, LD_LIBRARY_PATH and other stuff see the gimp wiki crosscompile page)
o) crosscompiled some dependency libs that were not provided as binary by openSUSE 13.1
o) crosscompiled gimp-2.8.10 (see gimp wiki crosscompile page)

o) configure GAP for cross compilation:

-) Add the options:
--enable-cross-compile --target-os=mingw32 --arch=x86_64
to the file: extern_libs/configure_options_ffmpeg_win32.txt

-) run configure (or autogen.sh) with the following configure options:
./configure --prefix=$PREFIX --host=x86_64-w64-mingw32 --disable-libmpeg3 --disable-gui-thread-su


But now I wonder if this is possible for MathMap. :yes

_________________
Image

Slava
Ukraini!


Top
 Post subject: Re: GAP 2.7 and MPlayer settings
PostPosted: Sat Jun 20, 2020 12:38 am  (#16) 
Offline
GimpChat Member
User avatar

Joined: Nov 04, 2015
Posts: 1365
Hi Marero, Gimp-Gap and MathMap are similar. Extensive plugins written in C. It must be possible to cross-compile for Windows in Linux.
The code is there but nobody has been able to do it so far.
Another posibility is MS Azure.

I get frightened by the jargon (tech-speak) of Azure. There is no charge for open source projects apparently. Maybe it will happen this year.
Hope so.


Top
 Post subject: Re: GAP 2.7 and MPlayer settings
PostPosted: Sat Jun 20, 2020 8:50 am  (#17) 
Offline
GimpChat Member
User avatar

Joined: May 10, 2013
Posts: 1389
Location: FInland
Thanks for the gimp-gap Tas_mania!


Top
Post new topic Reply to topic  [ 17 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) G'MIC settings problems

5

No new posts Backing Up Settings and Faves

2

No new posts Attachment(s) Please help: Problem with text settings

4

No new posts Attachment(s) transfer filter settings to new version

7

No new posts slider settings on some GMIC filters

1



* Login  



Powered by phpBB3 © phpBB Group