hoe niet-monotone DTS in uitvoerstroom 0:1 te repareren; bij gebruik van ffmpeg

Als ik ffmpeggebruik om m3u8naar mp4te converteren, krijg ik een waarschuwing,

ffmpeg -i xx.m3u8 -c copy demo.mp4

waarschuwing is

Non-monotonous DTS in output stream 0:1; previous: 3277744, current: 3276712; changing to 3277745. This may result in incorrect timestamps in the output file.
Non-monotonous DTS in output stream 0:1; previous: 3277745, current: 3277736; changing to 3277746. This may result in incorrect timestamps in the output file.

wat moet ik doen om het op te lossen?


Antwoord 1, autoriteit 100%

ffmpeg -i xx.m3u8 -c copy -bsf:a aac_adtstoasc demo.mp4

Het lijkt erop dat de decoderingstijdstempels zijn verbroken. Je kunt “-flags” proberen
+igndts” om DTS opnieuw te genereren op basis van PTS:

point ts-bestand direct ::

ffmpeg -fflags +igndts -i xx.ts -map 0:0 -map 0:2 -c:v copy -c:a copy demo.mp4

Other episodes