Advertisement
Guest User

Untitled

a guest
Dec 2nd, 2012
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.25 KB | None | 0 0
  1. ffserver.conf:
  2.  
  3. Port 51888
  4. BindAddress 0.0.0.0
  5. MaxHTTPConnections 2000
  6. MaxClients 1000
  7. MaxBandwidth 3000
  8. CustomLog -
  9. #NoDaemon
  10.  
  11. <Feed feed1.ffm>
  12. File /tmp/feed1.ffm
  13. FileMaxSize 200K
  14. ACL allow 127.0.0.1
  15. ACL allow 188.x.x.x
  16. </Feed>
  17.  
  18. # if you want to use mpegts format instead of flv
  19. # then change "live.flv" to "live.ts"
  20. # and also change "Format flv" to "Format mpegts"
  21. <Stream live.flv>
  22. Format flv
  23. Feed feed1.ffm
  24.  
  25. VideoCodec libx264
  26. VideoFrameRate 30
  27. VideoBitRate 512
  28. VideoSize 320x240
  29. AVOptionVideo crf 23
  30. AVOptionVideo preset medium
  31. # for more info on crf/preset options, type: x264 --help
  32. AVOptionVideo flags +global_header
  33.  
  34. AudioCodec aac
  35. Strict -2
  36. AudioBitRate 128
  37. AudioChannels 2
  38. AudioSampleRate 44100
  39. AVOptionAudio flags +global_header
  40. </Stream>
  41.  
  42. ##################################################################
  43. # Special streams
  44. ##################################################################
  45. #<Stream stat.html>
  46. # Format status
  47. # # Only allow local people to get the status
  48. # ACL allow localhost
  49. # ACL allow 192.168.0.0 192.168.255.255
  50. #</Stream>
  51. #
  52. # Redirect index.html to the appropriate site
  53. #<Redirect index.html>
  54. # URL http://www.ffmpeg.org/
  55. #</Redirect>
  56. ##################################################################
  57.  
  58. -----------------------------------------------------------------------------------------------------------
  59.  
  60. ffserver cmd & output:
  61.  
  62. ffserver -d -f ffserver.conf
  63. ffserver version N-47342-g5473f62 Copyright (c) 2000-2012 the FFmpeg developers
  64. built on Dec 1 2012 14:30:43 with gcc 4.4.5 (Debian 4.4.5-8)
  65. configuration: --disable-shared --enable-static --prefix=/x/ --extra-ldflags=-I/x/include --extra-ldflags=-L/x/lib --extra-cflags=-I/x/include --enable-gpl --enable-libaacplus --enable-libmp3lame --enable-librtmp --enable-libvorbis --enable-libx264 --enable-nonfree --enable-version3 --enable-vdpau --enable-bzlib --enable-pthreads --enable-zlib --disable-stripping --enable-runtime-cpudetect --enable-postproc --enable-swscale
  66. libavutil 52. 10.100 / 52. 10.100
  67. libavcodec 54. 78.100 / 54. 78.100
  68. libavformat 54. 41.100 / 54. 41.100
  69. libavdevice 54. 3.101 / 54. 3.101
  70. libavfilter 3. 23.104 / 3. 23.104
  71. libswscale 2. 1.103 / 2. 1.103
  72. libswresample 0. 17.101 / 0. 17.101
  73. libpostproc 52. 2.100 / 52. 2.100
  74. Sun Dec 2 10:04:35 2012 FFserver started.
  75. Sun Dec 2 10:04:42 2012 188.x.x.x. - - New connection: POST /feed1.ffm
  76. Sun Dec 2 10:04:43 2012 188.x.x.x - - [POST] "/feed1.ffm HTTP/1.1" 200 834
  77.  
  78. ------------------------------------------------------------------------------------------------------------
  79.  
  80. ffmpeg cmd & output: (on the same box)
  81.  
  82. ffmpeg -re -i x.mp4 -f flv -ar 44100 http://127.0.0.1:51888/feed1.ffm
  83. ffmpeg version N-47342-g5473f62 Copyright (c) 2000-2012 the FFmpeg developers
  84. built on Dec 1 2012 14:30:43 with gcc 4.4.5 (Debian 4.4.5-8)
  85. configuration: --disable-shared --enable-static --prefix=/x/ --extra-ldflags=-I/x/include --extra-ldflags=-L/x/lib --extra-cflags=-I/x/include --enable-gpl --enable-libaacplus --enable-libmp3lame --enable-librtmp --enable-libvorbis --enable-libx264 --enable-nonfree --enable-version3 --enable-vdpau --enable-bzlib --enable-pthreads --enable-zlib --disable-stripping --enable-runtime-cpudetect --enable-postproc --enable-swscale
  86. libavutil 52. 10.100 / 52. 10.100
  87. libavcodec 54. 78.100 / 54. 78.100
  88. libavformat 54. 41.100 / 54. 41.100
  89. libavdevice 54. 3.101 / 54. 3.101
  90. libavfilter 3. 23.104 / 3. 23.104
  91. libswscale 2. 1.103 / 2. 1.103
  92. libswresample 0. 17.101 / 0. 17.101
  93. libpostproc 52. 2.100 / 52. 2.100
  94. Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'x.mp4':
  95. Metadata:
  96. major_brand : isom
  97. minor_version : 1
  98. compatible_brands: isom
  99. creation_time : 2012-11-26 18:03:39
  100. Duration: 00:20:56.64, start: 0.000000, bitrate: 1137 kb/s
  101. Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 720x404, 1018 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 47.95 tbc
  102. Metadata:
  103. creation_time : 2012-11-26 17:56:19
  104. handler_name : GPAC ISO Video Handler
  105. Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 114 kb/s
  106. Metadata:
  107. creation_time : 2012-11-26 18:03:40
  108. handler_name : GPAC ISO Audio Handler
  109. Output #0, flv, to 'http://127.0.0.1:51888/feed1.ffm':
  110. Metadata:
  111. major_brand : isom
  112. minor_version : 1
  113. compatible_brands: isom
  114. encoder : Lavf54.41.100
  115. Stream #0:0(und): Video: flv1 ([2][0][0][0] / 0x0002), yuv420p, 720x404, q=2-31, 200 kb/s, 1k tbn, 23.98 tbc
  116. Metadata:
  117. creation_time : 2012-11-26 17:56:19
  118. handler_name : GPAC ISO Video Handler
  119. Stream #0:1(und): Audio: mp3 ([2][0][0][0] / 0x0002), 44100 Hz, stereo, fltp
  120. Metadata:
  121. creation_time : 2012-11-26 18:03:40
  122. handler_name : GPAC ISO Audio Handler
  123. Stream mapping:
  124. Stream #0:0 -> #0:0 (h264 -> flv)
  125. Stream #0:1 -> #0:1 (aac -> libmp3lame)
  126. Press [q] to stop, [?] for help
  127. av_interleaved_write_frame(): Connection reset by peer
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement