[FFmpeg-user] Force target DTS == source DTS -- How?

Mark Filipak markfilipak.imdb at gmail.com
Wed Jan 10 19:49:54 EET 2024


Question: How can I force the target's DTS to be the source's DTS?

I'm simply demuxing and remuxing.

To make the targets:

set FORCE=-bsf:v setts=dts=DTS:pts=PTS
set SOURCE=h:\BDMV\STREAM\00305.m2ts
:     IS: 0,    1044806,    1048560,     3753,   640646, 0x900a1a7a, S=1, 1

ffmpeg -to 39.122 -i %SOURCE% -map 0         -c copy -sn -dn c:\target_1.m2ts
: RESULT: 0,     126000,     129754,     3753,   640646, 0x900a1a7a, S=1, 1

ffmpeg -to 39.122 -i %SOURCE% -map 0 %FORCE% -c copy -sn -dn c:\target_2.m2ts
: RESULT: 0,     126000,     129754,     3753,   640646, 0x900a1a7a, S=1, 1

Thanks,
Mark.


More information about the ffmpeg-user mailing list