Solved

Looking for utility to play a snippet from a video file

Posted on 2014-09-24
5
269 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
  • 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 52

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 52

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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Today companies are subjected to more-and-more data, and it won't stop any time soon.  But there are obvious opportunities for reducing data, particularly data duplicated among companies.
The article will include the best Data Recovery Tools along with their Features, Capabilities, and their Download Links. Hope you’ll enjoy it and will choose the one as required by you.
Viewers will learn how to turn a Live Set into a compressed Live Pack file, and how to install Live Packs. Make: File > Collect All And Save: File > Manage Files: Click Manage Project: Click Create Pack: Select save location: Install: Doub…
Viewers will learn how to use Macros for greater control over Rack parameters in Ableton Live. Group devices into a Rack by selecting them and pressing Command-G (Ctrl-G on PC): Control-click (Right Click on PC) a parameter to access pop-up menu, …

932 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now