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 640x480 -r 30 -aspect 4:3 -acodec flac -channels 2 -ar 48000 -y "Jimi Hendrix - Rainbow Bridge".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 @ 0x557242f6e280] This device does not support any standard
[mjpeg @ 0x557242f6f9c0] EOI missing, emulating
Input #0, video4linux2,v4l2, from '/dev/video0':
Duration: N/A, start: 4356.791246, 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: 1555139934.912390, 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
[libx264 @ 0x557242f89680] using SAR=1/1
[libx264 @ 0x557242f89680] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 0x557242f89680] profile High 4:2:2, level 3.0, 4:2:2, 8-bit
[libx264 @ 0x557242f89680] 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 'Jimi Hendrix - Rainbow Bridge.mkv':
Metadata:
encoder : Lavf58.17.101
Stream #0:0: Video: h264 (libx264) (H264 / 0x34363248), yuvj422p(pc, progressive), 640x480 [SAR 1:1 DAR 4:3], q=-1--1, 30 fps, 1k tbn, 30 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=110612 fps= 25 q=-1.0 Lsize= 1812662kB time=01:13:51.63 bitrate=3350.8kbits/s dup=0 drop=78 speed= 1x
video:1393811kB audio:417710kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.062977%
[libx264 @ 0x557242f89680] frame I:838 Avg QP:25.79 size: 26968
[libx264 @ 0x557242f89680] frame P:29805 Avg QP:27.42 size: 18071
[libx264 @ 0x557242f89680] frame B:79969 Avg QP:29.66 size: 10830
[libx264 @ 0x557242f89680] consecutive B-frames: 3.1% 1.1% 1.5% 94.3%
[libx264 @ 0x557242f89680] mb I I16..4: 14.3% 45.3% 40.5%
[libx264 @ 0x557242f89680] mb P I16..4: 13.1% 33.8% 12.6% P16..4: 39.4% 0.0% 0.0% 0.0% 0.0% skip: 1.1%
[libx264 @ 0x557242f89680] mb B I16..4: 6.3% 11.3% 3.4% B16..8: 34.4% 0.0% 0.0% direct:34.6% skip:10.1% L0:36.3% L1:39.0% BI:24.7%
[libx264 @ 0x557242f89680] 8x8 transform intra:55.1% inter:47.7%
[libx264 @ 0x557242f89680] coded y,uvDC,uvAC intra: 66.2% 84.4% 36.5% inter: 36.1% 67.1% 9.6%
[libx264 @ 0x557242f89680] i16 v,h,dc,p: 35% 21% 31% 13%
[libx264 @ 0x557242f89680] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 15% 20% 27% 7% 5% 5% 7% 5% 9%
[libx264 @ 0x557242f89680] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 28% 15% 14% 7% 7% 8% 6% 8% 7%
[libx264 @ 0x557242f89680] i8c dc,h,v,p: 38% 25% 22% 15%
[libx264 @ 0x557242f89680] Weighted P-Frames: Y:20.6% UV:12.2%
[libx264 @ 0x557242f89680] kb/s:2576.44