Jumping in un-indexed files

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
stevedee3
Blank Cone
Blank Cone
Posts: 83
Joined: 30 Jun 2007 12:59
VLC version: 1.1.3
Operating System: Windows 2000
Location: Melbourne, Australia

Jumping in un-indexed files

Postby stevedee3 » 21 Jun 2009 14:17

Hi,

The jump hotkeys ("Short forward jump", "Medium forward jump", etc) don't seem to work on MPEG TS files. I assume that this is because there is no index. ( :?: )

Is it possible to jump by a certain number of bytes instead, e.g. "Jump 1 Mb" or "Jump 20 Mb"?

Thanks.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Jumping in un-indexed files

Postby Jean-Baptiste Kempf » 21 Jun 2009 15:14

No :D
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

stevedee3
Blank Cone
Blank Cone
Posts: 83
Joined: 30 Jun 2007 12:59
VLC version: 1.1.3
Operating System: Windows 2000
Location: Melbourne, Australia

Re: Jumping in un-indexed files

Postby stevedee3 » 21 Jun 2009 15:36

Thanks

The DJ
Cone Master
Cone Master
Posts: 5987
Joined: 22 Nov 2003 21:52
VLC version: git
Operating System: Mac OS X
Location: Enschede, Holland
Contact:

Re: Jumping in un-indexed files

Postby The DJ » 23 Jun 2009 03:31

The problem is that you can't know 100% sure for all formats, from those hotkeys wether timeseek is supported. :(
Don't use PMs for support questions.

stevedee3
Blank Cone
Blank Cone
Posts: 83
Joined: 30 Jun 2007 12:59
VLC version: 1.1.3
Operating System: Windows 2000
Location: Melbourne, Australia

Re: Jumping in un-indexed files

Postby stevedee3 » 23 Jun 2009 13:35

The problem is that you can't know 100% sure for all formats, from those hotkeys wether timeseek is supported. :(
Sorry, I'm not sure that I understand your response. Do you mean "the part of the software that implements these hotkeys doesn't know whether the current format supports time seeking"?

My goal is to be able to easily skip advertisements when playing DVB-T (MPEG-TS) recordings. At the moment I can seen two options:
  1. Use the rate control feature to fast forward through the ads, or
  2. Click on the time slider (although it's hard to guess where to click, especially for large files...)
Are there any other techniques that I haven't considered that may be suitable for this purpose?

Thanks.

The DJ
Cone Master
Cone Master
Posts: 5987
Joined: 22 Nov 2003 21:52
VLC version: git
Operating System: Mac OS X
Location: Enschede, Holland
Contact:

Re: Jumping in un-indexed files

Postby The DJ » 23 Jun 2009 14:17

If all you are concerned with is MPEG-TS, then timeseeking is indeed impossible. The reason is because MPEG-TS does not require monotonic timestamps. Thus without fully parsing the MPEG-TS file, you cannot create an accurate time model for a file. Your options are:

1: Create a timeindex model by using a preparser and saving that result to a .idx file or something. Then implement support for your .idx file in VLC.
2: Create fallback behaviour in vlc that adds, or perhaps automatically switches to % based seeking.
3: Do what you proposed to forward trough the files.
Don't use PMs for support questions.

stevedee3
Blank Cone
Blank Cone
Posts: 83
Joined: 30 Jun 2007 12:59
VLC version: 1.1.3
Operating System: Windows 2000
Location: Melbourne, Australia

Re: Jumping in un-indexed files

Postby stevedee3 » 24 Jun 2009 10:20

Thanks for the feedback, DJ.
If all you are concerned with is MPEG-TS, then timeseeking is indeed impossible. The reason is because MPEG-TS does not require monotonic timestamps. Thus without fully parsing the MPEG-TS file, you cannot create an accurate time model for a file.
OK, I understand. This is why I asked about skipping by bytes - I assume that this is how clicking on the time slider works. There's no guarantee of exactly how much time you would advance/retract, but it's better than nothing.
3: Do what you proposed to forward trough the files.
My VLC development skills leave this as my only option for now :)

msteveb
New Cone
New Cone
Posts: 1
Joined: 13 Jul 2009 02:14

Re: Jumping in un-indexed files

Postby msteveb » 13 Jul 2009 23:26

This is something that has been bugging me for a long time too.

I use vlc to stream video from a Topfield PVR via ftp, and not being able to skip over ads is annoying.

I've created a patch which works well for me, but I'm not sure how well received it will be here.
Here is how it works.

As the stream is read, the first 10ms is examined (while playing) to estimate the mux rate based on the
PCR and the position in the stream. Subsequently, this mux rate is then used to estimate the length
of the file/stream (in seconds) and to estimate how far to skip when the hot keys are pressed.

Since the PCR isn't guaranteed can have discontinuities, any "unreasonable" value for the mux rate
is ignored and the calculation is done again.

If there is any interest, I can post my patch here.


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 63 guests