Opened 4 years ago

Closed 4 years 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: Steven Liu
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 by pickles, 4 years ago

Update: It seems to only occur if hls_segment_filename is set.

comment:2 by Steven Liu, 4 years ago

Owner: set to Steven Liu
Status: newopen

let me fix it

comment:3 by Steven Liu, 4 years ago

comment:4 by pickles, 4 years ago

I can confirm that the patch works and fixes the problem. Thanks!

comment:5 by Steven Liu, 4 years ago

Resolution: fixed
Status: openclosed
Note: See TracTickets for help on using tickets.