gachowy

Untitled

Oct 25th, 2015
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.94 KB | None | 0 0
  1. //
  2. // FFMpeg
  3. //
  4.  
  5. ffmpeg -f v4l2 -input_format h264 -video_size 320x400 -i /dev/video0 -copyinkf -codec copy -f mpegts http://server.com:8090/feed1.ffm
  6. ffmpeg version N-76259-gbbd6bc6 Copyright (c) 2000-2015 the FFmpeg developers
  7. built with gcc 4.6 (Debian 4.6.3-14+rpi1)
  8. configuration:
  9. libavutil 55. 4.100 / 55. 4.100
  10. libavcodec 57. 9.100 / 57. 9.100
  11. libavformat 57. 11.100 / 57. 11.100
  12. libavdevice 57. 0.100 / 57. 0.100
  13. libavfilter 6. 13.100 / 6. 13.100
  14. libswscale 4. 0.100 / 4. 0.100
  15. libswresample 2. 0.100 / 2. 0.100
  16. [video4linux2,v4l2 @ 0x1827250] The V4L2 driver changed the video from 320x400 to 352x288
  17. Input #0, video4linux2,v4l2, from '/dev/video0':
  18. Duration: N/A, start: 18689.825780, bitrate: N/A
  19. Stream #0:0: Video: h264 (Constrained Baseline), yuvj420p(pc), 352x288 [SAR 1:1 DAR 11:9], -5 kb/s, 30 fps, 30 tbr, 1000k tbn, 60 tbc
  20. Output #0, mpegts, to 'http://server:8090/feed1.ffm':
  21. Metadata:
  22. encoder : Lavf57.11.100
  23. Stream #0:0: Video: h264, yuvj420p, 352x288 [SAR 1:1 DAR 11:9], q=2-31, -5 kb/s, 30 fps, 30 tbr, 90k tbn, 1000k tbc
  24. Stream mapping:
  25. Stream #0:0 -> #0:0 (copy)
  26. Press [q] to stop, [?] for help
  27. [mpegts @ 0x1844c20] Non-monotonous DTS in output stream 0:0; previous: 0, current: -33005; changing to 1. This may result in incorrect timestamps in the output file.
  28. [mpegts @ 0x1844c20] Non-monotonous DTS in output stream 0:0; previous: 1, current: -26884; changing to 2. This may result in incorrect timestamps in the output file.
  29. [mpegts @ 0x1844c20] Non-monotonous DTS in output stream 0:0; previous: 2, current: -21123; changing to 3. This may result in incorrect timestamps in the output file.
  30. [mpegts @ 0x1844c20] Non-monotonous DTS in output stream 0:0; previous: 3, current: -15002; changing to 4. This may result in incorrect timestamps in the output file.
  31. [mpegts @ 0x1844c20] Non-monotonous DTS in output stream 0:0; previous: 4, current: -8881; changing to 5. This may result in incorrect timestamps in the output file.
  32. av_interleaved_write_frame(): Connection reset by peer
  33. Error writing trailer of http://server.com:8090/feed1.ffm: Connection reset by peerframe= 6 fps=0.0 q=-1.0 Lsize= 36kB time=00:00:00.00 bitrate=4354865.7kbits/s
  34. video:32kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 10.487731%
  35. Conversion failed!
  36.  
  37.  
  38.  
  39. //
  40. // FFServer
  41. //
  42. # Port on which the server is listening. You must select a different
  43. # port from your standard HTTP web server if it is running on the same
  44. # computer.
  45. Port 8090
  46.  
  47. # Address on which the server is bound. Only useful if you have
  48. # several network interfaces.
  49. BindAddress 0.0.0.0
  50.  
  51. # Number of simultaneous HTTP connections that can be handled. It has
  52. # to be defined *before* the MaxClients parameter, since it defines the
  53. # MaxClients maximum limit.
  54. MaxHTTPConnections 2000
  55.  
  56. # Number of simultaneous requests that can be handled. Since FFServer
  57. # is very fast, it is more likely that you will want to leave this high
  58. # and use MaxBandwidth, below.
  59. MaxClients 1000
  60.  
  61. # This the maximum amount of kbit/sec that you are prepared to
  62. # consume when streaming to clients.
  63. MaxBandwidth 500000
  64.  
  65. # Access log file (uses standard Apache log file format)
  66. # '-' is the standard output.
  67. CustomLog -
  68.  
  69. NoDaemon
  70.  
  71. ##################################################################
  72. # Definition of the live feeds. Each live feed contains one video
  73. # and/or audio sequence coming from an ffmpeg encoder or another
  74. # ffserver. This sequence may be encoded simultaneously with several
  75. # codecs at several resolutions.
  76.  
  77. <Feed feed1.ffm>
  78.  
  79. # You must use 'ffmpeg' to send a live feed to ffserver. In this
  80. # example, you can type:
  81. #
  82.  
  83. File /tmp/feed1.ffm
  84. FileMaxSize 100M
  85.  
  86. # You could specify
  87. # ReadOnlyFile /saved/specialvideo.ffm
  88. # This marks the file as readonly and it will not be deleted or updated.
  89.  
  90. # Only allow connections from localhost to the feed.
  91. ACL allow 127.0.0.1 xxx.xxx.xxx.xxx
  92.  
  93. </Feed>
  94.  
  95.  
  96. ##################################################################
  97. # Now you can define each stream which will be generated from the
  98. # original audio and video stream. Each format has a filename (here
  99. # 'test1.mpg'). FFServer will send this stream when answering a
  100. # request containing this filename.
  101.  
  102. <stream stream.mp4>
  103.  
  104. Feed feed1.ffm
  105. Format mp4
  106.  
  107. # Audio settings
  108. NoAudio
  109.  
  110. # Video Settings
  111. #VideoSize 1280x720 # Video resolution
  112. #VideoFrameRate 30 # Video FPS
  113. #AVOptionVideo flags +global_header # Parameters passed to encoder
  114. #AVOptionVideo cpu-used 0
  115. #AVOptionVideo qmin 10
  116. #AVOptionVideo qmax 42
  117. #AVOptionVideo quality good
  118. PreRoll 0
  119. #StartSendOnKey
  120. #VideoBitRate 400 # Video bitrate
  121.  
  122. </stream>
  123.  
  124. # Server status
  125.  
  126. <Stream stat.html>
  127. Format status
  128.  
  129. # Only allow local people to get the status
  130. ACL allow localhost
  131. ACL allow 192.168.0.0 192.168.255.255 xxx.xxx.xxx.xxx
  132.  
  133. </Stream>
Advertisement
Add Comment
Please, Sign In to add comment