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 -y -ar 48000 -vf "eq=saturation=0.70" "Jimi Hendrix - At The Atlanta Festival".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 @ 0x563e15eb12c0] This device does not support any standard
[mjpeg @ 0x563e15eb29c0] EOI missing, emulating
Input #0, video4linux2,v4l2, from '/dev/video0':
Duration: N/A, start: 7045.990863, 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: 1555231714.117083, 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 @ 0x563e15f000c0] deprecated pixel format used, make sure you did set range correctly
[libx264 @ 0x563e15ecb1c0] using SAR=1/1
[libx264 @ 0x563e15ecb1c0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 0x563e15ecb1c0] profile High 4:2:2, level 3.0, 4:2:2, 8-bit
[libx264 @ 0x563e15ecb1c0] 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 - At The Atlanta Festival.mkv':
Metadata:
encoder : Lavf58.17.101
Stream #0:0: Video: h264 (libx264) (H264 / 0x34363248), yuv422p(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=88680 fps= 25 q=-1.0 Lsize= 945067kB time=00:59:14.36 bitrate=2178.2kbits/s dup=0 drop=22 speed= 1x
video:550081kB audio:394081kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.095753%
[libx264 @ 0x563e15ecb1c0] frame I:894 Avg QP:16.59 size: 13614
[libx264 @ 0x563e15ecb1c0] frame P:23276 Avg QP:18.11 size: 9247
[libx264 @ 0x563e15ecb1c0] frame B:64510 Avg QP:20.87 size: 5207
[libx264 @ 0x563e15ecb1c0] consecutive B-frames: 2.2% 1.7% 1.9% 94.2%
[libx264 @ 0x563e15ecb1c0] mb I I16..4: 45.1% 34.4% 20.5%
[libx264 @ 0x563e15ecb1c0] mb P I16..4: 29.6% 24.4% 6.7% P16..4: 22.2% 0.0% 0.0% 0.0% 0.0% skip:17.0%
[libx264 @ 0x563e15ecb1c0] mb B I16..4: 4.9% 7.7% 0.8% B16..8: 25.8% 0.0% 0.0% direct:29.0% skip:31.8% L0:41.1% L1:42.9% BI:16.0%
[libx264 @ 0x563e15ecb1c0] 8x8 transform intra:46.3% inter:53.3%
[libx264 @ 0x563e15ecb1c0] coded y,uvDC,uvAC intra: 39.3% 68.8% 31.8% inter: 13.7% 47.6% 7.1%
[libx264 @ 0x563e15ecb1c0] i16 v,h,dc,p: 70% 15% 9% 6%
[libx264 @ 0x563e15ecb1c0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 18% 19% 23% 7% 6% 7% 7% 6% 7%
[libx264 @ 0x563e15ecb1c0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 25% 19% 18% 7% 6% 7% 6% 6% 6%
[libx264 @ 0x563e15ecb1c0] i8c dc,h,v,p: 39% 23% 25% 13%
[libx264 @ 0x563e15ecb1c0] Weighted P-Frames: Y:12.4% UV:4.2%
[libx264 @ 0x563e15ecb1c0] kb/s:1267.76