sample_virvi2venc2muxer 用例报错

按照教程编译和运行mpp的例程,选了一个生成mp4的sample。但是运行会报错。摄像头使用camerademo可以拍照片,但是录mp4就coredump了。板子没有屏,看起来是代码依赖了disp?

root@TinaLinux:/mnt/extsd/bin# ./sample_virvi2venc2muxer -path sample_vi2venc2mu
xer.conf
sample_virvi2venc2muxer running!
I0101 00:12:49.674534 1167 sample_vi2venc2muxer.c:65] &pContext->mMuxerFileListArray[0][0xb6f4e9b8], &pContext->mMuxerFileListArra y[1][0xb6f4e9c0]
I0101 0[ 759.345587] VE: before freq=300000000
0:12:49.677662 1167 confparser.[ 759.352407] VE: real freq=300000000
c:60] l oad conf file sample_vi2venc2muxer.conf ok!
I0101 00:12:49.677822 1167 sample_vi2venc2muxer.c:137] vip pDev: 0, veChn: 0
I0101 00:12:49.677915 1167 sample_vi2venc2muxer.c:141] src Width: 1920, srcHeight: 1080
I0101 00:12:49.677994 1167 sample_vi2venc2muxer.c:145] dst Width: 1280, dstHeight: 720
I0101 00:12:49.678073 1167 sample_vi2venc2muxer.c:211] src PixFmt=32, ColorSpace=31
I0101 00:12:49.678139 1167 sample_vi2venc2muxer.c:214] Sat urationChange=0
I0101 00:12:49.678490 1167 sample_vi2venc2muxer.c:275] H.2 64
I0101 00:12:49.678606 1167 sample_vi2venc2muxer.c:300] vip p:0, frame rate:20, bitrate:1572864, video_duration=0, test_time=20, profile=2
I0101 00:12:49.678745 1167 sample_vi2venc2muxer.c:333] mir ror:0, Color2Grey:0, RoiNum:0, RoiQp:50, RoiBgFrameRate Enable:0 Attenuation:3, IntraRefreshBlockNum:0, OrlNum:0VbvBufferSize:0, VbvThreshSize:0
I0101 00:12:49.678844 1167 sample_vi2venc2muxer.c:344] ven c crop enable:0, X:0, Y:0, Width:1280, Height:720
I0101 00:12:49.678914 1167 sample_vi2venc2muxer.c:347] Vui TimingInfoPresentFlag:0
I0101 00:12:49.678979 1167 sample_vi2venc2muxer.c:350] mVe Freq:0 MHz
I0101 00:12:49.679046 1167 sample_vi2venc2muxer.c:355] Onl ineEnable: 0, OnlineShareBufNum: 2
I0101 00:12:49.679111 1167 sample_vi2venc2muxer.c:361] ViD ropFrameNum: 50
I0101 00:12:49.679172 1167 sample_vi2venc2muxer.c:371] wdr _en: 0
I0101 00:12:49.679234 1167 sample_vi2venc2muxer.c:374] Ena bleGdc: 0
I0101 00:12:49.679309 1167 sample_vi2venc2muxer.c:378] Enc ppEnable: 1, IspAndVeLinkageEnable: 1
I0101 00:12:49.679384 1167 sample_vi2venc2muxer.c:383] Sup erFrm Mode: -1, I:0, P:0
I0101 00:12:49.679551 1167 sample_vi2venc2muxer.c:410] Bit sClipParam: 1 1 {-0.50,0.50}, {-0.30,0.30}, {-0.30,0.30}, {-0.50,0.50}, {0.40,0. 70}
I0101 00:12:49.679690 1167 sample_vi2venc2muxer.c:433] AeD iffParam: 1 40 [5,100] [0.10,0.60], [20,25], [35,50]
I0101 00:12:49.679842 1167 sample_vi2venc2muxer.c:2066] ViDropFrameNu m=50
I0101 00:12:49.679955 1167 mpi_sys.c:840] <AW_MPI_SYS_SetConf> kfctmpdir is [/tmp]

Media Process Platform<<<<<<<<<<<<<<<<<<<<<<<<<<<<
modName : MPP-Platform
tag : V1.0 Release
branch: v5-dev
commit: 4eed413532ad87725895a8cb1ba75e22fc328233
date : 20170725
author: jenkins
iniparser: cannot open /etc/cedarx.conf
iniparser: cannot open /vendor/etc/cedarx.conf
I0101 00:12:49.690189 1167 mpi_sys.c:1280] <AW_MPI_SYS_Init> IS P init
[ISP]>>>>>>>>>>>>>>>>>>>> ISP VERSION INFO <<<<<<<<<<<<<<<<<<<
IPCORE: ISP600
branch: libisp-dev
commit: 14df8348718d093707641fea73eba7db962885f5
date : Thu Jul 14 15:40:38 2022 +0800
author: mayifei@allwinnertech.com


I0101 00:12:49.690936 1167 mpi_sys.c:1282] <AW_MPI_SYS_Init> IS P init done
INFO : cedarc VeInitialize:1185: *** ic_version = 0x1302000023010,
I0101 00:12:49.705098 1167 hwdisplay.c:84] <hw_display_init>
I0101 00:12:49.705264 1167 hwdisplay.c:993] <hwd_init> (hwd_init 993)
I0101 00:12:49.705460 1167 hwdisplay.c:1048] <hwd_init> ret[0][2, 0]ch[0]lyl[0] init: enable[0], screenwin[0,0, 0x0], zorder[0], alpha[mode:0, val ue:0]
I0101 00:12:49.707408 1167 alsa_interface.c:701] open mixer:hw:0
I0101 00:12:49.778536 1167 alsa_interface.c:736] alsa _elem:ADC1 ADC2 swap
I0101 00:12:49.778687 1167 alsa_interface.c:736] alsa _elem:ADC1 volume
I0101 00:12:49.778768 1167 alsa_interface.c:736] alsa _elem:ADC2 volume
I0101 00:12:49.778831 1167 alsa_interface.c:736] alsa _elem:ADCDRC
I0101 00:12:49.778890 1167 alsa_interface.c:736] alsa _elem:ADCHPF
I0101 00:12:49.778947 1167 alsa_interface.c:736] alsa _elem:DAC volume
I0101 00:12:49.779001 1167 alsa_interface.c:736] alsa _elem:DACDRC
I0101 00:12:49.779054 1167 alsa_interface.c:736] alsa _elem:DACHPF
I0101 00:12:49.779116 1167 alsa_interface.c:736] alsa _elem:LINEIN
I0101 00:12:49.779174 1167 alsa_interface.c:736] alsa _elem:LINEINL gain volume
I0101 00:12:49.779227 1167 alsa_interface.c:736] alsa _elem:LINEINR gain volume
I0101 00:12:49.779281 1167 alsa_interface.c:736] alsa _elem:LINEOUT
I0101 00:12:50.109610 1167 alsa_interface.c:736] alsa _elem:LINEOUT Output Select
I0101 00:12:50.109876 1167 alsa_interface.c:736] alsa _elem:LINEOUT volume
I0101 00:12:50.110020 1167 alsa_interface.c:756] set playback vol_val to value: 27
I0101 00:12:50.110106 1167 alsa_interface.c:736] alsa _elem:MIC1
I0101 00:12:50.110282 1167 alsa_interface.c:736] alsa _elem:MIC1 Input Select
I0101 00:12:50.110371 1167 alsa_interface.c:736] alsa _elem:MIC1 gain volume
I0101 00:12:50.110443 1167 alsa_interface.c:736] alsa _elem:MIC2
I0101 00:12:50.110506 1167 alsa_interface.c:736] alsa _elem:MIC2 Input Select
I0101 00:12:50.110563 1167 alsa_interface.c:736] alsa _elem:MIC2 gain volume
I0101 00:12:50.110618 1167 alsa_interface.c:736] alsa _elem:SPK
I0101 00:12:50.110673 1167 alsa_interface.c:736] alsa _elem:digital volume
I0101 00:12:50.110856 1167 alsa_interface.c:736] alsa _elem:rx sync mode
I0101 00:12:50.110937 1167 alsa_interface.c:736] alsa _elem:tx hub mode
E0101 00:12:50.111013 1167 alsa_interface.c:970] aec_elem_audio_codec_hub_mode:tx hub mode-1
E0101 00:12:50.111118 1167 alsa_interface.c:853] aec_elem_sync_mode_switch:rx sync mode-1
I0101 00:12:50.111210 1167 alsa_interface.c:701] open mixer:hw:1
I0101 00:12:50.111824 1167 alsa_interface.c:736] alsa _elem:loopback debug
I0101 00:12:50.111955 1167 alsa_interface.c:736] alsa _elem:rx sync mode
I0101 00:12:50.112030 1167 alsa_interface.c:736] alsa elem:tx hub mode
E0101 00:12:50.112095 1167 alsa_interface.c:993] aec_elem_daudio0_hub_mode:tx hub mode-1
E0101 00:12:50.112190 1167 alsa_interface.c:1016] aec_elem_daudio0_loopback_en:loopback debug-1
E0101 00:12:50.112315 1167 alsa_interface.c:853] aec_elem_sync_mode_switch:rx sync mode-1
I0101 00:12:50.112897 1167 sample_vi2venc2muxer.c:723] fmt:0x0, fd:10, FallocateLen:0, callback_out_flag:0
[ISP]video device name is vin
[ 760.018027] [VIN]ve_online close
video0
[ISP]open video device[0], detect isp0 success!
I0101 00:12:50.113254 1167 sample_vi2venc2muxer.c:1521] vipp u se 3 v4l2 buffers, colorspace: 0x1f
I0101 00:12:50.113354 1167 sample_vi2venc2muxer.c:1524] wdr_mo de 0
I0101 00:12:50.113428 1167 media_debug.c:45] MPP_DEDIA_DEBUG_FILE_PATH=(null)
I0101 00:12:50.113783 1167 videoInputHw.c:942] <videoInputHw_SetChn Attr> ViCh[0] update width:1920(1920), height:1080(1088)
[ISP]video0 fd[10] ve_online_en=0, dma_buf_num=0
[ISP]open isp device[0] success!
[ISP_WARN]open /mnt/extsd/isp0_1920_1088_20_ctx_saved.bin failed, err:No such fi le or directory.
[ISP]prefer isp config: [gc2053_mipi], 1920x1088, 20, 0, 0
[ISP]find gc2053_mipi_1920_1088_20_0 [gc2053_mipi_isp600_20220511_164617_vlc4_da y] isp config
[ISP]create isp0 server thread!
I0101 [ 760.099156] VE: before freq=300000000
00:12:50.399728 1167 mpi_vi.c:1[ 760.104387] VE: real freq=300000000
018] <AW_MPI_VI_CreateVir Chn> we allow to create virCh[ 760.114281] VE: before freq=300000000
n[0] in disable status of vipp[0[ 760.120846] VE: real freq=300000000
]
I0101 00:12:50.400047 1167 VideoVirVi_Component.c:1160] VideoVirvi component Init! thread_id[0xb6b85d50]
I0101 00:12:50.442530 1167 sample_vi2venc2muxer.c:1076] pixfmt:0x20, colorSpace:0x1f
I0101 00:12:50.442684 1167 sample_vi2venc2muxer.c:1078] DropFrameNum:0
I0101 00:12:50.442767 1167 sample_vi2venc2muxer.c:1240] venc set Rcmode=2
I0101 00:12:50.443552 1167 VideoEnc_Component.c:7042] create VideoEnc threadId:0xb6248d50
I0101 00:12:50.443711 1167 VideoEnc_Component.c:5422] set VencChn[0] Comp StateIdle
760.191690] [DISP] disp_mgr_set_layer_config,line:1504:C MP P_DEDIA_D
[ 760.199940] NULL hdl!
EBUG_FILE_PATH=(null)
I0101 00:12:50.444029 1171 VideoEnc_Component.c:1110] Venc Chn[0] Create VeType=96
iniparser: cannot open /etc/cedarc.conf
iniparser: cannot open (null)
I0101 00:12:50.444475 1170 videoInputHw.c:4787] <VideoInputHw_CapThr ead> loop VideoInputHw_CapThread vipp_id = 0, buf_num=3.
iniparser: cannot open /etc/cedarc.conf
INFO : cedarc <cdc_log_set_level:43>: Set log level to 3 from /vendor/etc/ceda rc.conf
WARNING: cedarc LogVersionInfo:44:

Cedar Codec <<<<<<<<<<<<<<<<<<<<<<<<<<<<
tag :
branch: tina-v853-dev
commit: ee230a47e5a2392ec315795121c2d112492fac1c
date : Fri Jul 22 10:37:50 2022 +0800
author: wuguanjian
change-id : I28fe0c31c718f097d61ad6bdbcb4cb5df0bd3575
release_author : lichaopdc
patch :


INFO : cedarc VeInitialize:1185: *** ic_version = 0x1302000023010,
DEBUG : cedarc VeInitialize:1228: *** nPhyOffset = 0x0, bSoleResetVe = 1
DEBUG : cedarc VeSetSpeed:1750: *** set ve freq to 400 Mhz ***
DEBUG : cedarc VeInitialize:1283: ve init ok

DEBUG : ionAlloc <__GetIonMemOpsS:965>: *** get __GetIonMemOpsS ***
DEBUG : ionAlloc <ion_alloc_open:140>: begin ion_alloc_open

DEBUG : ionAlloc <ion_alloc_open:173>: get offset by ve
INFO : cedarc VeInitialize:1185: *** ic_version = 0x1302000023010,
DEBUG : cedarc VeInitialize:1228: *** nPhyOffset = 0x0, bSoleResetVe = 1
DEBUG : cedarc VeSetSpeed:1750: *** set ve freq to 400 Mhz ***
DEBUG : cedarc VeInitialize:1283: ve init ok

DEBUG : ionAlloc <ion_alloc_open:182>: ** phy offset = 0
DEBUG : cedarc VeRelease:1350: ve release ok

DEBUG : cedarc H264EncOpenVer2:9424: icverion = 0x23010, bIsRegVerE230 = 1
DEBUG : cedarc CdcMessageQueueCreate:47: nMessageSize = 20
I0101 00:12:50.473907 1167 sample_vi2venc2muxer.c:1291] crea te venc channel[0] success!
I0101 00:12:50.474057 1167 sample_vi2venc2muxer.c:1324] set venc framerate: src 20fps, dst 20fps
I0101 00:12:50.474190 1167 VideoEnc_Component.c:3961] vencChn[0] set new framerate:20
E0101 00:12:50.474366 1167 glog_helper.cpp:16] *** Aborted at 770 (unix time) t ry “date -d @770” if you are using GNU date ***
E0101 00:12:50.474948 1167 glog_helper.cpp:16] PC: @ 0x0 (unknown)
[ 760.478099] 5000000.disp supply vcc-pd not found, using dummy regulator
[ 760.485768] 5000000.disp supply vcc-lcd not found, using dummy regulator
[ 760.997136] [DISP] de_fcm_set_para,line:491:
[ 761.001785] fcm lut 0 not find, auto retry after init
[ 761.007858] [DISP] de_fcm_set_para,line:491:
[ 761.012525] fcm lut 0 not find, auto retry after init
Segmentation fault (core dumped)

root@TinaLinux:/mnt/extsd# gdb -c coredump-isp_thread-1142-11-6017
GNU gdb (GDB) 10.1
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type “show copying” and “show warranty” for details.
This GDB was configured as “arm-openwrt-linux”.
Type “show configuration” for configuration details.
For bug reporting instructions, please see:
https://www.gnu.org/software/gdb/bugs/.
Find the GDB manual and other documentation resources online at:
http://www.gnu.org/software/gdb/documentation/.

For help, type “help”.
Type “apropos word” to search for commands related to “word”.

warning: Can’t open file /dmabuf (deleted) during file-backed mapping note processing
[New LWP 1143]
[New LWP 1144]
[New LWP 1145]
[New LWP 1142]
[New LWP 1146]
Core was generated by `./sample_virvi2venc2muxer -path sample_vi2venc2muxer.conf’.
Program terminated with signal SIGSEGV, Segmentation fault.
–Type for more, q to quit, c to continue without paging–
#0 0xb6f13ce0 in ?? ()
[Current thread is 1 (LWP 1143)]
(gdb)

经过测试发现确实有问题,可能是某部分依赖缺少导致的,我们会尽快解决

好的,感谢,这个是因为无屏吗?我先加上屏幕可以跑不?

这个测试用例仅使用摄像头,录制视频并封装成MP4文件,我查看了相关文件,代码没有问题,是由于缺少了依赖导致的。

好的,感谢。麻烦尽快帮忙处理一下。

我也遇到了同样问题!!!!!!!!!!

遇到同样的问题。 什么时候能解决啊?