Firefly开源社区

打印 上一主题 下一主题

[Linux] rv1126 使用rkmedia 工具 如何去更改rtsp 推流出来的分辨率

96

积分

0

威望

0

贡献

技术小白

积分
96

rv1126 使用rkmedia 工具 如何去更改rtsp 推流出来的分辨率

发表于 2023-2-21 13:47:32      浏览:2158 | 回复:1        打印      只看该作者   [复制链接] 楼主
  • 固件类型: 自行编译的固件
  • SDK包名称: 官网sdk2.2.5
  • SDK更新到哪个COMMIT: 0000-00-00 00:00:00
  • SDK修改内容: 使用sensor: imx415
  • Log日志: dmesg.rar
问题描述及复现步骤:
rv1126 使用rkmedia 工具 如何去更改rtsp 推流出来的分辨率:
现在板子能出来的主码流分辨率是:3840*2160 25fpos (vlc rtsp://168.168.101.208:554/live/main_strea
请问大佬们我如何去更改推流出来的分辨率
当前修改:
1、修改过 ipc.conf 但是没有效果,不知是没有没有改对地方还是


dmesg.rar

14.71 KB, 下载次数: 0, 下载积分: 灯泡 -1 , 经验 -1

回复

使用道具 举报

96

积分

0

威望

0

贡献

技术小白

积分
96
发表于 2023-2-21 13:50:57        只看该作者  沙发
  1. {
  2.     "Pipe_0": {
  3.         "Flow_0": {
  4.             "flow_index": {
  5.                 "flow_index_name": "source_0",
  6.                 "flow_type": "source",
  7.                 "stream_id": "0",
  8.                 "stream_type": "camera",
  9.                 "upflow_index_name": "none"
  10.             },
  11.             "flow_name": "source_stream",
  12.             "flow_param": {
  13.                 "name": "v4l2_capture_stream"
  14.             },
  15.             "stream_param": {
  16.                 "device": "rkispp_m_bypass",
  17.                 "frame_num": "6",
  18.                 "height": "1520",
  19.                 "output_data_type": "image:nv12",
  20.                 "use_libv4l2": "1",
  21.                 "v4l2_capture_type": "VIDEO_CAPTURE",
  22.                 "v4l2_mem_type": "MEMORY_DMABUF",
  23.                 "virtual_height": "1520",
  24.                 "virtual_width": "2688",
  25.                 "width": "2688"
  26.             }
  27.         },
  28.         "Flow_1": {
  29.             "flow_index": {
  30.                 "flow_index_name": "nn_result_input_0",
  31.                 "flow_type": "io",
  32.                 "in_slot_index_of_down": "0",
  33.                 "out_slot_index": "0",
  34.                 "stream_type": "filter",
  35.                 "upflow_index_name": "source_0"
  36.             },
  37.             "flow_name": "filter",
  38.             "flow_param": {
  39.                 "input_data_type": "image:nv12",
  40.                 "name": "nn_result_input",
  41.                 "output_data_type": "image:nv12"
  42.             },
  43.             "stream_param": {
  44.                 "enable": "1",
  45.                 "input_data_type": "image:nv12",
  46.                 "frame_caches": "1",
  47.                 "frame_rate": "30"
  48.             }
  49.         },
  50.         "Flow_2": {
  51.             "flow_index": {
  52.                 "flow_index_name": "face_capture_0",
  53.                 "flow_type": "io",
  54.                 "in_slot_index_of_down": "0",
  55.                 "out_slot_index": "0",
  56.                 "stream_type": "filter",
  57.                 "upflow_index_name": "nn_result_input_0"
  58.             },
  59.             "flow_name": "filter",
  60.             "flow_param": {
  61.                 "input_data_type": "image:nv12",
  62.                 "name": "face_capture",
  63.                 "output_data_type": "image:nv12"
  64.             },
  65.             "stream_param": {
  66.                 "enable": "1",
  67.                 "path": "/userdata/snapshot",
  68.                 "file_prefix": "face",
  69.                 "file_suffix": ".jpeg",
  70.                 "input_data_type": "image:nv12"
  71.             }
  72.         },
  73.         "Flow_3": {
  74.             "flow_index": {
  75.                 "flow_index_name": "draw_filter_0",
  76.                 "flow_type": "io",
  77.                 "in_slot_index_of_down": "0",
  78.                 "out_slot_index": "0",
  79.                 "stream_type": "filter",
  80.                 "upflow_index_name": "face_capture_0"
  81.             },
  82.             "flow_name": "filter",
  83.             "flow_param": {
  84.                 "input_data_type": "image:nv12",
  85.                 "name": "draw_filter",
  86.                 "output_data_type": "image:nv12"
  87.             },
  88.             "stream_param": {
  89.                 "enable": "1",
  90.                 "draw_rect_thick": "2",
  91.                 "need_hw_draw": "0",
  92.                 "offset_x": "16.0",
  93.                 "offset_y": "0.0",
  94.                 "min_rect": "2000",
  95.                 "input_data_type": "image:nv12"
  96.             }
  97.         },
  98.         "Flow_4": {
  99.             "flow_index": {
  100.                 "flow_index_name": "video_enc_0",
  101.                 "flow_type": "io",
  102.                 "in_slot_index_of_down": "0",
  103.                 "out_slot_index": "0",
  104.                 "stream_type": "video_enc",
  105.                 "upflow_index_name": "draw_filter_0"
  106.             },
  107.             "flow_name": "video_enc",
  108.             "flow_param": {
  109.                 "input_data_type": "image:nv12",
  110.                 "name": "rkmpp",
  111.                 "need_extra_merge": "1",
  112.                 "output_data_type": "video:h265"
  113.             },
  114.             "stream_param": {
  115.                 "bitrate_max": "8000000",
  116.                 "bitrate": "6000000",
  117.                 "bitrate_min": "4000000",
  118.                 "codec_type": "7",
  119.                 "framerate": "25/1",
  120.                 "framerate_in": "25/1",
  121.                 "full_range": "1",
  122.                 "gop": "30",
  123.                 "h264_trans_8x8": "1",
  124.                 "height": "1520",
  125.                 "input_data_type": "image:nv12",
  126.                 "level": "52",
  127.                 "output_data_type": "video:h265",
  128.                 "profile": "100",
  129.                 "rc_mode": "cbr",
  130.                 "rc_quality": "highest",
  131.                 "virtual_height": "1520",
  132.                 "virtual_width": "2688",
  133.                 "width": "2688",
  134.                 "roi_regions": "",
  135.                 "smart": "close"
  136.             }
  137.         },
  138.         "Flow_5": {
  139.             "flow_index": {
  140.                 "flow_index_name": "muxer_0",
  141.                 "flow_type": "sink",
  142.                 "in_slot_index_of_down": "0",
  143.                 "out_slot_index": "0",
  144.                 "stream_type": "muxer",
  145.                 "upflow_index_name": "video_enc_0"
  146.             },
  147.             "flow_name": "muxer_flow",
  148.             "flow_param": {
  149.                 "name": "muxer_flow",
  150.                 "path": "rtmp://127.0.0.1:1935/live/mainstream",
  151.                 "output_data_type": "flv"
  152.             },
  153.             "stream_param": {}
  154.         },
  155.         "Flow_6": {
  156.             "flow_index": {
  157.                 "flow_index_name": "muxer_1",
  158.                 "flow_type": "sink",
  159.                 "in_slot_index_of_down": "0",
  160.                 "out_slot_index": "0",
  161.                 "stream_type": "muxer",
  162.                 "upflow_index_name": "video_enc_0"
  163.             },
  164.             "flow_name": "muxer_flow",
  165.             "flow_param": {
  166.                 "muxer_rkaudio_avdictionary": "movflags-frag_keyframe",
  167.                 "file_duration": "60",
  168.                 "file_index": "1",
  169.                 "file_time": "1",
  170.                 "path": "/userdata/video0",
  171.                 "file_prefix": "main",
  172.                 "name": "muxer_flow",
  173.                 "enable_streaming": "false"
  174.             },
  175.             "stream_param": {}
  176.         },
  177.         "Flow_7": {
  178.             "flow_index": {
  179.                 "flow_index_name": "rtsp_0",
  180.                 "flow_type": "sink",
  181.                 "in_slot_index_of_down": "0",
  182.                 "out_slot_index": "0",
  183.                 "stream_type": "rtsp",
  184.                 "upflow_index_name": "video_enc_0"
  185.             },
  186.             "flow_name": "live555_rtsp_server",
  187.             "flow_param": {
  188.                 "input_data_type": "video:h265",
  189.                 "channel_name": "live/mainstream",
  190.                 "portnum": "554",
  191.                 "sample_rate": "8000",
  192.                 "channel_num": "1",
  193.                 "profile": "1",
  194.                 "sample_format": "16"
  195.             },
  196.             "stream_param": {}
  197.         },
  198.         "Flow_8": {
  199.             "flow_index": {
  200.                 "flow_index_name": "through_guard_0",
  201.                 "flow_type": "io",
  202.                 "in_slot_index_of_down": "0",
  203.                 "out_slot_index": "0",
  204.                 "stream_type": "jpeg_through_guard",
  205.                 "upflow_index_name": "source_0"
  206.             },
  207.             "flow_name": "filter",
  208.             "flow_param": {
  209.                 "input_data_type": "image:nv12",
  210.                 "name": "through_guard",
  211.                 "output_data_type": "image:nv12"
  212.             },
  213.             "stream_param": {
  214.                 "allow_through_count": "0"
  215.             }
  216.         },
  217.         "Flow_9": {
  218.             "flow_index": {
  219.                 "flow_index_name": "video_enc_1",
  220.                 "flow_type": "io",
  221.                 "in_slot_index_of_down": "0",
  222.                 "out_slot_index": "0",
  223.                 "stream_type": "jpeg_enc",
  224.                 "upflow_index_name": "through_guard_0"
  225.             },
  226.             "flow_name": "video_enc",
  227.             "flow_param": {
  228.                 "input_data_type": "image:nv12",
  229.                 "name": "rkmpp",
  230.                 "output_data_type": "image:jpeg"
  231.             },
  232.             "stream_param": {
  233.                 "codec_type": "8",
  234.                 "input_data_type": "image:nv12",
  235.                 "output_data_type": "image:jpeg",
  236.                 "virtual_height": "1520",
  237.                 "virtual_width": "2688",
  238.                 "height": "1520",
  239.                 "width": "2688",
  240.                 "jpeg_qfactor": "99"
  241.             }
  242.         },
  243.         "Flow_10": {
  244.             "flow_index": {
  245.                 "flow_index_name": "sink_0",
  246.                 "flow_type": "sink",
  247.                 "in_slot_index_of_down": "0",
  248.                 "out_slot_index": "0",
  249.                 "stream_type": "file",
  250.                 "upflow_index_name": "video_enc_1"
  251.             },
  252.             "flow_name": "file_write_flow",
  253.             "flow_param": {
  254.                 "mode": "w+",
  255.                 "path": "/userdata/photo0",
  256.                 "file_prefix": "main",
  257.                 "file_suffix": ".jpeg",
  258.                 "save_mode": "single_frame"
  259.             },
  260.             "stream_param": {}
  261.         }
  262.     },
  263.     "Pipe_1": {
  264.         "Flow_0": {
  265.             "flow_index": {
  266.                 "flow_index_name": "source_0",
  267.                 "flow_type": "source",
  268.                 "stream_id": "1",
  269.                 "stream_type": "camera",
  270.                 "upflow_index_name": "none"
  271.             },
  272.             "flow_name": "source_stream",
  273.             "flow_param": {
  274.                 "name": "v4l2_capture_stream"
  275.             },
  276.             "stream_param": {
  277.                 "device": "rkispp_scale1",
  278.                 "frame_num": "6",
  279.                 "height": "480",
  280.                 "output_data_type": "image:nv12",
  281.                 "use_libv4l2": "1",
  282.                 "v4l2_capture_type": "VIDEO_CAPTURE",
  283.                 "v4l2_mem_type": "MEMORY_DMABUF",
  284.                 "virtual_height": "480",
  285.                 "virtual_width": "640",
  286.                 "width": "640"
  287.             }
  288.         },
  289.         "Flow_1": {
  290.             "flow_index": {
  291.                 "flow_index_name": "move_detec_test",
  292.                 "stream_id": "1",
  293.                 "flow_type": "io",
  294.                 "in_slot_index_of_down": "0",
  295.                 "out_slot_index": "0",
  296.                 "stream_type": "move_detec",
  297.                 "upflow_index_name": "source_0"
  298.             },
  299.             "flow_name": "move_detec",
  300.             "flow_param": {
  301.                 "name": "move_detec",
  302.                 "input_data_type": "nv12",
  303.                 "output_data_type": "NULL"
  304.             },
  305.             "stream_param": {
  306.                 "md_single_ref": "1",
  307.                 "md_orignal_width": "640",
  308.                 "md_orignal_height": "480",
  309.                 "md_down_scale_width": "640",
  310.                 "md_down_scale_height": "480",
  311.                 "md_roi_cnt": "0",
  312.                 "md_roi_rect": ""
  313.             }
  314.         },
  315.         "Flow_2": {
  316.             "flow_index": {
  317.                 "flow_index_name": "rockface_0",
  318.                 "flow_type": "io",
  319.                 "in_slot_index_of_down": "0",
  320.                 "out_slot_index": "0",
  321.                 "stream_type": "filter",
  322.                 "upflow_index_name": "source_0"
  323.             },
  324.             "flow_name": "filter",
  325.             "flow_param": {
  326.                 "thread_model": "asynccommon",
  327.                 "input_model": "dropfront",
  328.                 "name": "rockface_detect"
  329.             },
  330.             "stream_param": {
  331.                 "enable": "1",
  332.                 "input_data_type": "image:nv12",
  333.                 "detect_track": "1",
  334.                 "track_frame": "2",
  335.                 "detect_align": "0",
  336.                 "detect_landmark": "0"
  337.             }
  338.         },
  339.         "Flow_3": {
  340.             "flow_index": {
  341.                 "flow_index_name": "video_enc_0",
  342.                 "flow_type": "io",
  343.                 "in_slot_index_of_down": "0",
  344.                 "out_slot_index": "0",
  345.                 "stream_type": "video_enc",
  346.                 "upflow_index_name": "source_0"
  347.             },
  348.             "flow_name": "video_enc",
  349.             "flow_param": {
  350.                 "input_data_type": "image:nv12",
  351.                 "name": "rkmpp",
  352.                 "need_extra_merge": "1",
  353.                 "output_data_type": "video:h264"
  354.             },
  355.             "stream_param": {
  356.                 "bitrate_max": "800000",
  357.                 "bitrate": "400000",
  358.                 "bitrate_min": "200000",
  359.                 "codec_type": "6",
  360.                 "framerate": "25/1",
  361.                 "framerate_in": "25/1",
  362.                 "full_range": "1",
  363.                 "gop": "30",
  364.                 "h264_trans_8x8": "1",
  365.                 "height": "480",
  366.                 "input_data_type": "image:nv12",
  367.                 "level": "52",
  368.                 "output_data_type": "video:h264",
  369.                 "profile": "100",
  370.                 "rc_mode": "cbr",
  371.                 "rc_quality": "highest",
  372.                 "virtual_height": "480",
  373.                 "virtual_width": "640",
  374.                 "width": "640",
  375.                 "roi_regions": ""
  376.             }
  377.         },
  378.         "Flow_4": {
  379.             "flow_index": {
  380.                 "flow_index_name": "muxer_0",
  381.                 "flow_type": "sink",
  382.                 "in_slot_index_of_down": "0",
  383.                 "out_slot_index": "0",
  384.                 "stream_type": "muxer",
  385.                 "upflow_index_name": "video_enc_0"
  386.             },
  387.             "flow_name": "muxer_flow",
  388.             "flow_param": {
  389.                 "name": "muxer_flow",
  390.                 "path": "rtmp://127.0.0.1:1935/live/substream",
  391.                 "output_data_type": "flv"
  392.             },
  393.             "stream_param": {}
  394.         },
  395.         "Flow_5": {
  396.             "flow_index": {
  397.                 "flow_index_name": "rtsp_0",
  398.                 "flow_type": "sink",
  399.                 "in_slot_index_of_down": "0",
  400.                 "out_slot_index": "0",
  401.                 "stream_type": "rtsp",
  402.                 "upflow_index_name": "video_enc_0"
  403.             },
  404.             "flow_name": "live555_rtsp_server",
  405.             "flow_param": {
  406.                 "input_data_type": "video:h264",
  407.                 "channel_name": "live/substream",
  408.                 "portnum": "554",
  409.                 "sample_rate": "8000",
  410.                 "channel_num": "1",
  411.                 "profile": "1",
  412.                 "sample_format": "16"
  413.             },
  414.             "stream_param": {}
  415.         },
  416.         "Flow_6": {
  417.             "flow_index": {
  418.                 "flow_index_name": "bodydetect_0",
  419.                 "flow_type": "io",
  420.                 "in_slot_index_of_down": "0",
  421.                 "out_slot_index": "0",
  422.                 "stream_type": "filter",
  423.                 "upflow_index_name": "source_0"
  424.             },
  425.             "flow_name": "filter",
  426.             "flow_param": {
  427.                 "thread_model": "asynccommon",
  428.                 "input_model": "dropfront",
  429.                 "name": "rockface_bodydetect"
  430.             },
  431.             "stream_param": {
  432.                 "input_data_type": "image:nv12",
  433.                 "rect": "(0,0,640,480)",
  434.                 "detect_rect": "(0,0,640,480)",
  435.                 "frame_interval": "5",
  436.                 "percentage": "80",
  437.                 "duration": "2",
  438.                 "enable": "1"
  439.             }
  440.         },
  441.         "Flow_7": {
  442.             "flow_index": {
  443.                 "flow_index_name": "face_recognize_0",
  444.                 "flow_type": "io",
  445.                 "in_slot_index_of_down": "0",
  446.                 "out_slot_index": "0",
  447.                 "stream_type": "filter",
  448.                 "upflow_index_name": "rockface_0"
  449.             },
  450.             "flow_name": "filter",
  451.             "flow_param": {
  452.                 "name": "rockface_recognize"
  453.             },
  454.             "stream_param": {
  455.                 "enable": "1",
  456.                 "enable_face_reg": "1",
  457.                 "enable_face_detect": "1",
  458.                 "input_data_type": "image:nv12",
  459.                 "db_path": "/data/face.db"
  460.             }
  461.         }
  462.     },
  463.     "Pipe_2": {
  464.         "Flow_0": {
  465.             "flow_index": {
  466.                 "flow_index_name": "source_0",
  467.                 "flow_type": "source",
  468.                 "stream_type": "camera",
  469.                 "stream_id": "2",
  470.                 "upflow_index_name": "none"
  471.             },
  472.             "flow_name": "source_stream",
  473.             "flow_param": {
  474.                 "name": "v4l2_capture_stream"
  475.             },
  476.             "stream_param": {
  477.                 "device": "rkispp_scale0",
  478.                 "frame_num": "4",
  479.                 "height": "1080",
  480.                 "output_data_type": "image:nv12",
  481.                 "use_libv4l2": "1",
  482.                 "v4l2_capture_type": "VIDEO_CAPTURE",
  483.                 "v4l2_mem_type": "MEMORY_DMABUF",
  484.                 "virtual_height": "1080",
  485.                 "virtual_width": "1920",
  486.                 "width": "1920"
  487.             }
  488.         },
  489.         "Flow_1": {
  490.             "flow_index": {
  491.                 "flow_index_name": "video_enc_0",
  492.                 "flow_type": "io",
  493.                 "in_slot_index_of_down": "0",
  494.                 "out_slot_index": "0",
  495.                 "stream_type": "video_enc",
  496.                 "upflow_index_name": "source_0"
  497.             },
  498.             "flow_name": "video_enc",
  499.             "flow_param": {
  500.                 "input_data_type": "image:nv12",
  501.                 "name": "rkmpp",
  502.                 "need_extra_merge": "1",
  503.                 "output_data_type": "video:h265"
  504.             },
  505.             "stream_param": {
  506.                 "bitrate_max": "3000000",
  507.                 "bitrate": "2000000",
  508.                 "bitrate_min": "1000000",
  509.                 "codec_type": "7",
  510.                 "framerate": "25/1",
  511.                 "framerate_in": "25/1",
  512.                 "full_range": "1",
  513.                 "gop": "30",
  514.                 "h264_trans_8x8": "1",
  515.                 "height": "1080",
  516.                 "input_data_type": "image:nv12",
  517.                 "level": "52",
  518.                 "output_data_type": "video:h265",
  519.                 "profile": "100",
  520.                 "rc_mode": "cbr",
  521.                 "rc_quality": "highest",
  522.                 "virtual_height": "1080",
  523.                 "virtual_width": "1920",
  524.                 "width": "1920",
  525.                 "roi_regions": ""
  526.             }
  527.         },
  528.         "Flow_2": {
  529.             "flow_index": {
  530.                 "flow_index_name": "muxer_0",
  531.                 "flow_type": "sink",
  532.                 "in_slot_index_of_down": "0",
  533.                 "out_slot_index": "0",
  534.                 "stream_type": "muxer",
  535.                 "upflow_index_name": "video_enc_0"
  536.             },
  537.             "flow_name": "muxer_flow",
  538.             "flow_param": {
  539.                 "name": "muxer_flow",
  540.                 "path": "rtmp://127.0.0.1:1935/live/thirdstream",
  541.                 "output_data_type": "flv"
  542.             },
  543.             "stream_param": {}
  544.         },
  545.         "Flow_3": {
  546.             "flow_index": {
  547.                 "flow_index_name": "rtsp_0",
  548.                 "flow_type": "sink",
  549.                 "in_slot_index_of_down": "0",
  550.                 "out_slot_index": "0",
  551.                 "stream_type": "rtsp",
  552.                 "upflow_index_name": "video_enc_0"
  553.             },
  554.             "flow_name": "live555_rtsp_server",
  555.             "flow_param": {
  556.                 "input_data_type": "video:h265",
  557.                 "channel_name": "live/thirdstream",
  558.                 "portnum": "554",
  559.                 "sample_rate": "8000",
  560.                 "channel_num": "1",
  561.                 "profile": "1",
  562.                 "sample_format": "16"
  563.             },
  564.             "stream_param": {}
  565.         }
  566.     }
  567. }
复制代码
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

友情链接 : 爱板网 电子发烧友论坛 云汉电子社区 粤ICP备14022046号-2
快速回复 返回顶部 返回列表