WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Need x11grab  (Read 6060 times)

Offline malikawan

  • Full Member
  • ***
  • Posts: 243
Need x11grab
« on: October 10, 2016, 12:56:08 AM »
Is there any extension x11grab or its alternate

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14572
Re: Need x11grab
« Reply #1 on: October 11, 2016, 07:38:19 AM »
are you referring to the ffmpeg x11grab module?

If so, it is enabled in the corepure64 ffmpeg

Offline malikawan

  • Full Member
  • ***
  • Posts: 243
Re: Need x11grab
« Reply #2 on: October 12, 2016, 11:10:56 PM »
Basically i am using tinycore 4.7.7 any idea to use x11grab in tinycore 4.7.7. i want to use x11grab with ffmpeg.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14572
Re: Need x11grab
« Reply #3 on: October 12, 2016, 11:17:59 PM »
I suggest you check if the ffmpeg-1.0.0 configure script accepts the "--enable-x11grab" switch and, if so, recompile it.

The build instructions and source are here:

http://repo.tinycorelinux.net/4.x/x86/tcz/src/ffmpeg/

Offline malikawan

  • Full Member
  • ***
  • Posts: 243
Re: Need x11grab
« Reply #4 on: October 13, 2016, 12:42:49 AM »
Sir thanks for reply i have tried but not succeeded.  Please any one give me the link to download ffmpeg-1.0.0 configure script. I have downloaded but its ffmpeg-2.7.1.tar.bz2

Offline malikawan

  • Full Member
  • ***
  • Posts: 243
Re: Need x11grab
« Reply #5 on: October 13, 2016, 12:54:59 AM »
when i ./configure i receive this error
gcc is unable to create an executable file.
If gcc is a cross-compiler, use the --enable-cross-compile option.
Only do this if you know what cross compiling means.
C compiler test failed.
If you think configure made a mistake, make sure you are using the latest
version from Git.  If the latest version fails, report the problem to the
ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "config.log" produced by configure as this will help
solving the problem.


when i use --enable-cross-compile i get this error

Must specify target arch and OS when cross-compiling
If you think configure made a mistake, make sure you are using the latest
version from Git.  If the latest version fails, report the problem to the
ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "config.log" produced by configure as this will help
solving the problem.

« Last Edit: October 13, 2016, 12:57:23 AM by malikawan »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14572
Re: Need x11grab
« Reply #6 on: October 13, 2016, 01:01:32 AM »
The version of ffmpeg used in tc-4.x is ffmpeg-1.0.0

If you compile a later version of ffmpeg you risk breaking several other extensions in tc-4.x - that is why I suggested using ffmpeg-1.0.0

The configure script is contained in the ffmpeg-1.0.0.tar.bz2 source:
Code: [Select]
$ tar xf ffmpeg-1.0.0.tar.bz2
$ cd ffmpeg-1.0
$ ./configure --help | grep x11
  --enable-x11grab         enable X11 grabbing [no]

..so the "--enable-x11grab" switch exists, but it is disabled by default, hence you will need to recompile.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14572
Re: Need x11grab
« Reply #7 on: October 13, 2016, 01:05:03 AM »
when i ./configure i receive this error
gcc is unable to create an executable file.

load the compiletc extension and then follow the insructions here:

http://tinycorelinux.net/4.x/x86/tcz/src/ffmpeg/compile_ffmpeg

Offline malikawan

  • Full Member
  • ***
  • Posts: 243
Re: Need x11grab
« Reply #8 on: October 13, 2016, 02:38:26 AM »
I have loaded all these extensions but still same error after giving this command
tc@box:~/ffmpeg-1.0/ffmpeg-1.0$ ./configure --prefix=/usr/local --enable-x11grab

gcc is unable to create an executable file.
If gcc is a cross-compiler, use the --enable-cross-compile option.
Only do this if you know what cross compiling means.
C compiler test failed.
tc@box:~/ffmpeg-1.0/ffmpeg-1.0$ ./configure --prefix=/usr/local --enable-cross-compile --enable-x11grab
Must specify target arch and OS when cross-compiling


Please how i give command for arch and os
/configure --prefix=/usr/local --enable-cross-compile --enable-x11grab --arch=x86 --target-os=tinycore
but its not work
« Last Edit: October 13, 2016, 02:59:26 AM by malikawan »

Offline malikawan

  • Full Member
  • ***
  • Posts: 243
Re: Need x11grab
« Reply #9 on: October 13, 2016, 03:05:11 AM »
Please how i give command for arch and os
/configure --prefix=/usr/local --enable-cross-compile --enable-x11grab --arch=x86 --target-os=tinycore
but its not work

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14572
Re: Need x11grab
« Reply #10 on: October 13, 2016, 03:13:08 AM »
Assuming you're using some kind of x86 cpu, you can use this:
Code: [Select]
$ CC="gcc -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local --localstatedir=/var --enable-gpl --enable-version3 --enable-shared --disable-static --enable-small --disable-doc --enable-bzlib --enable-fontconfig --enable-gnutls --enable-libass --enable-libcdio --enable-libfaac --enable-libfreetype --enable-libopenjpeg --enable-libpulse --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-zlib --enable-nonfree --enable-libdc1394 --enable-libmp3lame --enable-libv4l2 --enable-libvpx --enable-libxvid --enable-openal --enable-openssl --enable-libcelt --enable-vdpau --enable-libgsm --enable-libopencv --enable-libtwolame --enable-libx264 --enable-x11grab
« Last Edit: October 13, 2016, 03:29:08 AM by Juanito »

Offline malikawan

  • Full Member
  • ***
  • Posts: 243
Re: Need x11grab
« Reply #11 on: October 13, 2016, 05:14:20 AM »
Please tell me the exact command which i run to ./configure
like
tc@box:~$./configure --prefix=/usr/local --enable-gpl --enable-cross-compile --enable-version3 --enable-shared --disable-static --enable-small --disable-doc --enable-bzlib --enable-fontconfig --enable-gnutls --enable-libass --enable-libcdio --enable-libfaac --enable-libfreetype --enable-libopenjpeg --enable-libpulse --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-zlib --enable-nonfree --enable-libdc1394 --enable-libmp3lame --enable-libv4l2 --enable-libvpx --enable-libxvid --enable-openal --enable-openssl --enable-libcelt --enable-vdpau --enable-libgsm --enable-libopencv --enable-libtwolame --enable-libx264 --enable-x11grab

Offline malikawan

  • Full Member
  • ***
  • Posts: 243
Re: Need x11grab
« Reply #12 on: October 13, 2016, 05:16:14 AM »
i have downloaded ffmpeg-1.0.tar.bz2 than extract it to tc then
i go to ffmpeg-1.0 directory also i have installed all extensions.

Now which command i have to run this to recompile

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14572
Re: Need x11grab
« Reply #13 on: October 13, 2016, 05:22:56 AM »
use the command from my last post

Offline malikawan

  • Full Member
  • ***
  • Posts: 243
Re: Need x11grab
« Reply #14 on: October 13, 2016, 05:26:18 AM »
these are the result from above command