Stream 2 webcams + static web pages

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
MortenKjarulff
Blank Cone
Blank Cone
Posts: 41
Joined: 14 Jun 2009 14:12

Stream 2 webcams + static web pages

Postby MortenKjarulff » 14 Jun 2009 14:28

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

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Stream 2 webcams + static web pages

Postby Jean-Baptiste Kempf » 14 Jun 2009 19:19

Yes.
Stream and play locally with the snapshot video output.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

MortenKjarulff
Blank Cone
Blank Cone
Posts: 41
Joined: 14 Jun 2009 14:12

Re: Stream 2 webcams + static web pages

Postby MortenKjarulff » 11 Aug 2009 10:39

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

MortenKjarulff
Blank Cone
Blank Cone
Posts: 41
Joined: 14 Jun 2009 14:12

Re: Stream 2 webcams + static web pages

Postby MortenKjarulff » 18 Aug 2009 10:50

Anyone got a better way to take a snapshot?

MortenKjarulff
Blank Cone
Blank Cone
Posts: 41
Joined: 14 Jun 2009 14:12

Re: Stream 2 webcams + static web pages

Postby MortenKjarulff » 24 Aug 2009 12:56

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


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 25 guests