ffmpeg -f v4l2 -standard PAL -thread_queue_size 512 -i /dev/video0 -f alsa -thread_queue_size 1024 -i hw:1,0 -c:v libx264 -y -s 640x480 -b:v 3000k -r 30 -aspect 4:3 -c:a flac -channels 2 -ar 48000 "Jimi Hendrix - At The Isle Of Wight.mkv"
shan@shan-Aspire-XC-780:~$ ffmpeg -f v4l2 -standard PAL -thread_queue_size 512 -i /dev/video0 -f alsa -thread_queue_size 1024 -i hw:1,0 -c:v libx264 -y -s 640x480 -b:v 3000k -r 30 -aspect 4:3 -c:a flac -channels 2 -ar 48000 "Jimi Hendrix - At The Isle Of Wight.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 @ 0x563755b441c0] This device does not support any standard
[mjpeg @ 0x563755b458c0] EOI missing, emulating
Input #0, video4linux2,v4l2, from '/dev/video0':
Duration: N/A, start: 6193.487447, 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:1,0':
Duration: N/A, start: 1554968603.637544, 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 @ 0x563755b5f280] using SAR=1/1
[libx264 @ 0x563755b5f280] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 0x563755b5f280] profile High 4:2:2, level 3.0, 4:2:2, 8-bit
[libx264 @ 0x563755b5f280] 264 - core 157 - H.264/MPEG-4 AVC codec - Copyleft 2003-2018 -
http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 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=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=3000 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, matroska, to 'Jimi Hendrix - At The Isle Of Wight.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, 3000 kb/s, 30 fps, 1k tbn, 30 tbc
Metadata:
encoder : Lavc58.22.101 libx264
Side data:
cpb: bitrate max/min/avg: 0/0/3000000 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= 1920 fps= 25 q=-1.0 Lsize= 34763kB time=00:01:17.00 bitrate=3698.3kbits/s dup=0 drop=12 speed=0.999x
video:27468kB audio:7274kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.059509%
[libx264 @ 0x563755b5f280] frame I:13 Avg QP:18.49 size: 27659
[libx264 @ 0x563755b5f280] frame P:585 Avg QP:24.07 size: 19299
[libx264 @ 0x563755b5f280] frame B:1322 Avg QP:25.77 size: 12464
[libx264 @ 0x563755b5f280] consecutive B-frames: 7.8% 0.7% 1.2% 90.2%
[libx264 @ 0x563755b5f280] mb I I16..4: 21.8% 74.9% 3.2%
[libx264 @ 0x563755b5f280] mb P I16..4: 8.2% 38.6% 1.8% P16..4: 24.8% 14.1% 7.3% 0.0% 0.0% skip: 5.2%
[libx264 @ 0x563755b5f280] mb B I16..4: 2.8% 14.4% 0.4% B16..8: 31.8% 14.0% 3.7% direct:20.3% skip:12.5% L0:39.2% L1:35.6% BI:25.2%
[libx264 @ 0x563755b5f280] final ratefactor: 22.22
[libx264 @ 0x563755b5f280] 8x8 transform intra:80.3% inter:69.6%
[libx264 @ 0x563755b5f280] coded y,uvDC,uvAC intra: 47.0% 81.7% 33.2% inter: 38.2% 78.3% 29.2%
[libx264 @ 0x563755b5f280] i16 v,h,dc,p: 39% 37% 14% 10%
[libx264 @ 0x563755b5f280] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 27% 26% 34% 2% 2% 2% 2% 2% 3%
[libx264 @ 0x563755b5f280] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 29% 18% 15% 5% 6% 9% 6% 7% 5%
[libx264 @ 0x563755b5f280] i8c dc,h,v,p: 42% 27% 25% 6%
[libx264 @ 0x563755b5f280] Weighted P-Frames: Y:20.9% UV:15.9%
[libx264 @ 0x563755b5f280] ref P L0: 42.2% 12.5% 26.1% 16.4% 2.7%
[libx264 @ 0x563755b5f280] ref B L0: 80.0% 15.8% 4.2%
[libx264 @ 0x563755b5f280] ref B L1: 92.8% 7.2%
[libx264 @ 0x563755b5f280] kb/s:2915.95
shan@shan-Aspire-XC-780:~$ ffmpeg -f v4l2 -standard PAL -thread_queue_size 512 -i /dev/video0 -f alsa -thread_queue_size 1024 -i hw:1,0 -c:v libx264 -y -s 640x480 -b:v 3000k -r 30 -aspect 4:3 -y -c:a flac -channels 2 -ar 48000 "Jimi Hendrix - At The Isle Of Wight.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 @ 0x557b8fb6d240] This device does not support any standard
[mjpeg @ 0x557b8fb6e940] EOI missing, emulating
Input #0, video4linux2,v4l2, from '/dev/video0':
Duration: N/A, start: 6365.001851, 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:1,0':
Duration: N/A, start: 1554968775.151942, 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 @ 0x557b8fb86ec0] using SAR=1/1
[libx264 @ 0x557b8fb86ec0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 0x557b8fb86ec0] profile High 4:2:2, level 3.0, 4:2:2, 8-bit
[libx264 @ 0x557b8fb86ec0] 264 - core 157 - H.264/MPEG-4 AVC codec - Copyleft 2003-2018 -
http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 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=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=3000 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, matroska, to 'Jimi Hendrix - At The Isle Of Wight.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, 3000 kb/s, 30 fps, 1k tbn, 30 tbc
Metadata:
encoder : Lavc58.22.101 libx264
Side data:
cpb: bitrate max/min/avg: 0/0/3000000 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=84334 fps= 25 q=-1.0 Lsize= 1606647kB time=00:56:19.83 bitrate=3894.2kbits/s dup=0 drop=7 speed= 1x
video:1222229kB audio:383538kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.054796%
[libx264 @ 0x557b8fb86ec0] frame I:746 Avg QP:20.00 size: 28813
[libx264 @ 0x557b8fb86ec0] frame P:24194 Avg QP:22.80 size: 19591
[libx264 @ 0x557b8fb86ec0] frame B:59394 Avg QP:24.02 size: 12730
[libx264 @ 0x557b8fb86ec0] consecutive B-frames: 5.6% 1.0% 1.7% 91.7%
[libx264 @ 0x557b8fb86ec0] mb I I16..4: 8.8% 90.2% 1.1%
[libx264 @ 0x557b8fb86ec0] mb P I16..4: 7.1% 51.8% 1.1% P16..4: 18.0% 13.0% 6.6% 0.0% 0.0% skip: 2.4%
[libx264 @ 0x557b8fb86ec0] mb B I16..4: 3.8% 23.4% 0.3% B16..8: 29.0% 12.4% 2.7% direct:20.4% skip: 8.0% L0:40.2% L1:34.2% BI:25.5%
[libx264 @ 0x557b8fb86ec0] final ratefactor: 21.32
[libx264 @ 0x557b8fb86ec0] 8x8 transform intra:85.9% inter:74.7%
[libx264 @ 0x557b8fb86ec0] coded y,uvDC,uvAC intra: 51.9% 85.2% 39.6% inter: 40.3% 82.8% 41.9%
[libx264 @ 0x557b8fb86ec0] i16 v,h,dc,p: 35% 35% 14% 16%
[libx264 @ 0x557b8fb86ec0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 28% 28% 32% 2% 2% 2% 2% 2% 2%
[libx264 @ 0x557b8fb86ec0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 24% 27% 12% 5% 7% 8% 7% 6% 5%
[libx264 @ 0x557b8fb86ec0] i8c dc,h,v,p: 35% 33% 25% 7%
[libx264 @ 0x557b8fb86ec0] Weighted P-Frames: Y:8.8% UV:5.9%
[libx264 @ 0x557b8fb86ec0] ref P L0: 38.9% 12.2% 29.9% 17.5% 1.5%
[libx264 @ 0x557b8fb86ec0] ref B L0: 77.3% 17.6% 5.0%
[libx264 @ 0x557b8fb86ec0] ref B L1: 91.4% 8.6%
[libx264 @ 0x557b8fb86ec0] kb/s:2962.31