VideoHelp Forum
+ Reply to Thread
Results 1 to 17 of 17
Thread
  1. Member
    Join Date
    Oct 2021
    Location
    Poland
    Search PM
    Hello, i have a TS MPEG4 file that has duration 10:33, but actually it has duration 10:22. Can someone tell me how to repair that TS file so it has duration 10:33?
    Quote Quote  
  2. upload it somewhere and post the link here
    Quote Quote  
  3. Member
    Join Date
    Aug 2013
    Location
    Central Germany
    Search PM
    The problem is probably: MPEG TransferStream files have no keyframe seek index. Analysis tools usually will not scan the whole file from the beginning to the end to count every GOP with a timecode, that would take quite a long time. Instead they rather rely on a header field which reports a planned average bitrate and divide the file size by it to estimate the playing time.

    Remultiplex this TS file to MP4 or MKV and you will get a reliable duration.
    Quote Quote  
  4. Member
    Join Date
    Oct 2021
    Location
    Poland
    Search PM
    Oh, and i forgot to add that in some parts of that TS file there's a glitch thing that skips frames or seconds of the video.
    Quote Quote  
  5. Member
    Join Date
    Aug 2013
    Location
    Central Germany
    Search PM
    Possibly damaged data, if the source is really DVB.
    Quote Quote  
  6. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    Have you tried making an MKV from it MKVtoolnix GUI? This often helps
    Quote Quote  
  7. Oh, and i forgot to add that in some parts of that TS file there's a glitch thing that skips frames or seconds of the video.
    It's only a glitch, a temporary setback.
    (Today I learned... that the actor whose character got blown to pieces in that infamous scene almost got his balls blown off by a misplaced blood squib...)
    Quote Quote  
  8. Member
    Join Date
    Oct 2021
    Location
    Poland
    Search PM
    Okay, so i tried the TMPGEnc MPEG Smart Renderer and MKVToolnix and the original duration of the video was retained, but the video freezes on some minutes.
    Quote Quote  
  9. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    Originally Posted by PanMarSag View Post
    Okay, so i tried the TMPGEnc MPEG Smart Renderer and MKVToolnix and the original duration of the video was retained, but the video freezes on some minutes.
    This is because there is an underlying problem with the source


    In ffmpeg perhaps something like this:
    Code:
    ffmpeg -fflags +genpts -i input.ts -vcodec copy -acodec copy "output.mkv"
    Quote Quote  
  10. Member
    Join Date
    Oct 2021
    Location
    Poland
    Search PM
    I tried ffmpeg and tsdoctor, but still, didn't fix it for me.
    Quote Quote  
  11. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    Originally Posted by PanMarSag View Post
    I tried ffmpeg and tsdoctor, but still, didn't fix it for me.
    Can you upload this file? How are you so sure what the length should be
    Quote Quote  
  12. Member
    Join Date
    Feb 2006
    Location
    United States
    Search Comp PM
    Originally Posted by PanMarSag View Post
    I tried ffmpeg and tsdoctor, but still, didn't fix it for me.
    try re running your file through ffmpeg using this - ffmpeg -i input -c:v copy -c:a copy output and see if it corrects
    the duration. - https://superuser.com/questions/863183/how-to-fix-ffmpeg-inaccurate-time-stamp-that-co...ail-generation
    Quote Quote  
  13. Member
    Join Date
    Oct 2021
    Location
    Poland
    Search PM
    Originally Posted by october262 View Post
    Originally Posted by PanMarSag View Post
    I tried ffmpeg and tsdoctor, but still, didn't fix it for me.
    try re running your file through ffmpeg using this - ffmpeg -i input -c:v copy -c:a copy output and see if it corrects
    the duration. - https://superuser.com/questions/863183/how-to-fix-ffmpeg-inaccurate-time-stamp-that-co...ail-generation
    I tried that too, but the duration is 39:14 and there are still skips in seconds.
    Quote Quote  
  14. Member
    Join Date
    Oct 2021
    Location
    Poland
    Search PM
    I tried MKVToolnix and the original duration is back, but there are still skips in seconds.
    Quote Quote  
  15. Member
    Join Date
    Aug 2013
    Location
    Central Germany
    Search PM
    Well, as I already said ... if the source is Digital TV Broadcast, the reason might be signal drops. Then you lost some content.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!