ffmpeg streaming camera command error

时光怂恿深爱的人放手 提交于 2019-12-24 12:23:10

问题


Hi im using this method http://phoboslab.org/log/2013/09/html5-live-video-streaming-via-websockets to stream video from my raspberry Pi cam to my pc using Websocket everything work fine but when I enter this command ffmpeg in my raspberry machine

ffmpeg -s 320x240 -f video4linux2 -i /dev/video0 -f mpeg1video \
-b 800k -r 30 http://localhost:8082/mypassword/320/240/

Here is the full console output:

pi@raspberrypi:~ $ ffmpeg -s 320x240 -f video4linux2 -i /dev/video0 -f mpeg1video -b 800k -r 30 http://localhost:8082/mypassword/320/240/
ffmpeg version N-77221-g93d336f Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.9.2 (Raspbian 4.9.2-10)
  configuration: --arch=armel --target-os=linux --enable-gpl --enable-libx264 --enable-nonfree
  libavutil      55. 10.100 / 55. 10.100
  libavcodec     57. 17.100 / 57. 17.100
  libavformat    57. 20.100 / 57. 20.100
  libavdevice    57.  0.100 / 57.  0.100
  libavfilter     6. 21.100 /  6. 21.100
  libswscale      4.  0.100 /  4.  0.100
  libswresample   2.  0.101 /  2.  0.101
  libpostproc    54.  0.100 / 54.  0.100
[video4linux2,v4l2 @ 0x1d4b230] The device does not support the streaming I/O method.
/dev/video0: Function not implemented

But when I run the command from my pc using ssh to raspberry pi it work fine, any suggestion ?

来源:https://stackoverflow.com/questions/34454275/ffmpeg-streaming-camera-command-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!