Opened 3 months ago

#10218 new defect

ffmpeg time duration option -t not respected if -fflags nobuffer is used with HLS

Reported by: cjaone Owned by:
Priority: normal Component: ffmpeg
Version: 4.4.3 Keywords: buffer avio HLS hls
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no


Summary of the bug:

If -fflags nobuffer is used, the output stream will be shorter than specified by the -t <duration> option.

If -fflags is omitted the length of the recording will be exactly <duration> seconds.

How to reproduce:

% time ffmpeg -report -fflags nobuffer -i -y -loglevel error -c copy -t 10 0.ts

Above URL may not work for you, could be geolocated (Germany).

Resulting file "0.ts" (not attached to this ticket) has playing duration of 6 seconds (expected: 10 seconds).

Without the "-fflags nobuffer" the duration is 10 seconds.

Attachments (1)

ffmpeg-20230224-185819.log (1.4 MB ) - added by cjaone 3 months ago.

Download all attachments as: .zip

Change History (1)

by cjaone, 3 months ago

Attachment: ffmpeg-20230224-185819.log added
Note: See TracTickets for help on using tickets.