[Yanel-dev] direct file access
Michael Wechner
michael.wechner at wyona.com
Tue May 5 15:02:38 CEST 2009
simon litwan schrieb:
> hi all
>
> i'm trying to build a web-app which is using ffmpeg[1] via
> Runtime.exec() or ProcessBuilder. or even nicer via xuggle[2]. but all
> of them expect a filepath as a parameter. no Input/OutputStream there.
very bad ;-)
You could of course stream the content into a temp file first and then
pass this file handle, but this would be bad performance wise (at least
at the very first time, whereas later you could keep it within memory or
add it to the resource-config somehow)
> is there anyway to get a file path from a yarep-node. probably not,
> because it doesn't have to be file based implentation.
no way via the API. But you could do a cast on a specific file based
implementation
>
> the only idea so far is to not use yanel for the video-files. adding
> them directly to the file-system.
not nice, but possible
>
> is there a better way?
or talk to the xuggle and ffmpeg guys that they shall introduce an
InputStream
Cheers
Michi
>
> TIA
> simon
>
> [1] http://ffmpeg.mplayerhq.hu/
> [2] http://www.xuggle.com/
More information about the Yanel-development
mailing list