Problem with --start-time

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
relaht
Blank Cone
Blank Cone
Posts: 51
Joined: 14 Dec 2009 20:52

Problem with --start-time

Postby relaht » 29 Nov 2010 01:22

I can use --start-time <value> with no problems but if the movie is MPEG-2 it fails. (I can seek this files with the GUI with no problems)

Is there anything I can do to make it work with the command line?

Sébastien Escudier
Big Cone-huna
Big Cone-huna
Posts: 853
Joined: 06 Nov 2008 08:38
Operating System: linux

Re: Problem with --start-time

Postby Sébastien Escudier » 29 Nov 2010 10:20

I think it depends on the container.
The file must be seekable.
Maybe you can seek in the GUI, but it's not real seek, you cannot go at a precise position.

relaht
Blank Cone
Blank Cone
Posts: 51
Joined: 14 Dec 2009 20:52

Re: Problem with --start-time

Postby relaht » 29 Nov 2010 10:29

The container is .ts (transport stream)
A precise position is not that important for me, but I need to set the start position.
Any chance to do this?

Rémi Denis-Courmont
Developer
Developer
Posts: 15265
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Problem with --start-time

Postby Rémi Denis-Courmont » 29 Nov 2010 16:48

Technically, MPEG-TS or MPEG-PS are not seekable file formats (that's why most hardware DVD players cannot seek except to chapters). To compensate, VLC will try to extrapolate the seek offset from the bandwidth estimate.

If you use start-time, then there is no bandwidth estimate, as the seek should occur right when the playback start, i.e. 0 bytes divided by 0 seconds is undefined. So it does not work.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

relaht
Blank Cone
Blank Cone
Posts: 51
Joined: 14 Dec 2009 20:52

Re: Problem with --start-time

Postby relaht » 29 Nov 2010 16:58

I understand.
What if a play the movie for a couple of seconds ( is two enough? ) and seek than...?
Is this possible and if so, how can I do this?

Rémi Denis-Courmont
Developer
Developer
Posts: 15265
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Problem with --start-time

Postby Rémi Denis-Courmont » 29 Nov 2010 17:27

That should work somewhat yes.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

relaht
Blank Cone
Blank Cone
Posts: 51
Joined: 14 Dec 2009 20:52

Re: Problem with --start-time

Postby relaht » 29 Nov 2010 17:35

Can you please give me a hint how I can do this.
I suppose I can not use the command line if VLC is already running!?!?

Rémi Denis-Courmont
Developer
Developer
Posts: 15265
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Problem with --start-time

Postby Rémi Denis-Courmont » 29 Nov 2010 17:44

Indeed, you can't. You need to use one of the interfaces.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

relaht
Blank Cone
Blank Cone
Posts: 51
Joined: 14 Dec 2009 20:52

Re: Problem with --start-time

Postby relaht » 01 Dec 2010 04:27

So - I'm trying and reading a lot, but still can't find out how to do this... :-(

I'm starting VLC in a shell. The VLC is playing a movie. (This works just fine)
Now I want to reach this VLC and seek the movie to, lets say +5 minutes.

It is important that I do this by code and not with the GUI.
I can open a new shell to do this, or send html commands or what ever...
But I don't no what to do.

Please can somebody show me the way. An example would be so nice...

Thanks in advance.


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 13 guests