خرید بک لینک

I'n on Lubuntu 14.04 which doesn't have ffmpeg by default but I installed it via a ppa:

Code:

$ apt-cache policy ffmpeg
ffmpeg:
  Installed: 7:3.0.0+git~trusty
  Candidate: 7:3.0.0+git~trusty
  Version table:
 *** 7:3.0.0+git~trusty 0
        500 http://ppa.launchpad.net/mc3man/trusty-media/ubuntu/ trusty/main amd64 Packages
        100 /var/lib/dpkg/status
$
When I run

Code:

$ ffmpeg -f x11grab -s 1360x765 -r 30 -i :0.0 -qscale 0 -vcodec huffyuv~/Desktop/$(date +%H%M%S).avi
I get this:

Code:

$ ffmpeg -f x11grab -s 1360x765 -r 30 -i :0.0 -qscale 0 -vcodec huffyuv~/Desktop/$(date +%H%M%S).avi
ffmpeg version N-78590-g5590ab4 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04.1)
  configuration: --extra-libs=-ldl --prefix=/opt/ffmpeg --mandir=/usr/share/man --enable-avresample --disable-debug --enable-nonfree --enable-gpl --enable-version3 --enable-libopencore-amb --enable-libopencore-amrwb --disable-decoder=amb --disable-decoder=amrwb --enable-libpulse --enable-libfreetype --enable-gnutls --enable-libx264 --enable-libx265 --enable-libfdk-aac --enable-libvorbis --enable-libmp3lame --enable-libopus --enable-libvpx --enable-libspeex --enable-libass --enable-avisynth --enable-libsoxr --enable-libxvid --enable-libvidstab
  libavutil      55. 18.100 / 55. 18.100
  libavcodec     57. 24.103 / 57. 24.103
  libavformat    57. 25.100 / 57. 25.100
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 32.100 /  6. 32.100
  libavresample   3.  0.  0 /  3.  0.  0
  libswscale      4.  0.100 /  4.  0.100
  libswresample   2.  0.101 /  2.  0.101
  libpostproc    54.  0.100 / 54.  0.100
Trailing options were found on the commandline.
Unknown input format: 'x11grab'
$
I don't know much about ffmpeg but I remember this command had worked previously in 14.04 IIRC. That's why I have it in my notes.

The man page for ffmpeg has this command:

Code:

ffmpeg -f x11grab -video_size cif -framerate 25 -i :0.0 /tmp/out.mpg
but even that doesn't work:

Code:

$ ffmpeg -f x11grab -video_size cif -framerate 25 -i :0.0 ~/Desktop/out.mpg
ffmpeg version N-78590-g5590ab4 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04.1)
  configuration: --extra-libs=-ldl --prefix=/opt/ffmpeg --mandir=/usr/share/man --enable-avresample --disable-debug --enable-nonfree --enable-gpl --enable-version3 --enable-libopencore-amb --enable-libopencore-amrwb --disable-decoder=amb --disable-decoder=amrwb --enable-libpulse --enable-libfreetype --enable-gnutls --enable-libx264 --enable-libx265 --enable-libfdk-aac --enable-libvorbis --enable-libmp3lame --enable-libopus --enable-libvpx --enable-libspeex --enable-libass --enable-avisynth --enable-libsoxr --enable-libxvid --enable-libvidstab
  libavutil      55. 18.100 / 55. 18.100
  libavcodec     57. 24.103 / 57. 24.103
  libavformat    57. 25.100 / 57. 25.100
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 32.100 /  6. 32.100
  libavresample   3.  0.  0 /  3.  0.  0
  libswscale      4.  0.100 /  4.  0.100
  libswresample   2.  0.101 /  2.  0.101
  libpostproc    54.  0.100 / 54.  0.100
Unknown input format: 'x11grab'
$
Even this:

Code:

ffmpeg -video_size 1024x768 -framerate 25 -f x11grab -i :0.0+100,200 output.mp4
from https://trac.ffmpeg.org/wiki/Capture/Desktop doesn't work. It gives the same "Unknown input format: 'x11grab'".

Could it be that I'm using an Openbox session with no session manager?

According to https://ffmpeg.org/ffmpeg-devices.html#toc-x11grab,

3.21 x11grab

X11 video input device.

To enable this input device during configuration you need libxcb installed on your system. It will be automatically detected during configuration.

Alteatively, the configure option --enable-x11grab exists for legacy Xlib users.

This device allows one to capture a region of an X11 display.

I don't have libxcb nor is it available via apt-get.

برچسب: نویسنده: استخدام کار تاريخ: شنبه 7 فروردين 1395 ساعت: 20:57

صفحه بندی