--start-time doesn't always work

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
e-tobi
New Cone
New Cone
Posts: 5
Joined: 06 Jun 2009 01:33

--start-time doesn't always work

Postby e-tobi » 06 Jun 2009 19:03

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

Arite
Big Cone-huna
Big Cone-huna
Posts: 2478
Joined: 26 Jun 2007 20:40
VLC version: 3.0.20
Operating System: Debian Testing|Win10

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

Postby Arite » 06 Jun 2009 21:25

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.
Don't use PMs for support questions.

e-tobi
New Cone
New Cone
Posts: 5
Joined: 06 Jun 2009 01:33

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

Postby e-tobi » 06 Jun 2009 23:57

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.

Arite
Big Cone-huna
Big Cone-huna
Posts: 2478
Joined: 26 Jun 2007 20:40
VLC version: 3.0.20
Operating System: Debian Testing|Win10

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

Postby Arite » 07 Jun 2009 01:52

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.
Don't use PMs for support questions.

e-tobi
New Cone
New Cone
Posts: 5
Joined: 06 Jun 2009 01:33

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

Postby e-tobi » 07 Jun 2009 10:53

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.

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: --start-time doesn't always work

Postby The DJ » 08 Jun 2009 13:44

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.
Don't use PMs for support questions.

Gawain
Blank Cone
Blank Cone
Posts: 31
Joined: 08 Jan 2009 11:38
VLC version: 0.9.8a - 1.0.0
Operating System: Windows XP

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

Postby Gawain » 22 Jul 2009 13:39

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


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 9 guests