ffmpeg

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

bidgeeman
Posts: 495
Joined: Wed Feb 21, 2007 7:58 am

ffmpeg

Post 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]
Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Post 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
bidgeeman
Posts: 495
Joined: Wed Feb 21, 2007 7:58 am

Post 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
SparkOut
Posts: 2984
Joined: Sun Sep 23, 2007 4:58 pm

Post 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.
bidgeeman
Posts: 495
Joined: Wed Feb 21, 2007 7:58 am

Post 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
SparkOut
Posts: 2984
Joined: Sun Sep 23, 2007 4:58 pm

Post 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.
bidgeeman
Posts: 495
Joined: Wed Feb 21, 2007 7:58 am

Post 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
SparkOut
Posts: 2984
Joined: Sun Sep 23, 2007 4:58 pm

Post 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.)
bidgeeman
Posts: 495
Joined: Wed Feb 21, 2007 7:58 am

Post by bidgeeman »

Hi SparkOut..yes that's it :)

Thanks
Bidge
SparkOut
Posts: 2984
Joined: Sun Sep 23, 2007 4:58 pm

Post by SparkOut »

On its way
bidgeeman
Posts: 495
Joined: Wed Feb 21, 2007 7:58 am

Post by bidgeeman »

Recieved!
Thanks SparkOut.
Much appreciated :)

Cheers
Bidge
drolaz
Posts: 17
Joined: Fri Jan 18, 2013 7:10 pm

Re: ffmpeg

Post 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!
SparkOut
Posts: 2984
Joined: Sun Sep 23, 2007 4:58 pm

Re: ffmpeg

Post 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.
capellan
Posts: 654
Joined: Wed Aug 15, 2007 11:09 pm

Re: ffmpeg

Post 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
SparkOut
Posts: 2984
Joined: Sun Sep 23, 2007 4:58 pm

Re: ffmpeg

Post 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.
Attachments
MPlayerTest.zip
(2.42 KiB) Downloaded 353 times
Post Reply