Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to use PX2 to hard decode H.264 naked stream

Shulou Source: shulou.com Published: 2022-06-01 04:49:18 09月26日 Update

Today, I will talk to you about how to use PX2 to hard decode H.264 naked code stream, which may not be well understood by many people. In order to make you understand better, the editor has summarized the following contents for you. I hope you can get something according to this article.

Rayeager PX2 development board has a very strong multimedia processing ability, if you need to call hardware acceleration to decode ordinary media files / code streams, you only need to call multimedia-related interfaces according to Android standards.

According to the special needs of some industry users, Rayeager PX2 actually opens the interface to decode the naked code stream such as H.264.

A code is provided here to decode the H.264 naked stream. If you have some experience in Android system development, you can quickly understand and rewrite it. How to use it:

Extract the code in the root directory of PX2's Android compilation environment, enter the ChipSPARK_PX2_H264_DECODER folder, and execute the following command to compile:

Mm-B

The executable file can be generated, and the path is: out/target/product/rkpx2/system/bin/vpu_apiDemo

Push the file to the PX2 development board via adb, and note that chmod 777 gives execution permission.

Perform decoding in adb shell with the following command:

. / vpu_apiDemo-I h364 bitstream file-coding 7

-coding 7 indicates that the file is H.264 encoded. In fact, the code can be modified to decode many other types of code streams and even encode them. The relevant decoding status can be seen through logcat.

After reading the above, do you have any further understanding of how to use PX2 to hard decode H.264 naked stream? If you want to know more knowledge or related content, please follow the industry information channel, thank you for your support.

Tags: Files code content development commands multimedia actual actually interfaces coding industry compilation powerful general special usage just media media files very fast Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Xiaomi Shulou Information OPPO Reno Redmi NVidia