|
Hello everyone.
I tried some CLI-Tools with the exec-function of ImageJ and couldn't
manage to do some transcoding with ffmpeg.
GraphicsMagick i.e. works nice in conjunction with ImageJ.
What I did (on Win):
-download a binary of ffmpeg suitable for os
-created a "bin"-subfolder to ImageJ's executable folder
-put ffmpeg.exe into that folder
This macro then works:
ijDir = getDirectory("imagej");
ffmpegD = ijDir+"bin"+File.separator;
input = exec(ffmpegD+"ffmpeg.exe -version");
print("RETURN of FFmpeg:__________ ");
print(input);
This returns information about ffmpeg-version. But when I now try to
convert a stream (i.e. mkv-container, ProRes or any other ffmpeg is able
to decode) into a image sequence (i.e. PNG) ffmpeg hangs in the
background and the macro doesn't return anything nor is the process stopped.
> ffmpeg.exe -i L:\\endime.mkv L:\\seq\\endime_%04d.png
It may be caused by the fact that ffmpeg returns it's status
continuously and not via a single return step.
In my opinion the ability to use these and other CLI-tools brings even
more power to ImageJ and I would like to have a console-like window with
continuously status information about them.
Is there a workaround? Has anyone done similar things and came to a
solution?
Regards,
Rainer
--
Rainer M. Engel, Dipl. Digital Artist
scientific|Media GbR
Pichelsdorferstr. 143
D-13595 Berlin
|