Page 1 of 3

VLC BUG - No time code processing for DVB-T .ts files

Posted: 26 Jun 2010 11:25
by 3guesses
VLC has had this problem for a LONG time. I have not gotten round to reporting it until now in the expectation that it would eventually be noticed and fixed, but it is still a problem in v1.1.0 so I've bitten the bullet and decided to report it.

I use VLC to playback video files created by my Humax PVR9200T. This is a personal video recorder that captures digital DVB-T broadcasts. However, when these are played back in VLC the app does not seem to process the time code - the time elapsed and total time of the video both always read 00:00/00:00 in the bottom right hand corner of the video control panel. This is very annoying because it means that the skip forward/back functionality does not work. I usually edit these .ts files in VideoReDo, and that seems to have no problem processing the time code for the video files, so I assume that the information is present. However, VLC has the same problem even with the files after editing. I would really like this fixed if possible :D

Also, occasionally a video file recorded by the PVR9200T plays almost as snow in VLC - you can hear the audio and see a very small part of the video but mainly it appears massively corrupted. Again, when loaded into VideoReDo the video is fine. I have noticed that if I edit the video on the PVR9200T (it has very rudimentary editing features) and cut off a bit of the recorded video at the start I never get the problem with the (remaining) video file, so that is what I tend to do now. Again, I meant to report this a long time ago but never got round to it :D I don't know if this is in any way related?

Re: VLC BUG - No time code processing for DVB-T .ts files

Posted: 26 Jun 2010 12:15
by VLC_help
VLC cannot parse .(m2)ts timecodes. This is known issue.

Re: VLC BUG - No time code processing for DVB-T .ts files

Posted: 26 Jun 2010 14:28
by 3guesses
Ah, thanks. Just one point though: when editing using VideoReDo it has the option to save in "Transport Stream (*.ts)" format or "M2TS File (*.m2ts)" format - I always select the former, which suggests it is not saving in m2ts format? I'm a very long way from an expert in the field of video formats so apologies if I haven't fully understood your previous reply.

Re: VLC BUG - No time code processing for DVB-T .ts files

Posted: 27 Jun 2010 17:23
by VLC_help
.ts and .m2ts are basically exact same container format. VLC cannot parse times codes from .ts nor from .m2ts files.

Re: VLC BUG - No time code processing for DVB-T .ts files

Posted: 27 Jun 2010 23:12
by 3guesses
OK, thanks.

Re: VLC BUG - No time code processing for DVB-T .ts files

Posted: 28 Jun 2010 08:06
by peter_h
Also, the shift/ctrl-left & right arrow keys don't work because of this issue.
I also have DVB-T .TS files that I'd like this to work with.
.ts and .m2ts are basically exact same container format. VLC cannot parse times codes from .ts nor from .m2ts files.
Does this means it's on the "TO DO" list, or are there no plans to implement it?

Re: VLC BUG - No time code processing for DVB-T .ts files

Posted: 28 Jun 2010 17:37
by VLC_help
Somebody said he was working with this, but the problem isn't trivial one.

Re: VLC BUG - No time code processing for DVB-T .ts files

Posted: 25 Sep 2010 15:59
by tex8031
I also have been trying to find a way to work with this exact same issue. Transport stream files (dumped from a SiliconDust HDHomeRun HD Tuner) don't work with skip forward / backward / rewind and time always shows as 0:00:00.

Does anyone know if there is a way to skip forward / backward based on a "relative" byte position from current playback ? (as a workaround). The bookmarks setting looks promising but positions are relative to beginning of file only. If we could skip forward / backward "x" number of bytes from the "current" location, this might be more useful.

Someone pleassssssse work on fixing the time code problem for transport stream files !!!!

Re: VLC BUG - No time code processing for DVB-T .ts files

Posted: 19 Jan 2011 09:38
by saunatonttu
Does anyone know if there is a way to skip forward / backward based on a "relative" byte position from current playback ? (as a workaround). The bookmarks setting looks promising but positions are relative to beginning of file only. If we could skip forward / backward "x" number of bytes from the "current" location, this might be more useful.

Someone pleassssssse work on fixing the time code problem for transport stream files !!!!
Seconded.

If TS timecodes cannot be parsed, please make a workaround. The logic could be just this simple: "if there's no positional data on a video file, then skip/rewind bytes instead of seconds."

Re: VLC BUG - No time code processing for DVB-T .ts files

Posted: 07 Feb 2011 16:04
by patniemeyer
First of all, isn't the whole point of M2TS that it adds a timecode to every packet of the TS? But VLC doesn't parse timecode info in that case either. I'm tempted to look at this myself but I see that someone has posted a patch that was never adopted for some reason... there must be some deeper issue... would like to know what it is.

Second, the real problem with no timecode is that you can't use subtitles...

Re: VLC BUG - No time code processing for DVB-T .ts files

Posted: 06 Jun 2011 15:49
by rababitzky
Hi all,

Is there any news regarding this issue?
I've checked latest version 1.1.10 features and it is not implemented yet.

VLC would be perfect if it could parse ".ts" file timecodes as it's really important in my research tasks to know the exact timecode of specific moment of the file
Let everybody know if you have estimated time to develop this on the upcoming builds. Thanks!

pd: regarding subtitles...if they're DVB subtitles or coming on page 888 of TXT of the .ts file you can play it frame accurately but if you add them as i.e .stl file doesn't work.

Re: VLC BUG - No time code processing for DVB-T .ts files

Posted: 06 Jun 2011 17:32
by VLC_help
Possible fix won't most likely land to 1.1.x series. It is more likely that it will be in 1.2.x

Re: VLC BUG - No time code processing for DVB-T .ts files

Posted: 10 Jun 2011 11:23
by rababitzky
Thanks for the answer!

So, when 1.2.x series are likely to be released? Is there any workaround in the meantime?

As I told you this is something really important in my research tasks in which we need to register specific timecodes of the .ts file because it matches with the daytime it was recorded.

Re: VLC BUG - No time code processing for DVB-T .ts files

Posted: 11 Jun 2011 14:43
by VLC_help
You have to remux those .TS files to other format if you want to see timecodes in VLC. e.g. MP4 works better.

There isn't any release schedule for VLC 1.2.x but hopefully something will happen this summer.

Re: VLC BUG - No time code processing for DVB-T .ts files

Posted: 14 Jun 2011 11:54
by rababitzky
I was already remuxing those files to MP4...but then you loose all information coming with the .ts file (audios, subtitles, EPG, Teletext)

But anyway, as long as it happens this summer it should be fine! Please keep us updated.

Here I've another request, since we've recorded tv and sat signal from 7am to 12am and we're creating 3 hours .ts file, it would be great while reviewing them, if we could set up an offset on the timecode to match the real time the program was on-air...so we can easly register the information we're analysing and we avoid calculations.

Do you think this can be implemented too? Thanks!

Re: VLC BUG - No time code processing for DVB-T .ts files

Posted: 14 Jun 2011 16:42
by VLC_help
Matroska should work better if you have to keep different subtitles and etc.

I don't think there will be any time offset feature.

Re: VLC BUG - No time code processing for DVB-T .ts files

Posted: 28 Jun 2011 12:23
by rababitzky
Hi again,

Got to new questions regarding VLC features.

1- Is there any way to save EPG from the .ts file? By now you can only check it but no chance to copy the info or to save it as a file.
2- Is there any way to save Subtitles from the .ts file? So after compressing we can load as a .stl file.

Kind regards,

Re: VLC BUG - No time code processing for DVB-T .ts files

Posted: 28 Jun 2011 16:47
by VLC_help
I haven't tested the EPG features of VLC so I don't know what they can do. For subtitles it is usually easier to demux them out with tsMuxeR, but it might be also possible with VLC if they have their own program-id, e.g.

Code: Select all

vlc mux1.clip.ts --demux=ts --noaudio --novideo --play-and-exit --intf dummy --sout-all --sout '#duplicate{dst=std{access=file,mux=raw,dst=subtitle.stl}",select="program=213"'

Workaroun for - No time code processing for DVB-T .ts files

Posted: 02 Jul 2011 14:01
by LateAdopter
Workaround

Change the demuxer setting from "default" to "FFmpeg demuxer"

Then VLC shows the correct times for most of my TS and M2TS files. (within a few seconds of what MPC gives)

It works for MPEG2 and H.264 content.

Seeking with the keyboard also works.

Re: Workaroun for - No time code processing for DVB-T .ts fi

Posted: 03 Jul 2011 12:21
by lucaberta
Workaround

Change the demuxer setting from "default" to "FFmpeg demuxer"

Then VLC shows the correct times for most of my TS and M2TS files. (within a few seconds of what MPC gives)

It works for MPEG2 and H.264 content.

Seeking with the keyboard also works.
thanks so much LateAdopter, this timing is simply amazing! I've been doing some Googling and just found your tip dated yesterday, what great serendipity! :)

Needless to say, your workaround works perfectly!

Ciao, Luca
Milan, Italy

Re: Workaroun for - No time code processing for DVB-T .ts fi

Posted: 03 Jul 2011 18:12
by didoyup
Workaround

Change the demuxer setting from "default" to "FFmpeg demuxer"

Then VLC shows the correct times for most of my TS and M2TS files. (within a few seconds of what MPC gives)

It works for MPEG2 and H.264 content.

Seeking with the keyboard also works.

Thanks!

Re: Workaroun for - No time code processing for DVB-T .ts fi

Posted: 04 Jul 2011 12:39
by Lucas Malor
In theory, can't VLC obtain current time from values of FPS?
Since ffplay works, can't VLC use ffmpeg code to calculate total / current time?

Re: VLC BUG - No time code processing for DVB-T .ts files

Posted: 04 Jul 2011 12:41
by Jean-Baptiste Kempf
Sure, but one has to do it correctly, and so far, noone has provided a correct solution.

Workaround - No time code processing for DVB-T .ts files

Posted: 05 Jul 2011 11:57
by LateAdopter
Would it be possible to amend the score for the FFmpeg demuxer plugin so that it is used by default?

Or would this cause some undesirable side effect, that I haven't found yet.

FFmpeg demuxer seems to do exactly what is wanted.

Re: VLC BUG - No time code processing for DVB-T .ts files

Posted: 13 Sep 2011 12:20
by rababitzky
Hi again,

Regarding my questions about Timecode Processing for MPTS files you stated the following:
There isn't any release schedule for VLC 1.2.x but hopefully something will happen this summer.
Is there any news regarding new release VLC 1.2.x? The workaround from LateAdopter doesn't work for me since im working with MultiProgramTransportStream files which has between 6-9 programs multiplexed in each .ts file.

Regarding subtitles demuxing can you please help me with the code you gave me?
Should I only change the program id and run it straightforward on the vlc command line?

Code: Select all

vlc mux1.clip.ts --demux=ts --noaudio --novideo --play-and-exit --intf dummy --sout-all --sout '#duplicate{dst=std{access=file,mux=raw,dst=subtitle.stl}",select="program=213"'
Many thanks!