Unexpected stop while using the "play_living_stream" routine

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

Unexpected stop while using the "play_living_stream" routine

Postby fan183579 » Tue Mar 15, 2022 3:45 am

Attach the live broadcast URL, and the rest are consistent with the routine. This problem is almost inevitable, and it will be the same if you use the URL that comes with the routine
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 = "金华之声"}, // 金华之声
};

The following is the full 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=3c0d0020 size=2b9d4h (178644) map
I (142) esp_image: segment 1: paddr=0003b9fc vaddr=3fc94d80 size=041c8h ( 16840) load
I (147) esp_image: segment 2: paddr=0003fbcc vaddr=40374000 size=0044ch ( 1100) load
I (149) esp_image: segment 3: paddr=00040020 vaddr=42000020 size=ccb88h (838536) map
I (354) esp_image: segment 4: paddr=0010cbb0 vaddr=4037444c size=10930h ( 67888) load
I (373) esp_image: segment 5: paddr=0011d4e8 vaddr=50000000 size=00010h ( 16) load
I (380) boot: Loaded app from partition at offset 0x10000
I (380) boot: Disabling RNG early entropy source...
I (393) cpu_start: Pro cpu up.
I (393) cpu_start: Starting app cpu, entry point is 0x40375260
0x40375260: 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 (407) cpu_start: Pro cpu start user code
I (407) cpu_start: cpu freq: 160000000
I (407) cpu_start: Application information:
I (410) cpu_start: Project name: lcd_lvgl
I (415) cpu_start: App version: 1
I (419) cpu_start: Compile time: Mar 14 2022 11:40:55
I (426) cpu_start: ELF file SHA256: fa3edff4e63ab3f7...
I (432) cpu_start: ESP-IDF: v4.4-dirty
I (437) heap_init: Initializing. RAM available for dynamic allocation:
I (444) heap_init: At 3FCA50E0 len 0003AF20 (235 KiB): D/IRAM
I (450) heap_init: At 3FCE0000 len 0000EE34 (59 KiB): STACK/DRAM
I (457) heap_init: At 3FCF0000 len 00008000 (32 KiB): DRAM
I (463) heap_init: At 600FE000 len 00002000 (8 KiB): RTCRAM
I (470) spi_flash: detected chip: mxic
W (474) spi_flash: Detected flash size > 16 MB, but access beyond 16 MB is not supported for this flash model yet.
I (485) spi_flash: flash io: dio
W (489) spi_flash: Detected size(32768k) larger than the size in the binary image header(16384k). Using the size in the binary image header.
I (503) sleep: Configure to isolate all GPIO pins in sleep state
I (509) sleep: Enable automatic switching of GPIO sleep configuration
I (517) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
I (537) gpio: GPIO[40]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (537) example: Turn off LCD backlight
I (547) gpio: GPIO[14]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (557) example: Initialize Intel 8080 bus
I (557) example: Install LCD driver of hx8369a
I (567) gpio: GPIO[2]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (817) example: Turn on LCD backlight
I (817) example: Initialize LVGL library
I (817) example: Register display driver to LVGL
I (817) example: Install LVGL tick timer
I (817) example: Display LVGL animation
I (837) HTTP_LIVINGSTREAM_EXAMPLE: [2.0] Create audio pipeline for playback
I (847) HTTP_LIVINGSTREAM_EXAMPLE: [2.1] Create http stream to read data
I (847) HTTP_LIVINGSTREAM_EXAMPLE: [2.2] Create i2s stream to write data to codec chip
W (857) I2S: APLL not supported on current chip, use I2S_CLK_D2CLK as default clock source
I (867) I2S: DMA Malloc info, datalen=blocksize=1200, dma_buf_count=3
I (877) I2S: DMA Malloc info, datalen=blocksize=1200, dma_buf_count=3
I (877) ESP32_S3_KORVO_2: I2S0, MCLK output by GPIO0
I (887) HTTP_LIVINGSTREAM_EXAMPLE: [2.3] Create aac decoder to decode aac file
I (897) HTTP_LIVINGSTREAM_EXAMPLE: [2.4] Register all elements to audio pipeline
I (897) HTTP_LIVINGSTREAM_EXAMPLE: [2.5] Link it together http_stream-->aac_decoder-->i2s_stream-->[codec_chip]
I (907) AUDIO_PIPELINE: link el->rb, el:0x3fce3974, tag:http, rb:0x3fce47c4
I (917) AUDIO_PIPELINE: link el->rb, el:0x3fce4418, tag:aac, rb:0x3fce9924
I (927) HTTP_LIVINGSTREAM_EXAMPLE: [2.6] Set up uri (http as http_stream, aac as aac decoder, and default output is i2s)
I (937) HTTP_LIVINGSTREAM_EXAMPLE: [ 3 ] Start and wait for Wi-Fi network
I (947) pp: pp rom version: e7ae62f
I (947) net80211: net80211 rom version: e7ae62f
I (967) wifi:wifi driver task: 3fced9cc, prio:23, stack:6656, core=0
I (967) system_api: Base MAC address is not set
I (967) system_api: read default base MAC address from EFUSE
I (977) wifi:wifi firmware version: 7679c42
I (977) wifi:wifi certification version: v7.0
I (977) wifi:config NVS flash: enabled
I (987) wifi:config nano formating: disabled
I (987) wifi:Init data frame dynamic rx buffer num: 32
I (997) wifi:Init management frame dynamic rx buffer num: 32
I (997) wifi:Init management short buffer num: 32
I (1007) wifi:Init static tx buffer num: 16
I (1007) wifi:Init static tx FG buffer num: 2
I (1007) wifi:Init static rx buffer size: 1600
I (1017) wifi:Init static rx buffer num: 10
I (1017) wifi:Init dynamic rx buffer num: 32
I (1027) wifi_init: rx ba win: 6
I (1027) wifi_init: tcpip mbox: 32
I (1027) wifi_init: udp mbox: 6
I (1037) wifi_init: tcp mbox: 6
I (1037) wifi_init: tcp tx win: 5744
I (1037) wifi_init: tcp rx win: 5744
I (1047) wifi_init: tcp mss: 1440
I (1047) wifi_init: WiFi IRAM OP enabled
I (1057) wifi_init: WiFi RX IRAM OP enabled
I (1057) phy_init: phy_version 302,3ddfab3,Dec 3 2021,14:39:12
W (1067) phy_init: failed to load RF calibration data (0x1102), falling back to full calibration
I (1137) wifi:mode : sta (7c:df:a1:e1:26:0c)
I (1137) wifi:enable tsf
I (1157) wifi:new:<1,0>, old:<1,0>, ap:<255,255>, sta:<1,0>, prof:1
I (2247) wifi:state: init -> auth (b0)
I (2547) wifi:state: auth -> assoc (0)
I (2607) wifi:state: assoc -> run (10)
W (4587) wifi:<ba-add>idx:0 (ifx:0, 46:f9:71:58:4e:7b), tid:0, ssn:1, winSize:64
I (7117) wifi:state: run -> init (fc0)
W (7117) wifi:<ba-del>idx
I (7117) wifi:new:<1,0>, old:<1,0>, ap:<255,255>, sta:<1,0>, prof:1
I (7117) wifi:new:<1,0>, old:<1,0>, ap:<255,255>, sta:<1,0>, prof:1
W (7127) PERIPH_WIFI: Wi-Fi disconnected from SSID TP2.4G, auto-reconnect enabled, reconnect after 1000 ms
W (10187) PERIPH_WIFI: Wi-Fi disconnected from SSID TP2.4G, auto-reconnect enabled, reconnect after 1000 ms
I (11277) wifi:new:<1,0>, old:<1,0>, ap:<255,255>, sta:<1,0>, prof:1
I (11277) wifi:state: init -> auth (b0)
I (11457) wifi:state: auth -> assoc (0)
I (11507) wifi:state: assoc -> run (10)
W (12277) wifi:<ba-add>idx:0 (ifx:0, 46:f9:71:58:4e:7b), tid:0, ssn:1, winSize:64
I (12397) wifi:connected with TP2.4G, aid = 11, channel 1, BW20, bssid = 46:f9:71:58:4e:7b
I (12397) wifi:security: WPA2-PSK, phy: bgn, rssi: -63
I (12397) wifi:pm start, type: 1

I (12407) wifi:set rx beacon pti, rx_bcn_pti: 0, bcn_timeout: 0, mt_pti: 25000, mt_time: 10000
W (12417) PERIPH_WIFI: WiFi Event cb, Unhandle event_base:WIFI_EVENT, event_id:4
I (12507) wifi:BcnInt:102400, DTIM:1
I (13337) esp_netif_handlers: sta ip: 192.168.0.136, mask: 255.255.255.0, gw: 192.168.0.1
I (13337) PERIPH_WIFI: Got ip:192.168.0.136
I (13337) HTTP_LIVINGSTREAM_EXAMPLE: [ 4 ] Set up event listener
I (13347) HTTP_LIVINGSTREAM_EXAMPLE: [4.1] Listening event from all elements of pipeline
I (13357) HTTP_LIVINGSTREAM_EXAMPLE: [4.2] Listening event from peripherals
I (13357) HTTP_LIVINGSTREAM_EXAMPLE: [ 5 ] Start audio_pipeline
I (13367) AUDIO_ELEMENT: [http-0x3fce3974] Element task created
I (13377) AUDIO_ELEMENT: [aac-0x3fce4418] Element task created
I (13377) AUDIO_ELEMENT: [i2s-0x3fce4038] Element task created
I (13387) AUDIO_PIPELINE: Func:audio_pipeline_run, Line:359, MEM Total:112560 Bytes

I (13397) AUDIO_ELEMENT: [http] AEL_MSG_CMD_RESUME,state:1
I (13397) AUDIO_ELEMENT: [aac] AEL_MSG_CMD_RESUME,state:1
I (13407) AUDIO_ELEMENT: [i2s] AEL_MSG_CMD_RESUME,state:1
I (13417) I2S_STREAM: AUDIO_STREAM_WRITER
I (13417) AUDIO_PIPELINE: Pipeline started
I (20167) HTTP_STREAM: total_bytes=781
I (20167) HTTP_STREAM: Live stream URI. Need to be fetched again!
I (24427) HTTP_STREAM: total_bytes=74824
I (24737) CODEC_ELEMENT_HELPER: The element is 0x3fce4418. The reserve data 2 is 0x0.
I (24737) AAC_DECODER: a new song playing
I (24737) AAC_DECODER: this audio is TS AAC
I (24757) HTTP_LIVINGSTREAM_EXAMPLE: [ * ] Receive music info from aac decoder, sample_rates=24000, bits=16, ch=2
I (24787) AUDIO_ELEMENT: [i2s] AEL_MSG_CMD_PAUSE
W (24787) I2S: APLL not supported on current chip, use I2S_CLK_D2CLK as default clock source
I (24787) AUDIO_ELEMENT: [i2s] AEL_MSG_CMD_RESUME,state:4
W (24787) AUDIO_ELEMENT: [i2s-0x3fce4038] RESUME timeout
I (24797) I2S_STREAM: AUDIO_STREAM_WRITER
W (57157) wifi:<ba-add>idx:1 (ifx:0, 46:f9:71:58:4e:7b), tid:6, ssn:0, winSize:64
W (68487) HTTP_STREAM: No more data,errno:0, total_bytes:74824, rlen = 0
I (68487) AUDIO_ELEMENT: IN-[http] AEL_IO_DONE,0
I (68517) HTTP_STREAM: total_bytes=76328
W (75657) HTTP_STREAM: No more data,errno:0, total_bytes:76328, rlen = 0
I (75657) AUDIO_ELEMENT: IN-[http] AEL_IO_DONE,0
I (75687) HTTP_STREAM: total_bytes=74824
W (82737) HTTP_STREAM: No more data,errno:0, total_bytes:74824, rlen = 0
I (82737) AUDIO_ELEMENT: IN-[http] AEL_IO_DONE,0
I (82807) HTTP_STREAM: total_bytes=75576
W (89777) HTTP_STREAM: No more data,errno:0, total_bytes:75576, rlen = 0
I (89777) AUDIO_ELEMENT: IN-[http] AEL_IO_DONE,0
I (89807) HTTP_STREAM: total_bytes=75576
W (96897) HTTP_STREAM: No more data,errno:0, total_bytes:75576, rlen = 0
I (96907) AUDIO_ELEMENT: IN-[http] AEL_IO_DONE,0
I (96967) HTTP_STREAM: total_bytes=74824
W (103937) HTTP_STREAM: No more data,errno:0, total_bytes:74824, rlen = 0
I (103937) AUDIO_ELEMENT: IN-[http] AEL_IO_DONE,0
I (103967) HTTP_STREAM: total_bytes=75764
W (111027) HTTP_STREAM: No more data,errno:0, total_bytes:75764, rlen = 0
I (111027) AUDIO_ELEMENT: IN-[http] AEL_IO_DONE,0
I (111067) HTTP_STREAM: total_bytes=74072
W (118187) HTTP_STREAM: No more data,errno:0, total_bytes:74072, rlen = 0
I (118187) AUDIO_ELEMENT: IN-[http] AEL_IO_DONE,0
I (118187) HTTP_STREAM: Fetching again...
I (118247) HTTP_STREAM: total_bytes=781
I (118247) HTTP_STREAM: Live stream URI. Need to be fetched again!
I (118317) HTTP_STREAM: total_bytes=70876
E (120057) TS_DECODER: Error ts packet sync, line:111
E (120067) TS_DECODER: analysis header failed, line:487
E (120067) TS_DECODER: failed to find syncword, line:755
I (120317) AAC_DECODER: Closed by [3]
I (120357) AUDIO_ELEMENT: IN-[i2s] AEL_IO_DONE,-2

colman
Posts: 37
Joined: Mon May 30, 2016 7:41 am

Re: Unexpected stop while using the "play_living_stream" routine

Postby colman » Fri Apr 22, 2022 1:12 am

I have the same issue. After "TS_DECODER: Error ts packet sync, line:111 ....." it stall with the player status in playing state. It does not read the next ts stream or continue to read the hls playlist, it just stop there.

Colman

Who is online

Users browsing this forum: No registered users and 41 guests