Answers.Body: <p>My DVB-T recordings always have this issue. Try MC-TVConverter2!</p>
  
  <p>It is a (old but still reliable) graphical interface for several video tools. Try converting your original ts recording(s) using the MPEG2 HQ setting - I've found this option to be more of a repair than a re-encode, as the conversion is quick and the resultant file size is very close to the original recording.</p>
  
  <p>There are numerous other conversion options, but the MPEG4 one takes a long time to re-encode, even with MPEG4 based ts files. It also has ad detection but I haven't tried it.</p>
  
  <p>You're unable to use an ntfs formatted drive for recording?</p>
  
  <p>Report back on how you go!</p>
  
  <p><a href="http://mctvconverter.vivolum.net/" rel="nofollow noreferrer">http://mctvconverter.vivolum.net/</a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-01-19T03:43:36.683Z
Answers.LastActivityDate: 2020-01-19T03:43:36.683Z
Answers.UserDisplayName: Brian M
Body: <p>I have recorded broadcast-ed material using a DVB-T tuner.</p>
  
  <p>That produces several TS files per recording (most likely to keep filesize within FAT32 limitations).</p>
  
  <p>I have concatenated each recording into a single TS file using:</p>
  
  <pre><code>ffmpeg.exe -f concat -i $filelist -c copy -y $outputfile
  </code></pre>
  
  <p>From there, I need to perform edits to remove commercials, strip extra stuff from the start and end, and optionally extract each episode into a separate file.</p>
  
  <p>I own Pinnacle Studio 23 Ultimate, that doesn't support TS as input so I'm converting TS to MP4 using something like:</p>
  
  <pre><code>ffmpeg -y -i foo.ts -crf 18 -ac 2 -r 25 -c:v libx265 -ar 48000 -b:a 192k -c:a aac -aspect 16:9 bar.mp4
  </code></pre>
  
  <p>(I've tried several ways/options, including using HandBrake for that conversion).</p>
  
  <p>What happens is that in the resulting edited material, audio and video are out of sync. Can be in the whole file, or only in some sections.</p>
  
  <p>This could be linked to glitches (missing frames...) in the original recording.</p>
  
  <p>But when I play the original single-file TS, or the MP4 version, in any player such as VLC, audio and video are properly aligned. So these players are able to deal with the aforementioned glitches and "re-align" the audio and video streams.</p>
  
  <p>How can I "rewrite" the whole input file in such a way that audio and video are "fully synchronized" so that editing will be possible?</p>
  
  <p>Thanks in advance for your help.</p>
  
Tags: <video><audio><sync>
Title: Fixing audio/video out of sync when editing recorded broadcast
UserDisplayName: sba923
ThreadText: # Fixing audio/video out of sync when editing recorded broadcast
  
  (Asked by: username_0 on 2019-12-27)
  
  I have recorded broadcast-ed material using a DVB-T tuner.
  
  That produces several TS files per recording (most likely to keep filesize within FAT32 limitations).
  
  I have concatenated each recording into a single TS file using:
  
  ```
  ffmpeg.exe -f concat -i $filelist -c copy -y $outputfile
  
  ```
  
  From there, I need to perform edits to remove commercials, strip extra stuff from the start and end, and optionally extract each episode into a separate file.
  
  I own Pinnacle Studio 23 Ultimate, that doesn't support TS as input so I'm converting TS to MP4 using something like:
  
  ```
  ffmpeg -y -i foo.ts -crf 18 -ac 2 -r 25 -c:v libx265 -ar 48000 -b:a 192k -c:a aac -aspect 16:9 bar.mp4
  
  ```
  
  (I've tried several ways/options, including using HandBrake for that conversion).
  
  What happens is that in the resulting edited material, audio and video are out of sync. Can be in the whole file, or only in some sections.
  
  This could be linked to glitches (missing frames...) in the original recording.
  
  But when I play the original single-file TS, or the MP4 version, in any player such as VLC, audio and video are properly aligned. So these players are able to deal with the aforementioned glitches and "re-align" the audio and video streams.
  
  How can I "rewrite" the whole input file in such a way that audio and video are "fully synchronized" so that editing will be possible?
  
  Thanks in advance for your help.
  
  **Tags:** video, audio, sync
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2020-01-19. Score: 1
  
  My DVB-T recordings always have this issue. Try MC-TVConverter2!
  
  It is a (old but still reliable) graphical interface for several video tools. Try converting your original ts recording(s) using the MPEG2 HQ setting - I've found this option to be more of a repair than a re-encode, as the conversion is quick and the resultant file size is very close to the original recording.
  
  There are numerous other conversion options, but the MPEG4 one takes a long time to re-encode, even with MPEG4 based ts files. It also has ad detection but I haven't tried it.
  
  You're unable to use an ntfs formatted drive for recording?
  
  Report back on how you go!
  
  <http://mctvconverter.vivolum.net/>
  
  
  ---
  
  