Opened 4 weeks ago

Closed 4 weeks 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 4 weeks ago by pickles

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

comment:2 Changed 4 weeks ago by stevenliu

  • Owner set to stevenliu
  • Status changed from new to open

let me fix it

comment:3 Changed 4 weeks ago by stevenliu

comment:4 Changed 4 weeks ago by pickles

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

comment:5 Changed 4 weeks ago by stevenliu

  • Resolution set to fixed
  • Status changed from open to closed
Note: See TracTickets for help on using tickets.