SHARE
TWEET

Untitled

a guest Feb 19th, 2014 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. SERVER 1
  2.  
  3. ./ffmpeg -i http://192.168.1.100:12703 -vcodec libx264 -vb 1250k -preset superfast -s 500x400 -acodec libfdk_aac -ar 44100 -ab 32k -f flv rtmp://192.168.1.100:1935/live/cinema1
  4. ffmpeg version git-2014-01-15-53e6977 Copyright (c) 2000-2014 the FFmpeg developers
  5.   built on Jan 15 2014 01:11:19 with gcc 4.8 (Ubuntu/Linaro 4.8.1-10ubuntu9)
  6.   configuration: --prefix=/root/ffmpeg_build --extra-cflags=-I/root/ffmpeg_build/include --extra-ldflags=-L/root/ffmpeg_build/lib --bindir=/root/bin --extra-libs=-ldl --enable-gpl --enable-libass --enable-libfdk-aac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-nonfree --enable-pic
  7.   libavutil      52. 62.100 / 52. 62.100
  8.   libavcodec     55. 48.101 / 55. 48.101
  9.   libavformat    55. 23.103 / 55. 23.103
  10.   libavdevice    55.  5.102 / 55.  5.102
  11.   libavfilter     4.  1.100 /  4.  1.100
  12.   libswscale      2.  5.101 /  2.  5.101
  13.   libswresample   0. 17.104 /  0. 17.104
  14.   libpostproc    52.  3.100 / 52.  3.100
  15. [mpeg2video @ 0x3404680] Invalid frame dimensions 0x0.
  16.     Last message repeated 30 times
  17. Input #0, mpegts, from 'http://192.168.1.100:12703':
  18.   Duration: N/A, start: 16034.674944, bitrate: 160 kb/s
  19.   Program 703
  20.     Stream #0:0[0x1822]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv), 544x480 [SAR 20:17 DAR 4:3], max. 15000 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
  21.     Stream #0:1[0x1823](eng): Audio: mp2 ([4][0][0][0] / 0x0004), 48000 Hz, stereo, s16p, 160 kb/s
  22. [libx264 @ 0x3478160] using SAR=16/15
  23. [libx264 @ 0x3478160] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.1 Cache64
  24. [libx264 @ 0x3478160] profile High, level 3.0
  25. [libx264 @ 0x3478160] 264 - core 140 r2 1ca7bb9 - H.264/MPEG-4 AVC codec - Copyleft 2003-2013 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:0:0 analyse=0x3:0x3 me=dia subme=1 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=12 lookahead_threads=2 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=250 keyint_min=25 scenecut=40 intra_refresh=0 rc=abr mbtree=0 bitrate=1250 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 pb_ratio=1.30 aq=1:1.00
  26. Output #0, flv, to 'rtmp://162.219.0.234:1935/live/cinema1':
  27.   Metadata:
  28.     encoder         : Lavf55.23.103
  29.     Stream #0:0: Video: h264 (libx264) ([7][0][0][0] / 0x0007), yuv420p, 500x400 [SAR 16:15 DAR 4:3], q=-1--1, 1250 kb/s, 1k tbn, 29.97 tbc
  30.     Stream #0:1(eng): Audio: aac (libfdk_aac) ([10][0][0][0] / 0x000A), 44100 Hz, stereo, s16, 32 kb/s
  31. Stream mapping:
  32.   Stream #0:0 -> #0:0 (mpeg2video -> libx264)
  33.   Stream #0:1 -> #0:1 (mp2 -> libfdk_aac)
  34. Press [q] to stop, [?] for help
  35. frame=   22 fps=0.0 q=20.0 size=       8kB time=00:00:01.56 bitrate=  40.8kbits/frame=   36 fps= 30 q=16.0 size=      62kB time=00:00:02.29 bitrate= 221.3kbits/frame=   68 fps= 32 q=17.0 size=     274kB time=00:00:03.10 bitrate= 724.2kbits/
  36.  
  37. Now server 1 CPU usage with 10 mmpeg sessions(same inputs as server 1)(top command)
  38.  
  39.  8537 root      20   0  590m  75m 5952 R  63.8  0.5   0:02.46 ffmpeg
  40.  8532 root      20   0  590m  75m 5912 S  62.1  0.5   0:02.35 ffmpeg
  41.  8534 root      20   0  589m  75m 5952 S  61.8  0.5   0:01.88 ffmpeg
  42.  8540 root      20   0  589m  78m 5972 S  61.5  0.5   0:02.15 ffmpeg
  43.  8533 root      20   0  589m  75m 5972 S  60.8  0.5   0:02.32 ffmpeg
  44.  8536 root      20   0  590m  74m 5900 S  57.8  0.5   0:02.19 ffmpeg
  45.  8539 root      20   0  589m  72m 5852 S  55.5  0.5   0:02.48 ffmpeg
  46.  8538 root      20   0  590m  72m 5860 D  55.1  0.4   0:02.22 ffmpeg
  47.  8541 root      20   0  589m  74m 5952 S  51.2  0.5   0:02.22 ffmpeg
  48.  8535 root      20   0  589m  72m 5804 S  46.5  0.4   0:01.43 ffmpeg
  49.  
  50.  
  51. SERVER2
  52.  
  53. ./ffmpeg -i http://192.168.1.100:12703 -vcodec libx264 -vb 1250k -preset superfast -s 500x400 -acodec libfdk_aac -ar 44100 -ab 32k -f flv rtmp://192.168.1.101:1935/myapp/cinema1
  54. ffmpeg version 2.1.git Copyright (c) 2000-2014 the FFmpeg developers
  55.   built on Feb 15 2014 03:40:58 with gcc 4.8 (Ubuntu/Linaro 4.8.1-10ubuntu9)
  56.   configuration: --prefix=/root/ffmpeg_build --extra-cflags=-I/root/ffmpeg_build/include --extra-ldflags=-L/root/ffmpeg_build/lib --bindir=/root/bin --extra-libs=-ldl --enable-gpl --enable-libass --enable-libfdk-aac --enable-pic --enable-libtheora --enable-libvorbis --enable-libx264 --enable-nonfree --enable-x11grab
  57.   libavutil      52. 63.101 / 52. 63.101
  58.   libavcodec     55. 52.101 / 55. 52.101
  59.   libavformat    55. 32.101 / 55. 32.101
  60.   libavdevice    55.  9.101 / 55.  9.101
  61.   libavfilter     4.  1.102 /  4.  1.102
  62.   libswscale      2.  5.101 /  2.  5.101
  63.   libswresample   0. 17.104 /  0. 17.104
  64.   libpostproc    52.  3.100 / 52.  3.100
  65. [mpeg2video @ 0x1d8c940] Invalid frame dimensions 0x0.
  66.     Last message repeated 8 times
  67. Input #0, mpegts, from 'http://192.168.1.100:12703':
  68.   Duration: N/A, start: 15758.626944, bitrate: 155 kb/s
  69.   Program 703
  70.     Stream #0:0[0x1822]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv), 544x480 [SAR 20:17 DAR 4:3], max. 15000 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
  71.     Stream #0:1[0x1823](eng): Audio: mp2 ([4][0][0][0] / 0x0004), 48000 Hz, stereo, s16p, 155 kb/s
  72. [libx264 @ 0x1d8ea60] using SAR=16/15
  73. [libx264 @ 0x1d8ea60] using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64 SlowShuffle
  74. [libx264 @ 0x1d8ea60] profile High, level 3.0
  75. [libx264 @ 0x1d8ea60] 264 - core 142 - H.264/MPEG-4 AVC codec - Copyleft 2003-2014 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:0:0 analyse=0x3:0x3 me=dia subme=1 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=24 lookahead_threads=3 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=250 keyint_min=25 scenecut=40 intra_refresh=0 rc=abr mbtree=0 bitrate=1250 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 pb_ratio=1.30 aq=1:1.00
  76. Output #0, flv, to 'rtmp://162.219.0.235:1935/myapp/zeecinema3':
  77.   Metadata:
  78.     encoder         : Lavf55.32.101
  79.     Stream #0:0: Video: h264 (libx264) ([7][0][0][0] / 0x0007), yuv420p, 500x400 [SAR 16:15 DAR 4:3], q=-1--1, 1250 kb/s, 1k tbn, 29.97 tbc
  80.     Stream #0:1(eng): Audio: aac (libfdk_aac) ([10][0][0][0] / 0x000A), 44100 Hz, stereo, s16, 32 kb/s
  81. Stream mapping:
  82.   Stream #0:0 -> #0:0 (mpeg2video -> libx264)
  83.   Stream #0:1 -> #0:1 (mp2 -> libfdk_aac)
  84. Press [q] to stop, [?] for help
  85. frame=   44 fps=0.0 q=15.0 size=      34kB time=00:00:02.25 bitrate= 125.4kbits/frame=   56 fps= 56 q=13.0 size=      62kB time=00:00:02.53 bitrate= 202.1kbits/frame=   74 fps= 46 q=19.0 size=     304kB time=00:00:03.11 bitrate= 800.3kbits/
  86.  
  87. Now server 2 CPU usage with 7 mmpeg sessions(same inputs as server 1)(top command)
  88.  
  89.  1470 root      20   0  865m  88m 6084 S   223  0.6 866:37.01 ffmpeg
  90.  1473 root      20   0  865m  88m 6120 R   223  0.6 918:03.72 ffmpeg
  91.  1474 root      20   0  865m  88m 6076 R   223  0.6 874:49.86 ffmpeg
  92.  1472 root      20   0  865m  88m 6164 R   217  0.6 867:03.03 ffmpeg
  93.  1475 root      20   0  865m  88m 6072 R   214  0.6 872:40.08 ffmpeg
  94.  1471 root      20   0  865m  89m 6120 S   198  0.6 860:38.80 ffmpeg
  95.  1469 root      20   0  865m  88m 6084 R   197  0.5 886:38.05 ffmpeg
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top