ffmpeg-cli-wrapper icon indicating copy to clipboard operation
ffmpeg-cli-wrapper copied to clipboard

hls_time: Invalid chars on ffmpeg version 3

Open Euklios opened this issue 6 months ago • 1 comments

Describe the bug HlsOutputBuilder is incompatible with the hls format used in ffmpeg version 3. FFmpeg switched from second based value (eg. 120) to the format we use (2:00, hh:mm:ss) in version 4. Therefore, the hls output is partially incompatible with version 3 (and probably lower)

To Reproduce Running FFmpegHlsOutputBuilderTest while using ffmpeg version 3.

Expected behavior To avoid this, we should probably use the second based representation instead. Alternatively, I could stop testing on ffmpeg version 3.

Version (if applicable):

  • OS: any
  • Java Version 8+
  • FFmpeg version 3 (Not affecting 4 and higher)

Additional context

Console:

ffmpeg -y -v error -i src/test/resources/net/bramp/ffmpeg/samples/big_buck_bunny_720p_1mb.mp4 -f hls -b:v 1000 -hls_time 00:00:05 -hls_segment_filename tmp/file%03d.ts -hls_init_time 00:00:00.003 -hls_list_size 3 -hls_base_url test1234/ tmp/output.m3u8
[hls muxer @ 0x5315b00] [Eval @ 0x7ffe7282f2d0] Invalid chars ':00:05' at the end of expression '00:00:05'
[hls muxer @ 0x5315b00] Unable to parse option value "00:00:05"
[hls muxer @ 0x5315b00] Error setting option hls_time to value 00:00:05.

Euklios avatar Aug 21 '24 09:08 Euklios