Author Topic: .ts file does not complete trimming  (Read 343 times)

jfr7sjek

  • Newbie
  • *
  • Posts: 7
.ts file does not complete trimming
« on: April 18, 2017, 10:18:56 PM »
when trimming certain .ts files the trimming does not complete. these errors appear --> Too Short. The video has been saved but seems to be incomplete.--> Failed File was not saved correctly.  i have used the latest stable and nightly builds of avidemux with the same errors. when fixing the file with mpeg2repair which can also fix .ts files, i get the same errors. but, when i use a program named tsMuxerGUI 2.6.12, the trimming completes with or without using mpeg2repair. tsMuxerGUI does not have a visual timeline/trimmer. both tsMuxerGUI and avidemux may or may not use ffmpeg. tsMuxerGUI were last updated Jan 20,2014. this date may be relevant to the changes that ffmpeg made since tsMuxerGUI's last update allowing ffmpeg to trim those files within tsMuxerGUI and not trimming in avidemux. the log file and the link to a sample file are included below.

sample file link  https://www.sendspace.com/file/9x405t
« Last Edit: April 18, 2017, 10:23:38 PM by jfr7sjek »

mean

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 10883
Re: .ts file does not complete trimming
« Reply #1 on: April 24, 2017, 06:40:02 AM »
Seems there is a lot of duplicated timestamp
How did you get the files ? . Over the air capture ?

jfr7sjek

  • Newbie
  • *
  • Posts: 7
Re: .ts file does not complete trimming
« Reply #2 on: April 24, 2017, 04:40:32 PM »
over the air capture

jfr7sjek

  • Newbie
  • *
  • Posts: 7
Re: .ts file does not complete trimming
« Reply #3 on: May 08, 2017, 03:56:27 PM »
i have found a temporary fix. first i demux the .ts file with dgmpgdec158. then mux it with tsmuxer 2.6.12. afterwards the file properly trims with avidemux.
any update on what is causing this issue?

Jan Gruuthuse

  • Hero Member
  • *****
  • Posts: 5305
Re: .ts file does not complete trimming
« Reply #4 on: May 09, 2017, 05:26:12 AM »
DGDecode (AviSynth 2.5.8 or later), part of the DGMPGDec package, is a MPEG-1/2 decoder by Donald Graft

Probably: you could have done the same with avidemux 2.5.6
« Last Edit: May 09, 2017, 05:51:41 AM by Jan Gruuthuse »

jfr7sjek

  • Newbie
  • *
  • Posts: 7
Re: .ts file does not complete trimming
« Reply #5 on: May 09, 2017, 03:39:06 PM »
how do i complete the same steps only using avidemux? i am using avidemux version 2.6.12. are their differences between 2.5.6 and 2.6.12 that would allow 2.5.6 to demux and mux a .ts file?

Jan Gruuthuse

  • Hero Member
  • *****
  • Posts: 5305
Re: .ts file does not complete trimming
« Reply #6 on: May 10, 2017, 08:38:20 AM »
2.5 is framed based while 2.6 is time based
2.5 could process some SD tv better (MPEG-1/2 video)
If you find a working 2.5 version: load video and edit as you are used to.

I don't have a working Avidemux 2.5.6 any more (switch from Qt4 to Qt5 on ubuntu), so I'm no longer able to test this.

avidemux 2.6 can read and process .ts, Your .ts has issues

eumagga0x2a

  • Hero Member
  • *****
  • Posts: 1097
Re: .ts file does not complete trimming
« Reply #7 on: May 10, 2017, 11:56:09 AM »
i am using avidemux version 2.6.12.

Why not the current release (2.6.20 win32 / 2.6.21 win64)? 2.6.12 is ancient.

Quote
are their differences between 2.5.6 and 2.6.12 that would allow 2.5.6 to demux and mux a .ts file?

2.6.20/2.6.21 demuxes and muxes transport streams quite fine, but it won't handle duplicated timestamps in heavily corrupted streams like your sample in copy mode. Reencoding the stream with x264 works when using Lavcodec as video decoder.