Opened 9 years ago

Closed 7 years ago

#2350 closed enhancement (invalid)

PTS adjustment in FFmpeg

Reported by: Clément Bœsch Owned by:
Priority: wish Component: ffmpeg
Version: git-master Keywords: dts
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

It is possible to adjust pts with the [a]setpts filters. Unfortunately, it requires re-encoding.

It would be handy if the timestamps could be adjusted at formats level only, so it would only require remuxing to, for instance, shift timestamps.

Such option would be similar to the -y option in mkvmerge. Using our eval system would provide advanced usage.

Change History (6)

comment:1 by Carl Eugen Hoyos, 9 years ago

Keywords: dts added
Priority: normalwish
Version: unspecifiedgit-master

comment:2 by Clément Bœsch, 9 years ago

I wonder I could have missed the -itsoffset option, which allows the shift feature...

comment:3 by Clément Bœsch, 8 years ago

Resolution: invalid
Status: newclosed

comment:4 by pickles, 7 years ago

Keywords: bitstream added
Resolution: invalid
Status: closedreopened

This would still be a very useful addition. In my case, for example, I need to change the PTS to a fixed rate of 25 frames per second and also change the audio timestamps by counting samples. I achieve this with -vf 'setpts=N/(25*TB)' -af 'asetpts=N/SR/TB' which works great, but, of course, it needs re-encoding, which is unnecessary and time consuming, especially as this is used via a server-side script.

A bitstream filter version of setpts/asetpts would be ideal. Is it even technically possible?

comment:5 by pickles, 7 years ago

Keywords: setpts added; dts removed

comment:6 by Carl Eugen Hoyos, 7 years ago

Keywords: dts added; bitstream setpts removed
Resolution: invalid
Status: reopenedclosed

Please do not reopen ancient tickets.
There is a user mailing list, the input option -r and you can open a new ticket if you want to report a deficiency of this option.
Don't forget to test current FFmpeg git head and to provide a command line together with the complete, uncut console output.

Note: See TracTickets for help on using tickets.