Opened 16 months ago
Closed 16 months ago
#6777 closed defect (fixed)
hls muxer writes a corrupted init filename when segmenting to fmp4 unless absolute path provided
Reported by: | pickles | Owned by: | stevenliu |
---|---|---|---|
Priority: | normal | Component: | undetermined |
Version: | git-master | Keywords: | hls |
Cc: | Blocked By: | ||
Blocking: | Reproduced by developer: | no | |
Analyzed by developer: | no |
Description
Summary of the bug:
As discussed in comments 3-5 in #6776, the hls muxer creates an init file with a corrupted filename when segmenting to fmp4 unless hls_fmp4_init_filename is set with an absolute filename.
How to reproduce:
ffmpeg -f lavfi -i testsrc -hls_segment_filename '%d.m4s' -hls_segment_type fmp4 -hls_fmp4_init_filename init.mp4 -f hls -t 30 fmp4.m3u8
This should create a file init.mp4 in the current directory, but, as no absolute path is given, it writes a corrupted filename to the current directory instead.
Change History (5)
comment:1 Changed 16 months ago by pickles
comment:2 Changed 16 months ago by stevenliu
- Owner set to stevenliu
- Status changed from new to open
let me fix it
comment:3 Changed 16 months ago by stevenliu
try this patch please:
https://patchwork.ffmpeg.org/patch/5693/
comment:4 Changed 16 months ago by pickles
I can confirm that the patch works and fixes the problem. Thanks!
comment:5 Changed 16 months ago by stevenliu
- Resolution set to fixed
- Status changed from open to closed
fixed by commit id: f5208307618d992ddd2d96866cf5a267c9bc7165
Update: It seems to only occur if hls_segment_filename is set.