Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- INRES="1920x1080" # input resolution
- OUTRES="1920x1080"
- FPS="30" # target FPS
- QUAL="ultrafast" # one of the many FFMPEG preset
- #justin.tv
- #STREAM_KEY="MyPrivateKey"
- #URL="rtmp://live.justin.tv/app/$STREAM_KEY"
- #own3d.tv
- STREAM_KEY="MyPrivateKey"
- URL="rtmp://live.eu.own3d.tv/live/$STREAM_KEY"
- ffmpeg -f x11grab -y -s 800x600 -r 15 -i :0.0 -ab 96k \
- -vcodec libx264 -preset fast -crf 30 -s 800x600 -b 800k -maxrate 800k -bufsize 2000k -g 100 \
- -f flv "$URL"
- vitrums@vitrums:~/stream$ ffmpeg version git-2012-07-28-a2f91e7 Copyright (c) 2000-2012 the FFmpeg developers
- built on Jul 28 2012 12:01:28 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
- configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librtmp --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree --enable-version3 --enable-x11grab
- libavutil 51. 65.100 / 51. 65.100
- libavcodec 54. 45.100 / 54. 45.100
- libavformat 54. 21.100 / 54. 21.100
- libavdevice 54. 2.100 / 54. 2.100
- libavfilter 3. 3.100 / 3. 3.100
- libswscale 2. 1.100 / 2. 1.100
- libswresample 0. 15.100 / 0. 15.100
- libpostproc 52. 0.100 / 52. 0.100
- [x11grab @ 0x29d6440] device: :0.0 -> display: :0.0 x: 0 y: 0 width: 800 height: 600
- [x11grab @ 0x29d6440] shared memory extension found
- [x11grab @ 0x29d6440] Estimating duration from bitrate, this may be inaccurate
- Input #0, x11grab, from ':0.0':
- Duration: N/A, start: 1343478267.015827, bitrate: 230400 kb/s
- Stream #0:0: Video: rawvideo (BGR[0] / 0x524742), bgr0, 800x600, 230400 kb/s, 15 tbr, 1000k tbn, 15 tbc
- Please use -b:a or -b:v, -b is ambiguous
- [libx264 @ 0x29e3e60] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2 AVX
- [libx264 @ 0x29e3e60] profile High 4:4:4 Predictive, level 3.1, 4:4:4 8-bit
- [libx264 @ 0x29e3e60] 264 - core 125 r2 d9d2288 - H.264/MPEG-4 AVC codec - Copyleft 2003-2012 - http://www.videolan.org/x264.html - options: cabac=1 ref=2 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=6 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=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=100 keyint_min=10 scenecut=40 intra_refresh=0 rc_lookahead=30 rc=crf mbtree=1 crf=30.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=800 vbv_bufsize=2000 crf_max=0.0 nal_hrd=none ip_ratio=1.40 aq=1:1.00
- Output #0, flv, to 'rtmp://live.eu.own3d.tv/live/MY_PRIVATE_KEY':
- Metadata:
- encoder : Lavf54.21.100
- Stream #0:0: Video: h264 ([7][0][0][0] / 0x0007), yuv444p, 800x600, q=-1--1, 800 kb/s, 1k tbn, 15 tbc
- Stream mapping:
- Stream #0:0 -> #0:0 (rawvideo -> libx264)
- Press [q] to stop, [?] for help
- frame= 48 fps= 16 q=32766.0 Lsize= 150kB time=00:00:03.06 bitrate= 399.7kbits/s
- video:148kB audio:0kB subtitle:0 global headers:0kB muxing overhead 0.811928%
- [libx264 @ 0x29e3e60] frame I:1 Avg QP:28.84 size: 50172
- [libx264 @ 0x29e3e60] frame P:14 Avg QP:29.83 size: 7138
- [libx264 @ 0x29e3e60] frame B:33 Avg QP:30.58 size: 33
- [libx264 @ 0x29e3e60] consecutive B-frames: 6.2% 4.2% 6.2% 83.3%
- [libx264 @ 0x29e3e60] mb I I16..4: 25.6% 21.6% 52.7%
- [libx264 @ 0x29e3e60] mb P I16..4: 0.8% 0.6% 3.5% P16..4: 10.8% 0.7% 0.5% 0.0% 0.0% skip:83.0%
- [libx264 @ 0x29e3e60] mb B I16..4: 0.1% 0.0% 0.0% B16..8: 0.0% 0.0% 0.0% direct: 0.0% skip:99.8% L0:51.6% L1:48.4% BI: 0.0%
- [libx264 @ 0x29e3e60] 8x8 transform intra:17.5% inter:39.0%
- [libx264 @ 0x29e3e60] coded y,u,v intra: 60.2% 32.4% 31.3% inter: 0.4% 0.2% 0.2%
- [libx264 @ 0x29e3e60] i16 v,h,dc,p: 25% 62% 12% 1%
- [libx264 @ 0x29e3e60] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 15% 20% 49% 3% 2% 2% 2% 2% 5%
- [libx264 @ 0x29e3e60] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 35% 25% 15% 3% 4% 5% 5% 4% 4%
- [libx264 @ 0x29e3e60] Weighted P-Frames: Y:0.0% UV:0.0%
- [libx264 @ 0x29e3e60] ref P L0: 26.4% 73.6%
- [libx264 @ 0x29e3e60] ref B L0: 62.5% 37.5%
- [libx264 @ 0x29e3e60] kb/s:378.00
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement