Advertisement
Guest User

FFmpeg rtmp problem

a guest
Jul 28th, 2012
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.16 KB | None | 0 0
  1. INRES="1920x1080" # input resolution
  2. OUTRES="1920x1080"
  3. FPS="30" # target FPS
  4. QUAL="ultrafast" # one of the many FFMPEG preset
  5.  
  6. #justin.tv
  7. #STREAM_KEY="MyPrivateKey"
  8. #URL="rtmp://live.justin.tv/app/$STREAM_KEY"
  9.  
  10. #own3d.tv
  11. STREAM_KEY="MyPrivateKey"
  12. URL="rtmp://live.eu.own3d.tv/live/$STREAM_KEY"
  13.  
  14. ffmpeg -f x11grab -y -s 800x600 -r 15 -i :0.0 -ab 96k \
  15. -vcodec libx264 -preset fast -crf 30 -s 800x600 -b 800k -maxrate 800k -bufsize 2000k -g 100 \
  16. -f flv "$URL"
  17.  
  18.  
  19. vitrums@vitrums:~/stream$ ffmpeg version git-2012-07-28-a2f91e7 Copyright (c) 2000-2012 the FFmpeg developers
  20. built on Jul 28 2012 12:01:28 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
  21. 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
  22. libavutil 51. 65.100 / 51. 65.100
  23. libavcodec 54. 45.100 / 54. 45.100
  24. libavformat 54. 21.100 / 54. 21.100
  25. libavdevice 54. 2.100 / 54. 2.100
  26. libavfilter 3. 3.100 / 3. 3.100
  27. libswscale 2. 1.100 / 2. 1.100
  28. libswresample 0. 15.100 / 0. 15.100
  29. libpostproc 52. 0.100 / 52. 0.100
  30. [x11grab @ 0x29d6440] device: :0.0 -> display: :0.0 x: 0 y: 0 width: 800 height: 600
  31. [x11grab @ 0x29d6440] shared memory extension found
  32. [x11grab @ 0x29d6440] Estimating duration from bitrate, this may be inaccurate
  33. Input #0, x11grab, from ':0.0':
  34. Duration: N/A, start: 1343478267.015827, bitrate: 230400 kb/s
  35. Stream #0:0: Video: rawvideo (BGR[0] / 0x524742), bgr0, 800x600, 230400 kb/s, 15 tbr, 1000k tbn, 15 tbc
  36. Please use -b:a or -b:v, -b is ambiguous
  37. [libx264 @ 0x29e3e60] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2 AVX
  38. [libx264 @ 0x29e3e60] profile High 4:4:4 Predictive, level 3.1, 4:4:4 8-bit
  39. [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
  40. Output #0, flv, to 'rtmp://live.eu.own3d.tv/live/MY_PRIVATE_KEY':
  41. Metadata:
  42. encoder : Lavf54.21.100
  43. Stream #0:0: Video: h264 ([7][0][0][0] / 0x0007), yuv444p, 800x600, q=-1--1, 800 kb/s, 1k tbn, 15 tbc
  44. Stream mapping:
  45. Stream #0:0 -> #0:0 (rawvideo -> libx264)
  46. Press [q] to stop, [?] for help
  47. frame= 48 fps= 16 q=32766.0 Lsize= 150kB time=00:00:03.06 bitrate= 399.7kbits/s
  48. video:148kB audio:0kB subtitle:0 global headers:0kB muxing overhead 0.811928%
  49. [libx264 @ 0x29e3e60] frame I:1 Avg QP:28.84 size: 50172
  50. [libx264 @ 0x29e3e60] frame P:14 Avg QP:29.83 size: 7138
  51. [libx264 @ 0x29e3e60] frame B:33 Avg QP:30.58 size: 33
  52. [libx264 @ 0x29e3e60] consecutive B-frames: 6.2% 4.2% 6.2% 83.3%
  53. [libx264 @ 0x29e3e60] mb I I16..4: 25.6% 21.6% 52.7%
  54. [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%
  55. [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%
  56. [libx264 @ 0x29e3e60] 8x8 transform intra:17.5% inter:39.0%
  57. [libx264 @ 0x29e3e60] coded y,u,v intra: 60.2% 32.4% 31.3% inter: 0.4% 0.2% 0.2%
  58. [libx264 @ 0x29e3e60] i16 v,h,dc,p: 25% 62% 12% 1%
  59. [libx264 @ 0x29e3e60] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 15% 20% 49% 3% 2% 2% 2% 2% 5%
  60. [libx264 @ 0x29e3e60] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 35% 25% 15% 3% 4% 5% 5% 4% 4%
  61. [libx264 @ 0x29e3e60] Weighted P-Frames: Y:0.0% UV:0.0%
  62. [libx264 @ 0x29e3e60] ref P L0: 26.4% 73.6%
  63. [libx264 @ 0x29e3e60] ref B L0: 62.5% 37.5%
  64. [libx264 @ 0x29e3e60] kb/s:378.00
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement