AWS Thinkbox Discussion Forums

Still unable to create a mov file

Hi !

I’ve been playing along with draft and i keep having the same error coming back.

Here’s my log

=======================================================
Error Message

Exception during render: An error occurred in RenderTasks(): Error in CheckExitCode(): Renderer returned non-zero error code, 1. Check the log for more information.
à Deadline.Plugins.ScriptPlugin.RenderTasks(String taskId, Int32 startFrame, Int32 endFrame, String& outMessage)

=======================================================
Slave Log

0: Task timeout is disabled.
0: Loaded job: IA.009.0005.comp.ng.v02.nk [DRAFT] (999_050_999_11e754ea)
0: Successfully mapped R: to \FX-NAS-01\vfx\RENDER
0: Successfully mapped K: to \FX-NAS-01\vfx\Projets
0: INFO: StartJob: initializing script plugin Draft
0: INFO: Found Draft python module at: ‘C:\Users\renderfx\AppData\Local\Thinkbox\Deadline\slave\Fx-render-02_instance_13\Draft\Draft.pyd’
0: INFO: About: Draft Plugin for Deadline
0: Plugin rendering frame(s): 0
0: INFO: Draft job starting…
0: INFO: Stdout Handling Enabled: False
0: INFO: Popup Handling Enabled: False
0: INFO: Using Process Tree: True
0: INFO: Hiding DOS Window: True
0: INFO: Creating New Console: False
0: INFO: Looking for bundled python at: ‘C:\Program Files\Thinkbox\Deadline\python\2.6.7\x64\python.exe’
0: INFO: Render Executable: “C:\Program Files\Thinkbox\Deadline\python\2.6.7\x64\python.exe”
0: INFO: Render Argument: -u “R:/Watermark_Demo_Template.py” username=“ngirard” entity=“IA.009.0005.comp.ng.v02.nk” version="" inFile="\fx-nas-01\vfx\RENDER\IA\SHOTS\009\0005\cmp\output\comp_v002\IA.009.0005.comp.ng.v##.%v.####.exr" outFile="\fx-nas-01\vfx\RENDER\IA\SHOTS\009\0005\cmp\output\comp_v002\Draft\IA.009.0005.comp.ng.v02.%v…mov" startFrame=“1” endFrame=“204” frameList=“1-204” deadlineJobID=999_050_999_22c5b0cd
0: INFO: Startup Directory: “C:\Users\renderfx\AppData\Local\Thinkbox\Deadline\slave\Fx-render-02_instance_13\Draft”
0: INFO: Process Priority: BelowNormal
0: INFO: Process is now running
0: STDOUT: Checking for license at
0: STDOUT: Command line args:
0: STDOUT: username=ngirard
0: STDOUT: entity=IA.009.0005.comp.ng.v02.nk
0: STDOUT: version=
0: STDOUT: inFile=\fx-nas-01\vfx\RENDER\IA\SHOTS\009\0005\cmp\output\comp_v002\IA.009.0005.comp.ng.v##.%v.####.exr
0: STDOUT: outFile=\fx-nas-01\vfx\RENDER\IA\SHOTS\009\0005\cmp\output\comp_v002\Draft\IA.009.0005.comp.ng.v02.%v…mov
0: STDOUT: startFrame=1
0: STDOUT: endFrame=204
0: STDOUT: frameList=1-204
0: STDOUT: deadlineJobID=999_050_999_22c5b0cd
0: STDOUT: Traceback (most recent call last):
0: STDOUT: File “R:/Watermark_Demo_Template.py”, line 19, in
0: STDOUT: firstFrame = Draft.Image.ReadFromFile( ReplaceFilenameHashesWithNumber( params[‘inFile’], params[‘startFrame’] ) )
0: STDOUT: File “C:\Users\renderfx\AppData\Local\Thinkbox\Deadline\slave\Fx-render-02_instance_13\Draft\DraftParamParser.py”, line 203, in ReplaceFilenameHashesWithNumber
0: STDOUT: raise StandardError(“Provided sequence must contain no more than one contiguous sequence of ‘#’ symbols to be replaced.”)
0: STDOUT: StandardError: Provided sequence must contain no more than one contiguous sequence of ‘#’ symbols to be replaced.
0: INFO: Process exit code: 1

I tried to reduce the number of the hashes but that same error come back. Does anybody have any ideas. Thanks :slight_smile:!

Hi there!

The problem, as you seem to have surmised, is in the input filename that’s being passed to Draft: “\fx-nas-01\vfx\RENDER\IA\SHOTS\009\0005\cmp\output\comp_v002\IA.009.0005.comp.ng.v##.%v.####.exr”. You’ll note the version number in the filename is being swapped to #'s incorrectly.

How are you submitting the Draft job to Deadline? Which submitter are you using? In some spots, we swap out the last set of digits in the filename with #'s, assuming that it would be the sequence number. My guess is that there’s a bug somewhere that’s ignoring the fact that #'s have already been swapped in for the sequence number, and is swapping the version numbers with them instead (hence the .v##. part you end up with that is causing issues).

Let me know and I’ll fix up whichever script is buggy, then upload a new version of if here.

Cheers,

  • Jon

I use the submitter via deadline. I right click my render, go to script and draft

Gotcha. So it turns out I had already fixed this bug internally, it just hasn’t been part of a public release yet.

I’ve attached a copy of the updated script that fixes the problem. Just extract it to your deadline repository under the “scripts/Jobs/JobDraftSubmission” folder, and replace the existing version. From then on, newly submitted Draft jobs won’t be swapping out your version number with hashes, and everything should hopefully go smoothly.

Cheers,

0: STDOUT: File “R:/Watermark_Demo_Template.py”, line 19, in
0: STDOUT: firstFrame = Draft.Image.ReadFromFile( ReplaceFilenameHashesWithNumber( params[‘inFile’], params[‘startFrame’] ) )
0: STDOUT: File “C:\Users\renderfx\AppData\Local\Thinkbox\Deadline\slave\Fx-render-02_instance_14\Draft\DraftParamParser.py”, line 208, in ReplaceFilenameHashesWithNumber
0: STDOUT: s = (sSplit[0] + ‘%’ + str(numHashes) + ‘.’ + str(numHashes) + ‘d’ + sSplit[1]) % n
0: STDOUT: ValueError: unsupported format character ‘v’ (0x76) at index 88
0: INFO: Process exit code: 1

Im gonna try other template but for the moment i got this

Ok, so it looks like the other problem was fixed, at least.

This time, the “%v” part of the filename is causing issues… Is that actually part of the filename? Or is ‘%v’ supposed to be a token representing something?

Either way, ‘%’ is a legal filename character, so I’ll have to fix this bug as well. I’ll post an updated version of the appropriate script once I get it fixed up.

Cheers,

  • Jon

I just chek,

It’s the version of my render. V004 per exemple. Im gonna try to juste write the good version

Another question, i want to make the slate apper for only one frame, and at the frame zero. Not from 1 to 25

Im using the script simple_slate_h264_DNXHD_burnins

Can it be done ?

Have ive been able to create the slate at only frame zero :slight_smile:.

So forget my last post,

thanks again,

fred

Good to hear you figured it out!

For the benefit of anyone else wondering how to do it, most of the sample scripts have a variable in them that controls the number of frames the slate shows up for (see line below).

slateFrames = 24

You should just need to change that to “slateFrames = 1” and that will change it to just show the slate for a single frame.

Cheers,

  • Jon

How is the bug coming along ?

I have not gotten around to fixing allowing the ‘%’ character in filenames, but it sounds like that wasn’t part of the actual filename… Is this holding you up?

Draft doesn’t handle swapping out tokens (like the %v) for the actual version number, it wouldn’t know what to swap it to; the %v needs to be swapped out for the proper version before it gets passed to Draft. Where is that coming from in the first place? Is it just being passed down from the app you’re using (it would be getting filled in automatically if it was), or are you typing it in manually?

Cheers,

  • Jon

Ok here the complete log in case you will need it:

[code]=======================================================
Error Message

Exception during render: An error occurred in RenderTasks(): Error in CheckExitCode(): Renderer returned non-zero error code, 1. Check the log for more information.
à Deadline.Plugins.ScriptPlugin.RenderTasks(String taskId, Int32 startFrame, Int32 endFrame, String& outMessage)

=======================================================
Slave Log

0: Task timeout is disabled.
0: Loaded job: IA.009.0005.comp.ng.v11.nk [DRAFT] (999_050_004_0a26412f)
0: Successfully mapped R: to \FX-NAS-01\vfx\RENDER
0: Successfully mapped K: to \FX-NAS-01\vfx\Projets
0: INFO: StartJob: initializing script plugin Draft
0: INFO: Found Draft python module at: ‘C:\Users\renderfx\AppData\Local\Thinkbox\Deadline\slave\Fx-render-02_instance_03\Draft\Draft.pyd’
0: INFO: About: Draft Plugin for Deadline
0: Plugin rendering frame(s): 0
0: INFO: Draft job starting…
0: INFO: Stdout Handling Enabled: False
0: INFO: Popup Handling Enabled: False
0: INFO: Using Process Tree: True
0: INFO: Hiding DOS Window: True
0: INFO: Creating New Console: False
0: INFO: Looking for bundled python at: ‘C:\Program Files\Thinkbox\Deadline\python\2.6.7\x64\python.exe’
0: INFO: Render Executable: “C:\Program Files\Thinkbox\Deadline\python\2.6.7\x64\python.exe”
0: INFO: Render Argument: -u “C:/Users/renderfx/AppData/Local/Thinkbox/Deadline/slave/Fx-render-02_instance_03/jobsData/simple_slate_h264_MJPEG_burnins.py” username=“ngirard” entity="" version="" width=5120 height=2700 frameList=1-204 startFrame=1 endFrame=204 inFile="\fx-nas-01\vfx\RENDER\IA\SHOTS\009\0005\cmp\output\comp_v002\IA.009.0005.comp.ng.v011.%v.####.exr" outFile="\fx-nas-01\vfx\RENDER\IA\SHOTS\009\0005\cmp\output\comp_v002\Draft\IA.009.0005.comp.ng.v011.%v…mov" deadlineJobID=999_050_004_0ac0ebd6
0: INFO: Startup Directory: “C:\Users\renderfx\AppData\Local\Thinkbox\Deadline\slave\Fx-render-02_instance_03\Draft”
0: INFO: Process Priority: BelowNormal
0: INFO: Process is now running
0: STDOUT: Checking for license at
0: STDOUT: Command line args:
0: STDOUT: username=ngirard
0: STDOUT: entity=
0: STDOUT: version=
0: STDOUT: width=5120
0: STDOUT: height=2700
0: STDOUT: frameList=1-204
0: STDOUT: startFrame=1
0: STDOUT: endFrame=204
0: STDOUT: inFile=\fx-nas-01\vfx\RENDER\IA\SHOTS\009\0005\cmp\output\comp_v002\IA.009.0005.comp.ng.v011.%v.####.exr
0: STDOUT: outFile=\fx-nas-01\vfx\RENDER\IA\SHOTS\009\0005\cmp\output\comp_v002\Draft\IA.009.0005.comp.ng.v011.%v…mov
0: STDOUT: deadlineJobID=999_050_004_0ac0ebd6
0: STDOUT: Encoding Slate Frames…
0: STDOUT: Processing Frame: 1…-1
0: STDOUT: Traceback (most recent call last):
0: STDOUT: File “C:/Users/renderfx/AppData/Local/Thinkbox/Deadline/slave/Fx-render-02_instance_03/jobsData/simple_slate_h264_MJPEG_burnins.py”, line 174, in
0: STDOUT: inFile = ReplaceFilenameHashesWithNumber( inFilePattern, frameNumber )
0: STDOUT: File “C:\Users\renderfx\AppData\Local\Thinkbox\Deadline\slave\Fx-render-02_instance_03\Draft\DraftParamParser.py”, line 208, in ReplaceFilenameHashesWithNumber
0: STDOUT: s = (sSplit[0] + ‘%’ + str(numHashes) + ‘.’ + str(numHashes) + ‘d’ + sSplit[1]) % n
0: STDOUT: ValueError: unsupported format character ‘v’ (0x76) at index 88
0: STDOUT: Output #0, mov, to ‘\fx-nas-01\vfx\RENDER\IA\SHOTS\009\0005\cmp\output\comp_v002\Draft\IA.009.0005.comp.ng.v011.%v…mov’:
0: STDOUT: Stream #0:0: Video: mjpeg, yuvj420p, 1920x1080, q=2-31, 75000 kb/s, 90k tbn, 24 tbc
0: STDOUT: Output #0, mov, to ‘\fx-nas-01\vfx\RENDER\IA\SHOTS\009\0005\cmp\output\comp_v002\Draft\IA.009.0005.comp.ng.v011.%v.-h264.mov’:
0: STDOUT: Stream #0:0: Video: h264, yuvj420p, 1920x1080, q=4-51, 16000 kb/s, 90k tbn, 24 tbc
0: STDOUT: [libx264 @ 0000000005296620] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2
0: STDOUT: [libx264 @ 0000000005296620] profile High, level 4.1
0: STDOUT: [libx264 @ 0000000005296620] 264 - core 119 - H.264/MPEG-4 AVC codec - Copyright 2003-2011 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=0 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=18 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=2 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=3 keyint_min=1 scenecut=40 intra_refresh=0 rc_lookahead=3 rc=abr mbtree=1 bitrate=16000 ratetol=1.0 qcomp=0.60 qpmin=4 qpmax=51 qpstep=4 ip_ratio=1.40 aq=1:1.00
0: INFO: Process exit code: 1

=======================================================
Error Type

RenderPluginException

=======================================================
Error Stack Trace

à Deadline.Plugins.Plugin.RenderTask(String taskId, Int32 startFrame, Int32 endFrame)
à Deadline.Slaves.SlaveRenderThread.RenderCurrentTask(TaskLogWriter tlw)
[/code]

And here the real filename:
IA.009.0005.comp.ng.v011.l.0056.exr

Of course, the last 4 digit are the frame number. the %v i think is my version. But i dosent change trough ma sequence.

also, i got 2 output, my both eyes.

It will be nice if deadline could render those 2 eye.

This is kind of holding me off. Until it work a cannot use draft unless i dont have a version number on renders, wich is not that much of an option

Thanks again,

fred

Here’s someting new,

i have file, that contain no version in their name, it might be just le left of right eyes that does the v%.

Here the file number:
IA_012_0001_shl_testGround.l.0043
IA_012_0001_shl_testGround.r.0418

It seems that the %v is coming from the file name (l or r). That’s the part that define my eye. I just tried renaming it (the %V) with the proper eye and it does work. That’s one part done ! I can render some draft video :slight_smile: But now, it’s all manual. DO you have a way that he first, output the proper filename in the submitter, and then output a video for each eye ?

Here the log

[code]=======================================================
Error Message

Exception during render: An error occurred in RenderTasks(): Error in CheckExitCode(): Renderer returned non-zero error code, 1. Check the log for more information.
à Deadline.Plugins.ScriptPlugin.RenderTasks(String taskId, Int32 startFrame, Int32 endFrame, String& outMessage)

=======================================================
Slave Log

0: Task timeout is disabled.
0: Loaded job: IA_012_0001_shl_test.nk [DRAFT] (999_050_999_1959b94e)
0: Successfully mapped R: to \FX-NAS-01\vfx\RENDER
0: Successfully mapped K: to \FX-NAS-01\vfx\Projets
0: INFO: StartJob: initializing script plugin Draft
0: INFO: Found Draft python module at: ‘C:\Users\renderfx\AppData\Local\Thinkbox\Deadline\slave\Fx-render-05_instance_09\Draft\Draft.pyd’
0: INFO: About: Draft Plugin for Deadline
0: Plugin rendering frame(s): 0
0: INFO: Draft job starting…
0: INFO: Stdout Handling Enabled: False
0: INFO: Popup Handling Enabled: False
0: INFO: Using Process Tree: True
0: INFO: Hiding DOS Window: True
0: INFO: Creating New Console: False
0: INFO: Looking for bundled python at: ‘C:\Program Files\Thinkbox\Deadline\python\2.6.7\x64\python.exe’
0: INFO: Render Executable: “C:\Program Files\Thinkbox\Deadline\python\2.6.7\x64\python.exe”
0: INFO: Render Argument: -u “C:/Users/renderfx/AppData/Local/Thinkbox/Deadline/slave/Fx-render-05_instance_09/jobsData/simple_slate_h264_MJPEG_burnins.py” username=“janick belley” entity="" version="" width=5120 height=1325 frameList=43-534 startFrame=43 endFrame=534 inFile=“R:\IA\SHOTS\012\0001\shl\outputs\IA_012_0001_shl_testGround.%v.####.exr” outFile=“R:\IA\SHOTS\012\0001\shl\outputs\Draft\IA_012_0001_shl_testGround.%v…mov” deadlineJobID=999_050_999_08a7ad0c
0: INFO: Startup Directory: “C:\Users\renderfx\AppData\Local\Thinkbox\Deadline\slave\Fx-render-05_instance_09\Draft”
0: INFO: Process Priority: BelowNormal
0: INFO: Process is now running
0: STDOUT: Checking for license at 27001@prodflexmr
0: STDOUT: Command line args:
0: STDOUT: username=janick belley
0: STDOUT: entity=
0: STDOUT: version=
0: STDOUT: width=5120
0: STDOUT: height=1325
0: STDOUT: frameList=43-534
0: STDOUT: startFrame=43
0: STDOUT: endFrame=534
0: STDOUT: inFile=R:\IA\SHOTS\012\0001\shl\outputs\IA_012_0001_shl_testGround.%v.####.exr
0: STDOUT: outFile=R:\IA\SHOTS\012\0001\shl\outputs\Draft\IA_012_0001_shl_testGround.%v…mov
0: STDOUT: deadlineJobID=999_050_999_08a7ad0c
0: STDOUT: Encoding Slate Frames…
0: STDOUT: Processing Frame: 43…-1
0: STDOUT: Traceback (most recent call last):
0: STDOUT: File “C:/Users/renderfx/AppData/Local/Thinkbox/Deadline/slave/Fx-render-05_instance_09/jobsData/simple_slate_h264_MJPEG_burnins.py”, line 174, in
0: STDOUT: inFile = ReplaceFilenameHashesWithNumber( inFilePattern, frameNumber )
0: STDOUT: File “C:\Users\renderfx\AppData\Local\Thinkbox\Deadline\slave\Fx-render-05_instance_09\Draft\DraftParamParser.py”, line 208, in ReplaceFilenameHashesWithNumber
0: STDOUT: s = (sSplit[0] + ‘%’ + str(numHashes) + ‘.’ + str(numHashes) + ‘d’ + sSplit[1]) % n
0: STDOUT: ValueError: unsupported format character ‘v’ (0x76) at index 61
0: STDOUT: Output #0, mov, to ‘R:\IA\SHOTS\012\0001\shl\outputs\Draft\IA_012_0001_shl_testGround.%v…mov’:
0: STDOUT: Stream #0:0: Video: mjpeg, yuvj420p, 1920x1080, q=2-31, 75000 kb/s, 90k tbn, 24 tbc
0: STDOUT: Output #0, mov, to ‘R:\IA\SHOTS\012\0001\shl\outputs\Draft\IA_012_0001_shl_testGround.%v.-h264.mov’:
0: STDOUT: Stream #0:0: Video: h264, yuvj420p, 1920x1080, q=4-51, 16000 kb/s, 90k tbn, 24 tbc
0: STDOUT: [libx264 @ 000000000C5584B0] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2
0: STDOUT: [libx264 @ 000000000C5584B0] profile High, level 4.1
0: STDOUT: [libx264 @ 000000000C5584B0] 264 - core 119 - H.264/MPEG-4 AVC codec - Copyright 2003-2011 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=0 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=60 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=2 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=3 keyint_min=1 scenecut=40 intra_refresh=0 rc_lookahead=3 rc=abr mbtree=1 bitrate=16000 ratetol=1.0 qcomp=0.60 qpmin=4 qpmax=51 qpstep=4 ip_ratio=1.40 aq=1:1.00
0: INFO: Process exit code: 1

=======================================================
Error Type

RenderPluginException

=======================================================
Error Stack Trace

à Deadline.Plugins.Plugin.RenderTask(String taskId, Int32 startFrame, Int32 endFrame)
à Deadline.Slaves.SlaveRenderThread.RenderCurrentTask(TaskLogWriter tlw)[/code]

and here a screen shot of the submisson script after that i right click the original task, and did a submit to draft:

Thanks :slight_smile:

Fred

I think you will need to either:

  • submit each eye as a separate job, or
  • modify your Draft script to handle each eye.

Here’s how I would modify your Draft script to handle the eyes. I’d add a loop around everything that depends on the eye:

for eye in ['l', 'r']:

And everywhere you use the filename, replace ‘%v’ with the current eye, for example:

outBase + outExt

would become:

(outBase + outExt).replace( '%v', eye )

Here’s an example based on the simple_slate_h264_MJPEG_burnins.py that you posted in another thread.
simple_slate_eyes_h264_MJPEG_burnins.zip (2.54 KB)

Works perfect, thanks this is great :smiley:

i was wondering if the is any way also that draft can output jpeg sequence.

The MOV are great for quality control. We can now see are render right away. But to watch true full hd 3d video on the tv, we need to use Tweak rv, wich, when use with quicktime can’t use his 64 bit version. So we are stuck with our 64 gig of ram.

So what i need to do is do anoter output, with export me for each eye, a 1080p jpeg sequence.

It that possible or rv only export video.

I know that i could just import quicktime into rv, but he isn’t able to stream 2 full hd video from the 32x version. I tested it with jpeg and it does work

Sure thing! Here’s one way to do that.

  1. You’ll need to change the Output File in the Draft submission dialog to end in .jpg instead of .mov.
  2. You’ll also need to make some script changes. Currently your script saves video frames by calling EncodeNextFrame( image ). To save a JPEG image instead, you can call image.WriteToFile( filename ), where filename is a file name that ends in “.jpg”.

You can replace these lines:

MJPEGencoder = Draft.VideoEncoder( ... ) h264Encoder = Draft.VideoEncoder( ... )with something like:

outFile = outBaseEye + outExt outFileFrame = 0

And replace every call to:

MJPEGencoder.EncodeNextFrame( image ) with:

image.WriteToFile( ReplaceFilenameHashesWithNumber( outFile, outFileFrame ) ) outFileFrame += 1

And get rid of all the

h264Encoder.EncodeNextFrame lines.

Please let me know if you have any questions about this.

Thanks ! I will for sure.

But i wont delete it, i just want to add it :wink:

Thanks again !

I keep getting : STDOUT: IndentationError: expected an indented block erre. I know that at the en of a line I am suppose to put a “:” but without succes.

I dont want to get annoying or anything, but do you think you could integrate it in the script that you fix me ? All i need is to add to the existing script a render of jpeg, in a subfolder if each eye.

Thanks !

Fred

You only need a ‘:’ at the end of lines that start with things like ‘if’, ‘for’, and ‘while’. All of those statements are used to control a block (one or more lines) of code, and all of the code in that block must be indented.

The attached script should write out a JPEG sequence for each eye.
simple_slate_eyes_h264_MJPEG_jpeg_burnins.zip (2.61 KB)

Privacy | Site terms | Cookie preferences