Skip to content

在已有工程中添加video_capture 运行现象不正确 (AUD-6599) #22

@Lczyyds

Description

@Lczyyds

Checklist

  • Checked the issue tracker for similar issues to ensure this is not a duplicate.
  • Provided a clear description of your suggestion.
  • Included any relevant context or examples.

Issue or Suggestion Description

用 idf.py create-project-from-example "espressif/esp_capture=0.7.0:video_capture 命令创建的示例工程是可以正常运行,并在SD卡保存一段10s的Mp4文件,但是我将video_capture的依赖文件、代码等添加到我的工程中,可以生成mp4文件,但是只有音频,没有视频。我将我的工程中的sdkconfig文件替换为video_capture 例程中的video的sdkconfig文件,重新编译烧录就可以了。因为两个工程的sdkconfig文件差异项太多,一个一个修改对比复现,工程会完全重新编译,消耗时间太长,我想请问sdkconfig里的哪些配置,是必须要修改的?
以下是我原来sdkconfig的不能生成视频的日志,其中的E (36516) cam_hal: FB-SIZE: 107520 != 153600日志,好像并不总是出现
`
ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0x1 (POWERON),boot:0x8 (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fce2810,len:0x1564
load:0x403c8700,len:0x4
load:0x403c8704,len:0xd24
load:0x403cb700,len:0x2ed4
entry 0x403c8928
I (27) boot: ESP-IDF v5.4.1-743-gaed8bdc8dd 2nd stage bootloader
I (27) boot: compile time Aug 3 2025 09:49:19
I (27) boot: Multicore bootloader
I (28) boot: chip revision: v0.2
I (31) boot: efuse block revision: v1.3
I (35) boot.esp32s3: Boot SPI Speed : 80MHz
I (39) boot.esp32s3: SPI Mode : DIO
I (42) boot.esp32s3: SPI Flash Size : 16MB
I (46) boot: Enabling RNG early entropy source...
I (51) boot: Partition Table:
I (53) boot: ## Label Usage Type ST Offset Length
I (60) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (66) boot: 1 phy_init RF data 01 01 0000f000 00001000
I (73) boot: 2 factory factory app 00 00 00010000 00300000
I (79) boot: 3 storage Unknown data 01 82 00310000 00400000
I (86) boot: End of partition table
I (89) esp_image: segment 0: paddr=00010020 vaddr=3c100020 size=54648h (345672) map
I (157) esp_image: segment 1: paddr=00064670 vaddr=3fc9a900 size=04984h ( 18820) load
I (161) esp_image: segment 2: paddr=00068ffc vaddr=40374000 size=0701ch ( 28700) load
I (168) esp_image: segment 3: paddr=00070020 vaddr=42000020 size=fb27ch (1028732) map
I (350) esp_image: segment 4: paddr=0016b2a4 vaddr=4037b01c size=0f804h ( 63492) load
I (364) esp_image: segment 5: paddr=0017aab0 vaddr=600fe000 size=0001ch ( 28) load
I (373) boot: Loaded app from partition at offset 0x10000
I (373) boot: Disabling RNG early entropy source...
I (383) octal_psram: vendor id : 0x0d (AP)
I (384) octal_psram: dev id : 0x02 (generation 3)
I (384) octal_psram: density : 0x03 (64 Mbit)
I (389) octal_psram: good-die : 0x01 (Pass)
I (394) octal_psram: Latency : 0x01 (Fixed)
I (399) octal_psram: VCC : 0x01 (3V)
I (404) octal_psram: SRF : 0x01 (Fast Refresh)
I (410) octal_psram: BurstType : 0x01 (Hybrid Wrap)
I (416) octal_psram: BurstLen : 0x01 (32 Byte)
I (421) octal_psram: Readlatency : 0x02 (10 cycles@Fixed)
I (427) octal_psram: DriveStrength: 0x00 (1/1)
I (433) esp_psram: Found 8MB PSRAM device
I (437) esp_psram: Speed: 40MHz
I (441) cpu_start: Multicore app
I (1176) esp_psram: SPI SRAM memory test OK
I (1185) cpu_start: Pro cpu start user code
I (1185) cpu_start: cpu freq: 160000000 Hz
I (1185) app_init: Application information:
I (1188) app_init: Project name: Esp32CoreVision
I (1194) app_init: App version: 74df51d-dirty
I (1199) app_init: Compile time: Aug 3 2025 09:40:06
I (1205) app_init: ELF file SHA256: c67037aa9...
I (1211) app_init: ESP-IDF: v5.4.1-743-gaed8bdc8dd
I (1217) efuse_init: Min chip rev: v0.0
I (1222) efuse_init: Max chip rev: v0.99
I (1227) efuse_init: Chip rev: v0.2
I (1232) heap_init: Initializing. RAM available for dynamic allocation:
I (1239) heap_init: At 3FCA04E8 len 00049228 (292 KiB): RAM
I (1245) heap_init: At 3FCE9710 len 00005724 (21 KiB): RAM
I (1251) heap_init: At 3FCF0000 len 00008000 (32 KiB): DRAM
I (1258) heap_init: At 600FE01C len 00001FCC (7 KiB): RTCRAM
I (1264) esp_psram: Adding pool of 8192K of PSRAM memory to heap allocator
I (1273) spi_flash: detected chip: generic
I (1276) spi_flash: flash io: dio
I (1281) sleep_gpio: Configure to isolate all GPIO pins in sleep state
I (1288) sleep_gpio: Enable automatic switching of GPIO sleep configuration
I (1296) main_task: Started on CPU0
I (1316) esp_psram: Reserving pool of 32K of internal memory for DMA/internal allocations
I (1316) main_task: Calling app_main()
i2c: {sda: 17, scl: 18}
i2s: {mclk: 16, bclk: 9, ws: 45, din: 10, dout: 8}
out: {codec: ES8311, pa: 48, pa_gain: 6, use_mclk: 1, pa_gain: 6}
Codec 0 dir 2 type:1
in: {codec: ES7210}
Codec 1 dir 1 type:2
sdcard: {clk: 15, cmd: 7, d0: 4}
Sdcard clk:15 cmd:7 d0:4
camera: {type: dvp, xclk: 40, pclk: 11, vsync: 21, href: 38, d0: 13, d1: 47, d2: 14, d3: 3, d4: 12, d5: 42, d6: 41, d7: 39}
lcd: {bus: spi, extend_io: tca9554, controller: st7789, spi_bus: 2, mirror_x: 1, mirror_y: 1, swap_xy: 0, color_inv: 0, width: 320, height: 240, ctrl: ext1, rst: ext2, cs: ext3, dc: 2, clk: 1, mosi: 0, cmd_bits: 8, param_bits: 8}
E (1376) i2c.master: this port has not been initialized, please initialize it first
use 4 0 0 0
--------Start to run video_capture_run--------
E (9666) DVP_SRC: Camera capture failed
E (9666) VID_SRC: Acquire on in port, ret:-1
E (9666) ESP_GMF_TASK: Job failed[tsk:venc_0-0x3fcb1ed0:0x3c19ed5c-0x3c169558-vid_src_proc], ret:-1, st:ESP_GMF_EVENT_STATE_RUNNING
E (9676) gdma: gdma_disconnect(309): no peripheral is connected to the channel
I (11546) VIDEO_CAPTURE: Sink 0 read audio 80655/157 video 0/0 in 10000ms
--------End to run video_capture_run--------

--------Start to run video_capture_run_one_shot--------
I (22056) VIDEO_CAPTURE: One shot capture: video frames 20/133456 in 10000ms
E (22056) gdma: gdma_disconnect(309): no peripheral is connected to the channel
--------End to run video_capture_run_one_shot--------

--------Start to run video_capture_run_with_overlay--------
E (22206) TEXT_OVERLAY: Region overflow
E (22216) i2s_common: i2s_channel_disable(1200): the channel has not been enabled yet
E (30216) DVP_SRC: Camera capture failed
E (30216) VID_SRC: Acquire on in port, ret:-1
E (30216) ESP_GMF_TASK: Job failed[tsk:venc_0-0x3fcb2bc4:0x3c236fdc-0x3c2016e0-vid_src_proc], ret:-1, st:ESP_GMF_EVENT_STATE_RUNNING
E (30226) gdma: gdma_disconnect(309): no peripheral is connected to the channel
I (32226) VIDEO_CAPTURE: Overlay get video 0/0 in 10000ms
--------End to run video_capture_run_with_overlay--------

--------Start to run video_capture_run_with_muxer--------
E (32366) i2s_common: i2s_channel_disable(1200): the channel has not been enabled yet
I (32486) VIDEO_CAPTURE: Start to write to file /sdcard/vid_0.mp4
E (36516) cam_hal: FB-SIZE: 107520 != 153600
E (40516) DVP_SRC: Camera capture failed
E (40516) VID_SRC: Acquire on in port, ret:-1
E (40516) ESP_GMF_TASK: Job failed[tsk:venc_0-0x3fcb2b20:0x3c19df6c-0x3c168768-vid_src_proc], ret:-1, st:ESP_GMF_EVENT_STATE_RUNNING
E (40526) gdma: gdma_disconnect(309): no peripheral is connected to the channel
I (42386) VIDEO_CAPTURE: Sink 0 read audio 81213/155 video 0/0 in 10000ms
E (42406) MP4_MUXER: MP4 fail to parse SPS-PPS
E (42406) MP4_MUXER: Write stsd return 65539

E (42406) MP4_MUXER: Write stbl return 65539

E (42406) MP4_MUXER: Write minf return 65539

E (42416) MP4_MUXER: Write mdia return 65539

E (42416) MP4_MUXER: Write trak 1 return 65539

E (42426) MP4_MUXER: Fail to write moov 65539
I (42536) VIDEO_CAPTURE: Storage to /sdcard/vid_0.mp4 size 83313
--------End to run video_capture_run_with_muxer--------

--------Start to run video_capture_run_with_customized_process--------
E (42556) i2s_common: i2s_channel_disable(1200): the channel has not been enabled yet
E (50706) DVP_SRC: Camera capture failed
E (50706) VID_SRC: Acquire on in port, ret:-1
E (50706) ESP_GMF_TASK: Job failed[tsk:vid_src-0x3fcb228c:0x3c16ad34-0x3c1697bc-vid_src_proc], ret:-1, st:ESP_GMF_EVENT_STATE_RUNNING
E (50716) gdma: gdma_disconnect(309): no peripheral is connected to the channel
I (52566) VIDEO_CAPTURE: Sink 0 read audio 79009/155 video 0/0 in 10000ms
E (52686) ESP_GMF_PORT: ACQ IN, there is no payload, p:0x3c169738, el:0x3c16964c-vid_enc
E (52686) VENC_EL: Acquire size:115200 on in port, ret:-1
E (52696) ESP_GMF_TASK: Job failed[tsk:venc_0-0x3fcb2648:0x3c19ff4c-0x3c16964c-vid_enc_proc], ret:-1, st:ESP_GMF_EVENT_STATE_RUNNING
--------End to run video_capture_run_with_customized_process--------

--------Start to run video_capture_run_dual_path--------
E (52876) i2s_common: i2s_channel_disable(1200): the channel has not been enabled yet
E (60866) DVP_SRC: Camera capture failed
E (60866) VID_SRC: Acquire on in port, ret:-1
E (60866) ESP_GMF_TASK: Job failed[tsk:vid_src-0x3fcb3674:0x3c1dbfa8-0x3c1d9e84-vid_src_proc], ret:-1, st:ESP_GMF_EVENT_STATE_RUNNING
E (60876) gdma: gdma_disconnect(309): no peripheral is connected to the channel
I (62906) VIDEO_CAPTURE: Sink 0 read audio 79131/156 video 0/0 in 10000ms
I (62906) VIDEO_CAPTURE: Sink 1 read audio 79920/999 video 0/0 in 10000ms
E (62966) ESP_GMF_PORT: ACQ IN, there is no payload, p:0x3c1da330, el:0x3c1da238-vid_color_cvt
E (62966) Imgfx_el: Acquire size: 153600 on in port, ret: -1
E (62966) ESP_GMF_TASK: Job failed[tsk:venc_0-0x3fcb3a30:0x3c1e61c0-0x3c1da238-vid_color_cvt_proc], ret:-1, st:ESP_GMF_EVENT_STATE_RUNNING
E (62986) ESP_GMF_PORT: ACQ IN, there is no payload, p:0x3c1da67c, el:0x3c1da590-vid_fps_cvt
E (62996) VID_FPS_CVT: Read data error, ret:-1, line:78
E (62996) ESP_GMF_TASK: Job failed[tsk:venc_1-0x3fcb3dec:0x3c1fb77c-0x3c1da590-vid_fps_cvt_proc], ret:-1, st:ESP_GMF_EVENT_STATE_RUNNING
--------End to run video_capture_run_dual_path--------

I (63016) MAIN: All case finished

`

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