[FFmpeg-trac] #10786(avformat:open): CODECS for HLS mux hard coded to 4

FFmpeg trac at avcodec.org
Tue Mar 4 06:55:18 EET 2025


#10786: CODECS for HLS mux hard coded to 4
-------------------------------------+-------------------------------------
             Reporter:  David        |                    Owner:  Jack Lau
  Johansen                           |
                 Type:  enhancement  |                   Status:  open
             Priority:  normal       |                Component:  avformat
              Version:  git-master   |               Resolution:
             Keywords:  HLS          |               Blocked By:
             Blocking:               |  Reproduced by developer:  1
Analyzed by developer:  1            |
-------------------------------------+-------------------------------------
Comment (by Jack Lau):

 I tested many cases, and found the reason of this bug.

 Refer to ISO/IEC14496-15, CONSTRAINTS(like b0.1 or 90.0) is a hexadecimal
 representation of the general_constraint_indicator_flags. And each byte is
 separated by a '.', and trailing zero bytes may be omitted. (I write this
 descriptions in my patch)

 So the hard code(B01) is not the only problem, the main problem is that
 "B01" does not conform to the correct syntax, the correct syntax should be
 "B0.1"

 Of course, i test that video with coded "b0.1", it can played well in
 hls.js.

 you can test the video (coded
 "b0.1")"https://raw.githubusercontent.com/JackLau1222/hls_test/refs/heads/main/master_videotoolbox_test.m3u8"
 using hls.js, and you'll see it works well

 wish this patch can solve your problem
 thx
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/10786#comment:7>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list