Page 1 of 2
ffmpeg
Posted: Thu Jun 25, 2009 11:44 am
by bidgeeman
Has anyone on the forum used ffmpeg in a Revolution app?
http://ffmpeg.org/
It supports a lot of media file formats. I would love to know how to call it from Rev a stack.
Cheers
Bidge
[/quote]
Posted: Thu Jun 25, 2009 1:13 pm
by Klaus
Hi Bidge,
if this is a command line tool, then you will have to use "shell" commands.
...
## WARNING fictitious script line!!!!!
put shell("ffmpeg -x -e -t -d inputfiel outputfile")
## etc...
Best
Klaus
Posted: Thu Jun 25, 2009 1:25 pm
by bidgeeman
Hi Klaus.
Not sure if it is a command line tool but will look into it's documentation a bit further.
Cheers
Bidge
Posted: Thu Jun 25, 2009 2:03 pm
by SparkOut
http://ffmpeg.org/about.html wrote:The project is made of several components:
•ffmpeg is a command line tool to convert multimedia files between formats.
•ffserver is a multimedia streaming server for live broadcasts.
etc, etc.
This suggests that it is definitely a command line tool, so that would be the way to use it. Or are you more looking to actually play media (a la ffserver)? through Rev, instead of using Quicktime?
There is some very helpful information provided by "vx" on the improve-list, about using MPlayer as a cross platform media player, that can be linked to a stack window id, so being an option to have a portable cross-platform media player with light-fingerprint (ie avoiding corporate installation/configuration issues), if that's more like what you're after.
Posted: Thu Jun 25, 2009 10:37 pm
by bidgeeman
Hi SparkOut.
I have a friend who would like to use a Rev stack I am working on but he has Linux. Currently I am using QT External to output audio files but QTE does no support Linux. I know nothing about using command line tools on Linux???
Cheers
Bidge
Posted: Thu Jun 25, 2009 11:43 pm
by SparkOut
On Linux, I believe (from what I gathered given the information on the improve-list) that MPlayer is the default player object for Rev. It is also surprisingly easy to control via a script, called as an external application, but which you can attach to the window of your Rev stack (and thereby make your own player object which you could skin and create controls for).
If you like, I can email you some info (largely courtesy of vx, and the MPlayer site) and a duff test stack I made to play videos just so that I could see how the scripting worked.
I know that vx mentioned that MPlayer is not always included in a default Linux build, but given that it is a very light-fingerprint case in Windows, for which you can write out the binary on the fly, I would think you could always do something to provide for a Linux situation too.
Posted: Thu Jun 25, 2009 11:51 pm
by bidgeeman
Hi SparkOut.
I just tried pm'ing you my email address but for some reason I get a "pm disabled on this board" message???
Cheers
Bidge
Posted: Thu Jun 25, 2009 11:53 pm
by SparkOut
Is it the lkni address I get when I press the email button on your profile?
(PMs have been disabled at the moment as an anti-spam measure.)
Posted: Fri Jun 26, 2009 12:11 am
by bidgeeman
Hi SparkOut..yes that's it
Thanks
Bidge
Posted: Fri Jun 26, 2009 12:40 am
by SparkOut
On its way
Posted: Fri Jun 26, 2009 1:01 am
by bidgeeman
Recieved!
Thanks SparkOut.
Much appreciated
Cheers
Bidge
Re: ffmpeg
Posted: Wed May 22, 2013 8:01 pm
by drolaz
SparkOut,
Do you still have the information on using mplayer?
Tried looking for the VX reference but to old to find I guess.
Im in windows and use mplayer and ffmpeg/play/server.
and want to use mplayer in the stack as an object as you stated in your post from 2007 LOL
any help would be awesome. cause QT is for the birds!
Re: ffmpeg
Posted: Mon May 27, 2013 11:59 am
by SparkOut
I have a collection of email correspondence and info from that time, but I really couldn't say if any of it would be relevant today. I can forward what it is that I've got, might be a starting point for you at least.
Re: ffmpeg
Posted: Sun Dec 15, 2013 4:01 am
by capellan
Hi SparkOut,
We are discussing about using mPlayer and VLC to
play media on Linux OS.
http://runtime-revolution.278305.n4.nab ... 73742.html
Do you still have your stack to control mPlayer from
LiveCode stacks?
Could you post a link to download?
Thanks in advance!
Al
Re: ffmpeg
Posted: Sun Dec 15, 2013 1:03 pm
by SparkOut
Hi, all I can find is this one which has got a few glitches when it comes to rewinding. There isn't any error trapping or much in the way of clues or comments. I think I was partway through making a separate controller interface which appends itself to the bottom of the window, but the app starts with the controller window invisible and I couldn't be bothered to sort out the window ID issue if I got it to go to the controller stack on startup so you will have to open it manually in the IDE to begin with. I did have a more polished version before but it stopped working with some MPlayer update and/or Windows 7 updates so this was a work in progress to retry.
Hopefully it will give some useful post mortem results when you dissect it anyway.