Firefly开源社区
标题:
rv1126 使用rkmedia 工具 如何去更改rtsp 推流出来的分辨率
[打印本页]
作者:
见愁
时间:
2023-2-21 13:47
标题:
rv1126 使用rkmedia 工具 如何去更改rtsp 推流出来的分辨率
rv1126 使用rkmedia 工具 如何去更改rtsp 推流出来的分辨率:
现在板子能出来的主码流分辨率是:3840*2160 25fpos (
vlc
rtsp
:
//
168.168
.
101.208
:
554
/
live
/
main_strea
)
请问大佬们我如何去更改推流出来的分辨率
当前修改:
1、修改过 ipc.conf 但是没有效果,不知是没有没有改对地方还是
tchip_askquestions
dmesg.rar
2023-2-21 11:55 上传
点击文件名下载附件
下载积分: 灯泡 -1 , 经验 -1
14.71 KB, 下载次数: 0, 下载积分: 灯泡 -1 , 经验 -1
作者:
见愁
时间:
2023-2-21 13:50
{
"Pipe_0": {
"Flow_0": {
"flow_index": {
"flow_index_name": "source_0",
"flow_type": "source",
"stream_id": "0",
"stream_type": "camera",
"upflow_index_name": "none"
},
"flow_name": "source_stream",
"flow_param": {
"name": "v4l2_capture_stream"
},
"stream_param": {
"device": "rkispp_m_bypass",
"frame_num": "6",
"height": "1520",
"output_data_type": "image:nv12",
"use_libv4l2": "1",
"v4l2_capture_type": "VIDEO_CAPTURE",
"v4l2_mem_type": "MEMORY_DMABUF",
"virtual_height": "1520",
"virtual_width": "2688",
"width": "2688"
}
},
"Flow_1": {
"flow_index": {
"flow_index_name": "nn_result_input_0",
"flow_type": "io",
"in_slot_index_of_down": "0",
"out_slot_index": "0",
"stream_type": "filter",
"upflow_index_name": "source_0"
},
"flow_name": "filter",
"flow_param": {
"input_data_type": "image:nv12",
"name": "nn_result_input",
"output_data_type": "image:nv12"
},
"stream_param": {
"enable": "1",
"input_data_type": "image:nv12",
"frame_caches": "1",
"frame_rate": "30"
}
},
"Flow_2": {
"flow_index": {
"flow_index_name": "face_capture_0",
"flow_type": "io",
"in_slot_index_of_down": "0",
"out_slot_index": "0",
"stream_type": "filter",
"upflow_index_name": "nn_result_input_0"
},
"flow_name": "filter",
"flow_param": {
"input_data_type": "image:nv12",
"name": "face_capture",
"output_data_type": "image:nv12"
},
"stream_param": {
"enable": "1",
"path": "/userdata/snapshot",
"file_prefix": "face",
"file_suffix": ".jpeg",
"input_data_type": "image:nv12"
}
},
"Flow_3": {
"flow_index": {
"flow_index_name": "draw_filter_0",
"flow_type": "io",
"in_slot_index_of_down": "0",
"out_slot_index": "0",
"stream_type": "filter",
"upflow_index_name": "face_capture_0"
},
"flow_name": "filter",
"flow_param": {
"input_data_type": "image:nv12",
"name": "draw_filter",
"output_data_type": "image:nv12"
},
"stream_param": {
"enable": "1",
"draw_rect_thick": "2",
"need_hw_draw": "0",
"offset_x": "16.0",
"offset_y": "0.0",
"min_rect": "2000",
"input_data_type": "image:nv12"
}
},
"Flow_4": {
"flow_index": {
"flow_index_name": "video_enc_0",
"flow_type": "io",
"in_slot_index_of_down": "0",
"out_slot_index": "0",
"stream_type": "video_enc",
"upflow_index_name": "draw_filter_0"
},
"flow_name": "video_enc",
"flow_param": {
"input_data_type": "image:nv12",
"name": "rkmpp",
"need_extra_merge": "1",
"output_data_type": "video:h265"
},
"stream_param": {
"bitrate_max": "8000000",
"bitrate": "6000000",
"bitrate_min": "4000000",
"codec_type": "7",
"framerate": "25/1",
"framerate_in": "25/1",
"full_range": "1",
"gop": "30",
"h264_trans_8x8": "1",
"height": "1520",
"input_data_type": "image:nv12",
"level": "52",
"output_data_type": "video:h265",
"profile": "100",
"rc_mode": "cbr",
"rc_quality": "highest",
"virtual_height": "1520",
"virtual_width": "2688",
"width": "2688",
"roi_regions": "",
"smart": "close"
}
},
"Flow_5": {
"flow_index": {
"flow_index_name": "muxer_0",
"flow_type": "sink",
"in_slot_index_of_down": "0",
"out_slot_index": "0",
"stream_type": "muxer",
"upflow_index_name": "video_enc_0"
},
"flow_name": "muxer_flow",
"flow_param": {
"name": "muxer_flow",
"path": "rtmp://127.0.0.1:1935/live/mainstream",
"output_data_type": "flv"
},
"stream_param": {}
},
"Flow_6": {
"flow_index": {
"flow_index_name": "muxer_1",
"flow_type": "sink",
"in_slot_index_of_down": "0",
"out_slot_index": "0",
"stream_type": "muxer",
"upflow_index_name": "video_enc_0"
},
"flow_name": "muxer_flow",
"flow_param": {
"muxer_rkaudio_avdictionary": "movflags-frag_keyframe",
"file_duration": "60",
"file_index": "1",
"file_time": "1",
"path": "/userdata/video0",
"file_prefix": "main",
"name": "muxer_flow",
"enable_streaming": "false"
},
"stream_param": {}
},
"Flow_7": {
"flow_index": {
"flow_index_name": "rtsp_0",
"flow_type": "sink",
"in_slot_index_of_down": "0",
"out_slot_index": "0",
"stream_type": "rtsp",
"upflow_index_name": "video_enc_0"
},
"flow_name": "live555_rtsp_server",
"flow_param": {
"input_data_type": "video:h265",
"channel_name": "live/mainstream",
"portnum": "554",
"sample_rate": "8000",
"channel_num": "1",
"profile": "1",
"sample_format": "16"
},
"stream_param": {}
},
"Flow_8": {
"flow_index": {
"flow_index_name": "through_guard_0",
"flow_type": "io",
"in_slot_index_of_down": "0",
"out_slot_index": "0",
"stream_type": "jpeg_through_guard",
"upflow_index_name": "source_0"
},
"flow_name": "filter",
"flow_param": {
"input_data_type": "image:nv12",
"name": "through_guard",
"output_data_type": "image:nv12"
},
"stream_param": {
"allow_through_count": "0"
}
},
"Flow_9": {
"flow_index": {
"flow_index_name": "video_enc_1",
"flow_type": "io",
"in_slot_index_of_down": "0",
"out_slot_index": "0",
"stream_type": "jpeg_enc",
"upflow_index_name": "through_guard_0"
},
"flow_name": "video_enc",
"flow_param": {
"input_data_type": "image:nv12",
"name": "rkmpp",
"output_data_type": "image:jpeg"
},
"stream_param": {
"codec_type": "8",
"input_data_type": "image:nv12",
"output_data_type": "image:jpeg",
"virtual_height": "1520",
"virtual_width": "2688",
"height": "1520",
"width": "2688",
"jpeg_qfactor": "99"
}
},
"Flow_10": {
"flow_index": {
"flow_index_name": "sink_0",
"flow_type": "sink",
"in_slot_index_of_down": "0",
"out_slot_index": "0",
"stream_type": "file",
"upflow_index_name": "video_enc_1"
},
"flow_name": "file_write_flow",
"flow_param": {
"mode": "w+",
"path": "/userdata/photo0",
"file_prefix": "main",
"file_suffix": ".jpeg",
"save_mode": "single_frame"
},
"stream_param": {}
}
},
"Pipe_1": {
"Flow_0": {
"flow_index": {
"flow_index_name": "source_0",
"flow_type": "source",
"stream_id": "1",
"stream_type": "camera",
"upflow_index_name": "none"
},
"flow_name": "source_stream",
"flow_param": {
"name": "v4l2_capture_stream"
},
"stream_param": {
"device": "rkispp_scale1",
"frame_num": "6",
"height": "480",
"output_data_type": "image:nv12",
"use_libv4l2": "1",
"v4l2_capture_type": "VIDEO_CAPTURE",
"v4l2_mem_type": "MEMORY_DMABUF",
"virtual_height": "480",
"virtual_width": "640",
"width": "640"
}
},
"Flow_1": {
"flow_index": {
"flow_index_name": "move_detec_test",
"stream_id": "1",
"flow_type": "io",
"in_slot_index_of_down": "0",
"out_slot_index": "0",
"stream_type": "move_detec",
"upflow_index_name": "source_0"
},
"flow_name": "move_detec",
"flow_param": {
"name": "move_detec",
"input_data_type": "nv12",
"output_data_type": "NULL"
},
"stream_param": {
"md_single_ref": "1",
"md_orignal_width": "640",
"md_orignal_height": "480",
"md_down_scale_width": "640",
"md_down_scale_height": "480",
"md_roi_cnt": "0",
"md_roi_rect": ""
}
},
"Flow_2": {
"flow_index": {
"flow_index_name": "rockface_0",
"flow_type": "io",
"in_slot_index_of_down": "0",
"out_slot_index": "0",
"stream_type": "filter",
"upflow_index_name": "source_0"
},
"flow_name": "filter",
"flow_param": {
"thread_model": "asynccommon",
"input_model": "dropfront",
"name": "rockface_detect"
},
"stream_param": {
"enable": "1",
"input_data_type": "image:nv12",
"detect_track": "1",
"track_frame": "2",
"detect_align": "0",
"detect_landmark": "0"
}
},
"Flow_3": {
"flow_index": {
"flow_index_name": "video_enc_0",
"flow_type": "io",
"in_slot_index_of_down": "0",
"out_slot_index": "0",
"stream_type": "video_enc",
"upflow_index_name": "source_0"
},
"flow_name": "video_enc",
"flow_param": {
"input_data_type": "image:nv12",
"name": "rkmpp",
"need_extra_merge": "1",
"output_data_type": "video:h264"
},
"stream_param": {
"bitrate_max": "800000",
"bitrate": "400000",
"bitrate_min": "200000",
"codec_type": "6",
"framerate": "25/1",
"framerate_in": "25/1",
"full_range": "1",
"gop": "30",
"h264_trans_8x8": "1",
"height": "480",
"input_data_type": "image:nv12",
"level": "52",
"output_data_type": "video:h264",
"profile": "100",
"rc_mode": "cbr",
"rc_quality": "highest",
"virtual_height": "480",
"virtual_width": "640",
"width": "640",
"roi_regions": ""
}
},
"Flow_4": {
"flow_index": {
"flow_index_name": "muxer_0",
"flow_type": "sink",
"in_slot_index_of_down": "0",
"out_slot_index": "0",
"stream_type": "muxer",
"upflow_index_name": "video_enc_0"
},
"flow_name": "muxer_flow",
"flow_param": {
"name": "muxer_flow",
"path": "rtmp://127.0.0.1:1935/live/substream",
"output_data_type": "flv"
},
"stream_param": {}
},
"Flow_5": {
"flow_index": {
"flow_index_name": "rtsp_0",
"flow_type": "sink",
"in_slot_index_of_down": "0",
"out_slot_index": "0",
"stream_type": "rtsp",
"upflow_index_name": "video_enc_0"
},
"flow_name": "live555_rtsp_server",
"flow_param": {
"input_data_type": "video:h264",
"channel_name": "live/substream",
"portnum": "554",
"sample_rate": "8000",
"channel_num": "1",
"profile": "1",
"sample_format": "16"
},
"stream_param": {}
},
"Flow_6": {
"flow_index": {
"flow_index_name": "bodydetect_0",
"flow_type": "io",
"in_slot_index_of_down": "0",
"out_slot_index": "0",
"stream_type": "filter",
"upflow_index_name": "source_0"
},
"flow_name": "filter",
"flow_param": {
"thread_model": "asynccommon",
"input_model": "dropfront",
"name": "rockface_bodydetect"
},
"stream_param": {
"input_data_type": "image:nv12",
"rect": "(0,0,640,480)",
"detect_rect": "(0,0,640,480)",
"frame_interval": "5",
"percentage": "80",
"duration": "2",
"enable": "1"
}
},
"Flow_7": {
"flow_index": {
"flow_index_name": "face_recognize_0",
"flow_type": "io",
"in_slot_index_of_down": "0",
"out_slot_index": "0",
"stream_type": "filter",
"upflow_index_name": "rockface_0"
},
"flow_name": "filter",
"flow_param": {
"name": "rockface_recognize"
},
"stream_param": {
"enable": "1",
"enable_face_reg": "1",
"enable_face_detect": "1",
"input_data_type": "image:nv12",
"db_path": "/data/face.db"
}
}
},
"Pipe_2": {
"Flow_0": {
"flow_index": {
"flow_index_name": "source_0",
"flow_type": "source",
"stream_type": "camera",
"stream_id": "2",
"upflow_index_name": "none"
},
"flow_name": "source_stream",
"flow_param": {
"name": "v4l2_capture_stream"
},
"stream_param": {
"device": "rkispp_scale0",
"frame_num": "4",
"height": "1080",
"output_data_type": "image:nv12",
"use_libv4l2": "1",
"v4l2_capture_type": "VIDEO_CAPTURE",
"v4l2_mem_type": "MEMORY_DMABUF",
"virtual_height": "1080",
"virtual_width": "1920",
"width": "1920"
}
},
"Flow_1": {
"flow_index": {
"flow_index_name": "video_enc_0",
"flow_type": "io",
"in_slot_index_of_down": "0",
"out_slot_index": "0",
"stream_type": "video_enc",
"upflow_index_name": "source_0"
},
"flow_name": "video_enc",
"flow_param": {
"input_data_type": "image:nv12",
"name": "rkmpp",
"need_extra_merge": "1",
"output_data_type": "video:h265"
},
"stream_param": {
"bitrate_max": "3000000",
"bitrate": "2000000",
"bitrate_min": "1000000",
"codec_type": "7",
"framerate": "25/1",
"framerate_in": "25/1",
"full_range": "1",
"gop": "30",
"h264_trans_8x8": "1",
"height": "1080",
"input_data_type": "image:nv12",
"level": "52",
"output_data_type": "video:h265",
"profile": "100",
"rc_mode": "cbr",
"rc_quality": "highest",
"virtual_height": "1080",
"virtual_width": "1920",
"width": "1920",
"roi_regions": ""
}
},
"Flow_2": {
"flow_index": {
"flow_index_name": "muxer_0",
"flow_type": "sink",
"in_slot_index_of_down": "0",
"out_slot_index": "0",
"stream_type": "muxer",
"upflow_index_name": "video_enc_0"
},
"flow_name": "muxer_flow",
"flow_param": {
"name": "muxer_flow",
"path": "rtmp://127.0.0.1:1935/live/thirdstream",
"output_data_type": "flv"
},
"stream_param": {}
},
"Flow_3": {
"flow_index": {
"flow_index_name": "rtsp_0",
"flow_type": "sink",
"in_slot_index_of_down": "0",
"out_slot_index": "0",
"stream_type": "rtsp",
"upflow_index_name": "video_enc_0"
},
"flow_name": "live555_rtsp_server",
"flow_param": {
"input_data_type": "video:h265",
"channel_name": "live/thirdstream",
"portnum": "554",
"sample_rate": "8000",
"channel_num": "1",
"profile": "1",
"sample_format": "16"
},
"stream_param": {}
}
}
}
复制代码
欢迎光临 Firefly开源社区 (https://dev.t-firefly.com/)
Powered by Discuz! X3.1