[Live-devel] (no subject)

Ross Finlayson finlayson at live.com
Thu Mar 18 11:06:09 PST 2004


At 04:47 AM 3/18/04, you wrote:
>hi ,  first of all, the programs work well streaming from a mpg file or 
>mp3 file.  I have get some information for FAQ about how to modify 
>"test*Streamer" to stream live video and/or audio. But I think the 
>discription is not definite enough for me to fix my problem:>.  I got an 
>Logitech QuickCam 4000 Pro usb webcam, and I have made it work after 
>installing the driver. Base on the FAQ, I changed "test.mpg" to 
>"/dev/video0" in testMPEG1or2AudioVideoStreamer.cpp then make. After that, 
>I run it , the cam 's light turn on. But when I run 
>testMPEG1or2VideoReceiver. It can receive nothing.

Feng,

Note that the "test*Streamer" applications take *encoded* (i.e., 
compressed) video and/or audio for input.  E.g., the 
"testMPEG1or2VideoStreamer" takes a MPEG video stream as input.

If you wish to stream from a web cam, then - unless the web cam contains a 
built-in MPEG (e.g.) encoder - you will need to encoder the video before it 
can be streamed.  If you have a hardware encoder, you can use 
this.  Otherwise, if you have a software encoder, you can write your own 
'Filter' class that encapsulates it, and insert an object of this class 
after the device input file.


	Ross Finlayson
	LIVE.COM
	<http://www.live.com/>



More information about the live-devel mailing list