本地mp4文件转码为浏览器可播放的视频文件
收藏回复举报
本地mp4文件转码为浏览器可播放的视频文件
t('forum.solved') 已解决
发表于2026-01-26 19:02:44
0 查看
  1. 任务:

本地视频文件 编解码器: MPEG-4 Video (mp4v) ,需要转换为支持浏览器播放的  编解码器: H264 - MPEG-4 AVC (part 10) (avc1),源码见附件。

  1. 运行报错如下:
(triton) root@dec653c6129f:/workspace# python video_converter.py
Begin to initialize Log.
The output directory of logs file exist.
WARNING: Logging before InitGoogleLogging() is written to STDERR
I20260126 10:50:32.219857 281466632738464 FileUtils.cpp:423] The input file is empty
I20260126 10:50:32.219882 281466632738464 FileUtils.cpp:579] Check Other group permission: Current permission is 4, but required no greater than 0.
Save logs information to specified directory.
Initializing MindX SDK...
Input directory: /data/media/video/1000003$1$0$1/2026-01-26
Output directory: /data/media/video/1000003$1$0$1/2026-01-26/h264

Processing /data/media/video/1000003$1$0$1/2026-01-26/51ce4fa7-fa99-11f0-84c5-cd64abe4e5e7.mp4...
Processing file: /data/media/video/1000003$1$0$1/2026-01-26/51ce4fa7-fa99-11f0-84c5-cd64abe4e5e7.mp4, size: 114793409 bytes
E20260126 10:50:33.778733 281466632738464 DvppWrapperWithHiMpi.cpp:741] Failed to send video decode stream with hi_mpi. (Calling Function = hi_mpi_vdec_send_stream, Code = 0xA0058003, Message = "Himpi error, please refer to the document of CANN.") 
E20260126 10:50:33.779054 281466632738464 VideoDecoderDptr.hpp:270] Failed to dvppWrapper_ DvppVdec. (Code = -1, Message = "ACL: general failure") 
E20260126 10:50:33.783800 281466632738464 PyVideoDecoder.h:126] VideoDecoder decode failed. (Code = -1, Message = "ACL: general failure") 
Error decoding video:  (Code = -1, Message = "ACL: general failure") 
Failed to convert /data/media/video/1000003$1$0$1/2026-01-26/51ce4fa7-fa99-11f0-84c5-cd64abe4e5e7.mp4

  1. 运行环境为:

triton-inference-server-ge-backend:v2.2.0-cann8.3.rc2-310p-ubuntu22.04-py3.10-arm  +   Ascend-mindxsdk-mxvision_7.2.RC1_linux-aarch64.run

[root@localhost ~]# npu-smi info

+--------------------------------------------------------------------------------------------------------+

| npu-smi 25.3.rc1                                 Version: 25.3.rc1                                     |

+-------------------------------+-----------------+------------------------------------------------------+

| NPU     Name                  | Health          | Power(W)     Temp(C)           Hugepages-Usage(page) |

| Chip    Device                | Bus-Id          | AICore(%)    Memory-Usage(MB)                        |

+===============================+=================+======================================================+

| 2       310P3                 | OK              | NA           62                79    / 79            |

| 0       0                     | 0000:01:00.0    | 0            2059 / 21525                            |

+===============================+=================+======================================================+

| 3       310P3                 | OK              | NA           58                0     / 0             |

| 0       1                     | 0000:03:00.0    | 0            1849 / 21525                            |

+===============================+=================+======================================================+

+-------------------------------+-----------------+------------------------------------------------------+

| NPU     Chip                  | Process id      | Process name             | Process memory(MB)        |

+===============================+=================+======================================================+

| 2       0                     | 1710633         | tritonserver             | 266                       |

+===============================+=================+======================================================+

| No running processes found in NPU 3                                                                    |

+===============================+=================+======================================================+

[root@localhost ~]# 

本帖最后由 匿名用户 于 2026/01/29 16:23:26 编辑

我要发帖子