你能获得End of File?
没获得
走不进去这方法:::需要足够的时间而已
http://www.binpress.com/app/videostream-sdk-for-ios/1322
http://www.wowza.com/forums/showthread.php?17370-Video-Streaming-terminating-5-seconds-before-the-end-of-the-video
git clone git://github.com/kolyvan/kxmovie.git
cd kxmovie
git submodule update --init
rake
ViewController *vc; vc = [KxMovieViewController movieViewControllerWithC
ontentPath:path parameters:nil]; [self presentViewController:vc animated:YES completion:nil];
[rtsp @ 0x906cc00] UDP timeout, retrying with TCP
[rtsp @ 0x906cc00] Nonmatching transport in server reply
[rtsp @ 0x906cc00] Could not find codec parameters for stream 0 (Video: h264): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Couldn't find stream information
跟踪代码,错误是在avformat_find_stream_info获取流信息失败的时候的时候触发。
if(avformat_find_stream_info(pFormatCtx,NULL) < 0) {
}
……
// Open video file
pFormatCtx = avformat_alloc_context();
//有三种传输方式:tcp
AVDictionary* options =
av_dict_set(&options, "rtsp_transport", "tcp", 0);
if(avformat_open_input(&pFormatCtx, [moviePath cStringUsingEncoding:NSASCIIStringEncoding],
}
// Retrieve stream information
if(avformat_find_stream_info(pFormatCtx,NULL) < 0) {
As Toby stated the RtcpGoodbye packet usually indicates that the Rtp session is over.
If you need a library to parse the packets check out http://net7mma.codeplex.com/
It has a RtspClient and RtspServer implementation and works with VLC so you can use Wireshark to see how it tells client's that the show is over or just break in the code when connecting to the RtspServer with VLC.
https://github.com/yixia/Vitamio-iOS