Advertisement
gachowy

Untitled

Oct 26th, 2015
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.57 KB | None | 0 0
  1. //
  2. // ffserver.conf
  3. //
  4. Port 8090
  5. BindAddress 0.0.0.0
  6. MaxHTTPConnections 2000
  7. MaxClients 1000
  8. MaxBandwidth 10000
  9. CustomLog -
  10. NoDaemon
  11.  
  12. <Feed feed1.ffm>
  13. File /tmp/feed1.ffm
  14. FileMaxSize 200M
  15. ACL allow xx.xx.xx.xx
  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.ts>
  22. Format mpegts
  23. Feed feed1.ffm
  24.  
  25. VideoCodec libx264
  26. VideoFrameRate 30
  27. VideoBitRate 512
  28. #VideoSize 640x480
  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.  
  35. NoAudio
  36. # AudioCodec aac
  37. # Strict -2
  38. # AudioBitRate 128
  39. # AudioChannels 2
  40. # AudioSampleRate 44100
  41. # AVOptionAudio flags +global_header
  42. </Stream>
  43.  
  44. ##################################################################
  45. # Special streams
  46. ##################################################################
  47. <Stream stat.html>
  48. Format status
  49. # Only allow local people to get the status
  50. ACL allow localhost
  51. ACL allow 192.168.0.0 192.168.255.255
  52. </Stream>
  53.  
  54. # Redirect index.html to the appropriate site
  55. <Redirect index.html>
  56. URL http://www.ffmpeg.org/
  57. </Redirect>
  58. ##################################################################
  59.  
  60. //
  61. // codecs
  62. //
  63. $ ffmpeg -codecs | grep 264
  64. FFmpeg version 0.6.5, Copyright (c) 2000-2010 the FFmpeg developers
  65. built on Jan 29 2012 17:52:15 with gcc 4.4.5 20110214 (Red Hat 4.4.5-6)
  66. configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --incdir=/usr/include --disable-avisynth --extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC' --enable-avfilter --enable-avfilter-lavf --enable-libdc1394 --enable-libdirac --enable-libfaac --enable-libfaad --enable-libfaadbin --enable-libgsm --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libx264 --enable-gpl --enable-nonfree --enable-postproc --enable-pthreads --enable-shared --enable-swscale --enable-vdpau --enable-version3 --enable-x11grab
  67. libavutil 50.15. 1 / 50.15. 1
  68. libavcodec 52.72. 2 / 52.72. 2
  69. libavformat 52.64. 2 / 52.64. 2
  70. libavdevice 52. 2. 0 / 52. 2. 0
  71. libavfilter 1.19. 0 / 1.19. 0
  72. libswscale 0.11. 0 / 0.11. 0
  73. libpostproc 51. 2. 0 / 51. 2. 0
  74. D V D h264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
  75. D V D h264_vdpau H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (VDPAU acceleration)
  76. EV libx264 libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
  77.  
  78. //
  79. // Streamer
  80. //
  81. ffmpeg -f v4l2 -s 640x480 -input_format h264 -r 15 -i /dev/video0 -vcodec copy http://server.com:8090/feed1.ffm
  82. ffmpeg version N-76259-gbbd6bc6 Copyright (c) 2000-2015 the FFmpeg developers
  83. built with gcc 4.6 (Debian 4.6.3-14+rpi1)
  84. configuration:
  85. libavutil 55. 4.100 / 55. 4.100
  86. libavcodec 57. 9.100 / 57. 9.100
  87. libavformat 57. 11.100 / 57. 11.100
  88. libavdevice 57. 0.100 / 57. 0.100
  89. libavfilter 6. 13.100 / 6. 13.100
  90. libswscale 4. 0.100 / 4. 0.100
  91. libswresample 2. 0.100 / 2. 0.100
  92. Input #0, video4linux2,v4l2, from '/dev/video0':
  93. Duration: N/A, start: 65530.521196, bitrate: N/A
  94. Stream #0:0: Video: h264 (Constrained Baseline), yuvj420p(pc), 640x480 [SAR 1:1 DAR 4:3], -2 kb/s, 15 fps, 15 tbr, 1000k tbn, 30 tbc
  95. [ffm @ 0x1e21450] Invalid time base 0/1
  96. http://server.com:8090/feed1.ffm: Operation not permitted
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement