Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

Domains: forum.doom9.org / forum.doom9.net / forum.doom9.se

 

Go Back   Doom9's Forum > Capturing and Editing Video > HDTV / DVB / TiVo

Reply
 
Thread Tools Search this Thread Display Modes
Old 18th January 2026, 01:18   #1  |  Link
frobber
Registered User
 
frobber's Avatar
 
Join Date: Sep 2023
Posts: 28
Repairing damaged TS files

I am trying to process a TS file using AviSynth, but the audio goes out of sync due to some slight corruption of the file.

To attempt repairs, here's what I've tried, thus far:

(1) Running the TS file through TS-Doctor, which reports several errors.

After attempting to fix these errors with TS-Doctor, I then tried converting the container from TS to MP4 with ffmpeg, but that fails with "Packet corrupt ...Error parsing ADTS frame header", so it seems TS-Doctor couldn't straighten out all the issues.

(2) Running the TS file through tsMuxer and then ffmpeg before running the result through AviSynth.

By doing this, I can get ffmpeg to complete without errors, though it complains about "non-monotonic DTS". But again, when I mux the audio and video back together, the audio goes out of sync.

It is of course possible I'm just doing these steps wrong, but are there other approaches, or a guide somewhere for doing this?

Thanks in advance!

Last edited by frobber; 18th January 2026 at 01:49.
frobber is offline   Reply With Quote
Reply

Tags
ffmpeg

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 10:42.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.