Opened 2 years ago

Last modified 15 months ago

#9555 reopened defect

Please add support on br (Brotli) decoding on https (HLS request)

Reported by: Mario101_HC Owned by:
Priority: normal Component: ffmpeg
Version: 4.4.3 Keywords: HLS https hls
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description (last modified by Mario101_HC)

Summary of the bug:
Received this line "unknown content coding: br" on the stream download (via hls)

How to reproduce:
ffmpeg \
-report \
-user_agent "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.55 Safari/537.36" \
-headers "Accept: */*"$'\r\n'"Origin: https://hqq.tv"$'\r\n' \
-i "https://3gd64u.cfeucdn.com/silverlight/secip/38769/3XZ9nnAHLsRKRR7ic579Zg/NjEuOTIuODMuNzE=/1639772958/hls-vod-s006/flv/api/files/videos/2021/03/18/16160595861ypo5.mp4.m3u8" \
-c copy [Any file path]

ffmpeg version:
built on ffmpeg version 4.4.1 - built with Apple clang version 12.0.0 (clang-1200.0.32.29)
}}}

Log main point:
[https @ 0x7f8858b85380] Unknown content coding: br

Attachments (1)

ffmpeg-20211217-223804.log (89.9 KB ) - added by Mario101_HC 2 years ago.
Log file

Download all attachments as: .zip

Change History (10)

by Mario101_HC, 2 years ago

Attachment: ffmpeg-20211217-223804.log added

Log file

comment:1 by Mario101_HC, 2 years ago

Description: modified (diff)

comment:2 by Mario101_HC, 2 years ago

Component: undeterminedffmpeg
Description: modified (diff)
Keywords: HLS https hls added

comment:3 by Mario101_HC, 2 years ago

Status: newopen
Summary: Unknown content coding: br on https requestPlease add support on br (Brotile) decoding on https (HLS request)

comment:4 by Mario101_HC, 2 years ago

Summary: Please add support on br (Brotile) decoding on https (HLS request)Please add support on br (Brotli) decoding on https (HLS request)

comment:5 by Mario101_HC, 2 years ago

static int parse_content_encoding(URLContext *h, const char *p)
{

if (!av_strncasecmp(p, "gzip", 4)

!av_strncasecmp(p, "deflate", 7)) {

anyone may help check possibility and guidance on adding br decompressing logic in parse content? ~ thanks

https://github.com/google/brotli/blob/master/c/tools/brotli.c
Google provided brotli decompressor

Last edited 2 years ago by Mario101_HC (previous) (diff)

comment:6 by Balling, 2 years ago

Is this part of HTTP/3?

in reply to:  6 comment:7 by Mario101_HC, 2 years ago

Replying to Balling:

Is this part of HTTP/3?

I am not sure, but see that it is a 2015 developed from google, open source decompression protocol format that improves loading speed for website

Last edited 2 years ago by Mario101_HC (previous) (diff)

comment:8 by Balling, 15 months ago

Resolution: needs_more_info
Status: openclosed
ffmpeg  -user_agent "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.55 Safari/537.36" -headers "Accept: */*"$'\r\n'"Origin: https://hqq.tv"$'\r\n' -i https://3gd64u.cfeucdn.com/silverlight/secip/38769/3XZ9nnAHLsRKRR7ic579Zg/NjEuOTIuODMuNzE=/1639772958/hls-vod-s006/flv/api/files/videos/2021/03/18/16160595861ypo5.mp4.m3u8 -c copy fcqemfeqa.mp4

Does not work here.

comment:9 by Balling, 15 months ago

Resolution: needs_more_info
Status: closedreopened
Note: See TracTickets for help on using tickets.