有一个编码器,通过rtsp协议将其他监视器屏幕流到我的pc上。当流格式为YUV422p或更低时,一切都正常,但当我将其配置为YUV444P时,会出现以下错误:
ffmpeg -i rtsp://10.1.10.14:3049/S1 out.mp4
[h264 @ 0000020ad88e9500] separate color planes are not supported
Last message repeated 2 times
[h264 @ 0000020ad88e9500] Error decoding the extradata
[h264 @ 0000020ad88e9500] separate color planes are not supported
Last message repeated 2 times
[h264 @ 0000020ad88e9500] non-existing PPS 2 referenced
Last message repeated 1 times
[h264 @ 0000020ad88e9500] decode_slice_header error
[h264 @ 0000020ad88e9500] non-existing PPS 2 referenced
[h264 @ 0000020ad88e9500] decode_slice_header error
[h264 @ 0000020ad88e9500] no frame!
[h264 @ 0000020ad88e9500] non-existing PPS 2 referenced
Last message repeated 1 times
[h264 @ 0000020ad88e9500] decode_slice_header error
[h264 @ 0000020ad88e9500] non-existing PPS 2 referenced
[h264 @ 0000020ad88e9500] decode_slice_header error
[h264 @ 0000020ad88e9500] no frame! 我试着使用ffprobe -show_format来查看流的细节,但是它也会产生同样的错误。
我在等你的宝贵帮助。
诚挚的问候
发布于 2022-05-31 21:19:31
您的编码器(监视器)使用H264特性发送residual_color_transform_flag流,FFmpeg的H264解码器不支持这种功能。如果可以,请禁用此功能。否则,你必须坚持4:2:2。
发布于 2022-05-30 11:48:05
Enes,首先,尝试通过ffplay或vlc播放流。( -i rtsp://bla))如果一切顺利的话
更改ffmpeg命令,如下所示,然后重试
ffmpeg -i rtsp://10.1.10.14:3049/S1 -vcodec libx264 -acodec aac -strict experimental -f mp4 out.mp4https://stackoverflow.com/questions/72433625
复制相似问题