AWS Thinkbox Discussion Forums

Deadline Python API - FFMPEG ReplacePadding bug

Hello,

In our facility, we are implementing an FFMPEG ProRes encoder via command line.
It seems that the submitted job arrives at Deadline but there is a bug with the ReplacePadding (even if it is set to False)

Even if our InputFile0 is set to
InputFile0=/xxxxxx/xxxxxx/be_120/elements/comp/be_120_comp_v1/be_120_comp_v1.%04d.dpx

Deadline is looking for:
/xxxxxx/xxxxxx/be_120/elements/comp/be_120_comp_v1/be_120_comp_v%01d.%04d.dpx

Job Info Parameters:

Name=ffmpeg submission - be_120_comp_v2.mov
UserName=tools
Region=
Frames=0
Blacklist=
ScheduledStartDateTime=22/11/2016 18:03
OverrideTaskExtraInfoNames=False
MachineName=Marceline.local
Plugin=FFmpeg
EventOptIns=

Plugin Info Parameters

InputFile0=/xxxxxx/xxxxxx/be_120/elements/comp/be_120_comp_v1/be_120_comp_v1.%04d.dpx
ReplacePadding=False
UseSameInputArgs=False
OutputFile=/xxxxxx/xxxxxx/makeDaily/be_120_comp_v2.mov
OutputArgs=-c:v prores_ks -profile:v 2 -pix_fmt yuv422p10le -vendor ap10 -qscale:v 9 -r 24 -s 1920x1080 -c:a copy
=======================================================
Error
=======================================================
Error: Renderer returned non-zero error code, 1. Check the log for more information.
  at Deadline.Plugins.PluginWrapper.RenderTasks (System.String taskId, Int32 startFrame, Int32 endFrame, System.String& outMessage, FranticX.Processes.AbortLevel& abortLevel) <0x10fccec00 + 0x00e57> in <filename unknown>:0 

=======================================================
Type
=======================================================
RenderPluginException

=======================================================
Stack Trace
=======================================================
  at Deadline.Plugins.SandboxedPlugin.a (Deadline.Net.DeadlineMessage A_0) <0x1195b02c0 + 0x00670> in <filename unknown>:0 
  at Deadline.Plugins.SandboxedPlugin.RenderTask (System.String taskId, Int32 startFrame, Int32 endFrame) <0x1195bbe80 + 0x001be> in <filename unknown>:0 
  at Deadline.Slaves.SlaveRenderThread.a (Deadline.IO.TaskLogWriter A_0) <0x1195b7000 + 0x02439> in <filename unknown>:0 

=======================================================
Log
=======================================================
2016-11-22 18:04:12:  BEGIN - Marceline.local\MP_1
2016-11-22 18:04:12:  Operating System: Mac OS X 10.10.5
2016-11-22 18:04:12:  CPU Architecture: x86_64
2016-11-22 18:04:12:  CPUs: 12
2016-11-22 18:04:12:  Video Card: AMD FirePro D500
2016-11-22 18:04:12:  0: Loading Job's Plugin timeout is Disabled
2016-11-22 18:04:13:  0: Executing plugin command of type 'Initialize Plugin'
2016-11-22 18:04:13:  0: INFO: Executing plugin script '/Users/MP_1/Library/Application Support/Thinkbox/Deadline8/slave/marceline/plugins/5834b2a32d6d74930249e740/FFmpeg.py'
2016-11-22 18:04:14:  0: INFO: About: FFmpeg Plugin for Deadline
2016-11-22 18:04:14:  0: INFO: The job's environment will be merged with the current environment before rendering
2016-11-22 18:04:14:  0: Done executing plugin command of type 'Initialize Plugin'
2016-11-22 18:04:14:  0: Start Job timeout is disabled.
2016-11-22 18:04:14:  0: Task timeout is disabled.
2016-11-22 18:04:14:  0: Loaded job: ffmpeg submission - be_120_comp_v2.mov (5834b2a32d6d74930249e740)
2016-11-22 18:04:14:  0: Executing plugin command of type 'Start Job'
2016-11-22 18:04:14:  0: INFO: Executing global job preload script '/Users/MP_1/Library/Application Support/Thinkbox/Deadline8/slave/marceline/plugins/5834b2a32d6d74930249e740/GlobalJobPreLoad.py'
2016-11-22 18:04:14:  0: Swapping xxxxxx from  to 
2016-11-22 18:04:14:  0: Swapping xxxxxx from  to 
2016-11-22 18:04:14:  0: Done executing plugin command of type 'Start Job'
2016-11-22 18:04:14:  0: Plugin rendering frame(s): 0
2016-11-22 18:04:14:  0: Executing plugin command of type 'Render Task'
2016-11-22 18:04:14:  0: INFO: FFmpeg job starting...
2016-11-22 18:04:14:  0: INFO: Stdout Redirection Enabled: True
2016-11-22 18:04:14:  0: INFO: Asynchronous Stdout Enabled: False
2016-11-22 18:04:14:  0: INFO: Stdout Handling Enabled: True
2016-11-22 18:04:14:  0: INFO: Popup Handling Enabled: False
2016-11-22 18:04:14:  0: INFO: Using Process Tree: True
2016-11-22 18:04:14:  0: INFO: Hiding DOS Window: True
2016-11-22 18:04:14:  0: INFO: Creating New Console: False
2016-11-22 18:04:14:  0: INFO: Running as user: MP_1
2016-11-22 18:04:14:  0: INFO: Executable: "/xxxxx/_dev/makeDaily/ffmpeg"
2016-11-22 18:04:14:  0: INFO: UseSameInputArgs = False
2016-11-22 18:04:14:  0: INFO: Argument: -i [b]"/xxxxxx/xxxxx/be_120/elements/comp/be_120_comp_v1/be_120_comp_v%01d.%04d.dpx"[/b] -c:v prores_ks -profile:v 2 -pix_fmt yuv422p10le -vendor ap10 -qscale:v 9 -r 24 -s 1920x1080 -c:a copy -y "/xxxxxx/test/makeDaily/be_120_comp_v2.mov"
2016-11-22 18:04:14:  0: INFO: Full Command: "/xxxxxx/_dev/makeDaily/ffmpeg" -i "/xxxxx/xxxxx/be_120/elements/comp/be_120_comp_v1/be_120_comp_v%01d.%04d.dpx" -c:v prores_ks -profile:v 2 -pix_fmt yuv422p10le -vendor ap10 -qscale:v 9 -r 24 -s 1920x1080 -c:a copy -y "/xxxxxx/xxxxx/makeDaily/be_120_comp_v2.mov"
2016-11-22 18:04:14:  0: INFO: Startup Directory: "/xxxxxx/_dev/makeDaily"
2016-11-22 18:04:14:  0: INFO: Process Priority: BelowNormal
2016-11-22 18:04:14:  0: INFO: Process Affinity: default
2016-11-22 18:04:14:  0: INFO: Process is now running
2016-11-22 18:04:14:  0: STDOUT: ffmpeg version 3.2-tessus Copyright (c) 2000-2016 the FFmpeg developers
2016-11-22 18:04:14:  0: STDOUT:   built with Apple LLVM version 8.0.0 (clang-800.0.38)
2016-11-22 18:04:14:  0: STDOUT:   configuration: --cc=/usr/bin/clang --prefix=/opt/ffmpeg --extra-version=tessus --enable-avisynth --enable-fontconfig --enable-gpl --enable-libass --enable-libbluray --enable-libfreetype --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopus --enable-libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzmq --enable-version3 --disable-ffplay --disable-indev=qtkit --disable-indev=x11grab_xcb
2016-11-22 18:04:14:  0: STDOUT:   libavutil      55. 34.100 / 55. 34.100
2016-11-22 18:04:14:  0: STDOUT:   libavcodec     57. 64.100 / 57. 64.100
2016-11-22 18:04:14:  0: STDOUT:   libavformat    57. 56.100 / 57. 56.100
2016-11-22 18:04:14:  0: STDOUT:   libavdevice    57.  1.100 / 57.  1.100
2016-11-22 18:04:14:  0: STDOUT:   libavfilter     6. 65.100 /  6. 65.100
2016-11-22 18:04:14:  0: STDOUT:   libswscale      4.  2.100 /  4.  2.100
2016-11-22 18:04:14:  0: STDOUT:   libswresample   2.  3.100 /  2.  3.100
2016-11-22 18:04:14:  0: STDOUT:   libpostproc    54.  1.100 / 54.  1.100
2016-11-22 18:04:14:  0: STDOUT: /xxxxxx/xxxxxx/be_120/elements/comp/be_120_comp_v1/be_120_comp_v%01d.%04d.dpx: No such file or directory
2016-11-22 18:04:15:  0: INFO: Process exit code: 1
2016-11-22 18:04:15:  0: Done executing plugin command of type 'Render Task'

=======================================================
Details
=======================================================
Date: 11/22/2016 18:04:16
Frames: 0
Elapsed Time: 00:00:00:04
Job Submit Date: 11/22/2016 18:03:31
Job User: tools
Average RAM Usage: 4982374400 (30%)
Peak RAM Usage: 4990640128 (30%)
Average CPU Usage: 15%
Peak CPU Usage: 20%
Used CPU Clocks (x10^6 cycles): 8831
Total CPU Clocks (x10^6 cycles): 58868

=======================================================
Slave Information
=======================================================
Slave Name: Marceline
Version: v8.1.3.1 Release (2c6807a07)
Operating System: Mac OS X 10.10.5
Machine User: MP_1
IP Address: -----------
MAC Address: -----------
CPU Architecture: x86_64
CPUs: 12
CPU Usage: 12%
Memory Usage: 4.6 GB / 16.0 GB (28%)
Free Disk Space: 12.764 GB 
Video Card: AMD FirePro D500

Hey Kim,
So ReplacePadding in the FFMpeg plugin is set individually for each input file. Therefore all you should have to do in this case is change it to is.

ReplacePadding0=False

It is done this way so if you have multiple input files you are able to only have some of them Replace the padding.

Cheers,
Grant

Privacy | Site terms | Cookie preferences