Page 1 of 1

--start-time doesn't always work

Posted: 06 Jun 2009 19:03
by e-tobi
Hi!

I'm trying to start a video from a file at a specific position. --start-time works for some videos, but not for all.
It works e.g. fine with an AVI, but not with a VDR recording (PES format).

`vlc --start-time 120 001.vdr` always starts the video at the beginning. But seeking (e.g. with "seek 120" through the rc interface) works fine.

What might the problem be here?

Tobia

Re: --start-time doesn't always work

Posted: 06 Jun 2009 21:25
by Arite
AFAIK --start-time is broken in VLC 0.9.9. Try a RC build of VLC 1.0.0 (currently 1.0.0-rc2). Fine Win32 builds here (go to ../maxosx for OSX):
http://download.videolan.org/pub/testin ... rc2/win32/

Arite.

Re: --start-time doesn't always work

Posted: 06 Jun 2009 23:57
by e-tobi
1.0.0~rc2 doesn't work either. With another VDR recording now even the seeking via the RC interface doesn't work (VLC seems to think the video starts at 09:57:00 instead of 00:00:00 - strange!)

Seeking via the slider in the GUI always works perfectly fine - but there seems to be absolutely no way to do this from the console.

Re: --start-time doesn't always work

Posted: 07 Jun 2009 01:52
by Arite
Well it could be that the file has no index so cannot seek to a specific point like in an AVI file - don't really know about VDR/the PES format.

Arite.

Re: --start-time doesn't always work

Posted: 07 Jun 2009 10:53
by e-tobi
Yes, maybe - but using the slider in the GUI works fine, so whatever the GUI is doing here, it should be possible to do this from the command line as well.

Right now I workaround this issue, by streaming the file via a socket to VLC so that I can control the start position. And in order to make VLC sanely quit at the end of the stream or when the playback window is closed, I send a "quit" via the RC socket interface.

Re: --start-time doesn't always work

Posted: 08 Jun 2009 13:44
by The DJ
If no timeindex is available, a slider will do a byte search, randomly dropping you somewhere in the file and hoping that it can continue decoding from there.

Re: --start-time doesn't always work

Posted: 22 Jul 2009 13:39
by Gawain
how do you set the start-time in the ":sout"-String when you stream the file? I also want to use start- and stop-time for exporting a video into a new file. Do you know how to do that. I'm using JVLC, but it would also be interesting to know the options for the Stream-Output-String.
Thanks for your help!

this is not working:

Code: Select all

":sout=#duplicate{dst=std{access=file,dst=" + this.path + "}} :start-time=5 :stop-time=10"
this is my original post:
viewtopic.php?f=4&t=62545