西门子TIA V17中IP摄像头A RTSP流无法显示的问题排查求助
西门子TIA V17中IP摄像头A RTSP流无法显示的问题排查求助
大家好,我是视频编解码领域的新手,最近在用西门子TIA V17的相机显示功能播放几个IP摄像头的RTSP流时,遇到了一个棘手的问题,想请各位帮忙分析原因:
- IP摄像头A:明明支持H264编码,但在TIA V17里只能显示黑屏,完全无法播放
- IP摄像头B:同样是H264的RTSP流,在TIA V17里却能正常运行
我已经尝试过调整摄像头A的分辨率和帧率,这些设置在VLC播放器里都能正常播放,但换到TIA里还是不行。目前我只能通过转码来绕开这个问题,但转码带来了不少延迟,这是我不想看到的。
下面是两个摄像头的ffprobe -show_streams输出,麻烦各位帮我看看有没有什么关键差异导致了这个问题:
摄像头A的输出:
Metadata: title : 11 Duration: N/A, start: 0.080000, bitrate: N/A Stream #0:0: Video: h264 (Main), yuv420p(tv, bt709, progressive), 640x480, 12.50 fps, 12.50 tbr, 90k tbn [STREAM] index=0 codec_name=h264 codec_long_name=H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 profile=Main codec_type=video codec_tag_string=[0][0][0][0] codec_tag=0x0000 width=640 height=480 coded_width=640 coded_height=480 closed_captions=0 film_grain=0 has_b_frames=0 sample_aspect_ratio=N/A display_aspect_ratio=N/A pix_fmt=yuv420p level=51 color_range=tv color_space=bt709 color_transfer=bt709 color_primaries=bt709 chroma_location=left field_order=progressive refs=1 is_avc=false nal_length_size=0 id=N/A r_frame_rate=25/2 avg_frame_rate=25/2 time_base=1/90000 start_pts=7200 start_time=0.080000 duration_ts=N/A duration=N/A bit_rate=N/A max_bit_rate=N/A bits_per_raw_sample=8 nb_frames=N/A nb_read_frames=N/A nb_read_packets=N/A extradata_size=53 DISPOSITION:default=0 DISPOSITION:dub=0 DISPOSITION:original=0 DISPOSITION:comment=0 DISPOSITION:lyrics=0 DISPOSITION:karaoke=0 DISPOSITION:forced=0 DISPOSITION:hearing_impaired=0 DISPOSITION:visual_impaired=0 DISPOSITION:clean_effects=0 DISPOSITION:attached_pic=0 DISPOSITION:timed_thumbnails=0 DISPOSITION:captions=0 DISPOSITION:descriptions=0 DISPOSITION:metadata=0 DISPOSITION:dependent=0 DISPOSITION:still_image=0 [/STREAM]
摄像头B的输出:
Metadata: title : Session streamed with GStreamer comment : rtsp-server Duration: N/A, start: 0.039989, bitrate: N/A Stream #0:0: Video: h264 (Main), yuvj420p(pc, bt709, progressive), 1280x720 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn [STREAM] index=0 codec_name=h264 codec_long_name=H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 profile=Main codec_type=video codec_tag_string=[0][0][0][0] codec_tag=0x0000 width=1280 height=720 coded_width=1280 coded_height=720 closed_captions=0 film_grain=0 has_b_frames=0 sample_aspect_ratio=1:1 display_aspect_ratio=16:9 pix_fmt=yuvj420p level=41 color_range=pc color_space=bt709 color_transfer=bt709 color_primaries=bt709 chroma_location=center field_order=progressive refs=1 is_avc=false nal_length_size=0 id=N/A r_frame_rate=25/1 avg_frame_rate=25/1 time_base=1/90000 start_pts=3599 start_time=0.039989 duration_ts=N/A duration=N/A bit_rate=N/A max_bit_rate=N/A bits_per_raw_sample=8 nb_frames=N/A nb_read_frames=N/A nb_read_packets=N/A extradata_size=31 DISPOSITION:default=0 DISPOSITION:dub=0 DISPOSITION:original=0 DISPOSITION:comment=0 DISPOSITION:lyrics=0 DISPOSITION:karaoke=0 DISPOSITION:forced=0 DISPOSITION:hearing_impaired=0 DISPOSITION:visual_impaired=0 DISPOSITION:clean_effects=0 DISPOSITION:attached_pic=0 DISPOSITION:timed_thumbnails=0 DISPOSITION:captions=0 DISPOSITION:descriptions=0 DISPOSITION:metadata=0 DISPOSITION:dependent=0 DISPOSITION:still_image=0 [/STREAM]
我自己对比了一下参数,发现摄像头A是12.5fps(25/2),而B是25fps;A的色彩范围是tv,B是pc;色度位置A是left,B是center;还有extradata的大小也不一样。这些会不会是TIA V17不兼容的点?或者还有其他我没注意到的地方?
感谢各位的帮忙!
备注:内容来源于stack exchange,提问作者dcJ
相关产品推荐
相关产品推荐

