[FFmpeg-user] hstack a video with a delayed version of itself

Michael Koch astroelectronic at t-online.de
Wed Aug 14 16:08:49 EEST 2019


Hi Moritz,

>
> Without actually trying to reproduce, there is one obvious (to me)
> error in your command line:
>
>> setpts=PTS-4[3]
> This isn't doing what you expect it to. PTS is in "ticks", i.e. certain
> incremental units, but normally not in seconds. That timebase is
> "1/TB". TB is what you see as "tbn" (or "tbc"? doesn't matter) here:
>
>> [SAR 1:1 DAR 3:2], 25 tbr, 25 tbn, 25 tbc
> and here:
>
>>       Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 1200x400 [SAR 1:1 DAR 3:1], q=-1--1, 25 fps, 12800 tbn, 25 tbc
> The setpts docs have this example:
>    • Apply an offset of 10 seconds to the input PTS:
>        setpts=PTS+10/TB
>
> So likely you need to use:
>> setpts=PTS-4/TB[3]

Thank you very much, it's working now!

Michael



More information about the ffmpeg-user mailing list