[FFmpeg-user] HTTP async client does not work with HLS source

Ali Hussein eng.alidev at gmail.com
Sat Aug 24 11:57:08 EEST 2024


Hi, I want ffmpeg to pull the live stream asynchronously from the remote
HLS source. However, I have read about the async (
https://www.ffmpeg.org/ffmpeg-all.html#toc-async) parameter that can be
added to the source URL. The following logs show that the async cannot
request the ts files of the m3u8 playlist.

[hls @ 0x55aa48240c00] Skip ('#EXT-X-VERSION:3')
[AVIOContext @ 0x55aa482a0700] Statistics: 519 bytes read, 0 seeks
[hls @ 0x55aa48240c00] Opening 'async:https://127.0.0.1/input.m3u8' for reading
[async @ 0x55aa482a5d80] No default whitelist set
[https @ 0x55aa48288dc0] Setting default whitelist
'http,https,tls,rtp,tcp,udp,crypto,httpproxy'
[tcp @ 0x55aa482a6400] Original list of addresses:
[tcp @ 0x55aa482a6400] Address 127.0.0.1 port 443
[tcp @ 0x55aa482a6400] Interleaved list of addresses:
[tcp @ 0x55aa482a6400] Address 127.0.0.1 port 443
[tcp @ 0x55aa482a6400] Starting connection attempt to 127.0.0.1 port 443
[tcp @ 0x55aa482a6400] Successfully connected to 127.0.0.1 port 443
[https @ 0x55aa48288dc0] request: GET /input.m3u8 HTTP/1.1
User-Agent: Lavf/58.76.100
Accept: */*
Range: bytes=0-
Connection: keep-alive
Host: localhost
Icy-MetaData: 1

[hls @ 0x55aa48240c00] Skip ('#EXT-X-VERSION:3')
[AVIOContext @ 0x55aa482a6040] Statistics: 519 bytes read, 0 seeks
[hls @ 0x55aa48240c00] HLS request for url
'async:https://127.0.0.1/input_1664112.ts', offset 0, playlist 0
[hls @ 0x55aa48240c00] Failed to open segment 1664112 of playlist 0
[hls @ 0x55aa48240c00] Opening 'async:https://127.0.0.1/input.m3u8' for reading
[async @ 0x55aa48288dc0] No default whitelist set
[https @ 0x55aa482a5d80] Setting default whitelist
'http,https,tls,rtp,tcp,udp,crypto,httpproxy'
[tcp @ 0x55aa48283b40] Original list of addresses:
[tcp @ 0x55aa48283b40] Address 127.0.0.1 port 443
[tcp @ 0x55aa48283b40] Interleaved list of addresses:
[tcp @ 0x55aa48283b40] Address 127.0.0.1 port 443
[tcp @ 0x55aa48283b40] Starting connection attempt to 127.0.0.1 port 443
[tcp @ 0x55aa48283b40] Successfully connected to 127.0.0.1 port 443
[https @ 0x55aa482a5d80] request: GET /input.m3u8 HTTP/1.1
User-Agent: Lavf/58.76.100
Accept: */*
Range: bytes=0-
Connection: keep-alive
Host: localhost
Icy-MetaData: 1
By the way, the stream works fine when I remove the async parameter
form the link.


More information about the ffmpeg-user mailing list