[Gambas-user] Not sure how to do this...
Lee McPherson
leemcpherson at ...626...
Sun May 4 21:24:35 CEST 2008
I'm using VLC through gambas to play music files and I ended up having
to use VLC's internal command line control. I send it commands through
the open process to poll for the current time as a song is playing and
read the text response for my progress bar. You'll probably have to do
something similar....
It actually doesn't work as cleanly as I'd like either.
-Lee
Jason Hackney wrote:
> In my project I'm using ffmpeg to resize a file, so I am basically
> executing a shell command from within Gambas.
>
> I'd like to do one of two things:
>
> 1) Optionally display the output of ffmpeg in a window AND wait for
> the command to exit normally, or
>
> 2) Again, display the output at the user's option AND show a progress
> bar so with these huge files the user has some idea of when the action
> will be done.
>
> Basically, what I want to know is if there is a relatively simple way
> to do this? I was thinking I could somehow poll the output of ffmpeg
> (via sed/awk/whatever) and parse it, pulling some progress information
> that way. But that didn't seem very clean. Besides, I also didn't want
> to make this any harder than it has to be by executing another
> external command.
>
> Am I crazy? :-)
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
> Don't miss this year's exciting event. There's still time to save $100.
> Use priority code J8TL2D2.
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
More information about the User
mailing list