[Live-devel] JPEGVideoSource doubts

Ross Finlayson finlayson at live.com
Wed Jul 21 10:31:07 PDT 2004


>Here is my play() function:   (videoSink is a JPEGVideoRTPSink)
>
>void  play() {
>
>      //my JPEGVideoSource derived class
>      RPVRFramedSource* videoES=RPVRFramedSource::createNew(*env);
>
>     videoSource
>     = MPEG1or2VideoStreamFramer::createNew(*env, videoES, iFramesOnly);
>
>   videoSink->startPlaying(*videoSource, afterPlaying, videoSink);
>}
>
>Do I have to use the MPEG1or2VideoStreamFramer?

No, definitely not - and that's your problem.  A 
"MPEG1or2VideoStreamFramer" is used for parsing MPEG video streams.  You 
don't use it for streaming JPEG.

Instead, omit the creation of a "MPEG1or2VideoStreamFramer", and just do
         videoSink->startPlaying(*videoES, afterPlaying, videoSink);



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



More information about the live-devel mailing list