copyts fails if PCR near rollover
|Reported by:||Nick||Owned by:|
|Blocking:||Reproduced by developer:||no|
|Analyzed by developer:||no|
When the -copyts option is used and the PCR is near the rollover point (doesn't need to rollover, just be near it) ffmpeg appears to drop every video frame and fails to produce video output.
ffmpeg version 3.4.4 (Ubuntu 18.04)
Command: ffmpeg -i pcr_near_rollover.ts -copyts -c:v libx264 -c:a copy output.ts
The output file is small containing the audio but no video. Debug output shows a large number of "cur_dts is invalid" messages and "dropping frame 0" messages.
Removing -copyts produces valid video.
Supply an input file with a PCR further away from the rollover produces valid video.