This is the error which i got when i run make install command Maybe camera is not enough power and I need USB hub with external power for it?
dev/video0: could not find codec parameters Could not find codec parameters (Video: mjpeg, 320x240, 3072 kb/s) Ioctl(VIDIOC_DQBUF): No such ~ $ ffmpeg -an -f video4linux2 -vcodec mjpeg -s 320x240 -r 5 -b 200000 -i /dev/video0 test.avi Yes, i’m trying different resolution, but always see this error: Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used) Video:0kB audio:0kB global headers:0kB muxing overhead inf%
Input #0, video4linux2,v4l2, from '/dev/video0':
I try change ffmpeg port to 8080 but have same ~ $ sudo /usr/sbin/webcam.shĬopyright (c) 2000-2012 the FFmpeg developers Then I install ffmpeg follow it instruction I have clean weezy, only install script noip: TCP connection to localhost:80 failed: Connection refused Estimating duration from bitrate, this may be inaccurateĭuration: N/A, start: 1115.553043, bitrate: 24576 kb/s I have managed to make and install, but trying to run the script I get the following output and error: rw-r–r– 1 pi root 177 Aug 4 18:17 suggestions? Estimating duration from bitrate, this may be in Greatsome that some one put up a guide… for some reason i don’t get it to work… /usr/sbin/webcam.shįfserver version 0.11.1 Copyright (c) 2000-2012 the FFmpeg developersįfmpeg version 0.11.1 Copyright (c) 2000-2012 the FFmpeg developers Santoshs-MacBook-Pro:~ Santosh$ ffmpeg -v verbose -r 5 -s 640x480 -f video4linux2 -i /dev/video0 ffmpeg version 1.1.1 Copyright (c) 2000-2013 the FFmpeg developersīuilt on 12:31:21 with Apple LLVM version 4.2 (clang-425.0.24) (based on LLVM 3.2svn)Ĭonfiguration: -prefix=/usr/local/Cellar/ffmpeg/1.1.1 -enable-shared -enable-pthreads -enable-gpl -enable-version3 -enable-nonfree -enable-hardcoded-tables -enable-avresample -cc=cc -host-cflags= -host-ldflags= -enable-libx264 -enable-libfaac -enable-libmp3lame -enable-libxvid
sh file has been created, and the above code has been placed into it, you need to make the file executable by running chmod +x /usr/sbin/webcam.shĬan you explain how did you capture webcam stream using ffmpeg? Let’s call it webcam.sh and put it in /usr/sbin as the file needs to be run as root.įfserver -f /etc/nf & ffmpeg -v verbose -r 5 -s 640x480 -f video4linux2 -i /dev/video0 This will allow you to start streaming by just running the.