streaming using the API?

About encoding, codec settings, muxers and filter usage
alotof_sw
New Cone
New Cone
Posts: 4
Joined: 15 Jul 2007 22:05

streaming using the API?

Postby alotof_sw » 15 Jul 2007 22:13

Hi,

I have an external capturing device I'd like to stream in real time through the vlc. I have the source of its device driver, which writes its contents to a file. The format can be selected - Divx, Xvid, H263, uncomressed and others. I tried to stream the file 'on the fly' to no avail.

I found the place in the code where it takes the current frame and saves it to the file. I wondered how can I connect to it. Where and what do I need to do in the VLC code to be able to stream the device live?


thanks so much for ANY ideas!
best
Joel

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Re: streaming using the API?

Postby dionoea » 17 Jul 2007 16:17

What kind of device is that? What OS are you using?
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

alotof_sw
New Cone
New Cone
Posts: 4
Joined: 15 Jul 2007 22:05

Re: streaming using the API?

Postby alotof_sw » 18 Jul 2007 05:00

Hi and thanks,

I'm using Windows, and the device is a capturer. the driver for that device is the important thing, becuase it records a video into a file, which I can play and watch very well, after it finished recording. To record the video, it open the file, and each frame encodes the frame and saves it into the file. It can encode in many formats - I found that divX and H263 are playable very well in VLC.

Now, I want to stream it. I can control the driver, since I have all of its sources. I tried to change the file opening permissions, so it will be opened in share mode, and then tried to stream the file, but it didn't work. So i wonder what are my other options

thanks again - for any idea -
Joel

charlest
Blank Cone
Blank Cone
Posts: 51
Joined: 24 May 2007 13:28
Location: Sydney, Australia

Re: streaming using the API?

Postby charlest » 18 Jul 2007 07:24

Since you're on Windows, is the driver compatible to Microsoft DirectShow. If so, VideoLAN should be able to use it.

alotof_sw
New Cone
New Cone
Posts: 4
Joined: 15 Jul 2007 22:05

Re: streaming using the API?

Postby alotof_sw » 18 Jul 2007 12:50

Hi and thanks again,

Direct show is one option, I guess... so how does vlc work with direct show? does it support live streams? where should I look?

if any other options, I would love to hear too

thanks very much
Lior

charlest
Blank Cone
Blank Cone
Posts: 51
Joined: 24 May 2007 13:28
Location: Sydney, Australia

Re: streaming using the API?

Postby charlest » 18 Jul 2007 23:59

For more information on Microsoft DirectShow and VideoLAN, I suggest reading up the documentation.

Microsoft DirectShow software capture device supports live streams.

Start VideoLAN, select File, select Open Capture Device, select DirectShow tab, select Refresh list on video and audio device name.


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 14 guests