ESP_HengYC wrote: ↑Mon Mar 14, 2022 8:58 am
你好,
living stream 的 url 可以提供吗?此问题是必现的吗?
单纯从 log 上面看, 获取不到数据了。
以下是完整的日志
ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0x1 (POWERON),boot:0x18 (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
Octal Flash Mode Enabled
For OPI Flash, Use Default Flash Boot Mode
mode:SLOW_RD, clock div:1
load:0x3fcd0108,len:0x1650
load:0x403b6000,len:0xb7c
load:0x403ba000,len:0x2f58
entry 0x403b6248
I (32) boot: ESP-IDF v4.4-dirty 2nd stage bootloader
I (32) boot: compile time 11:41:13
I (32) boot: chip revision: 0
I (34) boot.esp32s3: Boot SPI Speed : 80MHz
I (39) boot.esp32s3: SPI Mode : SLOW READ
I (44) boot.esp32s3: SPI Flash Size : 16MB
I (49) boot: Enabling RNG early entropy source...
I (55) boot: Partition Table:
I (58) boot: ## Label Usage Type ST Offset Length
I (65) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (73) boot: 1 phy_init RF data 01 01 0000f000 00001000
I (80) boot: 2 factory factory app 00 00 00010000 00300000
I (88) boot: End of partition table
I (92) esp_image: segment 0: paddr=00010020 vaddr=3c0b0020 size=25d54h (154964) map
I (137) esp_image: segment 1: paddr=00035d7c vaddr=3fc94c20 size=04140h ( 16704) load
I (142) esp_image: segment 2: paddr=00039ec4 vaddr=40374000 size=06154h ( 24916) load
I (150) esp_image: segment 3: paddr=00040020 vaddr=42000020 size=a2dc8h (667080) map
I (308) esp_image: segment 4: paddr=000e2df0 vaddr=4037a154 size=0aac0h ( 43712) load
I (320) esp_image: segment 5: paddr=000ed8b8 vaddr=50000000 size=00010h ( 16) load
I (327) boot: Loaded app from partition at offset 0x10000
I (328) boot: Disabling RNG early entropy source...
I (340) cpu_start: Pro cpu up.
I (341) cpu_start: Starting app cpu, entry point is 0x40375240
0x40375240: call_start_cpu1 at E:/.espressif/frameworks/esp-idf-v4.4/components/esp_system/port/cpu_start.c:156
I (0) cpu_start: App cpu up.
I (355) cpu_start: Pro cpu start user code
I (355) cpu_start: cpu freq: 160000000
I (355) cpu_start: Application information:
I (357) cpu_start: Project name: lcd_lvgl
I (362) cpu_start: App version: 1
I (367) cpu_start: Compile time: Mar 14 2022 11:40:55
I (373) cpu_start: ELF file SHA256: ff30eb352addd2d2...
I (379) cpu_start: ESP-IDF: v4.4-dirty
I (384) heap_init: Initializing. RAM available for dynamic allocation:
I (391) heap_init: At 3FC9CA90 len 00043570 (269 KiB): D/IRAM
I (398) heap_init: At 3FCE0000 len 0000EE34 (59 KiB): STACK/DRAM
I (404) heap_init: At 3FCF0000 len 00008000 (32 KiB): DRAM
I (411) heap_init: At 600FE000 len 00002000 (8 KiB): RTCRAM
I (418) spi_flash: detected chip: mxic
W (421) spi_flash: Detected flash size > 16 MB, but access beyond 16 MB is not supported for this flash model yet.
I (433) spi_flash: flash io: dio
W (436) spi_flash: Detected size(32768k) larger than the size in the binary image header(16384k). Using the size in the binary image header.
I (450) sleep: Configure to isolate all GPIO pins in sleep state
I (457) sleep: Enable automatic switching of GPIO sleep configuration
I (464) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
I (20) HTTP_LIVINGSTREAM_EXAMPLE: [2.0] Create audio pipeline for playback
I (20) HTTP_LIVINGSTREAM_EXAMPLE: [2.1] Create http stream to read data
I (20) HTTP_LIVINGSTREAM_EXAMPLE: [2.2] Create i2s stream to write data to codec chip
W (30) I2S: APLL not supported on current chip, use I2S_CLK_D2CLK as default clock source
I (40) I2S: DMA Malloc info, datalen=blocksize=1200, dma_buf_count=3
I (50) I2S: DMA Malloc info, datalen=blocksize=1200, dma_buf_count=3
I (50) ESP32_S3_KORVO_2: I2S0, MCLK output by GPIO0
I (60) HTTP_LIVINGSTREAM_EXAMPLE: [2.3] Create aac decoder to decode aac file
I (70) HTTP_LIVINGSTREAM_EXAMPLE: [2.4] Register all elements to audio pipeline
I (70) HTTP_LIVINGSTREAM_EXAMPLE: [2.5] Link it together http_stream-->aac_decoder-->i2s_stream-->[codec_chip]
I (80) AUDIO_PIPELINE: link el->rb, el:0x3fce35d4, tag:http, rb:0x3fce4460
I (90) AUDIO_PIPELINE: link el->rb, el:0x3fce40b4, tag:aac, rb:0x3fce95c0
I (100) HTTP_LIVINGSTREAM_EXAMPLE: [2.6] Set up uri (http as http_stream, aac as aac decoder, and default output is i2s)
I (110) HTTP_LIVINGSTREAM_EXAMPLE: [ 3 ] Start and wait for Wi-Fi network
I (709) pp: pp rom version: e7ae62f
I (709) net80211: net80211 rom version: e7ae62f
I (729) wifi:wifi driver task: 3fced66c, prio:23, stack:6656, core=0
I (729) system_api: Base MAC address is not set
I (729) system_api: read default base MAC address from EFUSE
I (739) wifi:wifi firmware version: 7679c42
I (739) wifi:wifi certification version: v7.0
I (739) wifi:config NVS flash: enabled
I (749) wifi:config nano formating: disabled
I (749) wifi:Init data frame dynamic rx buffer num: 32
I (759) wifi:Init management frame dynamic rx buffer num: 32
I (759) wifi:Init management short buffer num: 32
I (769) wifi:Init static tx buffer num: 16
I (769) wifi:Init static tx FG buffer num: 2
I (769) wifi:Init static rx buffer size: 1600
I (779) wifi:Init static rx buffer num: 10
I (779) wifi:Init dynamic rx buffer num: 32
I (789) wifi_init: rx ba win: 6
I (789) wifi_init: tcpip mbox: 32
I (789) wifi_init: udp mbox: 6
I (799) wifi_init: tcp mbox: 6
I (799) wifi_init: tcp tx win: 5744
I (799) wifi_init: tcp rx win: 5744
I (809) wifi_init: tcp mss: 1440
I (809) wifi_init: WiFi IRAM OP enabled
I (819) wifi_init: WiFi RX IRAM OP enabled
I (819) phy_init: phy_version 302,3ddfab3,Dec 3 2021,14:39:12
W (829) phy_init: failed to load RF calibration data (0x1102), falling back to full calibration
I (889) wifi:mode : sta (7c:df:a1:e1:26:0c)
I (889) wifi:enable tsf
I (899) wifi
<1,0>, old:<1,0>, ap:<255,255>, sta:<1,0>, prof:1
I (1769) wifi:state: init -> auth (b0)
I (1789) wifi:state: auth -> assoc (0)
I (1799) wifi:state: assoc -> run (10)
I (2139) wifi:connected with TP2.4G, aid = 1, channel 1, BW20, bssid = 46:f9:71:58:4e:7b
I (2149) wifi:security: WPA2-PSK, phy: bgn, rssi: -59
I (2149) wifi:pm start, type: 1
I (2149) wifi:set rx beacon pti, rx_bcn_pti: 0, bcn_timeout: 0, mt_pti: 25000, mt_time: 10000
I (2159) wifi:BcnInt:102400, DTIM:1
W (2159) wifi:<ba-add>idx:0 (ifx:0, 46:f9:71:58:4e:7b), tid:0, ssn:2, winSize:64
W (2169) PERIPH_WIFI: WiFi Event cb, Unhandle event_base:WIFI_EVENT, event_id:4
I (3109) esp_netif_handlers: sta ip: 192.168.0.136, mask: 255.255.255.0, gw: 192.168.0.1
I (3109) PERIPH_WIFI: Got ip:192.168.0.136
I (3109) HTTP_LIVINGSTREAM_EXAMPLE: [ 4 ] Set up event listener
I (3119) HTTP_LIVINGSTREAM_EXAMPLE: [4.1] Listening event from all elements of pipeline
I (3129) HTTP_LIVINGSTREAM_EXAMPLE: [4.2] Listening event from peripherals
I (3129) HTTP_LIVINGSTREAM_EXAMPLE: [ 5 ] Start audio_pipeline
I (3139) AUDIO_ELEMENT: [http-0x3fce35d4] Element task created
I (3149) AUDIO_ELEMENT: [aac-0x3fce40b4] Element task created
I (3149) AUDIO_ELEMENT: [i2s-0x3fce3cd4] Element task created
I (3159) AUDIO_PIPELINE: Func:audio_pipeline_run, Line:359, MEM Total:216644 Bytes
I (3169) AUDIO_ELEMENT: [http] AEL_MSG_CMD_RESUME,state:1
I (3169) AUDIO_ELEMENT: [aac] AEL_MSG_CMD_RESUME,state:1
I (3179) AUDIO_ELEMENT: [i2s] AEL_MSG_CMD_RESUME,state:1
I (3189) I2S_STREAM: AUDIO_STREAM_WRITER
I (3189) AUDIO_PIPELINE: Pipeline started
I (3369) HTTP_STREAM: total_bytes=781
I (3369) HTTP_STREAM: Live stream URI. Need to be fetched again!
I (3459) HTTP_STREAM: total_bytes=70688
I (3469) CODEC_ELEMENT_HELPER: The element is 0x3fce40b4. The reserve data 2 is 0x0.
I (3469) AAC_DECODER: a new song playing
I (3469) AAC_DECODER: this audio is TS AAC
W (4329) HTTP_STREAM: No more data,errno:0, total_bytes:70688, rlen = 0
I (4329) AUDIO_ELEMENT: IN-[http] AEL_IO_DONE,0
I (4369) HTTP_STREAM: total_bytes=71816
I (4389) HTTP_LIVINGSTREAM_EXAMPLE: [ * ] Receive music info from aac decoder, sample_rates=24000, bits=16, ch=2
I (4409) AUDIO_ELEMENT: [i2s] AEL_MSG_CMD_PAUSE
W (4409) I2S: APLL not supported on current chip, use I2S_CLK_D2CLK as default clock source
I (4419) AUDIO_ELEMENT: [i2s] AEL_MSG_CMD_RESUME,state:4
W (4419) AUDIO_ELEMENT: [i2s-0x3fce3cd4] RESUME timeout
I (4419) I2S_STREAM: AUDIO_STREAM_WRITER
W (9209) HTTP_STREAM: No more data,errno:0, total_bytes:71816, rlen = 0
I (9209) AUDIO_ELEMENT: IN-[http] AEL_IO_DONE,0
I (9229) HTTP_STREAM: total_bytes=72004
W (16329) HTTP_STREAM: No more data,errno:0, total_bytes:72004, rlen = 0
I (16329) AUDIO_ELEMENT: IN-[http] AEL_IO_DONE,0
I (16409) HTTP_STREAM: total_bytes=70876
W (23279) HTTP_STREAM: No more data,errno:0, total_bytes:70876, rlen = 0
I (23279) AUDIO_ELEMENT: IN-[http] AEL_IO_DONE,0
I (23309) HTTP_STREAM: total_bytes=70876
W (30409) HTTP_STREAM: No more data,errno:0, total_bytes:70876, rlen = 0
I (30409) AUDIO_ELEMENT: IN-[http] AEL_IO_DONE,0
I (30429) HTTP_STREAM: total_bytes=72004
W (37529) HTTP_STREAM: No more data,errno:0, total_bytes:72004, rlen = 0
I (37529) AUDIO_ELEMENT: IN-[http] AEL_IO_DONE,0
I (37559) HTTP_STREAM: total_bytes=72380
W (44659) HTTP_STREAM: No more data,errno:0, total_bytes:72380, rlen = 0
I (44659) AUDIO_ELEMENT: IN-[http] AEL_IO_DONE,0
I (44709) HTTP_STREAM: total_bytes=75200
W (48689) wifi:<ba-add>idx:1 (ifx:0, 46:f9:71:58:4e:7b), tid:6, ssn:0, winSize:64
W (51779) HTTP_STREAM: No more data,errno:0, total_bytes:75200, rlen = 0
I (51779) AUDIO_ELEMENT: IN-[http] AEL_IO_DONE,0
I (51779) HTTP_STREAM: Fetching again...
I (51929) HTTP_STREAM: total_bytes=789
I (51929) HTTP_STREAM: Live stream URI. Need to be fetched again!
I (51979) HTTP_STREAM: total_bytes=57763
E (53659) TS_DECODER: Error ts packet sync, line:111
E (53659) TS_DECODER: analysis header failed, line:487
E (53659) TS_DECODER: failed to find syncword, line:755
I (53949) AAC_DECODER: Closed by [3]
I (53999) AUDIO_ELEMENT: IN-[i2s] AEL_IO_DONE,-2