Avidemux Forum

Avidemux => Main version 2.6 => Topic started by: pulbitz on September 08, 2021, 03:33:01 AM

Title: Some .ts files fail to open
Post by: pulbitz on September 08, 2021, 03:33:01 AM
an example file: https://www.mediafire.com/file/7o0xddmqqrk30x3/could+not+open+the+file.ts/file

I've tested it on stable 2.7.8 and nightly 2.7.9r210905.
Title: Re: Some .ts files fail to open
Post by: eumagga0x2a on September 08, 2021, 09:25:44 PM
In-band video codec extradata (MPEG-TS files have only in-band extradata) in this sample contains no timing information, therefore we cannot determine frame rate and fail to load this video without some manual help: if you have an idea what the FPS of the stream should be (it looks to have variable frame rate), you can edit the

Fps=0
line in the corresponding generated .idx2 file to e.g.

Fps=30000
or a different, better matching value (30000 means 30 frames per second). Avidemux would be able to open the file then.
Title: Re: Some .ts files fail to open
Post by: pulbitz on September 09, 2021, 08:42:38 AM
Thanks you for the tip!

It would be convenient if Avidemux automatically fixes(workaround) the idx2.
As you said, if the fps is non-zero(any number), the file will open.
But I don't notice a difference no matter what number I put in fps.
Title: Re: Some .ts files fail to open
Post by: eumagga0x2a on September 09, 2021, 09:11:09 PM
Quote from: pulbitz on September 09, 2021, 08:42:38 AMBut I don't notice a difference no matter what number I put in fps.

I may notice the difference when you try to save (to remux) the stream.