【飞凌 OK113i-C 全志T113-i开发板】视频编解码测试

前言

本文测试OK113i-S开发板-视频编解码的功能

OK113i-S开发板是支持视频的编解码的,下面是官方介绍的编解码功能

T113-i 是一种为多媒体解码平台设计的高级应用处理器。T113-i 集成了64位玄铁C906 RISC-V CPU,
双核 Cortex - A7 CPU 和 HiFi4 DSP,提供高效的计算能力。
 主要特性
支持 H.265、H.264、MPEG-1/2/4、JPEG 等全格式解码。独立的编码器可以用 JPEG 或 MJPEG 来进行编
码。
 T113-i 集成了 H.265/H.264 4K 解码和 SmartColor2.0 后处理,提供完美的视频娱乐体验。

下面我们来测试一下音视频的编码解码功能。

编解码代码

在系统的代码中,下面是程序的位置

----------------
视频
/sdk/platform/framework/auto/cmd_demo/decoderTest 
/sdk/platform/framework/auto/sdk_demo/decoderTest
/sdk/platform/framework/auto/sdk_demo/encoderTest
/sdk/platform/framework/auto/sdk_demo/fltest_streamPlayer

------------------
音频
/sdk/platform/framework/auto/cmd_demo/audplayer
/sdk/platform/framework/auto/qt_demo/fltest_qt_musicplayer
/sdk/platform/framework/auto/sdk_demo/audioencTest
/sdk/platform/framework/auto/sdk_demo/audplayerTest

编译音视频库

系统的音视频库主要是cedarx 和libcedarc;这个在buuildroot中需要选定。如下图

Target Packages
  Allwinner platform private package select
  Libcedcrc
  Cedarx

微信截图_20231220140841.png

微信截图_20231221103631.png

错误

=================
>>> cedarx  Installing to target
cp -rf /home/forlinx/113/OK113i-linux-sdk/out/t113_i/ok113i/longan/buildroot/build/cedarx/config/_cedarx.conf 
/home/forlinx/113/OK113i-linux-sdk/out/t113_i/ok113i/longan/buildroot/target/etc/cedarx.conf
cp: cannot stat '/home/forlinx/113/OK113i-linux-sdk/out/t113_i/ok113i/longan/buildroot/build/cedarx/config/_cedarx.conf': No such file or directory
make[1]: *** [package/pkg-generic.mk:335: /home/forlinx/113/OK113i-linux-sdk/out/t113_i/ok113i/longan/buildroot/build/cedarx/.stamp_target_installed] Error 1

解决办法

cp -rf /home/forlinx/113/OK113i-linux-sdk/out/t113_i/ok113i/longan/buildroot/build/cedarx/conf/default_cedarx.conf  
/home/forlinx/113/OK113i-linux-sdk/out/t113_i/ok113i/longan/buildroot/build/cedarx/config/_cedarx.conf

./build.sh
./build.sh pack

=============================================
视频解码264

fltest_decoderTest 解码/tmp.h264 为yuv 格式。

root@ok113i:/forlinx/media# ls
1.jpg                1280x720_video3.yuv    tmp.h264
1024x600.rgba        2.jpg                  tmp.h265
1280x720_video0.yuv  2560x1440_dcvideo.yuv  videotestsrc_1280x720.nv21
1280x720_video1.yuv  30s.wav
1280x720_video2.yuv  test.mp3

root@ok113i:/forlinx/media# fltest_decoderTest
INFO   : cedarc <log_set_level:43>: Set log level to 3 from /vendor/etc/cedarc.conf
[2023-12-20 17:35:24] ERROR  : awplayer <ReadPluginEntry:194>: read plugin entry adecoder-15 fail!
[2023-12-20 17:35:24] ERROR  : awplayer <ReadPluginEntry:194>: read plugin entry vdecoder-9 fail!
INFO   : cedarc <CedarPluginVDInit:79>: register h264 decoder success!
INFO   : cedarc <CedarPluginVDInit:84>: register mjpeg decoder success!
[ 1097.603725] VE: VE real_freq=576000000
[ 1097.603725]
INFO   : cedarc <CedarPluginVDInit:86>: register mpeg2 decoder success!
[2023-12-20 17:35:24] WARNING: awplayer <DlOpenPlugin:112>: Invalid plugin,function CedarPluginVDInit not found.
INFO   : cedarc <CedarPluginVDInit:92>: register mpeg4dx decoder success!
INFO   : cedarc <CedarPluginVDInit:79>: register mpeg4H263 decoder success!
INFO   : cedarc <CedarPluginVDInit:90>: register mpeg4Normal decoder success!
INFO   : cedarc <CedarPluginVDInit:74>: register vc1 decoder success!
INFO   : cedarc <CedarPluginVDInit:85>: register h265 decoder success!
[2023-12-20 17:35:24] ERROR  : awplayer <ReadPluginEntry:194>: read plugin entry plugin-0 fail!
decoderTest version:V2.0.20220506
decoderTest intputFile:/forlinx/media/tmp.h264
[D]singleDecoderH264Test                 ================================
[D]singleDecoderH264Test                 ====     CedarC  Decoder    ====
[D]singleDecoderH264Test                 ====  singleDecoderTest cbk ====
[D]singleDecoderH264Test                 ================================
[E][decoderTest.cpp]singleDecoderH264Test line:271 open intputFile:/forlinx/media/tmp.h264
[E][decoderTest.cpp]singleDecoderH264Test line:294 open outputFile:/tmp/800x480nv21_sgl.yuv
new AWVideoDecoderImpl() version:V2.0.20220506
sdk_memory version:V2.0.20220506
DEBUG  : ionAlloc <__GetIonMemOpsS:833>: *** get __GetIonMemOpsS ***
INFO   : cedarc <VeInitialize:1307>: *** ic_version = 0x1301000010210,
DEBUG  : cedarc <VeInitialize:1347>: *** nPhyOffset = 0x0
DEBUG  : ionAlloc <ion_alloc_open2:177>: pid: 1559, g_context = 0x28b3b8

DEBUG  : ionAlloc <ion_alloc_open2:204>: ion alloc open ok
DEBUG  : cedarc <CdcIniParserInit:41>: load conf file /etc/cedarc.conf ok!

INFO   : cedarc <log_set_level:43>: Set log level to 5 from /vendor/etc/cedarc.conf
ERROR  : cedarc <DebugCheckConfig:316>: now cedarc log level:5
WARNING: cedarc <InitializeVideoDecoder:619>: warning: the nDeInterlaceHoldingFrameBufferNum is 0
[D]singleDecoderH264Test decode process[0/821226]
======================= ret:-6  
[D]singleDecoderH264Test decode process[815936/821226]
offset>(size-4)
[D]decoderDataReady decode write[384000/192000]
======================= ret:3
output file is saved:/tmp/

=============================================
视频解码h265

demoVdecoder 这个文件失败

==================================

ok113i:/forlinx/media# demoVdecoder -i /forlinx/media/tmp.h265 -o dec265.yuv
INFO   : cedarc <log_set_level:43>: Set log level to 3 from /vendor/etc/cedarc.conf
[2023-12-20 19:28:03] ERROR  : awplayer <ReadPluginEntry:194>: read plugin entry adecoder-15 fail!
[2023-12-20 19:28:03] ERROR  : awplayer <ReadPluginEntry:194>: read plugin entry vdecoder-9 fail!
INFO   : cedarc <CedarPluginVDInit:79>: register h264 decoder success!
INFO   : cedarc <CedarPluginVDInit:84>: register mjpeg decoder success!
INFO   : cedarc <CedarPluginVDInit:86>: register mpeg2 decoder success!
[2023-12-20 19:28:03] WARNING: awplayer <DlOpenPlugin:112>: Invalid plugin,function CedarPluginVDInit not found.
INFO   : cedarc <CedarPluginVDInit:92>: register mpeg4dx decoder success!
INFO   : cedarc <CedarPluginVDInit:79>: register mpeg4H263 decoder success!
INFO   : cedarc <CedarPluginVDInit:90>: register mpeg4Normal decoder success!
INFO   : cedarc <CedarPluginVDInit:74>: register vc1 decoder success!
INFO   : cedarc <CedarPluginVDInit:85>: register h265 decoder success!
[2023-12-20 19:28:03] ERROR  : awplayer <ReadPluginEntry:194>: read plugin entry plugin-0 fail!
[2023-12-20 19:28:03] DEBUG  : awplayer <AwStreamInit:99>: aw stream init...
[2023-12-20 19:28:03] DEBUG  : awplayer <DemoHelpInfo:1074>:  ==== CedarX linux decoder demo help start =====
[2023-12-20 19:28:03] DEBUG  : awplayer <DemoHelpInfo:1075>:  -h or --help to show the demo usage
[2023-12-20 19:28:03] DEBUG  : awplayer <DemoHelpInfo:1076>:  demo created by zouwenhuan, allwinnertech/AL3
[2023-12-20 19:28:03] DEBUG  : awplayer <DemoHelpInfo:1077>:  email: zouwenhuan@allwinnertech.com
[2023-12-20 19:28:03] DEBUG  : awplayer <DemoHelpInfo:1078>:  ===== CedarX linux decoder demo help end ======
[2023-12-20 19:28:03] DEBUG  : awplayer <main:1254>: nDecoderNum = 1
[2023-12-20 19:28:03] DEBUG  : awplayer <ChannelThread:1093>: ChannelThread 11, 0
[2023-12-20 19:28:03] DEBUG  : awplayer <ParseArgument:193>:  get input file: file:///forlinx/media/tmp.h265
[2023-12-20 19:28:03] DEBUG  : awplayer <ParseArgument:210>:  get save pic path: dec265.yuv
DEBUG  : ionAlloc <__GetIonMemOpsS:833>: *** get __GetIonMemOpsS ***
INFO   : cedarc <VeInitialize:1307>: *** ic_version = 0x1301000010210,
DEBUG  : cedarc <VeInitialize:1347>: *** nPhyOffset = 0x0
DEBUG  : ionAlloc <ion_alloc_open2:177>: pid: 1773, g_context = 0xb5d02528

DEBUG  : ionAlloc <ion_alloc_open2:204>: ion alloc open ok
[2023-12-20 19:28:03] DEBUG  : awplayer <CdxParserPrepare:778>: source uri 'file:///forlinx/media/tmp.h265'
[2023-12-20 19:28:03] DEBUG  : awplayer <__FileStreamConnect:407>: (5/0/1133141) path:'file:///forlinx/media/tmp.h265'
[2023-12-20 19:28:03] ERROR  : CdxFlacParser <__FlacParserProbe:1133>: Flac probe failed.
[2023-12-20 19:28:03] WARNING: awplayer <Mp3Probe:854>: Wav parser : no dice, no valid sequence of frames found.
[2023-12-20 19:28:03] WARNING: awplayer <Mp3Probe:854>: Wav parser : no dice, no valid sequence of frames found.frames found.
[2023-12-20 19:28:03] WARNING: awplayer <Mp3Probe:854>: Wav parser : no dice, no valid sequence offrames found.
[2023-12-20 19:28:03] WARNING: awplayer <Mp3Probe:854>: Wav parser : no dice, no valid sequence of frames found.
[2023-12-20 19:28:03] DEBUG  : awplayer <__WvParserProbe:575>: __WvParserProbe:
[2023-12-20 19:28:03] DEBUG  : awplayer <__WvParserProbe:575>: __WvParserProbe:
[2023-12-20 19:28:03] DEBUG  : awplayer <__WvParserProbe:575>: __WvParserProbe:
[2023-12-20 19:28:03] DEBUG  : awplayer <__WvParserProbe:575>: __WvParserProbe:
[2023-12-20 19:28:03] ERROR  : awplayer <__G729ParserProbe:290>: g729 SYNC_WORD probe failed.
[2023-12-20 19:28:03] ERROR  : awplayer <__Id3v2ParserProbe:330>: Probe ID3_header loss sync...
[2023-12-20 19:28:03] WARNING: awplayer <CdxParserCreate:711>: Sorry, I don't know what it is!
[2023-12-20 19:28:03] WARNING: awplayer <CdxParserOpen:756>: should not be here.
[2023-12-20 19:28:03] ERROR  : awplayer <CdxParserPrepare:789>: open parser fail, uri(file:///forlinx/media/tmp.h265)
[2023-12-20 19:28:03] ERROR  : awplayer <initDecoder:278>:  decoder open parser error nRet = -1, Decoder->parser: (nil)
[2023-12-20 19:28:03] ERROR  : awplayer <ChannelThread:1156>:  decoder demom initDecoder error

=============================================

我们修改decoderTest这个程序,使它能解码h265的格式,其中下面代码红色是我修改的。

source ~/113/OK113i-linux-sdk/.buildconfig
~/113/OK113i-linux-sdk/platform/framework/auto/sdk_demo/decoderTest$ make

==============================================

//decoderTest 265
int main(int argc, char** argv)
{
    printf("decoderTest265 version:%s\n", MODULE_VERSION);
    /******** begin set the default encode param ********/
    memset(&decodeParam, 0, sizeof(decodeParam));
    memset(&testParam, 0, sizeof(testParam));

    decodeParam.srcW = 800;
    decodeParam.srcH = 480;
    decodeParam.dstW = 800;
    decodeParam.dstH = 480;
    decodeParam.rotation = Angle_0;
    decodeParam.scaleRatio = ScaleNone;
    decodeParam.codecType = CODEC_H265;
    decodeParam.pixelFormat = PIXEL_NV21;

    testParam.testTimes = 1;
    testParam.testWay = 0;
    strcpy((char*)testParam.intputFile,        "/tmp/tmp.h265");
strcpy((char*)testParam.outputFile,        "/tmp/dec265_out.yuv");

================================================================

Makefile的修改

all: $(Target) 
$(Target) : decoderTest.cpp 
	$(CPP) decoderTest.cpp -o $(Target)  $(LIBS) $(LDFLAGS) -lpthread $(CXXFLAGS)
	$(CPP) decoderTest265.cpp -o $(Target)265  $(LIBS) $(LDFLAGS) -lpthread $(CXXFLAGS)
	@echo "generate $(Target) success!!!"
	@cp -f $(Target)    $(INSTATLL_PATH)
	@cp -f $(Target)265 $(INSTATLL_PATH)
	@echo -e '\e[1;33m cp -f $(Target) $(INSTATLL_PATH) \e[0m'

=============================================
测试解码效果

play.png

./decoderTest265
INFO   : cedarc <log_set_level:43>: Set log level to 3 from /vendor/etc/cedarc.conf
[2023-12-21 01:51:19] ERROR  : awplayer <ReadPluginEntry:194>: read plugin entry adecoder-15 fail!
[2023-12-21 01:51:19] ERROR  : awplayer <ReadPluginEntry:194>: read plugin entry vdecoder-9 fail!
INFO   : cedarc <CedarPluginVDInit:79>: register h264 decoder success!
INFO   : cedarc <CedarPluginVDInit:84>: register mjpeg decoder success!
[ 3213.535493] VE: VE real_freq=576000000
[ 3213.535493]
INFO   : cedarc <CedarPluginVDInit:86>: register mpeg2 decoder success!
[2023-12-21 01:51:19] WARNING: awplayer <DlOpenPlugin:112>: Invalid plugin,function CedarPluginVDInit not found.
INFO   : cedarc <CedarPluginVDInit:92>: register mpeg4dx decoder success!
INFO   : cedarc <CedarPluginVDInit:79>: register mpeg4H263 decoder success!
INFO   : cedarc <CedarPluginVDInit:90>: register mpeg4Normal decoder success!
INFO   : cedarc <CedarPluginVDInit:74>: register vc1 decoder success!
INFO   : cedarc <CedarPluginVDInit:85>: register h265 decoder success!
[2023-12-21 01:51:19] ERROR  : awplayer <ReadPluginEntry:194>: read plugin entry plugin-0 fail!
decoderTest265 version:V2.0.20220506
intputFile  :/tmp/tmp.h265
outputFile  :/tmp/d5_out.yuv
[D]singleDecoderTest             ================================
[D]singleDecoderTest             ====     CedarC  Decoder    ====
[D]singleDecoderTest             ====  singleDecoderTest cbk ====
[D]singleDecoderTest             ================================
new AWVideoDecoderImpl() version:V2.0.20220506
sdk_memory version:V2.0.20220506
DEBUG  : ionAlloc <__GetIonMemOpsS:833>: *** get __GetIonMemOpsS ***
INFO   : cedarc <VeInitialize:1307>: *** ic_version = 0x1301000010210,
DEBUG  : cedarc <VeInitialize:1347>: *** nPhyOffset = 0x0
DEBUG  : ionAlloc <ion_alloc_open2:177>: pid: 1597, g_context = 0x198c480

DEBUG  : ionAlloc <ion_alloc_open2:204>: ion alloc open ok
DEBUG  : cedarc <CdcIniParserInit:41>: load conf file /etc/cedarc.conf ok!

INFO   : cedarc <log_set_level:43>: Set log level to 5 from /vendor/etc/cedarc.conf
ERROR  : cedarc <DebugCheckConfig:316>: now cedarc log level:5
WARNING: cedarc <InitializeVideoDecoder:619>: warning: the nDeInterlaceHoldingFrameBufferNum is 0
[D]singleDecoderTest decode process[0/1133141]
[W][decoderTest265.cpp]singleDecoderTest line:514 decode failed,error code:-6
[D]singleDecoderTest decode process[28/1133141]
[W][decoderTest265.cpp]singleDecoderTest line:514 decode failed,error code:-6
[D]singleDecoderTest decode process[86/1133141]

[D]singleDecoderTest decode process[1127265/1133141]
offset>(size-4)
WARNING: cedarc <HevcDecoderAddPtsToList:933>:  h265 pts list is full
[D]decoderDataReady decode write[384000/192000]
[D]printfArgs    -i:/tmp/tmp.h265
[D]printfArgs    -s:[800x480]
[D]printfArgs    -f:278
[D]printfArgs    -p:5
[D]printfArgs    -o:/tmp/d5_out.yuv
output file is saved:/tmp/d5_out.yuv
~ AWVideoDecoderImpl()
Test 1 times.

=============================================
视频编码

root@ok113i:/forlinx/media# encoderTest
encoderTest version:V2.0.2022050[ 5100.284684] VE: VE real_freq=576000000
[ 5100.284684]
6
intputFile /tmp/800_480.yuv
outputFile /tmp/enc720_30p.265
outputFile  CODEC_H265
[D]singleEncoderTest             ================================
[D]singleEncoderTest             ====     CedarC  Encoder    ====
[D]singleEncoderTest             ====    singleDecoderTest    ====
[D]singleEncoderTest             ================================
[D]printfArgs    -s:800x480
[D]printfArgs    -n:1
[D]printfArgs    -f:3
[D]printfArgs    -p:1
[D]printfArgs    -r:30
[D]printfArgs    -d:800x480
sdk_memory version:V2.0.20220506
INFO   : cedarc <VeInitialize:1307>: *** ic_version = 0x1301000010210,
[D]encodeFile malloc pIonMem->vir=0xb6a63000!
new AWVideoEncoderImpl() version:V2.0.20220506
sdk_memory version:V2.0.20220506
INFO   : cedarc <VeInitialize:1307>: *** ic_version = 0x1301000010210,
ERROR  : cedarc <H265EncOpen:6246>: error: the driver do not support the ic 1667
[E][AWVidoeEncoder.cpp]init line:389 VideoEncCreate error, return[E][encoderTest.cpp]encodeFile line:412 init:ffffffff
~ AWVideoEncoderImpl()
ERROR  : cedarc <ReleaseAllocInputBuffer:456>: ReleaseAllocInputBuffer, pEncoder is NULL
[D]printfArgs    -s:800x480
[D]printfArgs    -n:1
[D]printfArgs    -f:3
[D]printfArgs    -p:1
[D]printfArgs    -r:30
[D]printfArgs    -d:800x480
output file is saved:/tmp/enc720_30p.265
Test 1 times.

编码失败,文件为0

=============================================
音频编码

root@ok113i:/forlinx/media# cp 30s.wav /tmp/test.wav
root@ok113i:/forlinx/media# audioenc_test
INFO   : cedarc <log_set_level:43>: Set log level to 3 from /vendor/etc/cedarc.conf
[2023-12-20 18:48:57] ERROR  : awplayer <ReadPluginEntry:194>: read plugin entry adecoder-15 fail!
[2023-12-20 18:48:57] ERROR  : awplayer <ReadPluginEntry:194>: read plugin entry vdecoder-9 fail!
INFO   : cedarc <CedarPluginVDInit:79>: register h264 decoder success!
INFO   : cedarc <CedarPluginVDInit:84>: register mjpeg decoder success!
INFO   : cedarc <CedarPluginVDInit:86>: register mpeg2 decoder success!
[2023-12-20 18:48:57] WARNING: awplayer <DlOpenPlugin:112>: Invalid plugin,function CedarPluginVDInit not found.
INFO   : cedarc <CedarPluginVDInit:92>: register mpeg4dx decoder success!
INFO   : cedarc <CedarPluginVDInit:79>: register mpeg4H263 decoder success!
INFO   : cedarc <CedarPluginVDInit:90>: register mpeg4Normal decoder success!
INFO   : cedarc <CedarPluginVDInit:74>: register vc1 decoder success!
INFO   : cedarc <CedarPluginVDInit:85>: register h265 decoder success!
[2023-12-20 18:48:57] ERROR  : awplayer <ReadPluginEntry:194>: read plugin entry plugin-0 fail!
[2023-12-20 18:48:57] DEBUG  : awplayer <AwStreamInit:99>: aw stream init...
[2023-12-20 18:48:57] DEBUG  : awplayer <AwMuxerInit:53>: aw muxer init ..
[2023-12-20 18:48:57] DEBUG  : awplayer <AwMuxerInit:62>: aw muxer size:4
audioenc test version:V2.0.20220506
12-20 18:48:57.953  AudioEnc(W) : AudioEncInit success
fopen /tmp/test.wav OK
fopen /tmp/test.mp3 ok
12-20 18:48:57.955  AudioEnc(E) : audio encode ERR_AUDIO_ENC_PCMUNDERFLOW
12-20 18:48:58.001  AudioEnc(E) : audio encode ERR_AUDIO_ENC_PCMUNDERFLOW
12-20 18:49:05.031  AudioEnc(E) : audio encode ERR_AUDIO_ENC_PCMUNDERFLOW
12-20 18:49:05.077  AudioEnc(E) : audio encode ERR_AUDIO_ENC_PCMUNDERFLOW
12-20 18:49:05.123  AudioEnc(E) : audio encode ERR_AUDIO_ENC_PCMUNDERFLOW
12-20 18:49:05.169  AudioEnc(E) : audio encode ERR_AUDIO_ENC_PCMUNDERFLOW
file end exit.
audioenc test run finish

=============================================
音频解码

下图是
fltest_qt_musicplayer

微信图片_20231220112009.jpg

root@ok113i:/forlinx/media# fltest_audioplayer   /forlinx/media/test.mp3
[2023-12-20 19:02:26] WARNING: awplayer <log_set_level:30>: Set log level to 3
[2023-12-20 19:02:26] ERROR  : awplayer <ReadPluginEntry:194>: read plugin entry adecoder-15 fail!
[2023-12-20 19:02:26] ERROR  : awplayer <ReadPluginEntry:194>: read plugin entry vdecoder-9 fail!
INFO   : cedarc <CedarPluginVDInit:79>: register h264 decoder success!
INFO   : cedarc <CedarPluginVDInit:84>: register mjpeg decoder success!
INFO   : cedarc <CedarPluginVDInit:86>: register mpeg2 decoder success!
[2023-12-20 19:02:26] WARNING: awplayer <DlOpenPlugin:112>: Invalid plugin,function CedarPluginVDInit not found.
INFO   : cedarc <CedarPluginVDInit:92>: register mpeg4dx decoder success!
INFO   : cedarc <CedarPluginVDInit:79>: register mpeg4H263 decoder success!
INFO   : cedarc <CedarPluginVDInit:90>: register mpeg4Normal decoder success!
INFO   : cedarc <CedarPluginVDInit:74>: register vc1 decoder success!
INFO   : cedarc <CedarPluginVDInit:85>: register h265 decoder success!
[2023-12-20 19:02:26] ERROR  : awplayer <ReadPluginEntry:194>: read plugin entry plugin-0 fail!
[2023-12-20 19:02:26] DEBUG  : awplayer <AwStreamInit:99>: aw stream init...
[2023-12-20 19:02:26] DEBUG  : awplayer <AwMuxerInit:53>: aw muxer init ..
[2023-12-20 19:02:26] DEBUG  : awplayer <AwMuxerInit:62>: aw muxer size:4
set url:/forlinx/media/test.mp3
[2023-12-20 19:02:26] DEBUG  : awplayer <XPlayerCreate:216>: XPlayerCreate.
[2023-12-20 19:02:26] DEBUG  : awplayer <LogVersionInfo:34>:
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> CedarX <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
tag   : cedarx
branch: stable_v2.8_common
commit: 967535b8ff6a073cb4f38e85a4ae5fa6008014d8
date  : Mon, 15 May 2017 01:30:22 +0000 (09:30 +0800)
author:
----------------------------------------------------------------------

xfang tinyalsa SoundDeviceCreate
[2023-12-20 19:02:26] DEBUG  : awplayer <LayerCreate_DE:1540>: libsdk_player version:V2.0.20220516, LayerCreate

(getInstance 93) version:V2.0.20220506
init chwd sucess !
(HwDisplay 279)
(hwd_init 1258)
[2023-12-20 19:02:26] DEBUG  : awplayer <LayerCreate_DE:1593>: screen:w 1024, screen:h 600 disp
sdk_memory version:V2.0.20220506
DEBUG  : ionAlloc <__GetIonMemOpsS:833>: *** get __GetIonMemOpsS ***
INFO   : cedarc <VeInitialize:1307>: *** ic_version = 0x1301000010210,
DEBUG  : cedarc <VeInitialize:1347>: *** nPhyOffset = 0x0
DEBUG  : ionAlloc <ion_alloc_open2:177>: pid: 1608, g_context = 0x274370

DEBUG  : ionAlloc <ion_alloc_open2:204>: ion alloc open ok
[2023-12-20 19:02:26] DEBUG  : awplayer <XPlayerSetVideoSurfaceTexture:597>: setVideoSurfaceTexture, surface = 0x26fc60
[2023-12-20 19:02:26] DEBUG  : awplayer <XPlayerThread:1977>: process message XPLAYER_COMMAND_SET_SURFACE.
[2023-12-20 19:02:26] DEBUG  : awplayer <SubtitleCreate:88>: ==== pCallback: 0xb67e3574, pUser: 0x26b280
[2023-12-20 19:02:26] DEBUG  : awplayer <XPlayerThread:2038>: ==== process message XPLAYER_COMMAND_SET_SUBCTRL.
[2023-12-20 19:02:26] DEBUG  : awplayer <XPlayerSetDeinterlace:718>: set deinterlace
[2023-12-20 19:02:26] DEBUG  : awplayer <XPlayerThread:2053>: ==== process message XPLAYER_COMMAND_SET_SUBCTRL.
[2023-12-20 19:02:26] DEBUG  : awplayer <XPlayerSetDataSourceUrl:462>: setDataSource(url), url='/forlinx/media/test.mp3'
[2023-12-20 19:02:26] INFO   : awplayer <XPlayerThread:1814>: process message XPLAYER_COMMAND_SET_SOURCE.
[2023-12-20 19:02:26] DEBUG  : awplayer <XPlayerPrepare:767>: prepare
[2023-12-20 19:02:26] DEBUG  : awplayer <XPlayerThread:2067>: process message XPLAYER_COMMAND_PREPARE. mPriData->mStatus: 1
[2023-12-20 19:02:26] DEBUG  : demuxComponent <DemuxThread:1792>: process message DEMUX_COMMAND_PREPARE.
[2023-12-20 19:02:26] DEBUG  : awplayer <CdxParserPrepare:778>: source uri 'file:///forlinx/media/test.mp3'
[2023-12-20 19:02:26] DEBUG  : awplayer <__FileStreamConnect:407>: (6/0/4818092) path:'file:///forlinx/media/test.mp3'
[2023-12-20 19:02:26] DEBUG  : awplayer <CdxParserCreate:668>: parser node is id3v2.
[2023-12-20 19:02:26] DEBUG  : awplayer <CdxParserCreate:717>: Good, it's 'id3v2'
[2023-12-20 19:02:26] DEBUG  : awplayer <CdxParserCreate:717>: Good, it's 'mp3'
[2023-12-20 19:02:26] WARNING: awplayer <CdxMp3ParserControl:1267>: not implement...(18)
[2023-12-20 19:02:26] DEBUG  : awplayer <PrintMediaInfo:468>: *********PrintMediaInfo begin*********
[2023-12-20 19:02:26] DEBUG  : awplayer <PrintMediaInfo:482>: fileSize = 4818092, bSeekable = 1, duration = 300016, audioNum = 1, videoNum = 0, subtitleNum = 0
[2023-12-20 19:02:26] DEBUG  : awplayer <PrintMediaInfo:520>: ***Audio[0]*** eCodecFormat = 0x3, eSubCodecFormat = 0x0, nChannelNum = 2, nBitsPerSample = 0, nSampleRate = 44100
[2023-12-20 19:02:26] DEBUG  : awplayer <PrintMediaInfo:536>: *********P[ 2124.461204] [SNDCODEC][sunxi_card_hw_params][651]:stream_flag: 0
rintMediaInfo end*********
[2023-12-20 19:02:26] DEBUG  : demuxComponent <PrintMediaInfo:468>: *********PrintMediaInfo begin*********
[2023-12-20 19:02:26] DEBUG  : demuxComponent <PrintMediaInfo:482>: fileSize = 4818092, bSeekable = 1, duration = 300016, audioNum = 1, videoNum = 0, subtitleNum = 0
[2023-12-20 19:02:26] DEBUG  : demuxComponent <PrintMediaInfo:520>: ***Audio[0]*** eCodecFormat = 0x3, eSubCodecFormat = 0x0, nChannelNum = 2, nBitsPerSample = 0, nSampleRate = 44100
[2023-12-20 19:02:26] DEBUG  : demuxComponent <PrintMediaInfo:536>: *********PrintMediaInfo end*********
[2023-12-20 19:02:26] DEBUG  : awplayer <AudioRenderCompSetAudioSink:195>: audio render component setting AudioSink
[2023-12-20 19:02:26] DEBUG  : awplayer <XPlayerPrepareAsync:747>: prepareAsync
[2023-12-20 19:02:26] DEBUG  : awplayer <XPlayerThread:2067>: process message XPLAYER_COMMAND_PREPARE. mPriData->mStatus: 4
12-20 19:02:26.531  (W) AUTPlayer info: prepare ok.

[2023-12-20 19:02:26] DEBUG  : awplayer <XPlayerStart:797>: start
[2023-12-20 19:02:26] DEBUG  : awplayer <XPlayerThread:2275>: process message XPLAYER_COMMAND_START.
[2023-12-20 19:02:26] DEBUG  : awplayer <[ 2124.569726] [SNDCODEC][sunxi_card_hw_params][651]:stream_flag: 0
PlayerStart:740>: player start
[2023-12-20 19:02:26] DEBUG  : awplayer <BaseCompPostAndWait:61>: audio decoder receive cmd: start
(Allwinner Audio Middle Layer),line(971) : Create Decoder!!=====
[2023-12-20 19:02:26] DEBUG  : awplayer <handleStart:1086>: Create libadecoder success...
(Allwinner Audio Middle Layer),line(603) : AudioDec_Installaudiolib ok
(Allwinner Audio Middle Layer),line(606) : audio decoder init start ...
(AllwinnerAlibs),line(50) :
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Audio <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
tag   : audiocodec-v1.2
branch: new
commit: 3ba65962c01cbf1280ddda19d843009b6ef8ce85
date  : Tue Jan 8 16:25:27 2019 +0800
----------------------------------------------------------------------

(AllwinnerAlibs),line(700) : ----Loading so success!
(AllwinnerAlibs),line(902) : *************pAudioStreamInfo start******************
(AllwinnerAlibs),line(903) : eCodecFormat         :id(3), name(mpeg layer-III)
(AllwinnerAlibs),line(904) : eSubCodecFormat      :0
(AllwinnerAlibs),line(905) : nChannelNum          :2
(AllwinnerAlibs),line(906) : nBitsPerSample       :16
(AllwinnerAlibs),line(907) : nSampleRate          :44100
(AllwinnerAlibs),line(908) : nAvgBitrate          :128000
(AllwinnerAlibs),line(909) : nMaxBitRate          :128000
(AllwinnerAlibs),line(910) : nFileSize            :0
(AllwinnerAlibs),line(911) : eAudioBitstreamSource:0
(AllwinnerAlibs),line(912) : eDataEncodeType      :0
(AllwinnerAlibs),line(913) : nCodecSpecificDataLen:0
(AllwinnerAlibs),line(914) : pCodecSpecificData   :(nil)
(AllwinnerAlibs),line(915) : nFlags               :0
(AllwinnerAlibs),line(916) : nBlockAlign          :0
(AllwinnerAlibs),line(917) : *************pAudioStreamInfo end  ******************
(Allwinner Audio Libs),line(27) : init successs...
(Allwinner Audio Middle Layer),line(614) : AUDIO DECODE INIT OK...0
[2023-12-20 19:02:26] DEBUG  : awplayer <BaseCompPostAndWait:61>: audio render receive cmd: start
[2023-12-20 19:02:26] INFO   : awplayer <handleStart:295>: audio render process start message.
[2023-12-20 19:02:26] DEBUG  : awplayer <initSoundDevice:478>: init sound device.
[2023-12-20 19:02:26] DEBUG  : awplayer <initSoundDevice:486>: set sound devide param, sample rate = 44100, channel num = 2.
[2023-12-20 19:02:26] DEBUG  : demuxComponent <DemuxThread:2053>: process message DEMUX_COMMAND_START.
[2023-12-20 19:02:26] WARNING: awplayer <callbackProcess:3656>: message 0x40a not handled.
======================================
|Space  key | start or pause    |
|Left   key | seek backend      |
|Right  key | seek forward      |
|Up     key | audio volume larger       |
|Down   key | audio volume small        |
======================================
[2023-12-20 19:02:26] DEBUG  : awplayer <startSoundDevice:684>: start sound device.
[2023-12-20 19:02:26] DEBUG  : awplayer <startSoundDevice:686>: audio device start end

[2023-12-20 19:02:26] DEBUG  : awplayer <CallbackProcess:2959>: first audio pts = 0
[2023-12-20 19:02:26] WARNING: awplayer <checkSampleRate:644>: sample rate change from 44100 to 44100.
[2023-12-20 19:02:26] WARNING: awplayer <checkSampleRate:646>: channel num change from 2 to 2.
[2023-12-20 19:02:26] WARNING: awplayer <checkSampleRate:648>: bitPerSample num change from 16 to 16.
[2023-12-20 19:02:26] WARNING: awplayer <checkSampleRate:650>: if need direct out put flag change from 0 to 1.
[2023-12-20 19:02:26] WARNING: awplayer <checkSampleRate:652>: data type change from 1 to 1.
[2023-12-20 19:02:26] WARNING: awplayer <checkSampleRate:671>: start sound devide again because samplaRate or channelNum change
[2023-12-20 19:02:26] INFO   : demuxComponent <DemuxThread:3226>: waiting for audio stream buffer.
[2023-12-20 19:02:26] INFO   : demuxComponent <DemuxThread:3226>: waiting for audio stream buffer.
[2023-12-20 19:02:27] INFO   : demuxComponent <DemuxThread:3226>: waiting for audio stream buffer.
[2023-12-20 19:02:27] INFO   : demuxComponent <DemuxThread:3226>: waiting for audio stream buffer.

=============================================
测试结果

视频 h264的文件能解,h265也可以解了;编码h264不正常。
音频 编码解码都可以正常运行。Sdk和测试app都可以运行,但是具体的编码格式没有详细测试。

如有错误,欢迎指正,一起学习

原贴链接:OK113i-S开发板-4视频编解码测试 | 全志在线开发者论坛
资源获取、问题讨论可以到全志在线开发者社区进行:https://www.aw-ol.com
全志及开发者最新动态可以关注全志在线微信公众号

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:/a/268952.html

如若内容造成侵权/违法违规/事实不符,请联系我们进行投诉反馈qq邮箱809451989@qq.com,一经查实,立即删除!

相关文章

再不开始写毕业论文,就要来不及了!

相信进来看这篇文章的你&#xff0c;还在为论文焦虑。 先来看1分钟的视频&#xff0c;对于要写论文的你来说&#xff0c;绝对有所值&#xff01; 还在为写论文焦虑&#xff1f;免费AI写作大师来帮你三步搞定 第一步&#xff1a;输入关键信息 第二步&#xff1a;生成大纲 稍等片…

Mentor USB Controller系列之脚本生成RTL代码

进入到工具安装目录下&#xff1a;比如/digital/usb/sim/ 在此目录下运行脚本&#xff1a;./config.tcl即可出现如下界面&#xff0c;这个生成默认load的就是当前配置的 配置解析&#xff1a; 1. data width&#xff1a;安装utmi接口协议&#xff0c;usb2.0的传输位宽分别8bi…

数据结构:KMP算法

1.何为KMP算法 KMP算法是由Knuth、Morris和Pratt三位学者发明的&#xff0c;所以取了三位学者名字的首字母&#xff0c;叫作KMP算法。 2.KMP的用处 KMP主要用于字符串匹配的问题&#xff0c;主要思想是当出现字符串不匹配时&#xff0c;我们可以知道一部分之前已经匹配过的的文…

18.仿简道云公式函数实战-数学函数-AVERAGE

1. AVERAGE函数 AVERAGE 函数可用于计算一组数值的算术平均值。 2. 函数用法 AVERAGE(数字1,数字2,...) 3. 函数示例 AVERAGE(1,3,5)&#xff0c;返回结果为 3 4. 代码实战 首先我们在function包下创建math包&#xff0c;在math包下创建AvgFunction类&#xff0c;代码如…

戴口罩监测识别摄像机

随着冬季的到来&#xff0c;安分一段时间的病毒也慢慢的爆发&#xff0c;口罩作为一种重要的防护物品受到了广泛关注。为了加强对口罩佩戴情况的监测和识别&#xff0c;许多场所开始引入了戴口罩监测识别摄像机。这种摄像机通过图像识别技术可以自动检测出人们是否佩戴口罩&…

JAVA版的鸿鹄云商B2B2C:多商家入驻直播商城系统特性解析 商城免 费搭建

鸿鹄云商 b2b2c产品概述 【b2b2c平台】&#xff0c;以传统电商行业为基石&#xff0c;鸿鹄云商支持“商家入驻平台自营”多运营模式&#xff0c;积极打造“全新市场&#xff0c;全新 模式”企业级b2b2c电商平台&#xff0c;致力干助力各行/互联网创业腾飞并获取更多的收益。从消…

Php与Apache环境配置

Php与Apache环境配置 1.[Apache的下载安装&#xff1a;](https://blog.csdn.net/qq_42194657/article/details/102933368)2、PHP下载&#xff1a;2.1、下载地址&#xff1a;[http://php.net/downloads.php](http://php.net/downloads.php)2.1、版本选择&#xff1a;如果是与 Ap…

文本编辑器:Sublime Text (安装+汉化)

下载 Sublime Text - Text Editing, Done Righthttps://www.sublimetext.com/Sublime Text官网 支持mac&#xff0c;Linux&#xff0c;Windows 安装 选择安装路径 next install 选择安装位置安装就行了 汉化 进入了主界面按 CTRLshiftp 输入install 选择第一个 弹窗就按确…

系列六(实战)、发送 接收异步消息(Java操作RocketMQ)

一、发送 & 接收异步消息 1.1、概述 异步消息通常应用在对响应时间比较敏感的业务中&#xff0c;即发送端不能容忍长时间的等待Broker的响应&#xff0c;发送完成后会立即有一个异步消息通知。 1.2、Demo02MQTestApp /*** Author : 一叶浮萍归大海* Date: 2023/12/25 09…

养车平台源码定制化需求指南:10种实用功能一览

作为养车平台源码定制化领域的专家&#xff0c;我将向您介绍10种实用功能&#xff0c;帮助您更好地满足定制化需求&#xff0c;并提升用户体验。 1. 个性化主题定制 定制化养车平台源码可轻松实现个性化主题定制&#xff0c;包括颜色、字体、背景等&#xff0c;提供多样化选择…

MsSQL中的索引到底长啥样,查找过程怎么进行

参考文章一 参考文章二 建表 mysql> create table user(-> id int(10) auto_increment,-> name varchar(30),-> age tinyint(4),-> primary key (id),-> index idx_age (age)-> )engineinnodb charsetutf8mb4;insert into user(name,age) values(张三,…

数据安全:保护个人隐私和企业机密的关键

在当今数字化时代&#xff0c;数据已经成为了一种宝贵的资源。无论是个人还是企业&#xff0c;都离不开数据的支持。然而&#xff0c;随着数据的不断增长和广泛应用&#xff0c;数据安全问题也日益突出。数据泄露、黑客攻击、网络诈骗等安全事件层出不穷&#xff0c;给个人和企…

hash长度扩展攻击

作为一个信息安全的人&#xff0c;打各个学校的CTF比赛是比较重要的&#xff01; 最近一个朋友发了道题目过来&#xff0c;发现有道题目比较有意思&#xff0c;这里跟大家分享下 这串代码的大致意思是&#xff1a; 这段代码首先引入了一个名为"flag.php"的文件&am…

NFC读卡------ci522

1、NFC及卡片 NFC是近距离无线通讯技术&#xff0c;是一种非接触式识别和互联技术&#xff0c;可以在移动设备、消费类电子产品、PC和智能控件工具间进行近距离无线通信。NFC提供了一种简单、触控式的解决方案&#xff0c;可以让消费者简单直观地交换信息、访问内容与服务。 …

Java内存区域与内存溢出异常

Java与C++之间有一堵由内存分配和垃圾收集技术所围成的高墙,墙外面的人想进去,墙里面的人却想出来。 2.1 概述 对于从事C、C++程序开发的开发人员来说,在内存管理领域,他们即是拥有最高权力的“皇帝”,又是从事最基础工作的劳动人民——即拥有每一个对象的“所有权”,又…

用栈和队列分别实现求解迷宫问题(c++,c)

求解迷宫问题&#xff1a;给定一个迷宫要求输出其路径。 给出的迷宫如下&#xff08;可自行更改&#xff09; 可用两种方法实现1.栈2.队列 用栈只能找到路但路不是最简的最简的要用队列实现 用栈实现&#xff08;解析都在代码里了&#xff09; c&#xff08;实现&#xff0…

rhel7/centos7升级openssh到openssh9.5-p1

openssh9.3-p2以下版本有如下漏洞 在rhel7.4/7.5/7.6均做过测试。 本文需要用到的rpm包如下&#xff1a; https://download.csdn.net/download/kadwf123/88652359 升级步骤 1、升级前启动telnet ##升级前启动telnet服务 yum -y install telnet-server yum -y install xinetd…

四、UART_阻塞发送中断接收

1、开发环境 (1)Keil MDK: V5.38.0.0 (2)MCU: mm320163D7P 2、实验目的&原理图 2.1、实验目的 (1)上位机串口助手给MCU发送信息&#xff0c;MCU串口通过通过串口助手接收后&#xff0c;将接收到的内容通过串口助手发送到上位机。 (2)串口在whil循环中每隔1秒发送一次…

制作自己的 Docker 容器

软件开发最大的麻烦事之一&#xff0c;就是环境配置。用户必须保证操作系统的设置&#xff0c;各种库和组件的安装&#xff0c;只有它们都正确&#xff0c;软件才能运行。docker从根本上解决问题&#xff0c;软件安装的时候&#xff0c;把原始环境一模一样地复制过来。 以 koa-…

Python 序列之列表

系列文章目录 Python序列之元组 Python序列之列表 系列文章目录[TOC](Python序列之列表) 前言一、序列是什么&#xff1f;二、列表1.列表简介2.列表创建&#xff08;1&#xff09;[]创建&#xff08;2&#xff09;list创建&#xff08;3&#xff09;range()创建整数列表&#…