Nicht monotones DTS im Ausgabestrom 0: 1

308
maclin

Ich habe ein Video und versuche einige Szenen daraus zu schneiden, zum Beispiel:

ffmpeg -i "/test-in.mp4" -ss 00:00:00 -t 967.640 -g 25 -b 350k -maxrate 350k -bufsize 700k /test-out1.mp4 ffmpeg -i "/test-in.mp4" -ss 00:20:18.520 -t 978.800 -g 25 -b 350k -maxrate 350k -bufsize 700k /test-out2.mp4 ffmpeg -i "/test-in.mp4" -ss 00:36:58.120 -t 8.000 -g 25 -b 350k -maxrate 350k -bufsize 700k /test-out3.mp4 ffmpeg -i "/test-in.mp4" -ss 00:40:50.120 -t 570.560 -g 25 -b 350k -maxrate 350k -bufsize 700k /test-out4.mp4 

Danach ändere ich es in TS:

ffmpeg -i /test-out1.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts /intermediate1.ts ffmpeg -i /test-out2.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts /intermediate2.ts ffmpeg -i /test-out3.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts /intermediate3.ts ffmpeg -i /test-out4.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts /intermediate4.ts 

Und nach concat:

ffmpeg -analyzeduration 214748364 -i "concat:intermediate1.ts|intermediate2.ts|intermediate3.ts|intermediate4.ts" -absf aac_adtstoasc -c copy test-cut.mp4 

Beim Concat-Betrieb habe ich folgende Warnung:

[mp4 @ 0x4c24d40] Non-monotonous DTS in output stream 0:1; previous: 46446432, current: 46445696; changing to 46446433. This may result in incorrect timestamps in the output file. [mp4 @ 0x4c24d40] Non-monotonous DTS in output stream 0:1; previous: 93428864, current: 93428096; changing to 93428865. This may result in incorrect timestamps in the output file. 

Ich verstehe nicht, warum es passiert. Kann jemand erklären, ob ich mit Schnittoperationen etwas falsch mache?

0
Jungs, wenn es ein Fehler ist? Ich verwende die neueste Version ffmpeg-4.1 -version ffmpeg Version 4.1 Copyright (c) 2000-2018 die FFmpeg-Entwickler, die mit gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-23) erstellt wurden. Konfiguration: --prefix = / opt / ffmpeg-4.1 / --extra-cflags = -I / opt / ffmpeg-4.1 / include --extra-ldflags = '- L / opt / ffmpeg-4.1 / lib -ldl' --pkg-config-flags = --static --enable-gpl --enable-libx265 --extra-libs = -lpthread --enable-libfdk_aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libvorbis --enable- libvpx --enable-libx264 --enable-nonfree maclin vor 5 Jahren 0

0 Antworten auf die Frage