AWS Thinkbox Discussion Forums

Draft encoding x264 with odd pixels for width/height

Hi,

we just stumbled upon a small issue with the creation of h264 Quicktimes through Draft.
Specifically this fails due to an odd value for the width of the input images.

2015-08-26 15:12:19: 0: STDOUT: RuntimeError: could not open codec 2015-08-26 15:12:19: 0: STDOUT: [libx264 @ 000000000057d420] width not divisible by 2 (1365x720)
See below for the full log.
This is not really a surprise actually as some codecs expect certain widht/height values (divsible by 2/8/16…) or even certain resolutions (DNxHD for example). The rendered frames of this job should have been in a different resolution anyway. But that’s of course something the user hast to set properly.
I’m just wondering if it’s possible to just simply avoid that kind of failure on a Draft job by padding the widht/height in the encoder to the next value that’s acceptable for the selected codec?

Cheers,
Holger

[code]=======================================================
Log

2015-08-26 15:12:19: BEGIN - CELL-RS-25\render
2015-08-26 15:12:19: 0: Plugin will be reloaded because a new job has been loaded, or one of the job files or plugin files has been modified
2015-08-26 15:12:19: 0: Loaded plugin Draft (\cell-dead-01\deadlinerepo\plugins\Draft)
2015-08-26 15:12:19: 0: Start Job timeout is disabled.
2015-08-26 15:12:19: 0: Task timeout is disabled.
2015-08-26 15:12:19: 0: Loaded job: kit_001_025_rndr_setup-white_v005_pj [left] [Shotgun H264 Movie Creation] (55ddb252c6eec715048f5a6e)
2015-08-26 15:12:19: 0: INFO: Executing plugin script C:\Users\render.CELLULOIDVFX\AppData\Local\Thinkbox\Deadline7\slave\CELL-RS-25\plugins\55ddb252c6eec715048f5a6e\Draft.py
2015-08-26 15:12:19: 0: INFO: Found Draft python module at: ‘C:\Users\render.CELLULOIDVFX\AppData\Local\Thinkbox\Deadline7\slave\CELL-RS-25\Draft\Draft.pyd’
2015-08-26 15:12:19: 0: INFO: About: Draft Plugin for Deadline
2015-08-26 15:12:19: 0: INFO: The job’s environment will be merged with the current environment before rendering
2015-08-26 15:12:19: 0: Plugin rendering frame(s): 1-101
2015-08-26 15:12:19: 0: INFO: Draft job starting…
2015-08-26 15:12:19: 0: INFO: Stdout Redirection Enabled: True
2015-08-26 15:12:19: 0: INFO: Stdout Handling Enabled: True
2015-08-26 15:12:19: 0: INFO: Popup Handling Enabled: False
2015-08-26 15:12:19: 0: INFO: Using Process Tree: True
2015-08-26 15:12:19: 0: INFO: Hiding DOS Window: True
2015-08-26 15:12:19: 0: INFO: Creating New Console: False
2015-08-26 15:12:19: 0: INFO: Running as user: render
2015-08-26 15:12:19: 0: INFO: Looking for bundled python at: ‘C:\Program Files\Thinkbox\Deadline7\bin\dpython.exe’
2015-08-26 15:12:19: 0: INFO: Executable: “C:\Program Files\Thinkbox\Deadline7\bin\dpython.exe”
2015-08-26 15:12:19: 0: INFO: Argument: -u “C:\Users\render.CELLULOIDVFX\AppData\Local\Thinkbox\Deadline7\slave\CELL-RS-25\jobsData\55ddb252c6eec715048f5a6e\Draft_CreateShotgunMovie.py” frameList=0-100 startFrame=0 endFrame=100 inFile=“Y:\kit\kit_001_025\rndr\kit_001_025_rndr_setup-white_v005_pj\1536x810_exr\left_kit_001_025_rndr_setup-white_v005_pj.RGB_color.####.exr” outFile=“Y:\kit\kit_001_025\rndr\kit_001_025_rndr_setup-white_v005_pj\1536x810_exr\Draft\shotgun_h264.mov” outFolder=“Y:\kit\kit_001_025\rndr\kit_001_025_rndr_setup-white_v005_pj\1536x810_exr\Draft” deadlineJobID=55dda05e84b0182118404e23 deadlineRepository="\cell-dead-01\deadlinerepo" taskStartFrame=1 taskEndFrame=101
2015-08-26 15:12:19: 0: INFO: Startup Directory: “C:\Users\render.CELLULOIDVFX\AppData\Local\Thinkbox\Deadline7\slave\CELL-RS-25\Draft”
2015-08-26 15:12:19: 0: INFO: Process Priority: BelowNormal
2015-08-26 15:12:19: 0: INFO: Process Affinity: default
2015-08-26 15:12:19: 0: INFO: Process is now running
2015-08-26 15:12:19: 0: STDOUT: Checking for a license…
2015-08-26 15:12:19: 0: STDOUT: Draft 1.4.0.59071
2015-08-26 15:12:19: 0: STDOUT: Command line args:
2015-08-26 15:12:19: 0: STDOUT: frameList=0-100
2015-08-26 15:12:19: 0: STDOUT: startFrame=0
2015-08-26 15:12:19: 0: STDOUT: endFrame=100
2015-08-26 15:12:19: 0: STDOUT: inFile=Y:\kit\kit_001_025\rndr\kit_001_025_rndr_setup-white_v005_pj\1536x810_exr\left_kit_001_025_rndr_setup-white_v005_pj.RGB_color.####.exr
2015-08-26 15:12:19: 0: STDOUT: outFile=Y:\kit\kit_001_025\rndr\kit_001_025_rndr_setup-white_v005_pj\1536x810_exr\Draft\shotgun_h264.mov
2015-08-26 15:12:19: 0: STDOUT: outFolder=Y:\kit\kit_001_025\rndr\kit_001_025_rndr_setup-white_v005_pj\1536x810_exr\Draft
2015-08-26 15:12:19: 0: STDOUT: deadlineJobID=55dda05e84b0182118404e23
2015-08-26 15:12:19: 0: STDOUT: deadlineRepository=\cell-dead-01\deadlinerepo
2015-08-26 15:12:19: 0: STDOUT: taskStartFrame=1
2015-08-26 15:12:19: 0: STDOUT: taskEndFrame=101
2015-08-26 15:12:19: 0: STDOUT: Creating H264 video enconder (1365x720 @ 24fps)
2015-08-26 15:12:19: 0: STDOUT: Traceback (most recent call last):
2015-08-26 15:12:19: 0: STDOUT: File “C:\Users\render.CELLULOIDVFX\AppData\Local\Thinkbox\Deadline7\slave\CELL-RS-25\jobsData\55ddb252c6eec715048f5a6e\Draft_CreateShotgunMovie.py”, line 31, in
2015-08-26 15:12:19: 0: STDOUT: encoder = Draft.VideoEncoder( params[‘outFile’], 24, outWidth, outHeight, codec=‘H264’ )
2015-08-26 15:12:19: 0: STDOUT: RuntimeError: could not open codec
2015-08-26 15:12:19: 0: STDOUT: [libx264 @ 000000000057d420] width not divisible by 2 (1365x720)
2015-08-26 15:12:20: 0: INFO: Process exit code: 1
2015-08-26 15:12:21: 0: An exception occurred: Error: Renderer returned non-zero error code, 1. Check the log for more information.
2015-08-26 15:12:21: at Deadline.Plugins.ScriptPlugin.RenderTasks(String taskId, Int32 startFrame, Int32 endFrame, String& outMessage, AbortLevel& abortLevel) (Deadline.Plugins.RenderPluginException)[/code]

UPDATE:
after a bit of investigation it turns out that the actual resolution of the input EXR sequence is correct. It’s probably the dataWindow or displayWindow metadata in the image that’s causing it. On the first frame of the sequence it’s ‘0,0,1535,809’. Why this is the case even though the image does clearly have content for the whole image size i don’t know and is probably a bug of the renderer. But somehow Draft is interpreting this information and wrongly using it to try and encode the video. The interesting thing is that this is only happening with the ‘Shotgun h264 Movie Creation’ job but not the dependent QuickDraft jobs for all the render passes of the same batch/render job. I attached the first frame of the sequence for you to examine.

Here’s also the log of one of the successful dependent Draft jobs using the same source as input:

[code]=======================================================
Log

2015-08-25 21:53:26: BEGIN - CELL-RS-18\render
2015-08-25 21:53:26: 0: Plugin will be reloaded because a new job has been loaded, or one of the job files or plugin files has been modified
2015-08-25 21:53:26: 0: Loaded plugin Draft (\cell-dead-01\deadlinerepo\plugins\Draft)
2015-08-25 21:53:27: 0: Start Job timeout is disabled.
2015-08-25 21:53:27: 0: Task timeout is disabled.
2015-08-25 21:53:27: 0: Loaded job: kit_001_025_rndr_setup_v005_pj - right [Quick Draft] (55dcc7adc6eec70cd0c98565)
2015-08-25 21:53:27: 0: INFO: Executing plugin script C:\Users\render.CELLULOIDVFX\AppData\Local\Thinkbox\Deadline7\slave\CELL-RS-18\plugins\55dcc7adc6eec70cd0c98565\Draft.py
2015-08-25 21:53:27: 0: INFO: Found Draft python module at: ‘C:\Users\render.CELLULOIDVFX\AppData\Local\Thinkbox\Deadline7\slave\CELL-RS-18\Draft\Draft.pyd’
2015-08-25 21:53:27: 0: INFO: About: Draft Plugin for Deadline
2015-08-25 21:53:27: 0: INFO: The job’s environment will be merged with the current environment before rendering
2015-08-25 21:53:27: 0: Plugin rendering frame(s): 1-101
2015-08-25 21:53:27: 0: INFO: Draft job starting…
2015-08-25 21:53:27: 0: INFO: Stdout Redirection Enabled: True
2015-08-25 21:53:27: 0: INFO: Stdout Handling Enabled: True
2015-08-25 21:53:27: 0: INFO: Popup Handling Enabled: False
2015-08-25 21:53:27: 0: INFO: Using Process Tree: True
2015-08-25 21:53:27: 0: INFO: Hiding DOS Window: True
2015-08-25 21:53:27: 0: INFO: Creating New Console: False
2015-08-25 21:53:27: 0: INFO: Running as user: render
2015-08-25 21:53:27: 0: INFO: Looking for bundled python at: ‘C:\Program Files\Thinkbox\Deadline7\bin\dpython.exe’
2015-08-25 21:53:27: 0: INFO: Executable: “C:\Program Files\Thinkbox\Deadline7\bin\dpython.exe”
2015-08-25 21:53:27: 0: INFO: Argument: -u “C:\Users\render.CELLULOIDVFX\AppData\Local\Thinkbox\Deadline7\slave\CELL-RS-18\jobsData\55dcc7adc6eec70cd0c98565\DraftCreateMovie.py” resolution=“1” codec=“H264” quality=“85” frameRate=“1” frameList=0-100 startFrame=0 endFrame=100 inFile=“Y:\kit\kit_001_025\rndr\kit_001_025_rndr_setup_v005_pj\1536x810_exr_right\kit_001_025_rndr_setup_v005_pj_right.RGB_color.####.exr” outFile=“Y:\kit\kit_001_025\rndr\kit_001_025_rndr_setup_v005_pj\1536x810_exr_right\Draft\kit_001_025_rndr_setup_v005_pj_right.RGB_color.mov” outFolder=“Y:\kit\kit_001_025\rndr\kit_001_025_rndr_setup_v005_pj\1536x810_exr_right\Draft” deadlineJobID=55dca9b184b0184b14600c5b deadlineRepository="\cell-dead-01\deadlinerepo" taskStartFrame=1 taskEndFrame=101
2015-08-25 21:53:27: 0: INFO: Startup Directory: “C:\Users\render.CELLULOIDVFX\AppData\Local\Thinkbox\Deadline7\slave\CELL-RS-18\Draft”
2015-08-25 21:53:27: 0: INFO: Process Priority: BelowNormal
2015-08-25 21:53:27: 0: INFO: Process Affinity: default
2015-08-25 21:53:27: 0: INFO: Process is now running
2015-08-25 21:53:27: 0: STDOUT: Checking for a license…
2015-08-25 21:53:27: 0: STDOUT: Draft 1.4.0.59071
2015-08-25 21:53:27: 0: STDOUT: Command line args:
2015-08-25 21:53:27: 0: STDOUT: resolution=1
2015-08-25 21:53:27: 0: STDOUT: codec=H264
2015-08-25 21:53:27: 0: STDOUT: quality=85
2015-08-25 21:53:27: 0: STDOUT: frameRate=1
2015-08-25 21:53:27: 0: STDOUT: frameList=0-100
2015-08-25 21:53:27: 0: STDOUT: startFrame=0
2015-08-25 21:53:27: 0: STDOUT: endFrame=100
2015-08-25 21:53:27: 0: STDOUT: inFile=Y:\kit\kit_001_025\rndr\kit_001_025_rndr_setup_v005_pj\1536x810_exr_right\kit_001_025_rndr_setup_v005_pj_right.RGB_color.####.exr
2015-08-25 21:53:27: 0: STDOUT: outFile=Y:\kit\kit_001_025\rndr\kit_001_025_rndr_setup_v005_pj\1536x810_exr_right\Draft\kit_001_025_rndr_setup_v005_pj_right.RGB_color.mov
2015-08-25 21:53:27: 0: STDOUT: outFolder=Y:\kit\kit_001_025\rndr\kit_001_025_rndr_setup_v005_pj\1536x810_exr_right\Draft
2015-08-25 21:53:27: 0: STDOUT: deadlineJobID=55dca9b184b0184b14600c5b
2015-08-25 21:53:27: 0: STDOUT: deadlineRepository=\cell-dead-01\deadlinerepo
2015-08-25 21:53:27: 0: STDOUT: taskStartFrame=1
2015-08-25 21:53:27: 0: STDOUT: taskEndFrame=101
2015-08-25 21:53:27: 0: STDOUT: Encoding Progress: 0%
2015-08-25 21:53:27: 0: STDOUT: Encoding Progress: 1%
2015-08-25 21:53:27: 0: STDOUT: Encoding Progress: 2%
2015-08-25 21:53:27: 0: STDOUT: Encoding Progress: 3%
2015-08-25 21:53:27: 0: STDOUT: Encoding Progress: 4%
2015-08-25 21:53:27: 0: STDOUT: Encoding Progress: 5%
2015-08-25 21:53:27: 0: STDOUT: Encoding Progress: 6%
2015-08-25 21:53:27: 0: STDOUT: Encoding Progress: 7%
2015-08-25 21:53:28: 0: STDOUT: Encoding Progress: 8%
2015-08-25 21:53:28: 0: STDOUT: Encoding Progress: 9%
2015-08-25 21:53:28: 0: STDOUT: Encoding Progress: 10%
2015-08-25 21:53:28: 0: STDOUT: Encoding Progress: 11%
2015-08-25 21:53:28: 0: STDOUT: Encoding Progress: 12%
2015-08-25 21:53:28: 0: STDOUT: Encoding Progress: 13%
2015-08-25 21:53:28: 0: STDOUT: Encoding Progress: 14%
2015-08-25 21:53:28: 0: STDOUT: Encoding Progress: 15%
2015-08-25 21:53:28: 0: STDOUT: Encoding Progress: 16%
2015-08-25 21:53:28: 0: STDOUT: Encoding Progress: 17%
2015-08-25 21:53:28: 0: STDOUT: Encoding Progress: 18%
2015-08-25 21:53:29: 0: STDOUT: Encoding Progress: 19%
2015-08-25 21:53:29: 0: STDOUT: Encoding Progress: 20%
2015-08-25 21:53:29: 0: STDOUT: Encoding Progress: 21%
2015-08-25 21:53:29: 0: STDOUT: Encoding Progress: 22%
2015-08-25 21:53:29: 0: STDOUT: Encoding Progress: 23%
2015-08-25 21:53:29: 0: STDOUT: Encoding Progress: 24%
2015-08-25 21:53:29: 0: STDOUT: Encoding Progress: 25%
2015-08-25 21:53:29: 0: STDOUT: Encoding Progress: 26%
2015-08-25 21:53:29: 0: STDOUT: Encoding Progress: 27%
2015-08-25 21:53:29: 0: STDOUT: Encoding Progress: 28%
2015-08-25 21:53:29: 0: STDOUT: Encoding Progress: 29%
2015-08-25 21:53:29: 0: STDOUT: Encoding Progress: 30%
2015-08-25 21:53:30: 0: STDOUT: Encoding Progress: 31%
2015-08-25 21:53:30: 0: STDOUT: Encoding Progress: 32%
2015-08-25 21:53:30: 0: STDOUT: Encoding Progress: 33%
2015-08-25 21:53:30: 0: STDOUT: Encoding Progress: 34%
2015-08-25 21:53:30: 0: STDOUT: Encoding Progress: 35%
2015-08-25 21:53:30: 0: STDOUT: Encoding Progress: 36%
2015-08-25 21:53:30: 0: STDOUT: Encoding Progress: 37%
2015-08-25 21:53:30: 0: STDOUT: Encoding Progress: 38%
2015-08-25 21:53:30: 0: STDOUT: Encoding Progress: 39%
2015-08-25 21:53:30: 0: STDOUT: Encoding Progress: 40%
2015-08-25 21:53:30: 0: STDOUT: Encoding Progress: 41%
2015-08-25 21:53:30: 0: STDOUT: Encoding Progress: 42%
2015-08-25 21:53:31: 0: STDOUT: Encoding Progress: 43%
2015-08-25 21:53:31: 0: STDOUT: Encoding Progress: 44%
2015-08-25 21:53:31: 0: STDOUT: Encoding Progress: 45%
2015-08-25 21:53:31: 0: STDOUT: Encoding Progress: 46%
2015-08-25 21:53:31: 0: STDOUT: Encoding Progress: 47%
2015-08-25 21:53:31: 0: STDOUT: Encoding Progress: 48%
2015-08-25 21:53:31: 0: STDOUT: Encoding Progress: 49%
2015-08-25 21:53:31: 0: STDOUT: Encoding Progress: 50%
2015-08-25 21:53:31: 0: STDOUT: Encoding Progress: 51%
2015-08-25 21:53:31: 0: STDOUT: Encoding Progress: 52%
2015-08-25 21:53:31: 0: STDOUT: Encoding Progress: 53%
2015-08-25 21:53:31: 0: STDOUT: Encoding Progress: 54%
2015-08-25 21:53:31: 0: STDOUT: Encoding Progress: 55%
2015-08-25 21:53:32: 0: STDOUT: Encoding Progress: 56%
2015-08-25 21:53:32: 0: STDOUT: Encoding Progress: 57%
2015-08-25 21:53:32: 0: STDOUT: Encoding Progress: 58%
2015-08-25 21:53:32: 0: STDOUT: Encoding Progress: 59%
2015-08-25 21:53:32: 0: STDOUT: Encoding Progress: 60%
2015-08-25 21:53:32: 0: STDOUT: Encoding Progress: 61%
2015-08-25 21:53:32: 0: STDOUT: Encoding Progress: 62%
2015-08-25 21:53:32: 0: STDOUT: Encoding Progress: 63%
2015-08-25 21:53:32: 0: STDOUT: Encoding Progress: 64%
2015-08-25 21:53:32: 0: STDOUT: Encoding Progress: 65%
2015-08-25 21:53:32: 0: STDOUT: Encoding Progress: 66%
2015-08-25 21:53:33: 0: STDOUT: Encoding Progress: 67%
2015-08-25 21:53:33: 0: STDOUT: Encoding Progress: 68%
2015-08-25 21:53:33: 0: STDOUT: Encoding Progress: 69%
2015-08-25 21:53:33: 0: STDOUT: Encoding Progress: 70%
2015-08-25 21:53:33: 0: STDOUT: Encoding Progress: 71%
2015-08-25 21:53:33: 0: STDOUT: Encoding Progress: 72%
2015-08-25 21:53:33: 0: STDOUT: Encoding Progress: 73%
2015-08-25 21:53:33: 0: STDOUT: Encoding Progress: 74%
2015-08-25 21:53:33: 0: STDOUT: Encoding Progress: 75%
2015-08-25 21:53:33: 0: STDOUT: Encoding Progress: 76%
2015-08-25 21:53:33: 0: STDOUT: Encoding Progress: 77%
2015-08-25 21:53:33: 0: STDOUT: Encoding Progress: 78%
2015-08-25 21:53:34: 0: STDOUT: Encoding Progress: 79%
2015-08-25 21:53:34: 0: STDOUT: Encoding Progress: 80%
2015-08-25 21:53:34: 0: STDOUT: Encoding Progress: 81%
2015-08-25 21:53:34: 0: STDOUT: Encoding Progress: 82%
2015-08-25 21:53:34: 0: STDOUT: Encoding Progress: 83%
2015-08-25 21:53:34: 0: STDOUT: Encoding Progress: 84%
2015-08-25 21:53:34: 0: STDOUT: Encoding Progress: 85%
2015-08-25 21:53:34: 0: STDOUT: Encoding Progress: 86%
2015-08-25 21:53:34: 0: STDOUT: Encoding Progress: 87%
2015-08-25 21:53:34: 0: STDOUT: Encoding Progress: 88%
2015-08-25 21:53:34: 0: STDOUT: Encoding Progress: 89%
2015-08-25 21:53:35: 0: STDOUT: Encoding Progress: 90%
2015-08-25 21:53:35: 0: STDOUT: Encoding Progress: 91%
2015-08-25 21:53:35: 0: STDOUT: Encoding Progress: 92%
2015-08-25 21:53:35: 0: STDOUT: Encoding Progress: 93%
2015-08-25 21:53:35: 0: STDOUT: Encoding Progress: 94%
2015-08-25 21:53:35: 0: STDOUT: Encoding Progress: 95%
2015-08-25 21:53:35: 0: STDOUT: Encoding Progress: 96%
2015-08-25 21:53:35: 0: STDOUT: Encoding Progress: 97%
2015-08-25 21:53:35: 0: STDOUT: Encoding Progress: 98%
2015-08-25 21:53:35: 0: STDOUT: Encoding Progress: 99%
2015-08-25 21:53:35: 0: STDOUT: Encoding Progress: 100%
2015-08-25 21:53:36: 0: STDOUT: [libx264 @ 0000000009e3c760] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
2015-08-25 21:53:36: 0: STDOUT: [libx264 @ 0000000009e3c760] profile Constrained Baseline, level 3.2
2015-08-25 21:53:36: 0: STDOUT: [libx264 @ 0000000009e3c760] 264 - core 142 r2 dd79a61 - H.264/MPEG-4 AVC codec - Copyleft 2003-2014 - http://www.videolan.org/x264.html - options: cabac=0 ref=3 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=0 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=48 lookahead_threads=6 sliced_threads=0 slices=4 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=3 keyint_min=1 scenecut=40 intra_refresh=0 rc_lookahead=3 rc=crf mbtree=1 crf=18.3 qcomp=0.60 qpmin=4 qpmax=51 qpstep=4 ip_ratio=1.50 aq=1:1.00
2015-08-25 21:53:36: 0: STDOUT: Output #0, mov, to ‘Y:\kit\kit_001_025\rndr\kit_001_025_rndr_setup_v005_pj\1536x810_exr_right\Draft\kit_001_025_rndr_setup_v005_pj_right.RGB_color.mov’:
2015-08-25 21:53:36: 0: STDOUT: Metadata:
2015-08-25 21:53:36: 0: STDOUT: encoder : Lavf55.48.100
2015-08-25 21:53:36: 0: STDOUT: Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuvj420p(pc, bt709), 1536x810, q=4-51, 16384 tbn, 1 tbc
2015-08-25 21:53:36: 0: STDOUT: [libx264 @ 0000000009e3c760] frame I:41 Avg QP: 4.82 size:254135
2015-08-25 21:53:36: 0: STDOUT: [libx264 @ 0000000009e3c760] frame P:60 Avg QP: 6.50 size:166614
2015-08-25 21:53:36: 0: STDOUT: [libx264 @ 0000000009e3c760] mb I I16…4: 75.3% 0.0% 24.7%
2015-08-25 21:53:36: 0: STDOUT: [libx264 @ 0000000009e3c760] mb P I16…4: 15.1% 0.0% 11.4% P16…4: 11.1% 4.5% 3.2% 0.0% 0.0% skip:54.8%
2015-08-25 21:53:36: 0: STDOUT: [libx264 @ 0000000009e3c760] coded y,uvDC,uvAC intra: 57.9% 58.2% 58.2% inter: 22.1% 19.1% 14.1%
2015-08-25 21:53:36: 0: STDOUT: [libx264 @ 0000000009e3c760] i16 v,h,dc,p: 55% 1% 31% 13%
2015-08-25 21:53:36: 0: STDOUT: [libx264 @ 0000000009e3c760] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 10% 7% 34% 9% 10% 8% 9% 7% 7%
2015-08-25 21:53:36: 0: STDOUT: [libx264 @ 0000000009e3c760] i8c dc,h,v,p: 76% 5% 7% 12%
2015-08-25 21:53:36: 0: STDOUT: [libx264 @ 0000000009e3c760] ref P L0: 96.1% 3.9%
2015-08-25 21:53:36: 0: STDOUT: [libx264 @ 0000000009e3c760] kb/s:1617.14
2015-08-25 21:53:37: 0: INFO: Process exit code: 0
2015-08-25 21:53:37: 0: INFO: Draft job complete!
2015-08-25 21:53:37: 0: Render time for frame(s): 10.051 s
2015-08-25 21:53:37: 0: Total time for task: 12.825 s
2015-08-25 21:53:37: 0: Saving task log…

=======================================================
Details

Date: 08/25/2015 21:53:37
Frames: 1-101
Job Submit Date: 08/25/2015 21:53:17
Job User: paulj
Average RAM Usage: 0 (0%)
Peak RAM Usage: 0 (0%)
Average CPU Usage: 0%
Peak CPU Usage: 0%
Used CPU Clocks: 0
Total CPU Clocks: 0

=======================================================
Slave Information

Slave Name: CELL-RS-18
Version: v7.2.0.14 R (dbc900863)
Operating System: Windows 7 Professional (SP1)
Running As Service: No
Machine User: render
IP Address: 192.168.1.118
MAC Address: AC:22:0B:0B:CE:3D
CPU Architecture: x64
CPUs: 32
CPU Usage: 0%
Memory Usage: 4.3 GB / 63.9 GB (6%)
Free Disk Space: 797.999 GB (344.164 GB on C:, 453.836 GB on D:)
Video Card: Standard VGA Graphics Adapter
[/code]

Cheers,
Holger
kit_001_025_rndr_setup_v005_pj_right.RGB_color.0000.zip (1.01 MB)

Oops!.. Forget what i wrote about the dataWindow. It’s all correct. But you can of course still use the EXR image as a reference.
I suspect something else is causing this:
I guess you’re telling the ‘Shotgun h264’ job to scale down the input to 720p. This can sometimes result in odd values for the width - which are then not rounded to the next even number. And this is ultimately causing the encoder to fail.

Cheers,
Holger

Yes, thank you for bringing this to our attention! I will log this as a bug.

Yes, that would be possible. I think we should change our scripts to do so in cases like this.

Hi Paul,

thanks for the reply. Looking forward to a fix then.

Cheers,
Holger

Hi Paul,

just wondering if there’s maybe already a fix for this internally that you could post or PM to me?
It’s actually quite annoying with a project that we’re running currently where this happens to all renders and as a consequence no QTs get uploaded to shogtun, unfortunately.

Cheers,
Holger

I’ll take a look. We should be able to send you a fix later today.

Here’s an updated version of this script, which should fix the “width not divisible by 2” error that you encountered.

To apply the fix, extract Draft_CreateShotgunMovie.py from the attached ZIP file, and copy it to //REPOSITORY/events/Shotgun/Draft_CreateShotgunMovie.py.
Draft_CreateShotgunMovie.zip (799 Bytes)

Hi Paul,

thanks a lot!
I briefly tried this on one of the failed shotgun_h264 jobs of a 3ds Max batch and it still failed. After checking the locally cached copy of Draft_CreateShotgunMovie.py on the render machine i saw that it’s still the previous version. Even re-submitting the job did not help. Only manually overwriting the local copy fixed this. Is this normal/intended behaviour?

Apart from that the fix seems to be working. The job where i manually overwrote the local copy rendered correctly.

Cheers,
Holger

If you were modifying an existing Job, the PY script might have already been sent with it as an Auxiliary File. Such a Job will use the copy of the file that was sent with it, not the file in the Repository. This is to ensure that modifying a script won’t affect already running jobs (imagine changing a script in the Repository while a job is running not because of an error, but because you want to modify its functionality - half of the Tasks of a running Job could potentially produce different results). So in the case of existing Jobs, you would have to replace the script in the Job’s folder.

On top of that, a Job that has already been picked up by a Slave will not resync its Auxiliary files unless the General Job Property “Re-synchronize Auxiliary Files Between Tasks” has been checked. This is to avoid copying again and again MAX files, large text files, etc. from the Repository to the Slave when it already has the data from a previous attempt. This also affects scripts sent with the job. So if you had a Slave try to render the Job with the bad script, and you modified the Auxiliary file, the Slave would keep on using the bad script it has cached locally (if it is still there) until you check that option…

Thanks for the explanation, makes sense (of course)!
Had it running on a few more (new) jobs now and the issue didn’t show up anymore.
Thanks again!

Privacy | Site terms | Cookie preferences