Advertisement
Guest User

Untitled

a guest
Feb 2nd, 2015
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.05 KB | None | 0 0
  1. ffserver.conf:
  2.  
  3. HTTPPort 8090
  4. HTTPBindAddress 0.0.0.0
  5. MaxClients 1000
  6. MaxBandWidth 1000
  7. CustomLog -
  8.  
  9. <Feed feed1.ffm>
  10. File /tmp/feed1.ffm
  11. FileMaxSize 20M
  12. ACL allow 127.0.0.1
  13. </Feed>
  14.  
  15. <Stream live.flv>
  16. Format flv
  17. Feed feed1.ffm
  18.  
  19. VideoCodec libx264
  20. VideoFrameRate 30
  21. VideoBitRate 512
  22. VideoSize 320x240
  23. AVOptionVideo crf 23
  24. AVOptionVideo preset medium
  25. # for more info on crf/preset options, type: x264 --help
  26. AVOptionVideo flags +global_header
  27.  
  28. AudioCodec aac
  29. Strict -2
  30. AudioBitRate 128
  31. AudioChannels 2
  32. AudioSampleRate 44100
  33. AVOptionAudio flags +global_header
  34. </Stream>
  35.  
  36. <Stream stat.html>
  37. Format status
  38. ACL allow localhost
  39. </Stream>
  40.  
  41. =====================================================================================
  42.  
  43. ffserver console output:
  44.  
  45. $ ffserver -f ffserver.conf {1}
  46. ffserver version 2.5.2 Copyright (c) 2000-2014 the FFmpeg developers
  47. built on Dec 23 2014 12:44:51 with Apple LLVM version 6.0 (clang-600.0.56) (based on LLVM 3.5svn)
  48. configuration: --prefix=/usr/local/Cellar/ffmpeg/2.5.2 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-libx264 --enable-libmp3lame --enable-libxvid --enable-libvo-aacenc --enable-vda
  49. libavutil 54. 15.100 / 54. 15.100
  50. libavcodec 56. 13.100 / 56. 13.100
  51. libavformat 56. 15.102 / 56. 15.102
  52. libavdevice 56. 3.100 / 56. 3.100
  53. libavfilter 5. 2.103 / 5. 2.103
  54. libavresample 2. 1. 0 / 2. 1. 0
  55. libswscale 3. 1.101 / 3. 1.101
  56. libswresample 1. 1.100 / 1. 1.100
  57. libpostproc 53. 3.100 / 53. 3.100
  58. ffserver.conf:32: Setting default value for video bit rate tolerance = 128000. Use NoDefaults to disable it.
  59. ffserver.conf:32: Setting default value for video rate control equation = tex^qComp. Use NoDefaults to disable it.
  60. ffserver.conf:32: Setting default value for video max rate = 1024000. Use NoDefaults to disable it.
  61. ffserver.conf:32: Setting default value for video buffer size = 1024000. Use NoDefaults to disable it.
  62. Mon Feb 2 13:35:06 2015 FFserver started.
  63. Mon Feb 2 13:35:39 2015 127.0.0.1 - - [GET] "/feed1.ffm HTTP/1.1" 200 4175
  64. Mon Feb 2 13:35:39 2015 127.0.0.1 - - [POST] "/feed1.ffm HTTP/1.1" 200 0
  65.  
  66. =====================================================================================
  67.  
  68. ffmpeg console output:
  69.  
  70. $ ffmpeg -i movie.mp4 http://localhost:8090/feed1.ffm
  71. ffmpeg version 2.5.2 Copyright (c) 2000-2014 the FFmpeg developers
  72. built on Dec 23 2014 12:44:51 with Apple LLVM version 6.0 (clang-600.0.56) (based on LLVM 3.5svn)
  73. configuration: --prefix=/usr/local/Cellar/ffmpeg/2.5.2 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-libx264 --enable-libmp3lame --enable-libxvid --enable-libvo-aacenc --enable-vda
  74. libavutil 54. 15.100 / 54. 15.100
  75. libavcodec 56. 13.100 / 56. 13.100
  76. libavformat 56. 15.102 / 56. 15.102
  77. libavdevice 56. 3.100 / 56. 3.100
  78. libavfilter 5. 2.103 / 5. 2.103
  79. libavresample 2. 1. 0 / 2. 1. 0
  80. libswscale 3. 1.101 / 3. 1.101
  81. libswresample 1. 1.100 / 1. 1.100
  82. libpostproc 53. 3.100 / 53. 3.100
  83. Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'movie.mp4':
  84. Metadata:
  85. major_brand : isom
  86. minor_version : 512
  87. compatible_brands: isomiso2avc1mp41
  88. encoder : Lavf56.15.102
  89. Duration: 00:24:34.88, start: 0.000000, bitrate: 2896 kb/s
  90. Stream #0:0(jpn): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 960x720 [SAR 1:1 DAR 4:3], 2476 kb/s, 23.98 fps, 23.98 tbr, 16k tbn, 47.95 tbc (default)
  91. Metadata:
  92. handler_name : VideoHandler
  93. Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, 5.1, fltp, 414 kb/s (default)
  94. Metadata:
  95. handler_name : SoundHandler
  96. zsh: segmentation fault ffmpeg -i movie.mp4 http://localhost:8090/feed1.ffm
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement