title: ffmpeg remove Non-Monotonous DTS frames
body: <p>Is it possible to stream copy a .ts file to another .ts file by removing the Non-Monotonous DTS frames? These frames usually also have a smaller resolution than the video I am trying to copy. I attempted this with VideoReDo but it did not work and I cannot seem to make it work.</p>
  
  <p>Also, the MediaInfo for the video after remixed to Matrosks shows this:</p>
  
  <pre><code>Video
  ID                                       : 1
  Format                                   : AVC
  Format/Info                              : Advanced Video Codec
  Format profile                           : High@L3.2
  Format settings                          : CABAC / 2 Ref Frames
  Format settings, CABAC                   : Yes
  Format settings, RefFrames               : 2 frames
  Codec ID                                 : V_MPEG4/ISO/AVC
  Duration                                 : 2 h 35 min
  Nominal bit rate                         : 6 000 kb/s
  Width                                    : 896 pixels
  Original width                           : 1 280 pixels
  Height                                   : 504 pixels
  Original height                          : 720 pixels
  Display aspect ratio                     : 16:9
  Frame rate mode                          : Constant
  Frame rate                               : 30.000 FPS
  Original frame rate                      : 60.000 FPS
  Color space                              : YUV
  Chroma subsampling                       : 4:2:0
  Bit depth                                : 8 bits
  Scan type                                : Progressive
  Bits/(Pixel*Frame)                       : 0.443
  Writing library                          : x264 core 148 r2579M 73ae2d1
  Encoding settings                        : cabac=1 / ref=2 / deblock=1:0:0 / analyse=0x3:0x113 / me=hex / subme=2 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=0 / me_range=16 / chroma_me=1 / trellis=0 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=0 / threads=4 / lookahead_threads=1 / sliced_threads=0 / nr=250 / decimate=1 / interlaced=0 / bluray_compat=0 / stitchable=1 / constrained_intra=0 / bframes=0 / weightp=1 / keyint=122 / keyint_min=12 / scenecut=40 / intra_refresh=0 / rc_lookahead=10 / rc=2pass / mbtree=1 / bitrate=6000 / ratetol=1.0 / qcomp=0.60 / qpmin=5 / qpmax=69 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / aq=1:1.00
  Default                                  : Yes
  Forced                                   : No
  </code></pre>
  
  <p>Thanks for the help!</p>