Advertisement
gachowy

Untitled

Nov 2nd, 2015
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.60 KB | None | 0 0
  1. //
  2. // ffserver.conf
  3. //
  4.  
  5.  
  6. Port 8090
  7. BindAddress 0.0.0.0
  8. MaxClients 10
  9. MaxBandwidth 40000
  10. NoDaemon
  11. CustomLog -
  12. <Feed feed1.ffm>
  13. File /tmp/feed1.ffm
  14. FileMaxSize 200M
  15. ACL allow localhost
  16. ACL allow 192.168.0.0 192.168.255.255
  17. </Feed>
  18.  
  19. <Stream stream.mp4>
  20. Feed feed1.ffm
  21. Format mp4
  22.  
  23. VideoCodec libx264
  24. VideoFrameRate 25
  25. # VideoBufferSize 40
  26. VideoBitRate 512K
  27. VideoSize 1280x720
  28. # VideoGopSize 15
  29. # StartSendOnKey
  30.  
  31. NoAudio
  32.  
  33. # i had problems with videostreaming with file. player said that header were corrupted, so i used this config, but it doesnt help. i still let it in.
  34. AVOptionVideo flags +global_header
  35.  
  36. # ffpreset-fast (i think you can remove this in latest ffmpeg)
  37. AVOptionVideo coder 1
  38. AVOptionVideo flags +loop
  39. AVOptionVideo cmp +chroma
  40. AVOptionVideo partitions +parti8x8+parti4x4+partp8x8+partb8x8
  41. AVOptionVideo me_method hex
  42. AVOptionVideo subq 6
  43. AVOptionVideo me_range 16
  44. AVOptionVideo g 250
  45. AVOptionVideo keyint_min 25
  46. AVOptionVideo sc_threshold 40
  47. AVOptionVideo i_qfactor 0.71
  48. AVOptionVideo b_strategy 1
  49. AVOptionVideo qcomp 0.6
  50. AVOptionVideo qmin 10
  51. AVOptionVideo qmax 51
  52. AVOptionVideo qdiff 4
  53. AVOptionVideo bf 3
  54. AVOptionVideo refs 2
  55. AVOptionVideo directpred 1
  56. AVOptionVideo trellis 1
  57. AVOptionVideo flags2 +bpyramid+mixed_refs+wpred+dct8x8+fastpskip
  58. AVOptionVideo wpredp 2
  59. AVOptionVideo rc_lookahead 30
  60.  
  61. </Stream>
  62.  
  63. <Stream stat.html>
  64. Format status
  65. ACL allow localhost
  66. ACL allow 192.168.0.0 192.168.255.255
  67. </Stream>
  68.  
  69. <Redirect index.html>
  70. URL http://www.ffmpeg.org/
  71. </Redirect>
  72.  
  73.  
  74. //
  75. // Command
  76. //
  77. ffmpeg -i rtsp://xxx.xxx.xxx.xxx:8080/ -acodec copy -vcodec copy http://localhost:8090/feed1.ffm
  78.  
  79.  
  80. //
  81. // Output
  82. //
  83.  
  84. [rtsp @ 0x15f3780]Estimating duration from bitrate, this may be inaccurate
  85.  
  86. Seems stream 0 codec frame rate differs from container frame rate: 60.00 (60/1) -> 30.00 (60/2)
  87. Input #0, rtsp, from 'rtsp://xxx.xxx.xxx.xxx:8080/':
  88. Metadata:
  89. title : Unnamed
  90. comment : N/A
  91. Duration: N/A, start: 435.315922, bitrate: N/A
  92. Stream #0.0: Video: h264, yuv420p, 1280x720 [PAR 1:1 DAR 16:9], 60 fps, 30 tbr, 90k tbn, 60 tbc
  93. Output #0, ffm, to 'http://localhost:8090/feed1.ffm':
  94. Metadata:
  95. encoder : Lavf52.64.2
  96. Stream #0.0: Video: libx264, yuv420p, 1280x720, q=10-51, 1000k tbn, 30 tbc
  97. Stream mapping:
  98. Stream #0.0 -> #0.0
  99. Press [q] to stop encoding
  100. [ffm @ 0x16399c0]st:0 error, non monotone timestamps 2333325 >= 1566667
  101. av_interleaved_write_frame(): Operation not permitted
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement