我一直在使用来自mooncatventures的RtspPlay1来尝试从ffmpeg流媒体源流式传输实时流,并尽可能延迟。问题是即使我修改代码以指示RtspPlay1中的-analyzedelay 0标志它似乎也没有做任何事情。我得出了这个结论,因为我的计算机上的延迟是相同的,没有-analyzeduration 0标志作为iOS设备。任何想法都会有所帮助。
以下是我试图在iPhone上模拟的命令: ffplay rtp:///224.1.1.1:11326 -analyzeduration 0
以下是我尝试使用RtspPlay1修改的代码:
forward_argc=1;
forward_argv[1] = "-analyzeduration";
forward_argv[2] = "0";
//forward_argv[3] = "30";
//forward_argv[4] = "-fast";
//forward_argv[5] = "-sync";
//forward_argv[6] = "video";
//forward_argv[7] = "-drp";
//forward_argv[8] = "-skipidct";
//forward_argv[9] = "10";
//forward_argv[10] = "-skiploop";
//forward_argv[11] = "50";
//forward_argv[12] = "-threads";
//forward_argv[13] = "5";
//argv[14] = "-an";
forward_argv[3] = cString;
NSLog(@"glflag %@\n ",[parms objectForKey:@"glflag"] );
if ([parms objectForKey:@"glflag"]!=@"1") {
forward_argv[4]="0";
}else {
forward_argv[4]="1";
}
forward_argc += 4;