From f8b5ab5ae88c8000cae5cd58c020a7f351ef7ad0 Mon Sep 17 00:00:00 2001 From: Malanchi Date: Mon, 20 Jan 2025 15:30:36 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=8C=87=E5=AE=9A=E7=95=B6=E5=89=8D?= =?UTF-8?q?=E5=B8=A7=E4=B8=BAI=E5=B8=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- VisionSDK/Ascendffmpeg/README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/VisionSDK/Ascendffmpeg/README.md b/VisionSDK/Ascendffmpeg/README.md index a310c3511..882a87366 100644 --- a/VisionSDK/Ascendffmpeg/README.md +++ b/VisionSDK/Ascendffmpeg/README.md @@ -15,6 +15,8 @@ mxVison ascend 硬件平台内置了视频相关的硬件加速解码器,为 |硬件转码|√|√| √ | √ | |硬件缩放|√|√| | √ | +注意:mjpeg视频流的转码相关功能只在Atlas A500 A2上适用。 + ### 1.2 支持的产品 本项目支持昇腾Atlas 300I pro、 Atlas 300V pro、 Atlas A500 A2。 -- Gitee From 79525de47248f313eeac1cb33839d114d54fb8c2 Mon Sep 17 00:00:00 2001 From: Malanchi Date: Mon, 20 Jan 2025 16:39:18 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=8C=87=E5=AE=9A=E7=95=B6=E5=89=8D?= =?UTF-8?q?=E5=B8=A7=E4=B8=BAI=E5=B8=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- VisionSDK/Ascendffmpeg/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/VisionSDK/Ascendffmpeg/README.md b/VisionSDK/Ascendffmpeg/README.md index 882a87366..aadc294b7 100644 --- a/VisionSDK/Ascendffmpeg/README.md +++ b/VisionSDK/Ascendffmpeg/README.md @@ -91,8 +91,8 @@ export LD_LIBRARY_PATH=/PATH/TO/mindxsdk-referenceapps/VisionSDK/Ascendffmpeg/as * `-c:v` - 指定解码器为 h264_ascend (解码 h265 格式可以使用 h265_ascend,解码 mjpeg 格式可以使用 mjpeg_ascend)。 * `-device_id` - 指定硬件设备 id 为 0。取值范围取决于芯片个数,默认为 0。 `npu-smi info` 命令可以查看芯片个数 * `-channel_id` - 指定解码通道 id ,默认为0,取值范围取决于芯片实际情况,超出时会报错(对于昇腾Atlas 300I pro、 Atlas 300V pro,该参数的取值范围:[0, 256),JPEGD功能和VDEC功能共用通道,且通道总数最多256。对于Atlas 500 A2推理产品,该参数的取值范围:[0, 128),JPEGD功能和VDEC功能共用通道,且通道总数最多128)。 若是指定的通道已被占用, 则自动寻找并申请新的通道。 -* `-resize` - 指定缩放大小, 输入格式为: {width}x{height}。宽高:[128x128-4096x4096], 宽高相乘不能超过 4096*2304(此为h264的约束)。宽要与 16 对齐,高要与 2 对齐。 -* `-i` - 指定输入文件(支持h264和h265及rtsp视频流, 其他视频格式不做保证)。 +* `-resize` - 指定缩放大小, 输入格式为: {width}x{height}。宽高:[128x128-4096x4096], 宽高相乘不能超过 4096*2304(此为h264的约束)。宽要与 16 对齐,高要与 2 对齐。注意:mjpeg_ascend不支持该参数。 +* `-i` - 指定输入文件(支持h264和h265及rtsp视频流, 其他视频格式不做保证)。视频文件宽高应满足在[128x128-4096x4096]范围内。 编码相关参数(注意:编码相关参数需要在 `-i` 参数后设置): * `-c:v` - 指定编码器为 h264_ascend (编码成 h265 格式可以使用 h265_ascend)。 -- Gitee