您尚未登录。

楼主 #1 2021-04-21 15:21:51

无痕
会员
注册时间: 2021-02-04
已发帖子: 28
积分: 10

ov2640在荔枝派上使用ffmpeg录制视频报以下错误,在虚拟机上运行则不会。

内核:zero.5.2-y

运行命令:ffmpeg -S 10 -f video4linux2 -s 800x600 -r 30 -i /dev/video0 test.avi

报错log:

[  570.389211] ffmpeg: page allocation failure: order:8, mode:0xcc0(GFP_KERNEL), nodemask=(null)
[  570.397874] CPU: 0 PID: 216 Comm: ffmpeg Not tainted 5.2.0-licheepi-zero #6
[  570.404829] Hardware name: Allwinner sun8i Family
[  570.409563] [<c010ec34>] (unwind_backtrace) from [<c010b6cc>] (show_stack+0x10/0x14)
[  570.417311] [<c010b6cc>] (show_stack) from [<c06cc540>] (dump_stack+0x94/0xa8)
[  570.424536] [<c06cc540>] (dump_stack) from [<c01fa62c>] (warn_alloc+0xc8/0x16c)
[  570.431844] [<c01fa62c>] (warn_alloc) from [<c01fb1bc>] (__alloc_pages_nodemask+0xa4c/0xd50)
[  570.440276] [<c01fb1bc>] (__alloc_pages_nodemask) from [<c0113eb4>] (__dma_alloc_buffer+0x38/0x184)
[  570.449314] [<c0113eb4>] (__dma_alloc_buffer) from [<c011468c>] (remap_allocator_alloc+0x34/0x8c)
[  570.458177] [<c011468c>] (remap_allocator_alloc) from [<c01141ac>] (__dma_alloc+0x180/0x260)
[  570.466605] [<c01141ac>] (__dma_alloc) from [<c0114308>] (arm_dma_alloc+0x40/0x48)
[  570.474169] [<c0114308>] (arm_dma_alloc) from [<c017bcc8>] (dma_alloc_attrs+0x100/0x110)
[  570.482259] [<c017bcc8>] (dma_alloc_attrs) from [<c053853c>] (vb2_dc_alloc+0x64/0x104)
[  570.490178] [<c053853c>] (vb2_dc_alloc) from [<c0531dec>] (__vb2_queue_alloc+0x184/0x404)
[  570.498353] [<c0531dec>] (__vb2_queue_alloc) from [<c05325a4>] (vb2_core_reqbufs+0x2ac/0x404)
[  570.506872] [<c05325a4>] (vb2_core_reqbufs) from [<c0535d9c>] (vb2_ioctl_reqbufs+0x74/0x9c)
[  570.515222] [<c0535d9c>] (vb2_ioctl_reqbufs) from [<c051038c>] (__video_do_ioctl+0x24c/0x448)
[  570.523743] [<c051038c>] (__video_do_ioctl) from [<c0512334>] (video_usercopy+0x24c/0x514)
[  570.532004] [<c0512334>] (video_usercopy) from [<c0226f6c>] (do_vfs_ioctl+0xac/0x8f4)
[  570.539830] [<c0226f6c>] (do_vfs_ioctl) from [<c02277e8>] (ksys_ioctl+0x34/0x5c)
[  570.547222] [<c02277e8>] (ksys_ioctl) from [<c0101000>] (ret_fast_syscall+0x0/0x54)
[  570.554867] Exception stack(0xc12f9fa8 to 0xc12f9ff0)
[  570.559916] 9fa0:                   00055250 00055a80 00000003 c0145608 bed4e210 b58961b1
[  570.568084] 9fc0: 00055250 00055a80 00000000 00000036 00055a90 bed4e2a8 32315559 00055a80
[  570.576249] 9fe0: 00000001 bed4dedc b6ef2540 b58961b8
[  570.581423] Mem-Info:
[  570.583717] active_anon:370 inactive_anon:3 isolated_anon:0
[  570.583717]  active_file:2138 inactive_file:846 isolated_file:32
[  570.583717]  unevictable:0 dirty:1 writeback:126 unstable:0
[  570.583717]  slab_reclaimable:245 slab_unreclaimable:1141
[  570.583717]  mapped:1356 shmem:20 pagetables:46 bounce:0
[  570.583717]  free:7096 free_pcp:0 free_cma:0
[  570.615763] Node 0 active_anon:1480kB inactive_anon:12kB active_file:8552kB inactive_file:3384kB unevictable:0kB isolated(anon):0kB isolated(file):128kB mapped:5424kB dirty:4kB writeback:504kB shmem:80kB writeback_tmp:0kB unstable:0kB all_unreclaimable? no
[  570.638434] Normal free:28384kB min:924kB low:1152kB high:1380kB active_anon:1480kB inactive_anon:12kB active_file:8552kB inactive_file:3384kB unevictable:0kB writepending:512kB present:64036kB managed:54572kB mlocked:0kB kernel_stack:312kB pagetables:184kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB
[  570.665593] lowmem_reserve[]: 0 0 0
[  570.669093] Normal: 168*4kB (M) 80*8kB (UM) 30*16kB (UM) 73*32kB (UM) 63*64kB (UM) 28*128kB (UM) 27*256kB (UM) 19*512kB (U) 0*1024kB 0*2048kB 0*4096kB = 28384kB
[  570.683451] 3038 total pagecache pages
[  570.687196] 0 pages in swap cache
[  570.690517] Swap cache stats: add 0, delete 0, find 0/0
[  570.695732] Free swap  = 0kB
[  570.698619] Total swap = 0kB
[  570.701495] 16009 pages RAM
[  570.704284] 0 pages HighMem/MovableOnly
[  570.708121] 2366 pages reserved
[  570.711278] sun6i-csi 1cb4000.csi: dma_alloc_coherent of size 720896 failed

请问为什么会出现这个错误:ffmpeg: page allocation failure: order:8, mode:0xcc0(GFP_KERNEL), nodemask=(null)
有什么办法可以解决呢?

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn