0
Kamera nie ma się załączać w tym przypadku, bo przekazujemy tylko wycinek pulpitu.
Pokaż co zwraca ffmpeg -f x11grab -s 640x480 -i :0.0+10,20 -vf format=pix_fmts=yuv420p -f v4l2 /dev/video1
To powinno być coś w tym stylu:
itd.
Pokaż co zwraca ffmpeg -f x11grab -s 640x480 -i :0.0+10,20 -vf format=pix_fmts=yuv420p -f v4l2 /dev/video1
To powinno być coś w tym stylu:
Kod:
ffmpeg version 3.4 Copyright (c) 2000-2017 the FFmpeg developers
built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04.4)
configuration: --extra-libs=-ldl --prefix=/opt/ffmpeg --mandir=/usr/share/man --enable-avresample --disable-debug --enable-nonfree --enable-gpl --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --disable-decoder=amrnb --disable-decoder=amrwb --enable-libpulse --enable-libfreetype --enable-gnutls --disable-ffserver --enable-libx264 --enable-libx265 --enable-libfdk-aac --enable-libvorbis --enable-libtheora --enable-libmp3lame --enable-libopus --enable-libvpx --enable-libspeex --enable-libass --enable-avisynth --enable-libsoxr --enable-libxvid --enable-libvidstab --enable-libwavpack --enable-nvenc --enable-libzimg
libavutil 55. 78.100 / 55. 78.100
libavcodec 57.107.100 / 57.107.100
libavformat 57. 83.100 / 57. 83.100
libavdevice 57. 10.100 / 57. 10.100
libavfilter 6.107.100 / 6.107.100
libavresample 3. 7. 0 / 3. 7. 0
libswscale 4. 8.100 / 4. 8.100
libswresample 2. 9.100 / 2. 9.100
libpostproc 54. 7.100 / 54. 7.100
Input #0, x11grab, from ':0.0+10,20':
Duration: N/A, start: 1578428341.394253, bitrate: N/A
Stream #0:0: Video: rawvideo (BGR[0] / 0x524742), bgr0, 640x480, 29.97 fps, 48 tbr, 1000k tbn, 1000k tbc
Stream mapping:
Stream #0:0 -> #0:0 (rawvideo (native) -> rawvideo (native))
Press [q] to stop, [?] for help
Output #0, v4l2, to '/dev/video0':
Metadata:
encoder : Lavf57.83.100
Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 640x480, q=2-31, 176947 kb/s, 48 fps, 48 tbn, 48 tbc
Metadata:
encoder : Lavc57.107.100 rawvideo
Past duration 0.926903 too large
Past duration 0.730324 too largeN/A time=00:00:11.54 bitrate=N/A dup=208 drop=0 speed=1.01x
Past duration 0.704185 too large
Past duration 0.785957 too largeN/A time=00:00:12.08 bitrate=N/A dup=217 drop=0 speed=1.01x
Past duration 0.684715 too largeN/A time=00:00:16.18 bitrate=N/A dup=291 drop=0 speed=1.01x
Past duration 0.687325 too largeN/A time=00:00:17.72 bitrate=N/A dup=319 drop=0 speed=1.01x
Past duration 0.875084 too largeN/A time=00:00:20.79 bitrate=N/A dup=374 drop=0 speed=1.01x
Past duration 0.785973 too largeN/A time=00:00:21.33 bitrate=N/A dup=384 drop=0 speed=1.01x
Past duration 0.945869 too largeN/A time=00:00:21.83 bitrate=N/A dup=393 drop=0 speed=1.01x
Past duration 0.954002 too large
Past duration 0.700844 too largeN/A time=00:00:22.41 bitrate=N/A dup=405 drop=0 speed=1.01x
Past duration 0.683250 too largeN/A time=00:00:28.64 bitrate=N/A dup=516 drop=0 speed=1.01x
Past duration 0.674126 too largeN/A time=00:00:29.12 bitrate=N/A dup=526 drop=0 speed=1.01x
Past duration 0.666893 too large
Past duration 0.676384 too largeN/A time=00:00:50.41 bitrate=N/A dup=919 drop=0 speed= 1x
Past duration 0.620979 too large
Past duration 0.979698 too large
Past duration 0.751869 too large
Past duration 0.748222 too largeN/A time=00:00:50.91 bitrate=N/A dup=924 drop=0 speed= 1x
Past duration 0.681480 too large
Past duration 0.710793 too largeN/A time=00:00:51.43 bitrate=N/A dup=937 drop=0 speed= 1x
Past duration 0.792213 too large
Past duration 0.806465 too large
Past duration 0.802269 too largeN/A time=00:00:51.95 bitrate=N/A dup=948 drop=0 speed= 1x
Past duration 0.753059 too large
Past duration 0.617867 too large
Past duration 0.865639 too largeN/A time=00:00:52.45 bitrate=N/A dup=954 drop=0 speed= 1x
Past duration 0.736855 too largeN/A time=00:00:53.00 bitrate=N/A dup=967 drop=1 speed= 1x
Past duration 0.794899 too large
More than 1000 frames duplicatedN/A time=00:00:54.08 bitrate=N/A dup=986 drop=1 speed= 1x
Past duration 0.805519 too largeN/A time=00:00:56.31 bitrate=N/A dup=1060 drop=1 speed= 1x
Past duration 0.667442 too largeN/A time=00:00:56.93 bitrate=N/A dup=1079 drop=1 speed= 1x
...
Zasady forum | Poradniki i najczęstsze pytania | 90% odpowiedzi na wszystkie pytania
A imię jego czterdzieści i cztery.
A imię jego czterdzieści i cztery.