oliver@NUC-1:~$ ./ffmpeg -f v4l2 -thread_queue_size 1024 -video_size 1920x1080 -framerate 25 -i /dev/video0 -f alsa -thread_queue_size 1024 -i "hw:CARD=XI100DUSBHDMI,DEV=0" -vcodec libx265 -preset ultrafast -vb 3200k -maxrate 3200k -bufsize 3200k -vf yadif=1 -acodec aac -ab 192k -t 60 -f mpegts ~/Desktop/capture.ts -y ffmpeg version N-81511-gaabe12e Copyright (c) 2000-2016 the FFmpeg developers built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.2) 20160609 configuration: --enable-gpl --enable-version3 --enable-static --enable-libx264 --enable-libx265 --enable-nvenc --enable-libpulse --disable-debug libavutil 55. 29.100 / 55. 29.100 libavcodec 57. 54.101 / 57. 54.101 libavformat 57. 48.101 / 57. 48.101 libavdevice 57. 0.102 / 57. 0.102 libavfilter 6. 58.100 / 6. 58.100 libswscale 4. 1.100 / 4. 1.100 libswresample 2. 1.100 / 2. 1.100 libpostproc 54. 0.100 / 54. 0.100 [video4linux2,v4l2 @ 0x29e7560] Dequeued v4l2 buffer contains corrupted data (0 bytes). Last message repeated 31 times Input #0, video4linux2,v4l2, from '/dev/video0': Duration: N/A, start: 1080.263350, bitrate: 829440 kb/s Stream #0:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 1920x1080, 829440 kb/s, 25 fps, 25 tbr, 1000k tbn, 1000k tbc Guessed Channel Layout for Input Stream #1.0 : stereo Input #1, alsa, from 'hw:CARD=XI100DUSBHDMI,DEV=0': Duration: N/A, start: 1473103372.947138, bitrate: 1536 kb/s Stream #1:0: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s x265 [info]: HEVC encoder version 2.0+1-6a9b6a828f79 x265 [info]: build info [Linux][GCC 5.4.0][64 bit] 8bit x265 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX AVX2 FMA3 LZCNT BMI2 x265 [info]: Main 4:2:2 10 profile, Level-4.1 (Main tier) x265 [info]: Thread pool created using 8 threads x265 [info]: frame threads / pool features : 3 / wpp(34 rows) x265 [info]: Coding QT: max CU size, min CU size : 32 / 16 x265 [info]: Residual QT: max TU size, max depth : 32 / 1 inter / 1 intra x265 [info]: ME / range / subpel / merge : dia / 57 / 0 / 2 x265 [info]: Keyframe min / max / scenecut : 25 / 250 / 0 x265 [info]: Lookahead / bframes / badapt : 5 / 3 / 0 x265 [info]: b-pyramid / weightp / weightb : 1 / 0 / 0 x265 [info]: References / ref-limit cu / depth : 1 / off / off x265 [info]: AQ: mode / str / qg-size / cu-tree : 1 / 0.0 / 32 / 1 x265 [info]: Rate Control / qCompress : ABR-3200 kbps / 0.60 x265 [info]: tools: rd=2 psy-rd=2.00 early-skip rskip tmvp fast-intra x265 [info]: tools: strong-intra-smoothing lslices=6 deblock [mpegts @ 0x2a02440] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead. Last message repeated 1 times Output #0, mpegts, to '/home/oliver/Desktop/capture.ts': Metadata: encoder : Lavf57.48.101 Stream #0:0: Video: hevc (libx265), yuv422p, 1920x1080, q=2-31, 3200 kb/s, 50 fps, 90k tbn, 50 tbc Metadata: encoder : Lavc57.54.101 libx265 Stream #0:1: Audio: aac (LC), 48000 Hz, stereo, fltp, delay 1024, padding 0, 192 kb/s Metadata: encoder : Lavc57.54.101 aac Stream mapping: Stream #0:0 -> #0:0 (rawvideo (native) -> hevc (libx265)) Stream #1:0 -> #0:1 (pcm_s16le (native) -> aac (native)) Press [q] to stop, [?] for help Past duration 0.737587 too large Past duration 0.835243 too large Past duration 0.835213 too large Past duration 0.835197 too large Past duration 0.835320 too large Past duration 0.835442 too large Past duration 0.835213 too large Past duration 0.834999 too large Past duration 0.834969 too large Past duration 0.834938 too large Past duration 0.835243 too large Past duration 0.835548 too large Past duration 0.835564 too large Past duration 0.835594 too large Last message repeated 2 times Past duration 0.835670 too large Past duration 0.835747 too large Last message repeated 2 times frame= 22 fps=0.0 q=-0.0 size= 21kB time=00:00:00.12 bitrate=1322.4kbits/Past duration 0.835594 too large Past duration 0.835442 too large Past duration 0.835640 too large Past duration 0.835838 too large Past duration 0.835869 too large Past duration 0.835899 too large Past duration 0.835915 too large Past duration 0.835945 too large Last message repeated 2 times Past duration 0.835991 too large Past duration 0.836037 too large Past duration 0.836021 too large Past duration 0.835991 too large Past duration 0.836037 too large Past duration 0.836098 too large Past duration 0.836113 too large Past duration 0.836143 too large Past duration 0.836174 too large Past duration 0.836189 too large Last message repeated 2 times Past duration 0.836235 too large Past duration 0.836296 too large Past duration 0.836220 too large Past duration 0.836143 too large Past duration 0.836266 too large Past duration 0.836388 too large Past duration 0.836372 too large frame= 51 fps= 50 q=-0.0 size= 102kB time=00:00:00.70 bitrate=1182.9kbits/Past duration 0.836342 too large Past duration 0.836449 too large Past duration 0.836540 too large Last message repeated 2 times Past duration 0.836571 too large Past duration 0.836586 too large Past duration 0.836647 too large Past duration 0.836693 too large Last message repeated 2 times Past duration 0.836723 too large Past duration 0.836739 too large Past duration 0.836800 too large frame= 65 fps= 46 q=-0.0 Lsize= 146kB time=00:00:01.24 bitrate= 964.2kbits/s dup=0 drop=1 speed=0.875x video:128kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 13.423185% x265 [info]: frame I: 1, Avg QP:36.94 kb/s: 264.80 x265 [info]: frame P: 17, Avg QP:28.68 kb/s: 2860.12 x265 [info]: frame B: 47, Avg QP:31.85 kb/s: 68.03 x265 [info]: consecutive B-frames: 11.1% 0.0% 5.6% 83.3% encoded 65 frames in 1.42s (45.77 fps), 801.29 kb/s, Avg QP:31.10 [aac @ 0x29fe3e0] Qavg: 65536.000