[FFmpeg-user] rewrite tags in a source's PES headers -- How?

Mark Filipak markfilipak.imdb at gmail.com
Sat Nov 11 20:26:46 EET 2023


Here's what I'm doing:
-bsf:v setts=time_base=1/24000:pts=N*1001:dts=N*1001

Here's the result:
frame  pts                        dts
  0        0                       2002 <= should be  1001
  1     3003 <= should be  1001    3003 <= should be  2002
  2     4004 <= should be  2002    4004 <= should be  3003
  3     2002 <= should be  3003    5005 <= should be  4004
  4     5005 <= should be  4004    6006 <= should be  5005
  5     1001 <= should be  5005    7007 <= should be  6006
  6     8008 <= should be  6006    8008 <= should be  7007
  7     9009 <= should be  7007    9009 <= should be  8008
  8     7007 <= should be  8008   10010 <= should be  9009
  9    10010 <= should be  9009   11011 <= should be 10010
10     6006 <= should be 10010   12012 <= should be 11011
11    13013 <= should be 11011   13013 <= should be 12012
12    12012 <= should be 12012   14014 <= should be 13013
13    14014 <= should be 13013   15015 <= should be 14014
14    11011 <= should be 14014   16016 <= should be 15015
15    17017 <= should be 15015   17017 <= should be 16016
16    18018 <= should be 16016   18018 <= should be 17017

The source video is 'NTSC'-soft.
Can this be explained?
Can it be countered?

PTSs in frames 1..5 are +2 +2 -1 +1 -4
PTSs in frames 6..10 are +2 +2 -1 +1 -4
PTSs in frames 11..15 are +2 +0 +1 -3 +2
I'm baffled.


Hi,

I'm getting some 'wandering' PTSs in the target video.
The target's PTSs are all in the form 'N*1001', but they go up and down as though 'N' goes up and down.

     -bsf:v setts=time_base=1/24000:pts=N*1001:dts=N*1001

The source video is 'NTSC'-soft.

In order to test further, I need a way to change the soft telecine tags in the source VOBs. I've 
spent 2 days trying various things.

Is there a way to rewrite tags in a source's PES headers prior to decoding?

Thanks -- Mark.



More information about the ffmpeg-user mailing list