start and end play time

Feature requests for VLC.
ivanooi
Blank Cone
Blank Cone
Posts: 14
Joined: 17 Mar 2009 08:33

start and end play time

Postby ivanooi » 17 Mar 2009 08:39

Hi all,

Nice if able to specify start and end time for particular video clip in play list as some video clip only started to play at the certain time or end time.

Thanks

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: start and end play time

Postby VLC_help » 17 Mar 2009 13:31

--start-time=<integer> Start time
The stream will start at this position (in seconds).
--stop-time=<integer> Stop time
The stream will stop at this position (in seconds).
--run-time=<integer> Run time
The stream will run this duration (in seconds).
http://wiki.videolan.org/VLC_command-line_help

ivanooi
Blank Cone
Blank Cone
Posts: 14
Joined: 17 Mar 2009 08:33

Re: start and end play time

Postby ivanooi » 17 Mar 2009 14:10

but... nice if this thing can be set in play list as this will applied to few video clip.
it is possible manually change the play list file by adding the start and end time in ?

Thanks :-D

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: start and end play time

Postby VLC_help » 18 Mar 2009 13:56

Depends about the playlist format you use. If you create .bat playlist, it should work. XSPF does support extension tags, so in theory one could add start and end times, but it would require support from players. m3u playlists don't support it.

ivanooi
Blank Cone
Blank Cone
Posts: 14
Joined: 17 Mar 2009 08:33

Re: start and end play time

Postby ivanooi » 18 Mar 2009 17:14

do u mean create a bat file and add it into playlist ?

Thanks

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: start and end play time

Postby VLC_help » 20 Mar 2009 17:55

You should be able to do something like

Code: Select all

vlc :start-time=10 :stop-time=30 firstmedia.mp3 :start-time=11 :stop-time=39 secondmedia.avi :start-time=20 :stop-time=90 thirdmedia.wav

ivanooi
Blank Cone
Blank Cone
Posts: 14
Joined: 17 Mar 2009 08:33

Re: start and end play time

Postby ivanooi » 22 Mar 2009 03:09

Found solutions!! hahaha

Easy!

1) Click "Add File" from Playlist.
2) Check "Show more option".

And there the "Start time" hide.

Thanks :-)

jbellies2
New Cone
New Cone
Posts: 6
Joined: 09 Sep 2009 17:41

Re: start and end play time

Postby jbellies2 » 14 Apr 2010 19:43

And if you save the result to a playlist, you get to see that vlc uses extensions to implement these cue-list or edit decision list (EDL) type of replay:

Code: Select all

#EXTM3U #EXTINF:516,c.04-10-12_07-46.01.avi #EXTVLCOPT:start-time=14 #EXTVLCOPT:stop-time=30 C:\jb\postdv\2004BrissagoCalvia\c.04-10-12_07-46.01.avi
or

Code: Select all

<?xml version="1.0" encoding="UTF-8"?> <playlist version="1" xmlns="http://xspf.org/ns/0/" xmlns:vlc="http://www.videolan.org/vlc/playlist/ns/0/"> <title>Playlist</title> <trackList> <track> <location>file:///C:/jb/postdv/2004BrissagoCalvia/c.04-10-12_07-46.01.avi</location> <duration>516000</duration> <extension application="http://www.videolan.org/vlc/playlist/0"> <vlc:id>0</vlc:id> <vlc:option>start-time=14</vlc:option> <vlc:option>stop-time=30</vlc:option> </extension> </track> </trackList> <extension application="http://www.videolan.org/vlc/playlist/0"> <vlc:item tid="0" /> </extension> </playlist>
Times are given to the nearest second only, so this would not go for NLE work, but as a rough approximation ...
Incidentally, both the M3U version and the .xspf version produced by vlc work when fed back to it. I sensed better bokeh from the .xspf version, but maybe that's just the "eye of the beholder".
Bravo, vlc!

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: start and end play time

Postby VLC_help » 15 Apr 2010 14:41

Times are given to the nearest second only
With new VLC builds they should be floats, so one can use e.g. 12.13

spudz72
New Cone
New Cone
Posts: 1
Joined: 10 Aug 2010 04:05

Re: start and end play time

Postby spudz72 » 10 Aug 2010 04:10

Sorry to bring up this older thread but I think this feature is exactly what I am looking for. I have a bunch of 720p and 1080p .mkv x264 videos that I would like to to be able to play in windows but in a certain order and only with certain specified start and end times. These files are live music concerts so I only want to play certain songs, which is the reason for this.

Can someone please tell me the easiest way I could accomplish this? I read the discussion here on how to do it but not sure I comprehend it fully.

I have for eg.

concert1.mkv (Total length is 1:24:01, I would like to play from 00:15:01 to 00:18:22)
convert2.mkv (Total lengh is 2:12:35, I would like to play from 00:17:22 to 00:23:07, and from 01:02:33 to 01:07:21)

etc etc.

If I could create a playlist with all the video files and just the times of each file and then hit play on vlc that would be awesome!

Any comments would be much appreciated!

igorsf
New Cone
New Cone
Posts: 2
Joined: 31 Aug 2010 23:20

Re: start and end play time

Postby igorsf » 31 Aug 2010 23:26

Does vlc m3u extention support pre-buffer type of parameter? Playling through a series of network clips is very cumbersome due to the long and entirely unnecessary buffering period before each clip.

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: start and end play time

Postby VLC_help » 01 Sep 2010 17:34

M3U has a very limited feature support http://en.wikipedia.org/wiki/M3U

igorsf
New Cone
New Cone
Posts: 2
Joined: 31 Aug 2010 23:20

Re: start and end play time

Postby igorsf » 01 Sep 2010 22:43

M3U has a very limited feature support http://en.wikipedia.org/wiki/M3U
Is there a different way you can recommend to avoid buffering before each clip?

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: start and end play time

Postby VLC_help » 02 Sep 2010 13:37

Setting cache to 10 might work.

jsc190
New Cone
New Cone
Posts: 1
Joined: 28 May 2017 00:01

Re: start and end play time

Postby jsc190 » 28 May 2017 00:14

Is there a way to skip end time? I have a playlist of some video clips with the same end time (129s) but different length (somewhat between 24 and 30 minutes). I already tried this extension https://addons.videolan.org/content/sho ... ent=159976 but no luck. Any suggestions?

tuberoseinrain
New Cone
New Cone
Posts: 7
Joined: 30 Dec 2019 04:18

Re: start and end play time

Postby tuberoseinrain » 30 Dec 2019 04:32

It is extremely easy to make skip(s) in the playback of a video (and possibly an audio) file in VLC. Follow these steps:

1. Open the video file in VLC.

2. Click on the “File” tab and the last option would be “Save Playlist”. Click on it. (This is how it looks on mac, and I assume it should be the same on Windows version of VLC as well. If not, you only need to find the “Save Playlist” option in one of the tabs.)

3. In the opened window, write an optional name and make sure the selected format is M3U (.m3u). Then save it exactly in the folder in which the video (or audio) file is located.

4. Then go to that folder and open the created m3u file with TextEdit on mac (or with Notepad on Windows).

5. If, for example, the name of your video file is “School.mkv”, then the text in the m3u file is something like the following text.
(For those who might not know, the “.mkv” in the mentioned name is not a part of the actual name and it is actually the format of the file in our example and it can be different for different types of files. So the name of the file in our example is “School”)



#EXTM3U
#EXTINF:617,School.mkv
School.mkv



6. In this step you need to add the following command to the above-mentioned text:

Let’s imagine the video file’s duration is 10:17 and you want VLC to skip from 2:47 to 4:51 during the playback. For this purpose, you first need to convert these times to seconds.

For converting times to seconds, you can use this free online tool:

https://www.tools4noobs.com/online_tools/hh_mm_ss_to_seconds/


So based on our example, you want VLC to play the video file from second 1 (0:01) until second 167 (2:47) and then from second 291 (4:51) until the end which is second 617 (10:17). So the code you should prepare will look like this:



#EXTVLCOPT:start-time=1
#EXTVLCOPT:stop-time=167
School.mkv
#EXTVLCOPT:start-time=291
#EXTVLCOPT:stop-time=617
School.mkv


7. Then you should add this command to the original text in the m3u file. The final result based on our example looks like the following code. Please note that you should delete the “School.mkv” which is mentioned in the third line of the original m3u file:


#EXTM3U
#EXTINF:617,School.mkv
#EXTVLCOPT:start-time=1
#EXTVLCOPT:stop-time=167
School.mkv
#EXTVLCOPT:start-time=291
#EXTVLCOPT:stop-time=617
School.mkv


8. Save the changes. Then instead of opening the video file, open the m3u file with VLC.

That’s It!!! VLC will play the portions of the video you have indicated in the m3u file.


A few points to mention:

1. If you want multiple skips in different parts of the video, you can simply add more same commands. For instance, in the following code there are two skips (from 2:47 until 4:51 and from 7:02 until 9:25):

#EXTM3U
#EXTINF:617,School.mkv
#EXTVLCOPT:start-time=1
#EXTVLCOPT:stop-time=167
School.mkv
#EXTVLCOPT:start-time=291
#EXTVLCOPT:stop-time=422
School.mkv
#EXTVLCOPT:start-time=565
#EXTVLCOPT:stop-time=617
School.mkv



2. Don’t change the number that is mentioned in the second line of the original m3u file. In my example it is 617, but it will be different in other examples. So you don’t need to change it. (It is actually the total duration of the video file in seconds).

3. These skips will not ruin the lip-sync or subtitle-sync and everything will work well.

4. Don’t forget to include the video file’s format next to the name of the file. As you see above, I have written (.mkv) wherever I have mentioned the name of the video file.


Good Luck


Return to “VLC media player Feature Requests”

Who is online

Users browsing this forum: No registered users and 7 guests