Skip to content

多路视频编码同时录制会导致设备死机 #897

@Shine6Z

Description

@Shine6Z
  • 录制命令
gst-launch-1.0 -e v4l2src device=/dev/video11 io-mode=2 ! 'video/x-raw,format=NV12,width=1920,height=1080,framerate=30/1' ! mpph264enc ! h264parse ! mp4mux ! filesink location=/data/output_11.mp4
gst-launch-1.0 -e v4l2src device=/dev/video10 io-mode=2 ! 'video/x-raw,format=NV12,width=1920,height=1080,framerate=30/1' ! mpph264enc ! h264parse ! mp4mux ! filesink location=/data/output_10.mp4
gst-launch-1.0 -e v4l2src device=/dev/video9 io-mode=2 ! 'video/x-raw,format=NV12,width=1920,height=1080,framerate=30/1' ! mpph264enc ! h264parse ! mp4mux ! filesink location=/data/output_9.mp4
gst-launch-1.0 -e v4l2src device=/dev/video8 io-mode=2 ! 'video/x-raw,format=NV12,width=1920,height=1080,framerate=30/1' ! mpph264enc ! h264parse ! mp4mux ! filesink location=/data/output_8.mp4
gst-launch-1.0 -e v4l2src device=/dev/video3 io-mode=2 ! 'video/x-raw,format=NV12,width=1920,height=1080,framerate=30/1' ! mpph264enc ! h264parse ! mp4mux ! filesink location=/data/output_3.mp4
gst-launch-1.0 -e v4l2src device=/dev/video2 io-mode=2 ! 'video/x-raw,format=NV12,width=1920,height=1080,framerate=30/1' ! mpph264enc ! h264parse ! mp4mux ! filesink location=/data/output_2.mp4
gst-launch-1.0 -e v4l2src device=/dev/video1 io-mode=2 ! 'video/x-raw,format=NV12,width=1920,height=1080,framerate=30/1' ! mpph264enc ! h264parse ! mp4mux ! filesink location=/data/output_1.mp4
gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=2 ! 'video/x-raw,format=NV12,width=1920,height=1080,framerate=30/1' ! mpph264enc ! h264parse ! mp4mux ! filesink location=/data/output_0.mp4
  • 死机前内核崩溃栈
[ 2267.776471] rga: 97433  97442 : RGA_MMU unsupported memory larger than 4G!
[ 2267.776504] rga: 97433  97442 : scheduler core[4] unsupported mm_flag[0x0]!
[ 2267.776516] rga: 97433  97442 : ID[3675]: job buffer map failed!
[ 2267.776525] rga: 97433  97442 : ID[3675]: dst channel map job buffer failed!
[ 2267.776709] rga: 97433  97442 : ID[3675]: failed to map buffer
[ 2267.776721] rga: 97433  97442 : ID[3675]: rga_job_commit: failed to map job info
[ 2267.776799] rga: 97433  97442 : ID[3675]: task[0] job_commit failed.
[ 2267.776810] rga: 97433  97442 : ID[3675]: request commit failed!
[ 2267.776823] ------------[ cut here ]------------
[ 2267.776830] WARNING: CPU: 2 PID: 97442 at kernel/fork.c:790 __mmdrop+0x124/0x160
[ 2267.776849] Modules linked in: bcmdhd(O)
[ 2267.776863] CPU: 2 PID: 97442 Comm: v4l2src0:src Tainted: G           O       6.1.99 #1
[ 2267.776873] Hardware name: CPdevice Mega1 Board (DT)
[ 2267.776880] pstate: 60400009 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[ 2267.776890] pc : __mmdrop+0x124/0x160
[ 2267.776900] lr : rga_request_put_current_mm.part.0+0x6c/0x7c
[ 2267.776912] sp : ffffffc00d59bae0
[ 2267.776918] x29: ffffffc00d59bae0 x28: ffffff8142085700 x27: 0000000000000000
[ 2267.776933] x26: 0000000000000000 x25: 0000000000000000 x24: ffffff8125988600
[ 2267.776946] x23: ffffff812ae19200 x22: ffffff81078ed088 x21: ffffff810d1d2d80
[ 2267.776960] x20: ffffff810d1d2d80 x19: ffffff810d1d2d80 x18: 0000000000000030
[ 2267.776974] x17: 6c6961662074696d x16: 6d6f632074736575 x15: ffffffffffffffff
[ 2267.776987] x14: 0000000000000000 x13: 2164656c69616620 x12: 74696d6d6f632074
[ 2267.777001] x11: 736575716572203a x10: ffffffc00a7682e8 x9 : ffffffc008897cc0
[ 2267.777014] x8 : ffffffc00a6b82e8 x7 : ffffffc00a7682e8 x6 : 0000000000000000
[ 2267.777028] x5 : 0000000000017ff4 x4 : 0000000000000000 x3 : ffffff81078ed088
[ 2267.777041] x2 : 0000000000000001 x1 : ffffffc00a7be3e0 x0 : ffffff810d1d2d80
[ 2267.777054] Call trace:
[ 2267.777061]  __mmdrop+0x124/0x160
[ 2267.777071]  rga_request_put_current_mm.part.0+0x6c/0x7c
[ 2267.777081]  rga_request_submit+0x434/0x690
[ 2267.777090]  rga_ioctl_blit+0xb8/0x2b0
[ 2267.777101]  rga_ioctl+0x410/0xe8c
[ 2267.777111]  __arm64_sys_ioctl+0xb4/0xdc
[ 2267.777124]  invoke_syscall+0x4c/0x114
[ 2267.777134]  el0_svc_common.constprop.0+0x54/0x180
[ 2267.777144]  do_el0_svc+0x20/0x2c
[ 2267.777154]  el0_svc+0x24/0xa4
[ 2267.777164]  el0t_64_sync_handler+0xb0/0xb4
[ 2267.777173]  el0t_64_sync+0x174/0x178
[ 2267.777183] 
               PC: 0xffffffc008046af4:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions