ffmpeg -f v4l2 -standard PAL -thread_queue_size 512 -i /dev/video0 -f alsa -thread_queue_size 512 -i hw:2,0 -vcodec libx264 -preset superfast -crf 25 -s 720x576 -r 25 -aspect 4:3 -acodec flac -y -channels 2 -ar 48000 "Pink Floyd - Live At Pompeii".mkv
ffmpeg version N-91586-g90dc584 Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 7 (Ubuntu 7.3.0-16ubuntu3)
configuration: --prefix=/home/shan/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/home/shan/ffmpeg_build/include --extra-ldflags=-L/home/shan/ffmpeg_build/lib --extra-libs='-lpthread -lm' --bindir=/home/shan/bin --enable-gpl --enable-libaom --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-openssl --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-nonfree
libavutil 56. 18.102 / 56. 18.102
libavcodec 58. 22.101 / 58. 22.101
libavformat 58. 17.101 / 58. 17.101
libavdevice 58. 4.101 / 58. 4.101
libavfilter 7. 26.100 / 7. 26.100
libswscale 5. 2.100 / 5. 2.100
libswresample 3. 2.100 / 3. 2.100
libpostproc 55. 2.100 / 55. 2.100
[video4linux2,v4l2 @ 0x5578783872c0] This device does not support any standard
[mjpeg @ 0x5578783889c0] EOI missing, emulating
Input #0, video4linux2,v4l2, from '/dev/video0':
Duration: N/A, start: 5117.327205, bitrate: N/A
Stream #0:0: Video: mjpeg, yuvj422p(pc, bt470bg/unknown/unknown), 640x480, 30 fps, 30 tbr, 1000k tbn, 1000k tbc
Guessed Channel Layout for Input Stream #1.0 : stereo
Input #1, alsa, from 'hw:2,0':
Duration: N/A, start: 1555065252.936154, bitrate: 1536 kb/s
Stream #1:0: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (mjpeg (native) -> h264 (libx264))
Stream #1:0 -> #0:1 (pcm_s16le (native) -> flac (native))
Press [q] to stop, [?] for help
[swscaler @ 0x5578783d3500] deprecated pixel format used, make sure you did set range correctly
[libx264 @ 0x5578783ad100] using SAR=16/15
[libx264 @ 0x5578783ad100] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 0x5578783ad100] profile High 4:2:2, level 3.0, 4:2:2, 8-bit
[libx264 @ 0x5578783ad100] 264 - core 157 - H.264/MPEG-4 AVC codec - Copyleft 2003-2018 -
http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:0:0 analyse=0x3:0x3 me=dia subme=1 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=1 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc=crf mbtree=0 crf=25.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 pb_ratio=1.30 aq=1:1.00
Output #0, matroska, to 'Pink Floyd - Live At Pompeii.mkv':
Metadata:
encoder : Lavf58.17.101
Stream #0:0: Video: h264 (libx264) (H264 / 0x34363248), yuvj422p(pc, progressive), 720x576 [SAR 16:15 DAR 4:3], q=-1--1, 25 fps, 1k tbn, 25 tbc
Metadata:
encoder : Lavc58.22.101 libx264
Side data:
cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
Stream #0:1: Audio: flac ([172][241][0][0] / 0xF1AC), 48000 Hz, stereo, s16, 128 kb/s
Metadata:
encoder : Lavc58.22.101 flac
frame=119807 fps= 25 q=-1.0 Lsize= 1779021kB time=01:20:03.40 bitrate=3034.0kbits/s dup=0 drop=84 speed= 1x
video:1353259kB audio:424536kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.069008%
[libx264 @ 0x5578783ad100] frame I:910 Avg QP:21.92 size: 28605
[libx264 @ 0x5578783ad100] frame P:31527 Avg QP:23.48 size: 16526
[libx264 @ 0x5578783ad100] frame B:87370 Avg QP:25.85 size: 9599
[libx264 @ 0x5578783ad100] consecutive B-frames: 2.3% 0.8% 1.3% 95.5%
[libx264 @ 0x5578783ad100] mb I I16..4: 20.7% 49.0% 30.3%
[libx264 @ 0x5578783ad100] mb P I16..4: 15.6% 30.1% 4.6% P16..4: 44.6% 0.0% 0.0% 0.0% 0.0% skip: 5.1%
[libx264 @ 0x5578783ad100] mb B I16..4: 4.4% 7.3% 0.6% B16..8: 34.8% 0.0% 0.0% direct:36.2% skip:16.8% L0:40.5% L1:42.7% BI:16.8%
[libx264 @ 0x5578783ad100] 8x8 transform intra:59.3% inter:39.8%
[libx264 @ 0x5578783ad100] coded y,uvDC,uvAC intra: 47.8% 80.7% 44.9% inter: 25.3% 66.8% 16.2%
[libx264 @ 0x5578783ad100] i16 v,h,dc,p: 53% 22% 15% 11%
[libx264 @ 0x5578783ad100] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 16% 21% 22% 7% 6% 6% 8% 5% 8%
[libx264 @ 0x5578783ad100] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 23% 23% 14% 7% 6% 6% 7% 6% 7%
[libx264 @ 0x5578783ad100] i8c dc,h,v,p: 35% 33% 19% 13%
[libx264 @ 0x5578783ad100] Weighted P-Frames: Y:24.8% UV:12.1%
[libx264 @ 0x5578783ad100] kb/s:2307.87