Page 1 of 1

Stream 2 webcams + static web pages

Posted: 14 Jun 2009 14:28
by MortenKjarulff
Hi,

I am almost sure vlc can do what I want, but just to be sure, I ask.

I have an USB camera and a TV tuner with a camera attached to the composite port (on a windows box). I want

- a live stream from both cameras on my homepage
- each fx 15 minutes, save a picture locally from both cameras
- a webserver which can serve some static pages
- all should be available on port 80

Can vlc do that?

And if it can; my computer is at my summerhouse, and I have only a slow remote access to it. Can I test the whole setup on my home computer, just with input from 2 video files, instead of from 2 cameras?

If the answer is yes to all my question, I will try it out - and probably ask more question ;-)

Cheers,
Morten

Re: Stream 2 webcams + static web pages

Posted: 14 Jun 2009 19:19
by Jean-Baptiste Kempf
Yes.
Stream and play locally with the snapshot video output.

Re: Stream 2 webcams + static web pages

Posted: 11 Aug 2009 10:39
by MortenKjarulff
Hi,

I now got this vlm configuration working:

Code: Select all

new channel1 broadcast enabled setup channel1 input dshow:// setup channel1 option dshow-vdev="Hauppauge WinTV PVR PCI II Capture" setup channel1 option dshow-video-input=3 setup channel1 output #transcode{vcodec=FLV1,acodec=mp3,channels=2,samplerate=11025}:std{access=http,mux=ffmpeg{mux=flv},dst=0.0.0.0:80/stream1.flv} control channel1 play new channel2 broadcast enabled setup channel2 input dshow:// setup channel2 option dshow-vdev="Logitech QuickCam Chat " setup channel2 output #transcode{vcodec=FLV1,acodec=mp3,channels=2,samplerate=11025}:std{access=http,mux=ffmpeg{mux=flv},dst=0.0.0.0:80/stream2.flv} control channel2 play
With this command:

Code: Select all

C:\Programmer\VideoLAN\vlc\vlc.exe ^ http://localhost/stream1.flv ^ -V dummy --intf=dummy --dummy-quiet --video-filter=scene --no-audio --scene-path=C:\morten-SERVER1\home\vlc --scene-format=jpeg --scene-prefix=snap1 --scene-replace --run-time=1 --scene-ratio=24 "dshow://" vlc://quit
The command create 2 files: snap1.jpeg which seems to be all green, and snap1.jpeg.swp which is a snapshot. I made the snapshot command with model from viewtopic.php?f=2&t=63313.

Is this the way to do it? Or can I add something to my vlm conf, to take a snapshot each 15 minutes?

Cheers,
Morten

Re: Stream 2 webcams + static web pages

Posted: 18 Aug 2009 10:50
by MortenKjarulff
Anyone got a better way to take a snapshot?

Re: Stream 2 webcams + static web pages

Posted: 24 Aug 2009 12:56
by MortenKjarulff
If I take snapshots directly from the camera (without running my vlm configuration), with this:

Code: Select all

C:\Programmer\VideoLAN\vlc\vlc.exe ^ dshow:// :dshow-vdev="Hauppauge WinTV PVR PCI II Capture" :dshow-video-input=3 ^ -V dummy --intf=dummy --dummy-quiet --video-filter=scene --no-audio --scene-path=C:\morten-SERVER1\home\vlc --scene-format=jpeg --scene-prefix=snap1b --run-time=900 --scene-ratio=540 "dshow://" vlc://quit
the pictures are of better quality than the ones taken from http://localhost/stream1.flv. I understand this.

But how can I do it all from my vlm configuration? I am almost sure it is possible to do this:

1) transcode the input stream from the camera (fx reduce the size to 320x240)
2) duplicate that stream into 2
3) transcode one of them to .flv and send it out over http
3) use the other to take snapshots

Can anyone give me a hint on how to write that in my vlm configuration file?

Cheers,
Morten