- This topic has 4 replies, 2 voices, and was last updated 12 years, 4 months ago by
Jeremy Wanhill.
-
Posted in: Templates
-
19th May 2013 at 11:54 pm #14505
Hi there
I am having an issue using muster to run a command line ffmpeg conversion on muster 7
we are trying to use our linux nodes to run the conversion
basically I cant get this line to work through muster and muster is not giving me enough feedback to solve it:
-c ffmpeg -r 23.976 -i /server/project/episode/scene/shot/shot.%04d.png -vf colormatrix=bt601:bt709 -vcodec prores -vprofile 3 /server/project/dalies/shot.movthis should work as the command line works in bash (minus -c of course)
all it is giving me in muster is :
ffmpeg version N-53033-g56ba331 Copyright (c) 2000-2013 the FFmpeg developers
built on May 14 2013 05:24:51 with gcc 4.6 (Debian 4.6.3-1)
configuration: –prefix=/root/ffmpeg-static/64bit –extra-cflags=’-I/root/ffmpeg-static/64bit/include -static’ –extra-ldflags=’-L/root/ffmpeg-static/64bit/lib -static’ –extra-libs=’-lxml2 -lexpat -lfreetype’ –enable-static –disable-shared –disable-ffserver –disable-doc –enable-bzlib –enable-zlib –enable-postproc –enable-runtime-cpudetect –enable-libx264 –enable-gpl –enable-libtheora –enable-libvorbis –enable-libmp3lame –enable-gray –enable-libass –enable-libfreetype –enable-libopenjpeg –enable-libspeex –enable-libvo-aacenc –enable-libvo-amrwbenc –enable-version3 –enable-libvpx
libavutil 52. 31.100 / 52. 31.100
libavcodec 55. 9.100 / 55. 9.100
libavformat 55. 7.100 / 55. 7.100
libavdevice 55. 0.100 / 55. 0.100
libavfilter 3. 65.100 / 3. 65.100
libswscale 2. 3.100 / 2. 3.100
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 3.100 / 52. 3.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]… {[outfile options] outfile}…Use -h to get full help or, even better, run ‘man ffmpeg’
[MUSTER]Process terminated with exit code: 1
that doesnt really tell me anything, and I dont really know what is wrong
here is our template for referenceDECLARE TEMPLATE
{SET TEMPLATE_NAME “huhu_FFmpeg_conversion”
SET TEMPLATE_DESC “convert png files to mov files”
SET TEMPLATE_UID 50
SET TEMPLATE_LOGIC MULTIFRAME
SET DEFAULT_PRIORITY 1
SET DEFAULT_POOL “NUKE_MOV_LINUX”
SET MAXIMUM_LICENSES 0
SET DELAY_GROUP “Global”
SET DELAY_TIME 0
}DECLARE MULTIFRAME
{
SET ENABLE_FRAME_CHECK 0
}DECLARE SUBMISSION
{
SET ENABLE_ADDITIONAL_FLAGS 1
ADD SCRIPTFILE FILE_SELECTOR “ffmpeg” “Script file” “Specify the script file” NOTACTIVABLE MANDATORY NOSUBST *
ADD SCRIPTFLAGS STRING_INPUT “” “Script flags” “Concatenates additional flags to the script” NOTACTIVABLE MANDATORY NOSUBST
#ADD COMPRESSORFLAGS STRING_INPUT “” “compressorFlags” non default flag variable” NOTACTIVABLE MANDATORY NOSUBST
}#================================
DECLARE ENGINE_WIN
{
#deactivated for windows
SET PLATFORM_ENABLED 0
}DECLARE ENGINE_MAC
{
#Deactivated for MAC
SET PLATFORM_ENABLED 0
}#=================================
DECLARE ENGINE_LINUX
{
SET PLATFORM_ENABLED 1
SET ENABLE_ERROR_CHECK 1
SET ENABLED_BY_DEFAULT 1
SET COMMAND_LINE “-c %ISACTIVE(SCRIPTFILE (%ATTR(SCRIPTFILE))) %ISACTIVE(SCRIPTFLAGS ( %ATTR(SCRIPTFLAGS))) %ATTR(ADD_FLAGS) “
SET EXECUTABLE “%ATTR(SHELLCMD)”
SET STARTING_FOLDER “/”
SET ENVIRONMENT_BLOCK USER
SET DETECTION_LOGIC REALPROCDECLARE CONFIGURABLE_TAGS
{
ADD SHELLCMD FILE_SELECTOR “/bin/sh” “Script interpreter executable” “Specify the shell executable” NOTACTIVABLE MANDATORY *
}DECLARE CUSTOM_ENVIRONMENT
{}
}# error declaration
DECLARE ERROR
{
ADD WARNING “Warning” “Warn”
ADD ERROR “Error”
ADD DEFAULT_RETCODE 0
}so the tl;dr question is: why wont this template run my command line?
20th May 2013 at 3:25 pm #15219Hi,
if you inspect the log file, you can find the exact command line lanched by Muster.Copy and paste the command line in a terminal console to verify if the arguments are correct.
Regards
22nd May 2013 at 9:51 pm #15222if you actually read what I wrote you will see that I have actually already done that and the commands are fine
1st June 2013 at 3:00 pm #15223Can you try to enclose parameters in double quote ?
Refer to this article for more info:
4th June 2013 at 7:17 pm #15227this is how we ended up getting it to work:
in the template replace this line:
SET COMMAND_LINE “-c %ISACTIVE(SCRIPTFILE (%ATTR(SCRIPTFILE))) %ISACTIVE(SCRIPTFLAGS ( %ATTR(SCRIPTFLAGS))) %ATTR(ADD_FLAGS) “
with this line and sending it the whole command:
SET COMMAND_LINE “%ISACTIVE(SCRIPTFLAGS (-c “%ATTR(SCRIPTFLAGS)”))”
-
You must be logged in to reply to this topic.