Re: [FFmpeg-user] Some questions about PTS

2020-08-28 Thread Mark Filipak
The PTS value below: 000- 000- 1000 1001 1000 111-, is for a particular case. It will vary for other videos. I hope that didn't confuse you. On 08/28/2020 03:51 AM, Michael Koch wrote: Hello all, please comment if the following is right or wrong: -- The timebase of a video (TB

Re: [FFmpeg-user] Some questions about PTS

2020-08-28 Thread Mark Filipak
On 08/28/2020 03:51 AM, Michael Koch wrote: Hello all, please comment if the following is right or wrong: -- The timebase of a video (TB in setpts filter) is expressed in the unit [s] (seconds). -- The framerate of a video (FR in setpts filter) is expressed in the unit [s^-1] (1/seconds). --

Re: [FFmpeg-user] Some questions about PTS

2020-08-28 Thread Michael Koch
Am 28.08.2020 um 13:38 schrieb Edward Park: Hi, Let's assume the framerate is constant. For example, I want to delay a video by 5 frames and then hstack the original video and the delayed version: ffmpeg -i test.mp4 -vf "split[a][b];[b]setpts=PTS+5/(FR*TB)[c];[a][c]hstack" -y out.mp4 I

Re: [FFmpeg-user] Some questions about PTS

2020-08-28 Thread Nicolas George
Michael Koch (12020-08-28): > Let's assume the framerate is constant. For example, I want to delay a video > by 5 frames and then hstack the original video and the delayed version: No, let us not make unfounded asumption and let us think in terms of timestamps. Anything else is a waste of time.

Re: [FFmpeg-user] Some questions about PTS

2020-08-28 Thread Edward Park
Hi, > Let's assume the framerate is constant. For example, I want to delay a video > by 5 frames and then hstack the original video and the delayed version: > > ffmpeg -i test.mp4 -vf "split[a][b];[b]setpts=PTS+5/(FR*TB)[c];[a][c]hstack" > -y out.mp4 I would try tpad=start=5, but I'm not

Re: [FFmpeg-user] Some questions about PTS

2020-08-28 Thread Paul B Mahol
On 8/28/20, Michael Koch wrote: > Am 28.08.2020 um 11:25 schrieb Edward Park: >> Hello, >> >> I am not confident about this info but I've always thought the timebase is >> usually the reciprocal of the framerate *or smaller*. As in, the duration >> of a frame can be represented accurately enough

Re: [FFmpeg-user] Some questions about PTS

2020-08-28 Thread Michael Koch
Am 28.08.2020 um 11:25 schrieb Edward Park: Hello, I am not confident about this info but I've always thought the timebase is usually the reciprocal of the framerate *or smaller*. As in, the duration of a frame can be represented accurately enough as the difference between the timestamps,

Re: [FFmpeg-user] Some questions about PTS

2020-08-28 Thread Edward Park
Hello, I am not confident about this info but I've always thought the timebase is usually the reciprocal of the framerate *or smaller*. As in, the duration of a frame can be represented accurately enough as the difference between the timestamps, which aren't counted using seconds, but "ticks"

Re: [FFmpeg-user] Some questions about PTS

2020-08-28 Thread Nicolas George
Michael Koch (12020-08-28): > -- The timebase of a video (TB in setpts filter) is expressed in the unit > [s] (seconds). > -- The framerate of a video (FR in setpts filter) is expressed in the unit > [s^-1] (1/seconds). > -- In many cases the timebase is the reciprocal of the framerate, but this >

[FFmpeg-user] Some questions about PTS

2020-08-28 Thread Michael Koch
Hello all, please comment if the following is right or wrong: -- The timebase of a video (TB in setpts filter) is expressed in the unit [s] (seconds). -- The framerate of a video (FR in setpts filter) is expressed in the unit [s^-1] (1/seconds). -- In many cases the timebase is the reciprocal