最近被这个问题搞疯了。
自己写的一个RTSP小实现:实现RTP传输H.263实时载荷.
,在公司的电脑(double core/1GM)上表现不错,可以对多个连接提供不错的稳定的码流,一般几个小时都没问题,在家里的电脑(性能比公司的茶很多)上一般只能播放16秒钟,VLC, Real player就会断掉session,然后重新发起session:
现在VLC调试信息显示如下:
main debug: creating new input thread
main debug: waiting for thread completion
main debug: `rtsp://192.168.18.3/1.3gp ' gives access `rtsp ' demux ` ' path `192.168.18.3/1.3gp '
main debug: thread 3932 (input) created at priority 1 (input/input.c:261)
main debug: creating demux: access= 'rtsp ' demux= ' ' path= '192.168.18.3/1.3gp '
main debug: looking for access_demux module: 1 candidate
livedotcom debug: sdp=v=0
o=- 1289096773125000 1 IN IP4 0.0.0.0
s=1.3gp
c=IN IP4 0.0.0.0
a=AS:350
i=1.3gp
t=0 0
e=benztoy@163.com(Jerry(HTG)--MSN(tghu122@hotmail.com))
a=maxps:1600
a=tool:JTechStreaming
a=type:broadcast
a=Author:buffer; "eWFua2VlAA== "
a=Copyright:buffer; "d3d3LnlkeS5jb20A "
a=Title:buffer; "oba8+8+wutrDtbnlobctd3d3LnlkeS5jb20t1sbX98jLAA== "
a=control:*
a=range:npt=0-
a=x-qt-text-nam:1.3gp
a=x-qt-text-inf:1.3gp
m=video 0 RTP/AVP 96
a=rtpmap:96 H263-2000/90000
a=fmtp:96 profile=0;level=10;framesize=35
livedotcom debug: RTP subsession 'video/H263-2000 '
main debug: selecting program id=0
main debug: using access_demux module "livedotcom "
main debug: looking for a subtitle file in D:\Program Files\VideoLAN\VLC\
main debug: looking for decoder module: 27 candidates
ffmpeg debug: libavcodec already initialized
ffmpeg debug: postprocessing disabled
ffmpeg debug: using direct rendering
ffmpeg debug: ffmpeg codec (H263) started
main debug: using decoder module "ffmpeg "
main debug: thread 3924 (decoder) created at priority 0 (input/decoder.c:159)
main debug: `rtsp://192.168.18.3/1.3gp ' successfully opened
livedotcom debug: tk-> rtpSource-> hasBeenSynchronizedUsingRTCP()
main debug: no usable vout present, spawning one
main debug: window size: 192x144
main debug: Registering subpicture channel, ID: 2
main debug: Registering subpicture channel, ID: 3
main debug: Registering subpicture channel, ID: 4
main debug: Registering subpicture channel, ID: 5
main debug: looking for video output module: 5 candidates
vout_directx debug: creating DirectXEventThread
main debug: waiting for thread completion
vout_directx debug: DirectXCreateWindow
vout_directx debug: created video sub-window