Can anyone direct me to any work that has been done with taking the captured video and streaming it to an IP ?
I'm afraid I don't think there's a way to do that in real time. I've been trying to use ffmpeg pipe: protocol as an output format and redirect that to e.g. ffserver. However, I haven't been able to get it to open an ffmpeg pipe properly nor to get hints from the mailing list. It's definetely a feature that should not require too much work and worth revisiting for 1.1.4. Since I need to upgrade to another version of ffmpeg then, anyway, it might even just work with a more current version.
If you're just looking for a howto for taking the file and setting up a stream lateron, I have no idea personally. Somebody else on the forum might, but I'd try on the streaming server's mailing list ... find out what formats/codecs are supported and then use gvidcap to capture such a video.
P.S.: You might want to file an RFE for it
thanks for your reply, when you say "I'd try on the streaming server's mailing list" are you referring to ffserver ?
Can xvidcap output to stdout ?
Apparently it is possible to 'cat' a file to ffmpeg and stream it using ffserver.
e.g. cat /video/test.mpg | ffmpeg -i - http://127.0.0.1:8090/feed1.ffm
I was not referring to any streaming server in particular (the one of your choice), but ffserver would be one.
As for output to stdout, that was what I was referring to in my first reply ... ffmpeg has the capability to output to stdout using the pipe protocol of the libavformat API. However, I haven't been able to successfully use it, yet. Therefore to date xvicap cannot do that. You can try by specifying --file "-" . The error you'll be seeing is the one that got me stuck.
with 1.1.4 you have --codec option so you may be able to do like this;
./gvidcap --gui no . . . .. . --codec mpeg2 --file | ffmpeg -i - -f dvd udp://22.214.171.124
for earlier version you may do,
./xvidcap . . . --file sample.mpeg
&& ffmpeg -i sample.mpeg -f dvd udp://126.96.36.199
you might try again with current CVS.
I have verified that smth. DOES now get put out to stdout and you CAN (should) redirect that to a file or potentially a pipe.
Was able to do smth. like:
../src/gvidcap --gui no --mf --fps 24 --format \
avi --codec mpeg2 --file "-" | ./ffmpeg -i - \
-f dvd http://127.0.0.1:8090/feed1.ffm
However, I was not able to play the movie. totem complained about mmsh://..... "no plugin to handle this movie" and mplayer fills its cache for ever.
Perhaps somebody with more streaming xp could verify that I've just set up my players incorrectly.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.