ijkplayer
ijkplayer copied to clipboard
rtsp h264播放花屏,卡
我的参数配置 [IJKFFMoviePlayerController setLogReport:YES]; [IJKFFMoviePlayerController setLogLevel:k_IJK_LOG_DEBUG]; [options setPlayerOptionIntValue:30 forKey:@"max-fps"]; [options setPlayerOptionIntValue:1 forKey:@"framedrop"]; [options setPlayerOptionIntValue:0 forKey:@"start-on-prepared"]; [options setPlayerOptionIntValue:0 forKey:@"http-detect-range-support"]; [options setPlayerOptionIntValue:0 forKey:@"packet-buffering"]; [options setPlayerOptionIntValue:2000000 forKey:@"analyzeduration"]; [options setPlayerOptionIntValue:25 forKey:@"min-frames"]; [options setPlayerOptionIntValue:1 forKey:@"start-on-prepared"]; //解码参数,画面更清晰 [options setCodecOptionIntValue:IJK_AVDISCARD_DEFAULT forKey:@"skip_loop_filter"]; // [options setCodecOptionIntValue:IJK_AVDISCARD_DEFAULT forKey:@"skip_frame"]; [options setFormatOptionValue:@"tcp" forKey:@"rtsp_transport"]; [options setFormatOptionValue:@"nobuffer" forKey:@"fflags"]; [options setFormatOptionIntValue:8192 forKey:@"probesize"]; [options setFormatOptionIntValue:2 forKey:@"auto_convert"]; [options setFormatOptionIntValue:1 forKey:@"reconnect"];
[options setPlayerOptionIntValue:1 forKey:@"videotoolbox"];
//帧速率(fps) (可以改,确认非标准桢率会导致音画不同步,所以只能设定为15或者29.97)
[options setPlayerOptionIntValue:29.97 forKey:@"r"];
// // -vol——设置音量大小,256为标准音量。(要设置成两倍音量时则输入512,依此类推 // [options setPlayerOptionIntValue:512 forKey:@"vol"]; //静音设置 [options setPlayerOptionValue:@"1" forKey:@"an"];
[NULL @ 0x10d05b400] non-existing PPS 0 referenced [h264 @ 0x10c8c6a00] nal_unit_type: 1, nal_ref_idc: 3 [h264 @ 0x10c8c6a00] non-existing PPS 0 referenced [h264 @ 0x10c8c6a00] decode_slice_header error [h264 @ 0x10c8c6a00] no frame! [NULL @ 0x10d05b400] non-existing PPS 0 referenced [h264 @ 0x10c8c7000] nal_unit_type: 1, nal_ref_idc: 3 [h264 @ 0x10c8c7000] non-existing PPS 0 referenced [h264 @ 0x10c8c7000] decode_slice_header error [h264 @ 0x10c8c7000] no frame! [NULL @ 0x10d05b400] non-existing PPS 0 referenced [h264 @ 0x10c8c7600] nal_unit_type: 1, nal_ref_idc: 3 [h264 @ 0x10c8c7600] non-existing PPS 0 referenced [h264 @ 0x10c8c7600] decode_slice_header error [h264 @ 0x10c8c7600] no frame! [NULL @ 0x10d05b400] non-existing PPS 0 referenced [h264 @ 0x10c89c200] nal_unit_type: 1, nal_ref_idc: 3 [h264 @ 0x10c89c200] non-existing PPS 0 referenced [h264 @ 0x10c89c200] decode_slice_header error [h264 @ 0x10c89c200] no frame! [NULL @ 0x10d05b400] non-existing PPS 0 referenced [h264 @ 0x10c03fe00] nal_unit_type: 1, nal_ref_idc: 3 [h264 @ 0x10c03fe00] Invalid NAL unit 0, skipping. [h264 @ 0x10c03fe00] Invalid NAL unit 0, skipping. [h264 @ 0x10c03fe00] non-existing PPS 0 referenced [h264 @ 0x10c03fe00] decode_slice_header error [h264 @ 0x10c03fe00] no frame! [NULL @ 0x10d05b400] non-existing PPS 0 referenced [h264 @ 0x10c061e00] nal_unit_type: 1, nal_ref_idc: 3 [h264 @ 0x10c061e00] non-existing PPS 0 referenced [h264 @ 0x10c061e00] decode_slice_header error h265的rtsp 视频流就正常播放,有大佬遇到过么?应该如何处理?
try tcp