Opened 3 months ago

Last modified 3 months ago

#7449 new defect

copyts fails if PCR near rollover

Reported by: jafa Owned by:
Priority: normal Component: undetermined
Version: 3.4 Keywords: copyts dts
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

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

Input media: https://download.silicondust.com/tmp/pcr_near_rollover.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.

Change History (1)

comment:1 Changed 3 months ago by cehoyos

  • Keywords dts added; pcr removed

Is the issue reproducible with current FFmpeg git head, the only version supported here?

Why are you using -copyts if not using it produces better results?

Note: See TracTickets for help on using tickets.