milkv-duo / cvitek-tdl-sdk-cv180x

12 stars 3 forks source link

sample_vi_fd - change RTSP resolution to 1080p #1

Open piotr-defendeye opened 7 months ago

piotr-defendeye commented 7 months ago

Hi, I attempted to change the RTSP resolution in sample_vi_fd by modifying the following structure:

SIZE_S stVencSize = {
      .u32Width = 1920,
      .u32Height = 1080,
  };

However, after running on Duo64, I get the following output:

  ---------VPSS[0]---------
Input size: (1920x1080)
Input format: (19)
VPSS physical device number: 1
Src Frame Rate: -1
Dst Frame Rate: -1
    --------CHN[0]-------
    Output size: (1920x1080)
    Depth: 1
    Do normalization: 0
        Src Frame Rate: -1
        Dst Frame Rate: -1
    ----------------------
    --------CHN[1]-------
    Output size: (1920x1080)
    Depth: 1
    Do normalization: 0
        Src Frame Rate: -1
        Dst Frame Rate: -1
    ----------------------
------------------------
Bind VI with VPSS Grp(0), Chn(0)
Attach VBPool(0) to VPSS Grp(0) Chn(0)
Attach VBPool(1) to VPSS Grp(0) Chn(1)
Initialize VENC
venc codec: h265
venc frame size: 1920x1080
Initialize RTSP
rtsp://192.168.86.44/h265
prio:0
anchor:-8,-8,8,8
anchor:-16,-16,16,16
bbox:bbox_8_Conv_dequant
landmark:kps_8_Conv_dequant
score:score_8_Sigmoid_dequant
anchor:-32,-32,32,32
anchor:-64,-64,64,64
bbox:bbox_16_Conv_dequant
landmark:kps_16_Conv_dequant
score:score_16_Sigmoid_dequant
anchor:-128,-128,128,128
anchor:-256,-256,256,256
bbox:bbox_32_Conv_dequant
landmark:kps_32_Conv_dequant
score:score_32_Sigmoid_dequant
Enter TDL thread
Enter encoder thread
0 R:1165 B:3087 CT:2688
1 R:1464 B:2327 CT:3937
2 R:1974 B:1613 CT:7225
Golden 1464 1024 2327
CVI_VENC_SendFrame failed! -1
Send Output Frame NG, ret=ffffffff
Exit encoder thread
Exit TDL thread
destroy middleware

Should I change anything else to get 1080p RTSP stream instead of the default 720p? @carbonfix