[FFmpeg-trac] #9193(undetermined:new): Invalid initialization segment with HLS FMP4 encoder

FFmpeg trac at avcodec.org
Sun Apr 18 07:19:50 EEST 2021


#9193: Invalid initialization segment with HLS FMP4 encoder
-------------------------------------+-------------------------------------
             Reporter:  Jason        |                    Owner:  (none)
                 Type:  defect       |                   Status:  new
             Priority:  important    |                Component:
                                     |  undetermined
              Version:  git-master   |               Resolution:
             Keywords:               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
Description changed by Jason:

Old description:

> VERSION: ffmpeg version 4.4 | Windows & Linux
>
> The HLS encoder (used with fmp4 segmenting) began generating invalid
> initialization segments consisting of 5 boxes (ftyp, moov, sidx, moof, &
> mdat) with the latest release -- and an invalid first data segment
> consisting of a single styp box with no data. Subsequent segments after
> the first are OK.
>
> It appears if the initialization segment has taken over the data from the
> first segment.
>

> Version 4.3 and the dash encoder generate an initialization segment with
> a single ftyp and moov box, as expected.
>
> Here is sample command that exhibits the behavior:
>

> ffmpeg.exe -i "any.mp4" -y -an -codec:v libx264 -profile:v baseline
> -level 3.0 -b:v 1000k -s 960x540 -force_key_frames "expr:gte(t, n_forced
> * 2)" -deinterlace -flags +cgop -hls_init_time 0 -hls_time 4
> -hls_list_size 0 -hls_segment_filename %06d.m4s -hls_segment_type fmp4
> -hls_fmp4_init_filename init.m4s -hls_flags
> +independent_segments+temp_file -hls_playlist_type event -f hls
> "output.m3u8"

New description:

 VERSION: ffmpeg version 4.4 | Windows & Linux

 The HLS encoder (used with fmp4 segmenting) began generating invalid
 initialization segments consisting of 5 boxes (ftyp, moov, sidx, moof, &
 mdat) with the latest release -- and an invalid first data segment
 consisting of a single styp box with no data. Subsequent segments after
 the first are OK.

 It appears if the initialization segment has taken over the data from the
 first segment.


 Version 4.3 and the dash encoder generate an initialization segment with a
 single ftyp and moov box, as expected.

 Here is sample command that exhibits the behavior:


 ./ffmpeg.exe -i "a.mp4" -y -an -codec:v libx264 -b:v 1000k -s 960x540
 -hls_time 4 -hls_segment_type fmp4 -hls_playlist_type event -f hls
 "output.m3u8"

--
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/9193#comment:3>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list