当前位置: 代码迷 >> 多媒体/流媒体开发 >> ffmpeg开发rtsp live server,欢迎有经验的朋友进来.该怎么解决
  详细解决方案

ffmpeg开发rtsp live server,欢迎有经验的朋友进来.该怎么解决

热度:7013   发布时间:2013-02-26 00:00:00.0
ffmpeg开发rtsp live server,欢迎有经验的朋友进来.
最近被这个问题搞疯了。
    自己写的一个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
  相关解决方案