I have three computers on my LAN,
one running ubuntu,
one running openSuse
and my server running Archlinux.
I've only managed to get ffmpeg to work properly on my server.
I would like to write a script that would pretend to be an ffmpeg installation on the local machine, but would actually just be using the server's ffmpeg.
Example:
on the openSuse pc i would like to call:
ffmpeg -i file.avi out.flv
and then get the normal output as one would expect,
but I want it to use the ffmpeg on the archlinux.
any advice as to how I would get this to work.
( preferably in Ruby )
EDIT: I've extended this question to How do I display progress bars from a shell command over ssh
Here are some options, easiest first:
Set up NFS on your LAN, remoted mount all disks on your server, then run an
ssh
command using the remote mounted names. The burden is on the user to use the strange names.Set up NFS, but parse ffmpeg options to identify input and output files, then use something like the
realname
package (or a simple shell script) to convert the names first to absolute pathnames, then to the remote mounted names.Don't use NFS, but parse ffmpeg options and use
scp
to copy the input files over and the output files back.I don't have a lot of ruby-fu, but this seems to work!
Prerequisites,
Code (with comments),
And then I can run this like so,