Advertisement
Guest User

Untitled

a guest
Oct 21st, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.26 KB | None | 0 0
  1. ffserver -f /etc/ffserver.conf &
  2.  
  3. ffmpeg -f alsa -ac 2 -i plughw:0,0 -f video4linux2 -s vga -i /dev/video0 http://localhost:8090/feed1.ffm
  4.  
  5. [...]
  6. [tcp @ 0x560e1234c6e0] Connection to tcp://localhost:8090 failed (Connection refused), trying next address
  7.  
  8. # ffmpeg -f alsa -ac 2 -i plughw:0,0 -f video4linux2 -s vga -i /dev/video0 http://localhost:8090/feed1.ffm
  9.  
  10. ffmpeg version 3.2.1-1 Copyright (c) 2000-2016 the FFmpeg developers
  11. built with gcc 6.2.1 (Debian 6.2.1-5) 20161124
  12. configuration: --prefix=/usr --extra-version=1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-libtesseract --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libebur128 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libiec61883 --enable-libopencv --enable-frei0r --enable-libx264 --enable-chromaprint --enable-shared
  13. libavutil 55. 34.100 / 55. 34.100
  14. libavcodec 57. 64.101 / 57. 64.101
  15. libavformat 57. 56.100 / 57. 56.100
  16. libavdevice 57. 1.100 / 57. 1.100
  17. libavfilter 6. 65.100 / 6. 65.100
  18. libavresample 3. 1. 0 / 3. 1. 0
  19. libswscale 4. 2.100 / 4. 2.100
  20. libswresample 2. 3.100 / 2. 3.100
  21. libpostproc 54. 1.100 / 54. 1.100
  22. Guessed Channel Layout for Input Stream #0.0 : stereo
  23. Input #0, alsa, from 'plughw:0,0':
  24. Duration: N/A, start: 1481703954.356244, bitrate: 1536 kb/s
  25. Stream #0:0: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
  26. Input #1, video4linux2,v4l2, from '/dev/video0':
  27. Duration: N/A, start: 41830.241126, bitrate: 147456 kb/s
  28. Stream #1:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 640x480, 147456 kb/s, 30 fps, 30 tbr, 1000k tbn, 1000k tbc
  29. [tcp @ 0x560e6432c6e0] Connection to tcp://localhost:8090 failed (Connection refused), trying next address
  30. [tcp @ 0x560e64345a40] Connection to tcp://localhost:8090 failed (Connection refused), trying next address
  31. [mpeg1video @ 0x560e6435fb20] bitrate tolerance 21333 too small for bitrate 64000, overriding
  32. [mpeg1video @ 0x560e6435fb20] MPEG-1/2 does not support 3/1 fps
  33. Stream mapping:
  34. Stream #0:0 -> #0:0 (pcm_s16le (native) -> mp2 (native))
  35. Stream #1:0 -> #0:1 (rawvideo (native) -> mpeg1video (native))
  36. Stream #0:0 -> #0:2 (pcm_s16le (native) -> wmav2 (native))
  37. Stream #1:0 -> #0:3 (rawvideo (native) -> msmpeg4v3 (msmpeg4))
  38. Error while opening encoder for output stream #0:1 - maybe incorrect parameters such as bit_rate, rate, width or height
  39.  
  40. HTTPPort 8090
  41. HTTPBindAddress 0.0.0.0
  42. MaxHTTPConnections 2000
  43. MaxClients 1000
  44. MaxBandwidth 1000
  45. CustomLog -
  46. <Feed feed1.ffm>
  47. File /tmp/feed1.ffm
  48. FileMaxSize 200K
  49. ACL allow 127.0.0.1
  50. </Feed>
  51. <Stream test1.mpg>
  52. Feed feed1.ffm
  53. Format mpeg
  54. AudioBitRate 32
  55. AudioChannels 1
  56. AudioSampleRate 44100
  57. VideoBitRate 64
  58. VideoBufferSize 40
  59. VideoFrameRate 3
  60. VideoSize 160x128
  61. VideoGopSize 12
  62. </Stream>
  63. <Stream test.asf>
  64. Feed feed1.ffm
  65. Format asf
  66. VideoFrameRate 15
  67. VideoSize 352x240
  68. VideoBitRate 256
  69. VideoBufferSize 40
  70. VideoGopSize 30
  71. AudioBitRate 64
  72. StartSendOnKey
  73. </Stream>
  74. <Stream stat.html>
  75. Format status
  76. ACL allow localhost
  77. ACL allow 192.168.0.0 192.168.255.255
  78. </Stream>
  79. <Redirect index.html>
  80. URL http://www.ffmpeg.org/
  81. </Redirect>
  82.  
  83. Port 8090
  84. # bind to all IPs aliased or not
  85. BindAddress 0.0.0.0
  86. # max number of simultaneous clients
  87. MaxClients 1000
  88. # max bandwidth per-client (kb/s)
  89. MaxBandwidth 10000
  90. # Suppress that if you want to launch ffserver as a daemon.
  91. NoDaemon
  92.  
  93. <Feed feed1.ffm>
  94. File /tmp/feed1.ffm
  95. FileMaxSize 5M
  96. </Feed>
  97.  
  98. <Stream test.swf>
  99. Feed feed1.ffm
  100. Format swf
  101. VideoCodec flv
  102. VideoFrameRate 15
  103. VideoBufferSize 80000
  104. VideoBitRate 100
  105. VideoQMin 1
  106. VideoQMax 5
  107. VideoSize 352x288
  108. PreRoll 0
  109. Noaudio
  110. </Stream>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement