[Live-devel] JPEGVideoSource doubts

xavier nikoxan at mixmail.com
Wed Jul 21 16:56:32 PDT 2004


Thanks for your response Ross,

> In what way is it "not working"? Have you tried using "openRTSP" (e.g.,
> with the "-m" option to output each received frame into a separate file) to
> receive and record the JPEG data? (This requires that you enable the
> built-in RTSP server in your streamer application.)

I've tried 

$ openRTSP -m rtsp://217.124.81.130:7070/testStream 

and got this output:

Opened URL "rtsp://217.124.81.130:7070/testStream", returning a SDP description:
v=0
o=- 1090411301579014 1 IN IP4 217.124.81.130
s=Session streamed by "ServidorRTSP"
i=My Video Out
a=tool:LIVE.COM Streaming Media v2004.07.16
a=type:broadcast
a=control:*
t=0 0
a=x-qt-text-nam:Session streamed by "ServidorRTSP"
a=x-qt-text-inf:My Video Out
m=video 8888 RTP/AVP 26
c=IN IP4 239.255.42.42/7
a=control:track1
 
Created receiver for "video/JPEG" subsession (client ports 8888-8889)
Setup "video/JPEG" subsession (client ports 8888-8889)
Created output file: "video-JPEG-1"
Started playing session
Receiving streamed data (signal with "kill -HUP 5996" or "kill -USR1 5996" to terminate)...

and nothing more happens (no output files are created at all). So I guess the server is
not streaming any of my JPEG frames. 

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?

Thanks again,
	xavier
---------------------------------------------------------
¿Te gustan las apuestas? ¡Pues ahora juega también online! Y buena suerte... http://sorteos.ya.com
Ya.com ADSL Router Wi-Fi: Sólo 29,90 €/mes + IVA*. Router + Antivirus y firewall ¡Gratis! http://acceso.ya.com/adsl/256router



More information about the live-devel mailing list