For Programmers: Free Programming Magazines  


Home > Archive > Visual Basic > August 2005 > Command line to video player









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Command line to video player
Doug Sanders

2005-08-26, 3:55 am

Can a video player be controlled via VB or VBA with a command such as-
'Mplay32.exe VideoName, Play,
Startpoint, Endpoint' (as in 3min 2 seconds, 4min 19 seconds)

I have a surveillance video and want to point to several significant points
of interest. I can break up the video into segments, but am looking for
an easier way.

I have posted this question in two other groups, but got no reponse.

Thanks
Doug Sanders


Dave

2005-08-26, 3:55 am

You could use the WindowsMediaPlayer control, with that you can specify a
position in a file by time. If you know the frame rate you can even move by
one frame at a time which might be useful for your application.

The WindowsMediaPlayer is very badly documented for VB so some trail & error
is required but it should do what you want.

Dave.

"Doug Sanders" <DougS@Earthlink.com> wrote in message
news:%23XAGZLfqFHA.2624@TK2MSFTNGP10.phx.gbl...
> Can a video player be controlled via VB or VBA with a command such as-
> 'Mplay32.exe VideoName, Play,
> Startpoint, Endpoint' (as in 3min 2 seconds, 4min 19 seconds)
>
> I have a surveillance video and want to point to several significant
> points
> of interest. I can break up the video into segments, but am looking for
> an easier way.
>
> I have posted this question in two other groups, but got no reponse.
>
> Thanks
> Doug Sanders
>
>



Doug Sanders

2005-08-27, 6:55 pm

I'll have to play around with it and see. You're right about not much info
from MS.

Thanks
Doug Sanders


"Dave" <Nobody@Nowhere.Com> wrote in message
news:uf1KWthqFHA.2968@TK2MSFTNGP10.phx.gbl...
> You could use the WindowsMediaPlayer control, with that you can specify a
> position in a file by time. If you know the frame rate you can even move

by
> one frame at a time which might be useful for your application.
>
> The WindowsMediaPlayer is very badly documented for VB so some trail &

error
> is required but it should do what you want.
>
> Dave.
>
> "Doug Sanders" <DougS@Earthlink.com> wrote in message
> news:%23XAGZLfqFHA.2624@TK2MSFTNGP10.phx.gbl...
for[color=darkred]
>
>



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com