Solved

Looking for utility to play a snippet from a video file

Posted on 2014-09-24
5
270 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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Company IT policies concerning licensing 4 75
MSP multi use software 4 121
PC freezes and shutdowns becoming more frequent 17 119
Application Crash 2 21
A high-level exploration of how our ever-increasing access to information has changed the way we do our jobs.
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
Viewers will learn the basics of using Ableton Live's advanced sampler instrument, Sampler. Load new Sampler into an empty MIDI track: Select a sample and drop it into sample window in Sampler: Adjust pitch if necessary with Root Key setting: …
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, …

776 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