Advertisement
Guest User

Untitled

a guest
Mar 30th, 2014
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.54 KB | None | 0 0
  1. 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.
  2.  
  3. One of the warnings is:
  4. Use -pix_fmt yuv420p for compatibility with outdated media players.
  5.  
  6. 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.
  7.  
  8. $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
  9.  
  10. $ $FFB/ffmpeg -i output.mkv -acodec libfdk_aac -ab 128k -ac 2 -vcodec libx264 -preset slow -crf 22 -threads 0 our-final-product.mp4
  11.  
  12.  
  13. $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
  14. ffmpeg version git-2013-08-04-61af627 Copyright (c) 2000-2013 the FFmpeg developers
  15. built on Feb 19 2014 04:33:30 with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-4)
  16. 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
  17. libavutil 52. 40.100 / 52. 40.100
  18. libavcodec 55. 20.100 / 55. 20.100
  19. libavformat 55. 13.101 / 55. 13.101
  20. libavdevice 55. 3.100 / 55. 3.100
  21. libavfilter 3. 82.100 / 3. 82.100
  22. libswscale 2. 4.100 / 2. 4.100
  23. libswresample 0. 17.103 / 0. 17.103
  24. libpostproc 52. 3.100 / 52. 3.100
  25. Guessed Channel Layout for Input Stream #0.0 : stereo
  26. Input #0, alsa, from 'pulse':
  27. Duration: N/A, start: 1396214044.111088, bitrate: 1411 kb/s
  28. Stream #0:0: Audio: pcm_s16le, 44100 Hz, stereo, s16, 1411 kb/s
  29. [x11grab @ 0x3d90360] device: :0.0 -> display: :0.0 x: 0 y: 0 width: 1920 height: 1080
  30. [x11grab @ 0x3d90360] shared memory extension found
  31. Input #1, x11grab, from ':0.0':
  32. Duration: N/A, start: 1396214044.250834, bitrate: 1988667 kb/s
  33. Stream #1:0: Video: rawvideo (BGR[0] / 0x524742), bgr0, 1920x1080, 1988667 kb/s, 29.97 tbr, 1000k tbn, 29.97 tbc
  34. [swscaler @ 0x3d50040] deprecated pixel format used, make sure you did set range correctly
  35. No pixel format specified, yuv444p for H.264 encoding chosen.
  36. Use -pix_fmt yuv420p for compatibility with outdated media players.
  37. [libx264 @ 0x3da3a00] using cpu capabilities: MMX2 SSE2Fast LZCNT
  38. [libx264 @ 0x3da3a00] profile High 4:4:4 Predictive, level 4.0, 4:4:4 8-bit
  39. [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
  40. Output #0, matroska, to 'output.mkv':
  41. Metadata:
  42. encoder : Lavf55.13.101
  43. Stream #0:0: Video: h264 (libx264) (H264 / 0x34363248), yuv444p, 1920x1080, q=-1--1, 1k tbn, 30 tbc
  44. Stream #0:1: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, stereo, s16, 1411 kb/s
  45. Stream mapping:
  46. Stream #1:0 -> #0:0 (rawvideo -> libx264)
  47. Stream #0:0 -> #0:1 (pcm_s16le -> pcm_s16le)
  48. Press [q] to stop, [?] for help
  49. frame= 1209 fps= 30 q=-1.0 Lsize= 18564kB time=00:00:40.33 bitrate=3770.6kbits/s
  50. video:11523kB audio:6845kB subtitle:0 global headers:0kB muxing overhead 1.068844%
  51. [libx264 @ 0x3da3a00] frame I:5 Avg QP: 0.00 size:461876
  52. [libx264 @ 0x3da3a00] frame P:1204 Avg QP: 0.00 size: 7881
  53. [libx264 @ 0x3da3a00] mb I I16..4: 100.0% 0.0% 0.0%
  54. [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%
  55. [libx264 @ 0x3da3a00] coded y,u,v intra: 0.5% 1.4% 0.9% inter: 0.2% 0.1% 0.1%
  56. [libx264 @ 0x3da3a00] i16 v,h,dc,p: 99% 1% 0% 0%
  57. [libx264 @ 0x3da3a00] kb/s:2340.23
  58.  
  59.  
  60.  
  61. $FFB/ffmpeg -i output.mkv -acodec libfdk_aac -ab 128k -ac 2 -vcodec libx264 -preset slow -crf 22 -threads 0 our-final-product.mp4
  62. ffmpeg version git-2013-08-04-61af627 Copyright (c) 2000-2013 the FFmpeg developers
  63. built on Feb 19 2014 04:33:30 with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-4)
  64. 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
  65. libavutil 52. 40.100 / 52. 40.100
  66. libavcodec 55. 20.100 / 55. 20.100
  67. libavformat 55. 13.101 / 55. 13.101
  68. libavdevice 55. 3.100 / 55. 3.100
  69. libavfilter 3. 82.100 / 3. 82.100
  70. libswscale 2. 4.100 / 2. 4.100
  71. libswresample 0. 17.103 / 0. 17.103
  72. libpostproc 52. 3.100 / 52. 3.100
  73. Guessed Channel Layout for Input Stream #0.1 : stereo
  74. Input #0, matroska,webm, from 'output.mkv':
  75. Metadata:
  76. ENCODER : Lavf55.13.101
  77. Duration: 00:00:40.33, start: 0.000000, bitrate: 3770 kb/s
  78. 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)
  79. Stream #0:1: Audio: pcm_s16le, 44100 Hz, stereo, s16, 1411 kb/s (default)
  80. No pixel format specified, yuv444p for H.264 encoding chosen.
  81. Use -pix_fmt yuv420p for compatibility with outdated media players.
  82. [libx264 @ 0x3a6b4c0] using SAR=1/1
  83. [libx264 @ 0x3a6b4c0] using cpu capabilities: MMX2 SSE2Fast LZCNT
  84. [libx264 @ 0x3a6b4c0] profile High 4:4:4 Predictive, level 5.0, 4:4:4 8-bit
  85. [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
  86. Output #0, mp4, to 'our-final-product.mp4':
  87. Metadata:
  88. encoder : Lavf55.13.101
  89. 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)
  90. Stream #0:1: Audio: aac (libfdk_aac) ([64][0][0][0] / 0x0040), 44100 Hz, stereo, s16, 128 kb/s (default)
  91. Stream mapping:
  92. Stream #0:0 -> #0:0 (h264 -> libx264)
  93. Stream #0:1 -> #0:1 (pcm_s16le -> libfdk_aac)
  94. Press [q] to stop, [?] for help
  95. frame= 1210 fps= 53 q=-1.0 Lsize= 1956kB time=00:00:40.26 bitrate= 397.9kbits/s dup=1 drop=0
  96. video:1278kB audio:622kB subtitle:0 global headers:0kB muxing overhead 2.954869%
  97. [libx264 @ 0x3a6b4c0] frame I:5 Avg QP:16.36 size:181448
  98. [libx264 @ 0x3a6b4c0] frame P:314 Avg QP:19.44 size: 918
  99. [libx264 @ 0x3a6b4c0] frame B:891 Avg QP:32.25 size: 126
  100. [libx264 @ 0x3a6b4c0] consecutive B-frames: 0.8% 0.8% 6.4% 91.9%
  101. [libx264 @ 0x3a6b4c0] mb I I16..4: 45.8% 24.6% 29.6%
  102. [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%
  103. [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%
  104. [libx264 @ 0x3a6b4c0] 8x8 transform intra:29.3% inter:17.1%
  105. [libx264 @ 0x3a6b4c0] direct mvs spatial:99.4% temporal:0.6%
  106. [libx264 @ 0x3a6b4c0] coded y,u,v intra: 23.1% 6.4% 4.9% inter: 0.0% 0.0% 0.0%
  107. [libx264 @ 0x3a6b4c0] i16 v,h,dc,p: 39% 60% 1% 0%
  108. [libx264 @ 0x3a6b4c0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 38% 11% 44% 1% 1% 1% 1% 1% 2%
  109. [libx264 @ 0x3a6b4c0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 30% 35% 9% 3% 4% 4% 4% 4% 7%
  110. [libx264 @ 0x3a6b4c0] Weighted P-Frames: Y:0.0% UV:0.0%
  111. [libx264 @ 0x3a6b4c0] ref P L0: 65.3% 3.1% 18.7% 6.9% 5.1% 0.9%
  112. [libx264 @ 0x3a6b4c0] ref B L0: 61.5% 33.0% 3.5% 2.0%
  113. [libx264 @ 0x3a6b4c0] ref B L1: 96.4% 3.6%
  114. [libx264 @ 0x3a6b4c0] kb/s:259.35
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement