[FFmpeg-user] Replacement for showinfo's former "pos"?
Moritz Barsnick
barsnick at gmx.net
Sat Nov 23 19:48:21 EET 2024
Hi,
I'm looking for a replacement for what the "showinfo" filter used to be
able to display.
Before commit 27f8c9b27bce42a4a6a4c64e03fab769579c8683, filters got the
information of the byte position within a file. I used this information
from showinfo for this:
I am trying to truncate MPEG-TS files on my disk. I know the timestamp
of the last position I want to retain, so I did:
$ ffmpeg -ss <timestamp to truncate from> -i video.ts -map 0:v -vf showinfo -t 2 -f null -
and uses the "pos" information in a call to "truncate".
This info is no longer available. Are there any alternatives using
ffmpeg?
A bitstream filter would be just as good as filter, as there's little
need to actually decode the stream. And I noticed that struct AVPacket
still contains pos.
Thanks,
Moritz
More information about the ffmpeg-user
mailing list