Opened 6 months ago

Last modified 6 months ago

#7313 new defect

hls_fmp4_init_filename not properly formated

Reported by: dennisss Owned by:
Priority: normal Component: avformat
Version: git-master Keywords: hls
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no


The documentation for the hls_fmp4_init_filename argument requires that if it is given, that it contains a "%v" string that will be replaced with the variation number. Likewise this is validated by the code here:

But if a provide a value for it which is not the default ("init.mp4"), the "%v" does not get replaced and instead the variant number seems to have the fixed behavior of always appending it to the filename.

So given a pattern of something_init_%v.mp4, it currently outputs a file named something_init_%v_1.mp4, while I would expect it to output something_init_1.mp4.

If it helps, I think that the appending of the variant to the end occurs here:, but there does not appear to be any consideration of "%v" in the string.

If I comment out the entire validation block referenced in the first link and use the input pattern something_init.mp4, then it works fine for my needs, but is still inconsistent with the documentation.

How to reproduce:

% ffmpeg ..... -hls_fmp4_init_filename "something_init_%v.mp4" ....

Change History (1)

comment:1 Changed 6 months ago by cehoyos

  • Analyzed by developer unset
  • Keywords hls added
  • Reproduced by developer unset
Note: See TracTickets for help on using tickets.