Solved

Looking for utility to play a snippet from a video file

Posted on 2014-09-24
5
278 Views
Last Modified: 2014-09-24
I'm looking for a utility (for Win 8) that will let me play a snippet from a video file based on time. Suppose  I have a long video file and I want to play just 3 minutes, beginning 15 minutes 10 seconds into the file. Doing this with a standard video player is hard. Is there an easy way to do it?
0
Comment
Question by:BlearyEye
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 35

Assisted Solution

by:Kimputer
Kimputer earned 250 total points
ID: 40341810
Use VLC player. Have a vbscript get the input, and then start vlc with these parameters

--start-time=<time in seconds>
--stop-time=<time in seconds>
0
 
LVL 54

Accepted Solution

by:
Joe Winograd, EE MVE earned 250 total points
ID: 40341994
I agree with the VLC recommendation. It is an excellent (free!) product that I've been using for many years:
http://www.videolan.org/

It has all of the codecs built in. It runs fine on W8 (W7, too). Here's a one-line batch file that does what you want (call it PlayVideo.bat or whatever you prefer):

"C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" --start-time=910 --stop-time=1090 "file:///C:\temp\file to play.mp4"

The above shows start-time as 910 seconds (15:10) and stop-time as 1090 seconds, meaning it will play 180 seconds. Change the start and stop times to whatever you want. Likewise, change the file name to whatever file you want to play (beginning after the three slashes — and the quotes surrounding it are important in case the file name has spaces). You may also need to change the location of the VLC executable, depending on where you installed it (the above is the default for 64-bit W8 — default is "C:\Program Files\VideoLAN\VLC\vlc.exe" on 32-bit W8). Regards, Joe
0
 
LVL 1

Author Closing Comment

by:BlearyEye
ID: 40342071
Nice. Works well. Thanks for the recommendation. It would be nice if this could be done from the Windows interface but we can't have everything ...
0
 
LVL 1

Author Comment

by:BlearyEye
ID: 40342079
A final note ... the installer doesn't put vlc.exe on the path. Had to do that myself.
0
 
LVL 54

Expert Comment

by:Joe Winograd, EE MVE
ID: 40342115
> It would be nice if this could be done from the Windows interface

Yes, that's a great idea. The GUI supports the start time via the Playback menu, then Jump To Specific Time (Ctrl-T), but it does not support the stop time. Would be an easy addition for the VLC devs to make.

> the installer doesn't put vlc.exe on the path

I didn't realize that. But if you put the fully qualified file name in the batch file (e.g., "C:\Program Files (x86)\VideoLAN\VLC\vlc.exe"), then it doesn't have to be in the Path variable.
0

Featured Post

Why You Need a DevOps Toolchain

IT needs to deliver services with more agility and velocity. IT must roll out application features and innovations faster to keep up with customer demands, which is where a DevOps toolchain steps in. View the infographic to see why you need a DevOps toolchain.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Technology opened people to different means of presenting information, but PowerPoint remains to be above competition. Know why PPT still works today.
This guide will walk you through the essential considerations and tech stack for building scalable websites. Know how to grow your business the smart way!
Viewers will learn the basics of making and using Impulse Kits in Ableton Live. Load new Impulse into an empty MIDI track: Fill the 8 empty sample slots with drum samples: Adjust parameters to tailor each sound as desired: Proceed to create be…
The viewer will learn how to successfully download and install the SARDU utility on Windows 7, without downloading adware.

737 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question