Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- I get a grey picture with audio when I do these two commands below. I don't know why I can't just do a screen grab and get mp4 out - that's what I'd prefer - but here is what I find on the internet.
- One of the warnings is:
- Use -pix_fmt yuv420p for compatibility with outdated media players.
- I don't know where it's supposed to go so i tacked it on the end before "output.mkv" and warning went away, but I still got a grey picture.
- $FFB/ffmpeg -f alsa -ar:1 44100 -ac 2 -i pulse -f x11grab -s 1920x1080 -i :0.0 -r 30 -acodec pcm_s16le -vcodec libx264 -preset ultrafast -crf 0 -threads 0 output.mkv
- $ $FFB/ffmpeg -i output.mkv -acodec libfdk_aac -ab 128k -ac 2 -vcodec libx264 -preset slow -crf 22 -threads 0 our-final-product.mp4
- $FFB/ffmpeg -f alsa -ar:1 44100 -ac 2 -i pulse -f x11grab -s 1920x1080 -i :0.0 -r 30 -acodec pcm_s16le -vcodec libx264 -preset ultrafast -crf 0 -threads 0 output.mkv
- ffmpeg version git-2013-08-04-61af627 Copyright (c) 2000-2013 the FFmpeg developers
- built on Feb 19 2014 04:33:30 with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-4)
- configuration: --prefix=/mnt/video/ffmpeg/build --extra-cflags=-I/mnt/video/ffmpeg/build/include --extra-ldflags=-L/mnt/video/ffmpeg/build/lib --bindir=/mnt/video/ffmpeg/bin --extra-libs=-ldl --enable-gpl --enable-nonfree --enable-libfdk_aac --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libfreetype --enable-libspeex --enable-libtheora --enable-x11grab
- libavutil 52. 40.100 / 52. 40.100
- libavcodec 55. 20.100 / 55. 20.100
- libavformat 55. 13.101 / 55. 13.101
- libavdevice 55. 3.100 / 55. 3.100
- libavfilter 3. 82.100 / 3. 82.100
- libswscale 2. 4.100 / 2. 4.100
- libswresample 0. 17.103 / 0. 17.103
- libpostproc 52. 3.100 / 52. 3.100
- Guessed Channel Layout for Input Stream #0.0 : stereo
- Input #0, alsa, from 'pulse':
- Duration: N/A, start: 1396214044.111088, bitrate: 1411 kb/s
- Stream #0:0: Audio: pcm_s16le, 44100 Hz, stereo, s16, 1411 kb/s
- [x11grab @ 0x3d90360] device: :0.0 -> display: :0.0 x: 0 y: 0 width: 1920 height: 1080
- [x11grab @ 0x3d90360] shared memory extension found
- Input #1, x11grab, from ':0.0':
- Duration: N/A, start: 1396214044.250834, bitrate: 1988667 kb/s
- Stream #1:0: Video: rawvideo (BGR[0] / 0x524742), bgr0, 1920x1080, 1988667 kb/s, 29.97 tbr, 1000k tbn, 29.97 tbc
- [swscaler @ 0x3d50040] deprecated pixel format used, make sure you did set range correctly
- No pixel format specified, yuv444p for H.264 encoding chosen.
- Use -pix_fmt yuv420p for compatibility with outdated media players.
- [libx264 @ 0x3da3a00] using cpu capabilities: MMX2 SSE2Fast LZCNT
- [libx264 @ 0x3da3a00] profile High 4:4:4 Predictive, level 4.0, 4:4:4 8-bit
- [libx264 @ 0x3da3a00] 264 - core 142 r2 956c8d8 - H.264/MPEG-4 AVC codec - Copyleft 2003-2014 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=0:0:0 analyse=0:0 me=dia subme=0 psy=0 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=0 chroma_qp_offset=0 threads=9 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=25 scenecut=0 intra_refresh=0 rc=cqp mbtree=0 qp=0
- Output #0, matroska, to 'output.mkv':
- Metadata:
- encoder : Lavf55.13.101
- Stream #0:0: Video: h264 (libx264) (H264 / 0x34363248), yuv444p, 1920x1080, q=-1--1, 1k tbn, 30 tbc
- Stream #0:1: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, stereo, s16, 1411 kb/s
- Stream mapping:
- Stream #1:0 -> #0:0 (rawvideo -> libx264)
- Stream #0:0 -> #0:1 (pcm_s16le -> pcm_s16le)
- Press [q] to stop, [?] for help
- frame= 1209 fps= 30 q=-1.0 Lsize= 18564kB time=00:00:40.33 bitrate=3770.6kbits/s
- video:11523kB audio:6845kB subtitle:0 global headers:0kB muxing overhead 1.068844%
- [libx264 @ 0x3da3a00] frame I:5 Avg QP: 0.00 size:461876
- [libx264 @ 0x3da3a00] frame P:1204 Avg QP: 0.00 size: 7881
- [libx264 @ 0x3da3a00] mb I I16..4: 100.0% 0.0% 0.0%
- [libx264 @ 0x3da3a00] mb P I16..4: 37.8% 0.0% 0.0% P16..4: 0.2% 0.0% 0.0% 0.0% 0.0% skip:62.0%
- [libx264 @ 0x3da3a00] coded y,u,v intra: 0.5% 1.4% 0.9% inter: 0.2% 0.1% 0.1%
- [libx264 @ 0x3da3a00] i16 v,h,dc,p: 99% 1% 0% 0%
- [libx264 @ 0x3da3a00] kb/s:2340.23
- $FFB/ffmpeg -i output.mkv -acodec libfdk_aac -ab 128k -ac 2 -vcodec libx264 -preset slow -crf 22 -threads 0 our-final-product.mp4
- ffmpeg version git-2013-08-04-61af627 Copyright (c) 2000-2013 the FFmpeg developers
- built on Feb 19 2014 04:33:30 with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-4)
- configuration: --prefix=/mnt/video/ffmpeg/build --extra-cflags=-I/mnt/video/ffmpeg/build/include --extra-ldflags=-L/mnt/video/ffmpeg/build/lib --bindir=/mnt/video/ffmpeg/bin --extra-libs=-ldl --enable-gpl --enable-nonfree --enable-libfdk_aac --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libfreetype --enable-libspeex --enable-libtheora --enable-x11grab
- libavutil 52. 40.100 / 52. 40.100
- libavcodec 55. 20.100 / 55. 20.100
- libavformat 55. 13.101 / 55. 13.101
- libavdevice 55. 3.100 / 55. 3.100
- libavfilter 3. 82.100 / 3. 82.100
- libswscale 2. 4.100 / 2. 4.100
- libswresample 0. 17.103 / 0. 17.103
- libpostproc 52. 3.100 / 52. 3.100
- Guessed Channel Layout for Input Stream #0.1 : stereo
- Input #0, matroska,webm, from 'output.mkv':
- Metadata:
- ENCODER : Lavf55.13.101
- Duration: 00:00:40.33, start: 0.000000, bitrate: 3770 kb/s
- Stream #0:0: Video: h264 (High 4:4:4 Predictive), yuv444p, 1920x1080, SAR 1:1 DAR 16:9, 30 fps, 30 tbr, 1k tbn, 60 tbc (default)
- Stream #0:1: Audio: pcm_s16le, 44100 Hz, stereo, s16, 1411 kb/s (default)
- No pixel format specified, yuv444p for H.264 encoding chosen.
- Use -pix_fmt yuv420p for compatibility with outdated media players.
- [libx264 @ 0x3a6b4c0] using SAR=1/1
- [libx264 @ 0x3a6b4c0] using cpu capabilities: MMX2 SSE2Fast LZCNT
- [libx264 @ 0x3a6b4c0] profile High 4:4:4 Predictive, level 5.0, 4:4:4 8-bit
- [libx264 @ 0x3a6b4c0] 264 - core 142 r2 956c8d8 - H.264/MPEG-4 AVC codec - Copyleft 2003-2014 - http://www.videolan.org/x264.html - options: cabac=1 ref=5 deblock=1:0:0 analyse=0x3:0x113 me=umh subme=8 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=4 threads=9 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=2 b_bias=0 direct=3 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=50 rc=crf mbtree=1 crf=22.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
- Output #0, mp4, to 'our-final-product.mp4':
- Metadata:
- encoder : Lavf55.13.101
- Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv444p, 1920x1080 [SAR 1:1 DAR 16:9], q=-1--1, 15360 tbn, 30 tbc (default)
- Stream #0:1: Audio: aac (libfdk_aac) ([64][0][0][0] / 0x0040), 44100 Hz, stereo, s16, 128 kb/s (default)
- Stream mapping:
- Stream #0:0 -> #0:0 (h264 -> libx264)
- Stream #0:1 -> #0:1 (pcm_s16le -> libfdk_aac)
- Press [q] to stop, [?] for help
- frame= 1210 fps= 53 q=-1.0 Lsize= 1956kB time=00:00:40.26 bitrate= 397.9kbits/s dup=1 drop=0
- video:1278kB audio:622kB subtitle:0 global headers:0kB muxing overhead 2.954869%
- [libx264 @ 0x3a6b4c0] frame I:5 Avg QP:16.36 size:181448
- [libx264 @ 0x3a6b4c0] frame P:314 Avg QP:19.44 size: 918
- [libx264 @ 0x3a6b4c0] frame B:891 Avg QP:32.25 size: 126
- [libx264 @ 0x3a6b4c0] consecutive B-frames: 0.8% 0.8% 6.4% 91.9%
- [libx264 @ 0x3a6b4c0] mb I I16..4: 45.8% 24.6% 29.6%
- [libx264 @ 0x3a6b4c0] mb P I16..4: 0.1% 0.0% 0.1% P16..4: 0.3% 0.1% 0.0% 0.0% 0.0% skip:99.4%
- [libx264 @ 0x3a6b4c0] mb B I16..4: 0.0% 0.0% 0.0% B16..8: 0.5% 0.0% 0.0% direct: 0.0% skip:99.4% L0:43.7% L1:56.2% BI: 0.2%
- [libx264 @ 0x3a6b4c0] 8x8 transform intra:29.3% inter:17.1%
- [libx264 @ 0x3a6b4c0] direct mvs spatial:99.4% temporal:0.6%
- [libx264 @ 0x3a6b4c0] coded y,u,v intra: 23.1% 6.4% 4.9% inter: 0.0% 0.0% 0.0%
- [libx264 @ 0x3a6b4c0] i16 v,h,dc,p: 39% 60% 1% 0%
- [libx264 @ 0x3a6b4c0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 38% 11% 44% 1% 1% 1% 1% 1% 2%
- [libx264 @ 0x3a6b4c0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 30% 35% 9% 3% 4% 4% 4% 4% 7%
- [libx264 @ 0x3a6b4c0] Weighted P-Frames: Y:0.0% UV:0.0%
- [libx264 @ 0x3a6b4c0] ref P L0: 65.3% 3.1% 18.7% 6.9% 5.1% 0.9%
- [libx264 @ 0x3a6b4c0] ref B L0: 61.5% 33.0% 3.5% 2.0%
- [libx264 @ 0x3a6b4c0] ref B L1: 96.4% 3.6%
- [libx264 @ 0x3a6b4c0] kb/s:259.35
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement