Have you checked drejkim/edi-cam · GitHub? That project might be what you're looking for. I just tested it and it worked just fine, the only difference that I had to make from the guide is that instead of using MyEdison.local, I used the Edison's IP address both on the index.html file and on the browser's window. But apart from that, the guide is very simple and easy to follow.
It's definitely worth checking it out, why don't you try it?
yes I know this repository, but I've already got the streaming which too works fine except for this buffer error.
So I'm looking for that solution.
Is there a hardware problem, or software that I have no idea about.
If you do a 'dmesg | tail' is there anything of interest in there? It would seem that the camera is either "dropped" or disconnected.
I would also like to see dmesg shows anything of interest. Also, could you let us know how the error comes up? A screenshot of the error message would be of help. How did you install ffmpeg?
Do you have updates on this?
Could you provide the output of dmesg | tail and the error message?
I have the same issue, when I use this command
ffmpeg -s 640x480 -f video4linux2 -i /dev/video0 -f mpeg1video -b:v 800k -r 30 http://127.0.0.1:8082/
The error msg
ffmpeg version N-79255-g6d7f566-static http://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2016 the FFmpeg developers built with gcc 5.3.1 (Debian 5.3.1-13) 20160323 configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --enable-libmp3lame --enable-libx264 --enable-libx265 --enable-libwebp --enable-libspeex --enable-libvorbis --enable-libvpx --enable-libfreetype --enable-fontconfig --enable-libxvid --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvo-amrwbenc --enable-gray --enable-libopenjpeg --enable-libopus --enable-libass --enable-gnutls --enable-libvidstab --enable-libsoxr --enable-frei0r --enable-libfribidi --disable-indev=sndio --disable-outdev=sndio --enable-librtmp --enable-libmfx --enable-libzimg --cc=gcc libavutil 55. 20.100 / 55. 20.100 libavcodec 57. 34.100 / 57. 34.100 libavformat 57. 30.100 / 57. 30.100 libavdevice 57. 0.101 / 57. 0.101 libavfilter 6. 40.102 / 6. 40.102 libswscale 4. 1.100 / 4. 1.100 libswresample 2. 0.101 / 2. 0.101 libpostproc 54. 0.100 / 54. 0.100 [video4linux2,v4l2 @ 0xc0c5400] ioctl(VIDIOC_STREAMON): Invalid argument /dev/video0: Invalid argument
This is my dmesg|tail
root@edison:~# dmesg | tail [ 17.808851] snd_intel_sst: Stop for str 1 pipe 0x90 [ 17.809364] snd_intel_sst: Free for str 1 pipe 0x90 [ 17.811738] snd_intel_sst: runtime_idle called [ 19.803911] snd_intel_sst: runtime_suspend called [ 134.708926] dwc3-host dwc3-host.2: Signal while waiting for configure endpoint command [ 134.719482] usb 1-1: Not enough bandwidth for altsetting 0 [ 139.139584] dwc3-host dwc3-host.2: xHCI xhci_drop_endpoint called with disabled ep f54e1cc0 [ 139.139617] dwc3-host dwc3-host.2: Trying to add endpoint 0x81 without dropping it. [ 139.139646] usb 1-1: Not enough bandwidth for altsetting 11 [ 139.139672] dwc3-host dwc3-host.2: xHCI xhci_drop_endpoint called with disabled ep f54e1cc0
It won't error when I press q or ctrl+c and sys prints
Exiting normally, received signal 2.
In other words, when the process end without this msg, next time you run ffmpeg, shows error.
When the error happened, I need replug the usb or reboot the system.
When I use
ffmpeg -f video4linux2 -i /dev/video0 -f flv rtmp://127.0.0.1
, it doesn't have this kind error.