View previous topic :: View next topic |
Author |
Message |
Adel Ahmed Veteran
Joined: 21 Sep 2012 Posts: 1523
|
Posted: Thu Aug 21, 2014 11:40 am Post subject: ffmpeg x11 screen grabbing[solved] |
|
|
I'm trying to record my screen using ffmpeg:
ffmpeg -f x11grab -s cif -r 25 -i :0.0 /tmp/out.mpg
I get :
Encoder (codec none) not found for output stream #0:0
adel@localhost ~ $ ffmpeg -encoders
ffmpeg version 1.2.6 Copyright (c) 2000-2014 the FFmpeg developers
built on Aug 15 2014 15:25:33 with gcc 4.7.3 (Gentoo 4.7.3-r1 p1.4, pie-0.5.5)
configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ --ar=x86_64-pc-linux-gnu-ar --optflags='-O2 -pipe -fomit-frame-pointer -march=native -msse -msse2 -msse3 -mmmx' --extra-cflags='-O2 -pipe -fomit-frame-pointer -march=native -msse -msse2 -msse3 -mmmx' --extra-cxxflags='-O2 -pipe -fomit-frame-pointer -march=native -msse -msse2 -msse3 -mmmx' --disable-static --enable-gpl --enable-postproc --enable-avfilter --enable-avresample --disable-stripping --disable-encoders --disable-indev=v4l2 --disable-indev=oss --disable-indev=jack --disable-outdev=oss --disable-outdev=sdl --disable-bzlib --disable-runtime-cpudetect --disable-debug --disable-doc --disable-gnutls --disable-hardcoded-tables --disable-iconv --disable-network --disable-openssl --disable-ffplay --enable-vaapi --disable-vdpau --disable-zlib --disable-libcdio --disable-libiec61883 --disable-libdc1394 --disable-libcaca --disable-openal --di libavutil 52. 18.100 / 52. 18.100
libavcodec 54. 92.100 / 54. 92.100
libavformat 54. 63.104 / 54. 63.104
libavdevice 54. 3.103 / 54. 3.103
libavfilter 3. 42.103 / 3. 42.103
libswscale 2. 2.100 / 2. 2.100
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 2.100 / 52. 2.100
[ebuild R ] media-video/ffmpeg-1.2.6-r1 USE="X alsa mmx mmxext threads truetype vaapi -3dnow -3dnowext -aac -aacplus (-altivec) -amr -avx -bindist -bluray -bzip2 -cdio (-celt) -cpudetection -debug -doc -encode -examples -faac -fdk -flite -fontconfig -frei0r -gnutls -gsm -hardcoded-tables -iconv -iec61883 -ieee1394 -jack -jpeg2k -libass -libcaca -libsoxr -libv4l -modplug -mp3 (-neon) -network -openal -openssl -opus -oss -pic -pulseaudio -rtmp -schroedinger -sdl -speex -ssse3 -static-libs {-test} -theora -twolame -v4l -vdpau (-vis) -vorbis -vpx -x264 -xvid -zlib" ABI_X86="(64) (-32) (-x32)" FFTOOLS="-aviocat -cws2fws -ffescape -ffeval -fourcc2pixfmt -graph2dot -ismindex -pktdumper -qt-faststart -trasher" 0 kB
any tips?
Last edited by Adel Ahmed on Thu Aug 21, 2014 4:31 pm; edited 1 time in total |
|
Back to top |
|
|
creaker l33t
Joined: 14 Jul 2012 Posts: 651
|
Posted: Thu Aug 21, 2014 12:48 pm Post subject: |
|
|
Try to rebuild ffmpeg with 'encode' USE flag enabled. You have it disabled, so, may be it causes a problem.
I have it enabled and ffmpeg grabs a screen fine.
Here is my ffmpeg flags:
Code: | media-video/ffmpeg-1.2.6-r1 was built with the following:
USE="X aac alsa bzip2 encode hardcoded-tables iconv mmx mp3 network sdl truetype vorbis x264 xvid zlib -3dnow -3dnowext -aacplus (-altivec) -amr -avx -bindist -bluray -cdio (-celt) -cpudetection -debug -doc -examples -faac -fdk -flite -fontconfig -frei0r -gnutls -gsm -iec61883 -ieee1394 -jack -jpeg2k -libass -libcaca -libsoxr -libv4l -mmxext -modplug (-neon) -openal -openssl -opus -oss -pic -pulseaudio -rtmp -schroedinger -speex -ssse3 -static-libs -test -theora -threads -twolame -v4l -vaapi -vdpau (-vis) -vpx" ABI_X86="64 -32 -x32" FFTOOLS="aviocat cws2fws ffescape ffeval fourcc2pixfmt graph2dot ismindex pktdumper qt-faststart trasher"
|
Try to just copy these flags set and use them for rebuild. |
|
Back to top |
|
|
Adel Ahmed Veteran
Joined: 21 Sep 2012 Posts: 1523
|
Posted: Thu Aug 21, 2014 4:31 pm Post subject: |
|
|
thanks didn't think it was something this silly |
|
Back to top |
|
|
|