使用play_living_stream例程时以外停止

fan183579
Posts: 81
Joined: Thu Nov 25, 2021 6:37 am

使用play_living_stream例程时以外停止

Postby fan183579 » Mon Mar 14, 2022 3:26 am

在运行一段时间后出现如下报错
W (45976) HTTP_STREAM: No more data,errno:0, total_bytes:70124, rlen = 0
I (45976) AUDIO_ELEMENT: IN-[http] AEL_IO_DONE,0
I (45996) HTTP_STREAM: total_bytes=71064
W (53096) HTTP_STREAM: No more data,errno:0, total_bytes:71064, rlen = 0
I (53096) AUDIO_ELEMENT: IN-[http] AEL_IO_DONE,0
I (53106) HTTP_STREAM: Fetching again...
I (53146) HTTP_STREAM: total_bytes=781
W (53146) HLS_PLAYLIST: URI exist
I (53146) HTTP_STREAM: Live stream URI. Need to be fetched again!
I (53186) HTTP_STREAM: total_bytes=70312
E (55136) TS_DECODER: Error ts packet sync, line:111
E (55136) TS_DECODER: analysis header failed, line:487
E (55136) TS_DECODER: failed to find syncword, line:755
I (55396) AAC_DECODER: Closed by [3]
I (55436) AUDIO_ELEMENT: IN-[i2s] AEL_IO_DONE,-2

排查后并没有发现问题,也无法找到 TS_DECODER 的报错来源,请问这是什么原因呢?

ESP_HengYC
Posts: 184
Joined: Fri Dec 15, 2017 2:45 am

Re: 使用play_living_stream例程时以外停止

Postby ESP_HengYC » Mon Mar 14, 2022 8:58 am

你好,

living stream 的 url 可以提供吗?此问题是必现的吗?

单纯从 log 上面看, 获取不到数据了。

fan183579
Posts: 81
Joined: Thu Nov 25, 2021 6:37 am

Re: 使用play_living_stream例程时以外停止

Postby fan183579 » Mon Mar 14, 2022 9:33 am

ESP_HengYC wrote:
Mon Mar 14, 2022 8:58 am
你好,

living stream 的 url 可以提供吗?此问题是必现的吗?

单纯从 log 上面看, 获取不到数据了。
附上直播网址,其余都和例程一致,这个问题几乎可以说是必出的,使用例程中自带的网址也会如此,我会在稍后附上完整的日志
HLS_INFO_t HLS_list[MAX_HLS_URL_NUM] = {
{.hls_url = "http://open.ls.qingting.fm/live/386/64k.m3u8?format=aac", .program_name = "中国之声"}, // 中国之声
{.hls_url = "http://open.ls.qingting.fm/live/274/64k.m3u8?format=aac", .program_name = "上海动感101"}, // 上海动感101
{.hls_url = "http://open.ls.qingting.fm/live/4804/64 ... format=aac", .program_name = "怀集音乐之声"}, // 怀集音乐之声
{.hls_url = "http://open.ls.qingting.fm/live/1005/64 ... format=aac", .program_name = "CRI环球资讯"}, // CRI环球资讯
{.hls_url = "http://open.ls.qingting.fm/live/387/64k.m3u8?format=aac", .program_name = "CNR经济之声"}, // CNR经济之声
{.hls_url = "http://open.ls.qingting.fm/live/2020776 ... format=aac", .program_name = "90后潮流音悦台"}, // 90后潮流音悦台
{.hls_url = "http://open.ls.qingting.fm/live/4915/64 ... format=aac", .program_name = "清晨音乐台"}, // 清晨音乐台
{.hls_url = "http://open.ls.qingting.fm/live/1137/64 ... format=aac", .program_name = "金华之声"}, // 金华之声
};

fan183579
Posts: 81
Joined: Thu Nov 25, 2021 6:37 am

Re: 使用play_living_stream例程时以外停止

Postby fan183579 » Mon Mar 14, 2022 9:37 am

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:new:<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

ESP_HengYC
Posts: 184
Joined: Fri Dec 15, 2017 2:45 am

Re: 使用play_living_stream例程时以外停止

Postby ESP_HengYC » Fri Mar 25, 2022 8:52 am

你好,

你的这个问题,似乎也是没有获取 m3u8 的数据, 可以更换热点 或者 其他的 m3u8再尝试。

issac_wan
Posts: 1
Joined: Thu Apr 07, 2022 2:27 pm

Re: 使用play_living_stream例程时以外停止

Postby issac_wan » Sat Apr 09, 2022 9:51 am

您好,请问这个问题您现在解决了吗?我参考官方例程也遇到了类似问题,LOG信息如下:
I (4673) AUDIO: [1.0] Create audio pipeline for playback
I (4673) AUDIO: [1.1] Create http stream to read data
I (4673) AUDIO: [2.2] Create PWM stream to write data to codec chip
I (4683) AUDIO: [2.3] Create aac decoder to decode aac file
I (4683) AUDIO: [2.4] Register all elements to audio pipeline
I (4693) AUDIO: [2.5] Link it together http_stream-->aac_decoder-->pwm_stream-->[codec_chip]
I (4703) AUDIO_PIPELINE: link el->rb, el:0x3ffd9cd0, tag:http, rb:0x3ffdc8e0
I (4713) AUDIO_PIPELINE: link el->rb, el:0x3ffdc4d0, tag:aac, rb:0x3ffdc850
I (4733) AUDIO: [2.6] Set up uri (http as http_stream, aac as aac decoder, and default output is i2s(changed to PWM))
I (4733) AUDIO: [ 3 ] Set up event listener
I (4743) AUDIO: [3.1] Listening event from all elements of pipeline
I (4753) AUDIO: [3.2] Listening event from peripherals
I (4753) AUDIO: [ 4 ] Start audio_pipeline
I (4763) AUDIO_ELEMENT: [http-0x3ffd9cd0] Element task created
I (4763) AUDIO_ELEMENT: [aac-0x3ffdc4d0] Element task created
I (4773) AUDIO_ELEMENT: [output-0x3ffdc118] Element task created
I (4793) AUDIO_PIPELINE: Func:audio_pipeline_run, Line:359, MEM Total:100240 Bytes

I (4793) AUDIO_ELEMENT: [http] AEL_MSG_CMD_RESUME,state:1
I (4803) AUDIO_ELEMENT: [aac] AEL_MSG_CMD_RESUME,state:1
I (4803) AUDIO_ELEMENT: [output] AEL_MSG_CMD_RESUME,state:1
I (4813) AUDIO_PIPELINE: Pipeline started
I (4813) AUDIO: audio_fstack:2912
I (4833) AUDIO: audio_fstack:1408
I (4913) HTTP_STREAM: total_bytes=845
I (4913) HTTP_STREAM: Live stream URI. Need to be fetched again!
I (4993) HTTP_STREAM: total_bytes=57352
I (4993) CODEC_ELEMENT_HELPER: The element is 0x3ffdc4d0. The reserve data 2 is 0x0.
I (4993) AAC_DECODER: a new song playing
I (5003) AAC_DECODER: this audio is RAW AAC
E (5003) AAC_DECODER: failed to initialize
E (5013) AUDIO_ELEMENT: [aac] AEL_STATUS_ERROR_OPEN,-1
W (5013) AUDIO_ELEMENT: [aac] audio_element_on_cmd_error,7
I (5023) AAC_DECODER: Closed by [7]
W (5023) AUDIO_ELEMENT: IN-[output] AEL_IO_ABORT
E (5033) timer_group: timer_pause(108): HW TIMER NEVER INIT ERROR
E (5043) timer_group: timer_disable_intr(393): HW TIMER NEVER INIT ERROR

ESP_HengYC
Posts: 184
Joined: Fri Dec 15, 2017 2:45 am

Re: 使用play_living_stream例程时以外停止

Postby ESP_HengYC » Tue May 10, 2022 3:56 am

issac_wan wrote:
Sat Apr 09, 2022 9:51 am
您好,请问这个问题您现在解决了吗?我参考官方例程也遇到了类似问题,LOG信息如下:
I (4673) AUDIO: [1.0] Create audio pipeline for playback
I (4673) AUDIO: [1.1] Create http stream to read data
I (4673) AUDIO: [2.2] Create PWM stream to write data to codec chip
I (4683) AUDIO: [2.3] Create aac decoder to decode aac file
I (4683) AUDIO: [2.4] Register all elements to audio pipeline
I (4693) AUDIO: [2.5] Link it together http_stream-->aac_decoder-->pwm_stream-->[codec_chip]
I (4703) AUDIO_PIPELINE: link el->rb, el:0x3ffd9cd0, tag:http, rb:0x3ffdc8e0
I (4713) AUDIO_PIPELINE: link el->rb, el:0x3ffdc4d0, tag:aac, rb:0x3ffdc850
I (4733) AUDIO: [2.6] Set up uri (http as http_stream, aac as aac decoder, and default output is i2s(changed to PWM))
I (4733) AUDIO: [ 3 ] Set up event listener
I (4743) AUDIO: [3.1] Listening event from all elements of pipeline
I (4753) AUDIO: [3.2] Listening event from peripherals
I (4753) AUDIO: [ 4 ] Start audio_pipeline
I (4763) AUDIO_ELEMENT: [http-0x3ffd9cd0] Element task created
I (4763) AUDIO_ELEMENT: [aac-0x3ffdc4d0] Element task created
I (4773) AUDIO_ELEMENT: [output-0x3ffdc118] Element task created
I (4793) AUDIO_PIPELINE: Func:audio_pipeline_run, Line:359, MEM Total:100240 Bytes

I (4793) AUDIO_ELEMENT: [http] AEL_MSG_CMD_RESUME,state:1
I (4803) AUDIO_ELEMENT: [aac] AEL_MSG_CMD_RESUME,state:1
I (4803) AUDIO_ELEMENT: [output] AEL_MSG_CMD_RESUME,state:1
I (4813) AUDIO_PIPELINE: Pipeline started
I (4813) AUDIO: audio_fstack:2912
I (4833) AUDIO: audio_fstack:1408
I (4913) HTTP_STREAM: total_bytes=845
I (4913) HTTP_STREAM: Live stream URI. Need to be fetched again!
I (4993) HTTP_STREAM: total_bytes=57352
I (4993) CODEC_ELEMENT_HELPER: The element is 0x3ffdc4d0. The reserve data 2 is 0x0.
I (4993) AAC_DECODER: a new song playing
I (5003) AAC_DECODER: this audio is RAW AAC
E (5003) AAC_DECODER: failed to initialize
E (5013) AUDIO_ELEMENT: [aac] AEL_STATUS_ERROR_OPEN,-1
W (5013) AUDIO_ELEMENT: [aac] audio_element_on_cmd_error,7
I (5023) AAC_DECODER: Closed by [7]
W (5023) AUDIO_ELEMENT: IN-[output] AEL_IO_ABORT
E (5033) timer_group: timer_pause(108): HW TIMER NEVER INIT ERROR
E (5043) timer_group: timer_disable_intr(393): HW TIMER NEVER INIT ERROR

你好, 你的 idf 和 adf 的版本是最新的吗? 把 log 前面的部分贴出来,看看

再一个,你可以把你的音频 link 贴 出来给我们复现下吗?

Who is online

Users browsing this forum: No registered users and 29 guests