[FFmpeg-trac] #11337(avfilter:new): "asegment" with relative timestamps created segments of wrong duration
FFmpeg
trac at avcodec.org
Sat Dec 7 18:56:00 EET 2024
#11337: "asegment" with relative timestamps created segments of wrong duration
------------------------------------+------------------------------------
Reporter: pablo | Owner: (none)
Type: defect | Status: new
Priority: normal | Component: avfilter
Version: git-master | Resolution:
Keywords: asegment | Blocked By:
Blocking: | Reproduced by developer: 1
Analyzed by developer: 1 |
------------------------------------+------------------------------------
Changes (by Leo Izen):
* reproduced: 0 => 1
* version: 5.1.4 => git-master
Comment:
I can reproduce this. The issue here appears that the second `+1` is
relative to the first absolute timestamp. This means something like
`'sine=d=10,asegment=1|+1|+1` is creating the last segment as having the
same offset as the second-to-last segment, so the second-to-last segment
has zero duration. Which any encoder fails to encode (you can try with `-f
null -`, for example).
Try something like this:
`ffmpeg -v verbose -lavfi
'sine=d=10,asegment=timestamps=1|+1|+4[a0][a1][a2][a3]' -map '[a0]' -map
'[a1]' -map '[a2]' -map '[a3]' -f null -`
The last segment should start 6 seconds after the initial one, but it
actually starts 5 seconds after the initial one.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/11337#comment:2>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list