Skip to content

Instantly share code, notes, and snippets.

@EvanDotPro
Created August 10, 2012 00:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EvanDotPro/2802af45c5cd43a3e2ed to your computer and use it in GitHub Desktop.
Save EvanDotPro/2802af45c5cd43a3e2ed to your computer and use it in GitHub Desktop.
[ecoury@evan-desktop ~]$ ./stream-left-screen-with-webcam-and-audio.sh
DISPLAY: :0.0
VIDEO : hd1080
SIZE : 1920x1080
X, Y : 0, 0
FPS : 10 (10 / 1)
MOUSE : 1
MOUSEHL: 1
FOLLOW : 0
BORDER : none (0)
device: :0.0 -> display: :0.0 x: 0 y: 0 width: 1920 height: 1080
ffmpeg version 0.10.4 Copyright (c) 2000-2012 the FFmpeg developers
built on Jul 20 2012 22:00:57 with gcc 4.7.0 20120507 (Red Hat 4.7.0-5)
configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic' --enable-bzlib --disable-crystalhd --enable-gnutls --enable-libass --enable-libcdio --enable-libcelt --enable-libdc1394 --disable-indev=jack --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-openal --enable-libopenjpeg --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libvpx --enable-libx264 --enable-libxvid --enable-x11grab --enable-avfilter --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-runtime-cpudetect
libavutil 51. 35.100 / 51. 35.100
libavcodec 53. 61.100 / 53. 61.100
libavformat 53. 32.100 / 53. 32.100
libavdevice 53. 4.100 / 53. 4.100
libavfilter 2. 61.100 / 2. 61.100
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 6.100 / 0. 6.100
libpostproc 52. 0.100 / 52. 0.100
shared memory extension found
X Record Extension 1.13
[alsa @ 0x1c2fe20] Estimating duration from bitrate, this may be inaccurate
Input #0, alsa, from 'pulse':
Duration: N/A, start: 1344559637.552595, bitrate: N/A
Stream #0:0: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s
[rawvideo @ 0x1c404a0] Estimating duration from bitrate, this may be inaccurate
Input #1, rawvideo, from 'pipe:':
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #1:0: Video: rawvideo (BGRA / 0x41524742), bgra, 1920x1080, 10 tbr, 10 tbn, 10 tbc
Incompatible pixel format 'bgra' for codec 'libx264', auto-selecting format 'yuv420p'
[buffer @ 0x1c4dd00] w:1920 h:1080 pixfmt:bgra tb:1/1000000 sar:0/1 sws_param:
[video4linux2,v4l2 @ 0x1c45160] Estimating duration from bitrate, this may be inaccurate
[movie @ 0x1c44c40] seek_point:0 format_name:video4linux2 file_name:/dev/video0 stream_index:0
[overlay @ 0x1c43560] auto-inserting filter 'auto-inserted scale 0' between the filter 'src' and the filter 'Parsed_overlay_3'
[scale @ 0x1c2b200] w:1920 h:1080 fmt:bgra -> w:1920 h:1080 fmt:yuv420p flags:0x4
[scale @ 0x1c42600] w:640 h:480 fmt:yuv420p -> w:320 h:240 fmt:yuva420p flags:0x4
[scale @ 0x1c42600] TB:0.000001
[overlay @ 0x1c43560] main w:1920 h:1080 fmt:yuv420p overlay x:1598 y:838 w:320 h:240 fmt:yuva420p
[overlay @ 0x1c43560] main_tb:1/1000000 overlay_tb:1/1000000 -> tb:1/1000000 exact:1
[libx264 @ 0x1c2e800] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2
[libx264 @ 0x1c2e800] profile High, level 4.0
[libx264 @ 0x1c2e800] 264 - core 120 r2151 a3f4407 - H.264/MPEG-4 AVC codec - Copyleft 2003-2011 - 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=4 sliced_threads=1 slices=4 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=2 keyint=250 keyint_min=10 scenecut=0 intra_refresh=0 rc_lookahead=10 rc=crf mbtree=1 crf=30.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, flv, to 'tcp://127.0.0.1:6666/flvplayback':
Metadata:
streamName : evan
encoder : Lavf53.32.100
Stream #0:0: Video: h264 ([7][0][0][0] / 0x0007), yuv420p, 1920x1080, q=-1--1, 1k tbn, 10 tbc
Stream #0:1: Audio: mp3 ([2][0][0][0] / 0x0002), 44100 Hz, 1 channels, s16, 128 kb/s
Stream mapping:
Stream #1:0 -> #0:0 (rawvideo -> libx264)
Stream #0:0 -> #0:1 (pcm_s16le -> libmp3lame)
^Cframe= 517 fps= 10 q=32.0 Lsize= 2301kB time=00:00:50.75 bitrate= 371.4kbits/s
video:1466kB audio:793kB global headers:0kB muxing overhead 1.875586%
[libx264 @ 0x1c2e800] frame I:3 Avg QP:25.88 size:218927
[libx264 @ 0x1c2e800] frame P:514 Avg QP:30.62 size: 1641
[libx264 @ 0x1c2e800] mb I I16..4: 44.1% 9.5% 46.4%
[libx264 @ 0x1c2e800] mb P I16..4: 0.7% 0.1% 0.2% P16..4: 0.5% 0.1% 0.1% 0.0% 0.0% skip:98.4%
[libx264 @ 0x1c2e800] 8x8 transform intra:7.9% inter:32.0%
[libx264 @ 0x1c2e800] coded y,uvDC,uvAC intra: 27.6% 6.0% 4.3% inter: 0.1% 0.1% 0.0%
[libx264 @ 0x1c2e800] i16 v,h,dc,p: 63% 26% 11% 0%
[libx264 @ 0x1c2e800] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 21% 10% 57% 2% 2% 2% 2% 1% 3%
[libx264 @ 0x1c2e800] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 36% 28% 17% 3% 4% 4% 3% 3% 3%
[libx264 @ 0x1c2e800] i8c dc,h,v,p: 91% 6% 3% 0%
[libx264 @ 0x1c2e800] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x1c2e800] ref P L0: 74.5% 8.5% 11.6% 5.4%
[libx264 @ 0x1c2e800] kb/s:232.14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment