Hello everyone, First, please excuse my mail, but I don't speak English very well... But, I need to capture video from IP Webcam (mjpeg format), and, I tried to use ffmpeg librairies, but failed... The main problem, I think, is that I don't exactly know what to use: ffserver, ffmpeg or ffplay. I tried to use ffplay with the following syntax : ffplay http://webcam5.hrz.tu-darmstadt.de/mjpg/video.mjpg (a website where I could have found video streaming), but, even if it open it in a window, the video can't be seen. After, I tried with ffserver and ffmpeg, and had two problems : I don't know the good configuration of ffserver.conf (don't even know if I need to use ffserver), and I have got an error when executing ffmpeg: "couldn't find video grab device". Please answer me, Regards, Ludovic.
Ludovic Pinon wrote:
Hello everyone,
First, please excuse my mail, but I don't speak English very well...
But, I need to capture video from IP Webcam (mjpeg format), and, I tried to use ffmpeg librairies, but failed...
The main problem, I think, is that I don't exactly know what to use: ffserver, ffmpeg or ffplay.
I tried to use ffplay with the following syntax : ffplay http://webcam5.hrz.tu-darmstadt.de/mjpg/video.mjpg (a website where I could have found video streaming), but, even if it open it in a window, the video can't be seen.
After, I tried with ffserver and ffmpeg, and had two problems : I don't know the good configuration of ffserver.conf (don't even know if I need to use ffserver), and I have got an error when executing ffmpeg: "couldn't find video grab device".
Please answer me,
Regards, Ludovic.
Certainly dont mess with ffserver, much too difficult for beginners (and some say very broken now). This works for me: ffmpeg -i http://webcam5.hrz.tu-darmstadt.de/mjpg/video.mjpg -t 10 x.mpg ffmpeg version 0.4.9-pre1, build 4754, Copyright (c) 2000-2004 Fabrice Bellard configuration: --enable-mp3lame --disable-strip --enable-amr_nb --enable-a52 --enable-gpl --enable-amr_wb --enable-static --disable-shared built on May 12 2005 10:23:19, gcc: 2.95.4 20011002 (Debian prerelease) Input #0, mjpeg, from 'http://webcam5.hrz.tu-darmstadt.de/mjpg/video.mjpg': Duration: N/A, bitrate: N/A Stream #0.0: Video: mjpeg, yuvj422p, 704x576, 25.00 fps Output #0, mpeg, to 'try.mpg': Stream #0.0: Video: mpeg1video, yuv420p, 704x576, 25.00 fps, q=2-31, 200 kb/s Stream mapping: Stream #0.0 -> #0.0 Press [q] to stop encoding frame= 250 q=0.0 Lsize= 876kB time=10.0 bitrate= 720.5kbits/s video:870kB audio:0kB global headers:0kB muxing overhead 0.666039% This works too: ffplay http://webcam5.hrz.tu-darmstadt.de/mjpg/video.mjpg Did you use the cvs version of ffplay? What is the link between your machine and the webcam? Are you sure the compression on the capture card is strong enough? Using -vcodec copy, I saw that the bitrate is 11.8 MBits; we have a fast Internet line, but if yours is not fast enough, that might explain why ffplay doesnt work. -- Michel Bardiaux Peaktime Belgium S.A. Bd. du Souverain, 191 B-1160 Bruxelles Tel : +32 2 790.29.41
participants (2)
-
ludovic.pinon@esstin.uhp-nancy.fr -
mbardiaux@peaktime.be