[Live-devel] Question: some issues of PS streaming...

waynelwc at pchome.com.tw waynelwc at pchome.com.tw
Thu Jan 29 11:07:17 PST 2004


Hi,
During my implementation to make testOnDemandRTSPServer able to stream MPEG PS, I tried to implement one video and one audio ServerMediaSubsession where MPEG1o2Demux's newVideoStream/newAudioStream functions are used as input for MPEG1o2VideoStreamFramer/MPEG1o2AudioStreamFramer.However, there are some issues during my implementations:
1. By refering to FileServerMediaSubsession, sdpLines() will call createNewStreamSource(), and its returned FramedSource* is used as input for createNewRTPSink().I found the FramedSource* is not actually used in that function (maybe I am wrong :b).Is this just for checking the existence of the file?
2. Given audio and video are indepentdent subsessions, their input sources are both from MPEG1o2Demux. Whenever the user requests SETUP, one of two subsessions has to open MPEG1o2Demux with a given ByteStreamFileSource. The similar issue happens when the user requests TEARDOWN: one of two subsessions has to close MPEG1o2Demux.Where is the best place to open/close MPEG1or2Demux respectively? It seems an architecture issue.
3. In testMPEG1o2AudioVideoStreamer, there is one comment: start playing video first, to ensure that any video sequence header at the start of the file gets read.How to guarantee this mechanism for on-demand streaming?
Thanks.
Wayne
==========================================================
 ´ú´ú¬Ý^O^§A¦³Áy­±¹ï©pªº¨k¤Í¶Ü¡H
 http://edm-prg.epaper.com.tw/click.php?ad_code=57496
==========================================================
 PChome¥æ¤Í~~©¯ºÖ¤Ñ¤Ñ¦³ \*^o^*//
 http://love.pchome.com.tw/
==========================================================



More information about the live-devel mailing list