我是RTP的新手。我想在嵌入式设备上启动RTSP服务器。现在我可以将存储在闪存中的视频文件。但是,当我开始翻译视频时,编码的x264,VLC不会显示任何内容。 只是缓冲,没有别的
core debug: `rtsp://172.16.50.194:1935/live1.sdp' successfully opened
core debug: Buffering 0%
packetizer_h264 debug: found NAL_SPS (sps_id=0)
core debug: Stream buffering done (11 ms in 133 ms)
core debug: Decoder wait done in 0 ms
packetizer_h264 debug: found NAL_PPS (pps_id=0 sps_id=0)
core error: ES_OUT_SET_(GROUP_)PCR is called too late (pts_delay increased to 30 ms)
core error: ES_OUT_RESET_PCR called
core debug: Buffering 0%
core debug: Buffering 0%
core debug: Buffering 0%
core debug: Stream buffering done (111 ms in 706 ms)
core debug: Decoder wait done in 0 ms
core error: ES_OUT_SET_(GROUP_)PCR is called too late (pts_delay increased to 594 ms)
core error: ES_OUT_RESET_PCR called
core debug: Buffering 0%
...
core debug: Buffering 0%
live555 warning: no data received in 10s, eof ?
core debug: EOF reached
那是Wireshark转储
SPS切片
1111 0100 = Profile_idc: Unknown (244)
0... .... = Constraint_set0_flag: 0
.0.. .... = Constraint_set1_flag: 0
..0. .... = Constraint_set2_flag: 0
...0 .... = Constraint_set3_flag: 0
.... 0... = Constraint_set4_flag: 0
.... .0.. = Constraint_set5_flag: 0
.... ..00 = Reserved_zero_2bits: 0
0000 1101 = Level_id: 13 [Level 1.3 768 kb/s]
1... .... = seq_parameter_set_id: 0
.001 00.. = log2_max_frame_num_minus4: 3
.... ..01 1... .... = pic_order_cnt_type: 2
.001 01.. = num_ref_frames: 4
.... ..1. = gaps_in_frame_num_value_allowed_flag: 1
.... ...0 10.. .... = pic_width_in_mbs_minus1: 1
..00 0001 0100 0... = pic_height_in_map_units_minus1: 39
.... .0.. = frame_mbs_only_flag: 0
.... ..0. = mb_adaptive_frame_field_flag: 0
.... ...1 = direct_8x8_inference_flag: 1
1... .... = frame_cropping_flag: 1
.1.. .... = frame_crop_left_offset: 0
..1. .... = frame_crop_left_offset: 0
...1 .... = frame_crop_top_offset: 0
.... 1... = frame_crop_bottom_offset: 0
.... .0.. = vui_parameters_present_flag: 0
.... ..1. = rbsp_stop_bit: 1
.... ...0 = rbsp_trailing_bits: 0
PPS切片
1... .... = pic_parameter_set_id: 0
.1.. .... = seq_parameter_set_id: 0
..0. .... = entropy_coding_mode_flag: 0
...0 .... = pic_order_present_flag: 0
.... 1... = num_slice_groups_minus1: 0
.... .1.. = num_ref_idx_l0_active_minus1: 0
.... ..1. = num_ref_idx_l1_active_minus1: 0
.... ...0 = weighted_pred_flag: 0
00.. .... = weighted_bipred_idc: 0
..00 0010 110. .... = pic_init_qp_minus26(se(v)): 11
...1 .... = pic_init_qs_minus26: 0
.... 1... = chroma_qp_index_offset: 0
.... .1.. = deblocking_filter_control_present_flag: 1
.... ..0. = constrained_intra_pred_flag: 0
.... ...0 = redundant_pic_cnt_present_flag: 0
1... .... = rbsp_stop_bit: 1
.000 0000 = rbsp_trailing_bits: 0
和SEI
x264 - core 152 r2851 ba24899 - H.264/MPEG-4 AVC codec - Copyleft 2003-2017 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=10 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
可能是我的错误?
答案 0 :(得分:0)
RTSP使用TCP建立连接 - 这似乎适用于您的情况。
RTP应该使用UDP发送音频和视频 - 这似乎在您的情况下失败。
core debug: Buffering 0%
live555 warning: no data received in 10s, eof ?
您的嵌入式设备应将UDP数据包发送到VLC。 您是否使用Wireshark看到从嵌入式设备到VLC的任何UDP流量?
SPS和PPS NAL单元是基于RTSP的设置过程的一部分。