AWS Thinkbox Discussion Forums

Attaching a Sound File to a Draft Job

Hi!

So I’m working on tailoring the default Draft plug in to our studio pipeline and one thing we’re looking at is having Draft attach the sound files for our shots. We intend to have the file structure predictable enough that it could do this automatically, so I was going to use the Draft event plugin that Deadline comes with and just make adjustments, namely adding:

scriptArgs.append( 'audioFilename=%s ' % Path.Combine( parent,audio ) )

in the list of script arguments. I’ve checked that both parent and audio are pointing to the right place and combine correctly for what I want.

However when the video comes out, there’s no audio channel attached, not even an empty one. Have I used the wrong syntax for how to append a sound file argument? Or something silly like putting it in the wrong place (currently it’s between endFrame and inFile)? For the record the video is outputting fine aside from the audio I want missing.

Also, since it’s somewhat related, I would also like to know how Draft would handle a discrepancy between the audio and video length. I would assume that it’s fine if the sound runs under the video, but if it runs over does the video lengthen with no visuals or does the sound file cut when the end is reached?

First off, we need to check that the parameter is getting to your draft script fine. I expect you have something along the lines of the following in your code?:

audioFile = params['audioFilename'] Could you add this line right after that one:

print 'DEBUG: audioFile =', audioFile (Or whatever your variable is called, of course.) Please post the full output that appears in the Job Report. (You can view the job report in the Deadline Monitor by right-clicking on the job, and selecting “View Job Reports”.)

Possibilities:

  1. You don’t see the new debug text in the output. This means that you’re not editing the same script that you’re running, and should check the Draft Script field in the submission form.

  2. You see the debug text, but there’s nothing after “audioFile =”. In this case, the audio filename isn’t making it from Deadline to your variable. In the Job Report, check the line that has “): INFO: Argument: -u” after the date & time. Does the audio filename appear there? If it doesn’t, then the problem is with the submission script, and I’ll get Jon to help you there. (You’ll want to attach your modified submission script for him to debug.) If the audio filename does appear there, I’ll be able to debug based on that line of output plus the code you use to get the filename into your draft script (paste that in your response).

  3. The debug output shows the correct audio filename. In this case, the filename is getting into your variable fine, but something is happening later in the script. Check that moving the debug print line to immediately before the line that creates the encoder also correctly prints the filename. If it still prints fine there, then are you passing that variable in to the VideoEncoder constructor with audioFilename=audioFile? (Or whatever your variable is called, of course.) In this case, include your call to the constructor in your reply here, and I’ll have a look at it and the Job report to see if I can figure out what is going on. If it’s not printing fine when the debug print line is before the call to the constructor, something happened to clobber the variable. Can you attach your draft script to your reply?

If none of the above really applies, it’s probably easiest if you attach a zipped archive of both your draft script and your modified event script.

If I recall correctly, when the audio and video length don’t match, if the audio is longer, it just stops at the end of the video, and if it’s shorter, the rest of the video is silent, but I’ve seen some odd behaviour occasionally where it will start playing again after a bit. (I recommend having your audio similar length to your video for best results.) I think the results vary some depending on the encoding chosen, and what you’re using to view the video.

Note: Paul pointed out that modifying the event/submission script will require you to maintain those changes, etc. One option is to use the Additional Args field (just enter audioFilename=/path/to/audio/file), another option, assuming you will have a default directory structure, is to use an approach similar to the one in the sample script draft/Samples/Encode/encode_to_MOV_H264_1080p_with_audio.py, which searches the parent directory for the first audio file it finds.

Cheers,
Andrea

Hi Andrea,
I did have that system in place I just posted only a snippet of the code. So here’s what I have in the script:

[code]parent = Path.GetDirectoryName( jobOutputDir )
audio = “PR_Ep127_Sc053.aiff”

scriptArgs.append( 'audioFilename=%s ’ % Path.Combine( parent,audio ) )
ClientUtils.LogText( 'Attached audio file at: %s ’ % Path.Combine( parent,audio ) )[/code]

They’re currently just using test arguments with a sound file I dropped in there but they’re working and offering me a result in the log, here’s the full report:

2015-02-04 10:26:27: BEGIN - CS-COMP-045\gchadwick 2015-02-04 10:26:27: Attached audio file at: C:\Users\ntreanor\Desktop\Example_ASP\PR_Ep127_Sc053.aiff 2015-02-04 10:26:27: Submitting Shotgun H264 Movie Creation Job to Deadline... 2015-02-04 10:26:29: Deadline Command BG 7.0 [v7.0.2.3 R (24b5c0a7f)] 2015-02-04 10:26:29: Submitting to Repository: C:\DeadlineRepository7 2015-02-04 10:26:29: Submission Contains No Auxiliary Files. 2015-02-04 10:26:29: Result=Success 2015-02-04 10:26:29: JobID=54d1f3d4edaac91f0c962014 2015-02-04 10:26:29: The job was submitted successfully. 2015-02-04 10:26:29: Attached audio file at: C:\Users\ntreanor\Desktop\Example_ASP\PR_Ep127_Sc053.aiff 2015-02-04 10:26:29: Submitting Shotgun Filmstrip Creation Job to Deadline... 2015-02-04 10:26:30: Deadline Command BG 7.0 [v7.0.2.3 R (24b5c0a7f)] 2015-02-04 10:26:30: Submitting to Repository: C:\DeadlineRepository7 2015-02-04 10:26:30: Submission Contains No Auxiliary Files. 2015-02-04 10:26:30: Result=Success 2015-02-04 10:26:30: JobID=54d1f3d6edaac906c847378c 2015-02-04 10:26:30: The job was submitted successfully.

One quick question that might be an issue but wont solve the problem. Should the paths be with forward or backslashes? I noticed you used forward ones though my script had been receiving them as backslashes. I noticed earlier that was a problem for working with Images in Draft so I’m just wondering which I should use here. (though I have already added a line that replaces them and it’s not the solution to my main problem)

For the audio storing, we’re going to discuss it soon but there’s the possiblity that all the files will want to be kept together, stored in one place. So we are going to be having a conversation about how to handle that, but I’m thinking a sound directory parameter is probably the most robust way to point to the sound folder.

I’ve asked Jon to have a look at this thread… he works on the submission script and deadline side. The job report you’ve posted here is from the Shotgun submission, not the Draft job.

Are you hard-coding the audio file name as a temporary measure? If not, it would make much more sense to add that to the Draft script, and not the submission script.

Back-slashes can have unexpected results if the next character happens to be something that the backslash would combine with to create an escape sequence. Forward slashes are generally safer. When combining parts of paths in Python, it’s useful to use the os.path library: https://docs.python.org/2/library/os.path.html However, when passing things to the script, there are additional issues that complicate things.

If you don’t want to attach the full scripts here, could you zip them and e-mail them to support@thinkboxsoftware.com? At this point, I really don’t have enough to go off of to help you with your problem. Sorry.

Thanks,
Andrea

Oh sorry, I thought this would be the job report you’d want as it contains info from when the information is submitted to Draft. I can also grab the report on the actual Draft file itself.

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

Error: Renderer returned non-zero error code, 1. Check the log for more information.
at Deadline.Plugins.ScriptPlugin.RenderTasks(String taskId, Int32 startFrame, Int32 endFrame, String& outMessage, AbortLevel& abortLevel)

=======================================================
Type

RenderPluginException

=======================================================
Stack Trace

at Deadline.Plugins.Plugin.RenderTask(String taskId, Int32 startFrame, Int32 endFrame)
at Deadline.Slaves.SlaveRenderThread.a(TaskLogWriter A_0)

=======================================================
Log

2015-02-04 18:07:07: BEGIN - CS-COMP-045\gchadwick
2015-02-04 18:07:07: 0: Start Job timeout is disabled.
2015-02-04 18:07:07: 0: Task timeout is disabled.
2015-02-04 18:07:07: 0: Loaded job: Draft test [Shotgun H264 Movie Creation] (54d25fbfedaac922e4c58ec1)
2015-02-04 18:07:07: 0: INFO: Executing plugin script C:\Users\ntreanor\AppData\Local\Thinkbox\Deadline7\slave\CS-COMP-045\plugins\54d25fbfedaac922e4c58ec1\Draft.py
2015-02-04 18:07:07: 0: INFO: Found Draft python module at: ‘C:\Users\ntreanor\AppData\Local\Thinkbox\Deadline7\slave\CS-COMP-045\Draft\Draft.pyd’
2015-02-04 18:07:07: 0: INFO: About: Draft Plugin for Deadline
2015-02-04 18:07:07: 0: INFO: The job’s environment will be merged with the current environment before rendering
2015-02-04 18:07:07: 0: Plugin rendering frame(s): 1-12
2015-02-04 18:07:07: 0: INFO: Draft job starting…
2015-02-04 18:07:07: 0: INFO: Stdout Handling Enabled: True
2015-02-04 18:07:07: 0: INFO: Popup Handling Enabled: False
2015-02-04 18:07:07: 0: INFO: Using Process Tree: True
2015-02-04 18:07:07: 0: INFO: Hiding DOS Window: True
2015-02-04 18:07:07: 0: INFO: Creating New Console: False
2015-02-04 18:07:07: 0: INFO: Running as user: gchadwick
2015-02-04 18:07:07: 0: INFO: Looking for bundled python at: ‘C:\Program Files\Thinkbox\Deadline7\bin\dpython.exe’
2015-02-04 18:07:07: 0: INFO: Executable: “C:\Program Files\Thinkbox\Deadline7\bin\dpython.exe”
2015-02-04 18:07:07: 0: INFO: Argument: -u “C:\DeadlineRepository7\events\Shotgun\Draft_CreateShotgunMovie.py” frameList=1-12 startFrame=1 endFrame=12 audioFilename=C:\Users\ntreanor\Desktop\Example ASP\PR_Ep127_Sc053.aiff inFile=“C:\Users\ntreanor\Desktop\Example ASP\output\file_#####.png” outFile=“C:\Users\ntreanor\Desktop\Example ASP\output\Draft\shotgun_h264.mov” outFolder=“C:\Users\ntreanor\Desktop\Example ASP\output\Draft” deadlineJobID=54cf68ccedaac91c1c17c0f6 deadlineRepository=“C:\DeadlineRepository7” taskStartFrame=1 taskEndFrame=12
2015-02-04 18:07:07: 0: INFO: Startup Directory: “C:\Users\ntreanor\AppData\Local\Thinkbox\Deadline7\slave\CS-COMP-045\Draft”
2015-02-04 18:07:07: 0: INFO: Process Priority: BelowNormal
2015-02-04 18:07:07: 0: INFO: Process Affinity: default
2015-02-04 18:07:07: 0: INFO: Process is now running
2015-02-04 18:07:07: 0: STDOUT: Checking for a license…
2015-02-04 18:07:07: 0: STDOUT: Draft 1.2.3.57201
2015-02-04 18:07:07: 0: STDOUT: Command line args:
2015-02-04 18:07:07: 0: STDOUT: frameList=1-12
2015-02-04 18:07:07: 0: STDOUT: startFrame=1
2015-02-04 18:07:07: 0: STDOUT: endFrame=12
2015-02-04 18:07:07: 0: STDOUT: audioFilename=C:\Users\ntreanor\Desktop\Example
2015-02-04 18:07:07: 0: STDOUT: ASP\PR_Ep127_Sc053.aiff
2015-02-04 18:07:07: 0: STDOUT: Traceback (most recent call last):
2015-02-04 18:07:07: 0: STDOUT: File “C:\DeadlineRepository7\events\Shotgun\Draft_CreateShotgunMovie.py”, line 11, in
2015-02-04 18:07:07: 0: STDOUT: params = DraftParamParser.ParseCommandLine( expectedTypes, sys.argv )
2015-02-04 18:07:07: 0: STDOUT: File “C:\Users\ntreanor\AppData\Local\Thinkbox\Deadline7\slave\CS-COMP-045\Draft\DraftParamParser.py”, line 190, in ParseCommandLine
2015-02-04 18:07:07: 0: STDOUT: params = ParseCommandLine_TypeAgnostic( argv )
2015-02-04 18:07:07: 0: STDOUT: File “C:\Users\ntreanor\AppData\Local\Thinkbox\Deadline7\slave\CS-COMP-045\Draft\DraftParamParser.py”, line 171, in ParseCommandLine_TypeAgnostic
2015-02-04 18:07:07: 0: STDOUT: raise StandardError("Bad argument: " + argv[i] + “. Should be in the form ‘arg=value’.”)
2015-02-04 18:07:07: 0: STDOUT: StandardError: Bad argument: ASP\PR_Ep127_Sc053.aiff. Should be in the form ‘arg=value’.
2015-02-04 18:07:08: 0: INFO: Process exit code: 1

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

Date: 02/04/2015 18:07:10
Frames: 1-12
Elapsed Time: 00:00:00:04
Job Submit Date: 02/04/2015 18:06:55
Job User: gchadwick
Average RAM Usage: 2917596672 (35%)
Peak RAM Usage: 2933313536 (35%)
Average CPU Usage: 12%
Peak CPU Usage: 31%
Used CPU Clocks: 61364
Total CPU Clocks: 511360

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

Slave Name: CS-COMP-045
Version: v7.0.2.3 R (24b5c0a7f)
Operating System: Windows 7 Professional (SP1)
Machine User: gchadwick
IP Address: 192.168.3.199
MAC Address: 90:B1:1C:75:CB:DD
CPU Architecture: x64
CPUs: 8
CPU Usage: 0%
Memory Usage: 2.7 GB / 8.0 GB (34%)
Free Disk Space: 211.077 GB (131.592 GB on C:, 79.484 GB on E:)
Video Card: NVIDIA Quadro FX 580
[/code]

Now looking through that it does seem like it’s splitting the file between two lines and disrupting the format, but I can’t tell why it would be doing that.

And yes the hard coding is a purely temporary measure, once this much is working the intention is to search for files based on the output name.

I’ll attach the zip file of my event plugin folder and send it on to that email. Thanks Andrea!
-Gary

EDIT: I should note that I did think spaces in the file path might have been a problem so I changed what used to be “Example ASP” to “Example_ASP”, and it didn’t seem to help.

That would be the “unintended consequence” I was mentioning. Notice how your filename has “\n”? That’s the “escape sequence” for representing a newline.

I just got your e-mail, I’ll have look more at the output and your files, and get back to you. Thanks!

Yes, I see exactly what you mean.
Though even with all the slashes replaced it seems to be causing issues so I must have some other problem hiding in there too.

So, the way you’re doing things is highly unusual… the usual way of doing things is to have a separate scripts for submitting to Deadline and doing the actual job. So, a plain draft submission would have a script that submits the draft job to Deadline, and a script that processes the actual frames. What sort of workflow are you trying to achieve? (eg Program X to generate frames, program Y to do ____, draft to crop… etc)

Hey Gary,

From what I can tell, you just need to quote your Audio path, since it has a space in it (which is what causes the args to split in that weird way). Just replace your line with this one (note the "s I added)

scriptArgs.append( 'audioFilename="%s" ' % Path.Combine( parent,audio ) )

Cheers,
Jon

Hi,

I attached quotes around the path, and double checked in the job report that it was being passed correctly. In the Draft Job report it’s running without errors and the whole line reads properly with the audioFile being submitted, here’s that line specifically:

STDOUT: audioFilename=C:\Users\ntreanor\Desktop\Example ASP\PR_Ep127_Sc053.aiff

Yet it’s still not actually in the video. I double checked in multiple players and imported to After Effects to see if there was an empty audio channel, but there’s nothing. I also used different files of different filetypes and got the same result, no errors but no audio encoding.
Is audioFilename the exact correct spelling? That’s the only thing I can see that might be off with what I’m doing.

I’ll put the full draft job report in here anyway,

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

2015-02-05 09:51:35: BEGIN - CS-COMP-045\gchadwick
2015-02-05 09:51:35: 0: Start Job timeout is disabled.
2015-02-05 09:51:35: 0: Task timeout is disabled.
2015-02-05 09:51:35: 0: Loaded job: Draft test [Shotgun H264 Movie Creation] (54d33d1fedaac91cf40d180e)
2015-02-05 09:51:35: 0: INFO: Executing plugin script C:\Users\ntreanor\AppData\Local\Thinkbox\Deadline7\slave\CS-COMP-045\plugins\54d33d1fedaac91cf40d180e\Draft.py
2015-02-05 09:51:35: 0: INFO: Found Draft python module at: ‘C:\Users\ntreanor\AppData\Local\Thinkbox\Deadline7\slave\CS-COMP-045\Draft\Draft.pyd’
2015-02-05 09:51:35: 0: INFO: About: Draft Plugin for Deadline
2015-02-05 09:51:35: 0: INFO: The job’s environment will be merged with the current environment before rendering
2015-02-05 09:51:35: 0: Plugin rendering frame(s): 1-102
2015-02-05 09:51:35: 0: INFO: Draft job starting…
2015-02-05 09:51:35: 0: INFO: Stdout Handling Enabled: True
2015-02-05 09:51:35: 0: INFO: Popup Handling Enabled: False
2015-02-05 09:51:35: 0: INFO: Using Process Tree: True
2015-02-05 09:51:35: 0: INFO: Hiding DOS Window: True
2015-02-05 09:51:35: 0: INFO: Creating New Console: False
2015-02-05 09:51:35: 0: INFO: Running as user: gchadwick
2015-02-05 09:51:35: 0: INFO: Looking for bundled python at: ‘C:\Program Files\Thinkbox\Deadline7\bin\dpython.exe’
2015-02-05 09:51:35: 0: INFO: Executable: “C:\Program Files\Thinkbox\Deadline7\bin\dpython.exe”
2015-02-05 09:51:35: 0: INFO: Argument: -u “C:\DeadlineRepository7\events\Shotgun\Draft_CreateShotgunMovie.py” frameList=1-102 startFrame=1 endFrame=102 audioFilename=“C:\Users\ntreanor\Desktop\Example ASP\PR_101_006_Mama_Pickup.wav” inFile=“C:\Users\ntreanor\Desktop\Example ASP\output\file_#####.png” outFile=“C:\Users\ntreanor\Desktop\Example ASP\output\Draft\shotgun_h264.mov” outFolder=“C:\Users\ntreanor\Desktop\Example ASP\output\Draft” deadlineJobID=54cf68ccedaac91c1c17c0f6 deadlineRepository=“C:\DeadlineRepository7” taskStartFrame=1 taskEndFrame=102
2015-02-05 09:51:35: 0: INFO: Startup Directory: “C:\Users\ntreanor\AppData\Local\Thinkbox\Deadline7\slave\CS-COMP-045\Draft”
2015-02-05 09:51:35: 0: INFO: Process Priority: BelowNormal
2015-02-05 09:51:35: 0: INFO: Process Affinity: default
2015-02-05 09:51:35: 0: INFO: Process is now running
2015-02-05 09:51:35: 0: STDOUT: Checking for a license…
2015-02-05 09:51:35: 0: STDOUT: Draft 1.2.3.57201
2015-02-05 09:51:35: 0: STDOUT: Command line args:
2015-02-05 09:51:35: 0: STDOUT: frameList=1-102
2015-02-05 09:51:35: 0: STDOUT: startFrame=1
2015-02-05 09:51:35: 0: STDOUT: endFrame=102
2015-02-05 09:51:35: 0: STDOUT: audioFilename=C:\Users\ntreanor\Desktop\Example ASP\PR_101_006_Mama_Pickup.wav
2015-02-05 09:51:35: 0: STDOUT: inFile=C:\Users\ntreanor\Desktop\Example ASP\output\file_#####.png
2015-02-05 09:51:35: 0: STDOUT: outFile=C:\Users\ntreanor\Desktop\Example ASP\output\Draft\shotgun_h264.mov
2015-02-05 09:51:35: 0: STDOUT: outFolder=C:\Users\ntreanor\Desktop\Example ASP\output\Draft
2015-02-05 09:51:35: 0: STDOUT: deadlineJobID=54cf68ccedaac91c1c17c0f6
2015-02-05 09:51:35: 0: STDOUT: deadlineRepository=C:\DeadlineRepository7
2015-02-05 09:51:35: 0: STDOUT: taskStartFrame=1
2015-02-05 09:51:35: 0: STDOUT: taskEndFrame=102
2015-02-05 09:51:35: 0: STDOUT: Creating H264 video enconder (1280x720 @ 24fps)
2015-02-05 09:51:35: 0: STDOUT: Encoding Progress: 0%
2015-02-05 09:51:35: 0: STDOUT: Encoding Progress: 1%
2015-02-05 09:51:35: 0: STDOUT: Encoding Progress: 2%
2015-02-05 09:51:35: 0: STDOUT: Encoding Progress: 3%
2015-02-05 09:51:35: 0: STDOUT: Encoding Progress: 4%
2015-02-05 09:51:35: 0: STDOUT: Encoding Progress: 5%
2015-02-05 09:51:36: 0: STDOUT: Encoding Progress: 6%
2015-02-05 09:51:36: 0: STDOUT: Encoding Progress: 7%
2015-02-05 09:51:36: 0: STDOUT: Encoding Progress: 8%
2015-02-05 09:51:36: 0: STDOUT: Encoding Progress: 9%
2015-02-05 09:51:36: 0: STDOUT: Encoding Progress: 10%
2015-02-05 09:51:36: 0: STDOUT: Encoding Progress: 11%
2015-02-05 09:51:36: 0: STDOUT: Encoding Progress: 12%
2015-02-05 09:51:36: 0: STDOUT: Encoding Progress: 13%
2015-02-05 09:51:37: 0: STDOUT: Encoding Progress: 14%
2015-02-05 09:51:37: 0: STDOUT: Encoding Progress: 15%
2015-02-05 09:51:37: 0: STDOUT: Encoding Progress: 16%
2015-02-05 09:51:37: 0: STDOUT: Encoding Progress: 17%
2015-02-05 09:51:37: 0: STDOUT: Encoding Progress: 18%
2015-02-05 09:51:37: 0: STDOUT: Encoding Progress: 19%
2015-02-05 09:51:37: 0: STDOUT: Encoding Progress: 20%
2015-02-05 09:51:37: 0: STDOUT: Encoding Progress: 21%
2015-02-05 09:51:38: 0: STDOUT: Encoding Progress: 22%
2015-02-05 09:51:38: 0: STDOUT: Encoding Progress: 23%
2015-02-05 09:51:38: 0: STDOUT: Encoding Progress: 24%
2015-02-05 09:51:38: 0: STDOUT: Encoding Progress: 25%
2015-02-05 09:51:38: 0: STDOUT: Encoding Progress: 26%
2015-02-05 09:51:38: 0: STDOUT: Encoding Progress: 27%
2015-02-05 09:51:38: 0: STDOUT: Encoding Progress: 28%
2015-02-05 09:51:38: 0: STDOUT: Encoding Progress: 29%
2015-02-05 09:51:38: 0: STDOUT: Encoding Progress: 30%
2015-02-05 09:51:39: 0: STDOUT: Encoding Progress: 31%
2015-02-05 09:51:39: 0: STDOUT: Encoding Progress: 32%
2015-02-05 09:51:39: 0: STDOUT: Encoding Progress: 33%
2015-02-05 09:51:39: 0: STDOUT: Encoding Progress: 34%
2015-02-05 09:51:39: 0: STDOUT: Encoding Progress: 35%
2015-02-05 09:51:39: 0: STDOUT: Encoding Progress: 36%
2015-02-05 09:51:39: 0: STDOUT: Encoding Progress: 37%
2015-02-05 09:51:39: 0: STDOUT: Encoding Progress: 38%
2015-02-05 09:51:40: 0: STDOUT: Encoding Progress: 39%
2015-02-05 09:51:40: 0: STDOUT: Encoding Progress: 40%
2015-02-05 09:51:40: 0: STDOUT: Encoding Progress: 41%
2015-02-05 09:51:40: 0: STDOUT: Encoding Progress: 42%
2015-02-05 09:51:40: 0: STDOUT: Encoding Progress: 43%
2015-02-05 09:51:40: 0: STDOUT: Encoding Progress: 44%
2015-02-05 09:51:40: 0: STDOUT: Encoding Progress: 45%
2015-02-05 09:51:40: 0: STDOUT: Encoding Progress: 46%
2015-02-05 09:51:41: 0: STDOUT: Encoding Progress: 47%
2015-02-05 09:51:41: 0: STDOUT: Encoding Progress: 48%
2015-02-05 09:51:41: 0: STDOUT: Encoding Progress: 49%
2015-02-05 09:51:41: 0: STDOUT: Encoding Progress: 50%
2015-02-05 09:51:41: 0: STDOUT: Encoding Progress: 51%
2015-02-05 09:51:41: 0: STDOUT: Encoding Progress: 52%
2015-02-05 09:51:41: 0: STDOUT: Encoding Progress: 53%
2015-02-05 09:51:41: 0: STDOUT: Encoding Progress: 54%
2015-02-05 09:51:42: 0: STDOUT: Encoding Progress: 55%
2015-02-05 09:51:42: 0: STDOUT: Encoding Progress: 56%
2015-02-05 09:51:42: 0: STDOUT: Encoding Progress: 57%
2015-02-05 09:51:42: 0: STDOUT: Encoding Progress: 58%
2015-02-05 09:51:42: 0: STDOUT: Encoding Progress: 59%
2015-02-05 09:51:42: 0: STDOUT: Encoding Progress: 60%
2015-02-05 09:51:42: 0: STDOUT: Encoding Progress: 61%
2015-02-05 09:51:42: 0: STDOUT: Encoding Progress: 62%
2015-02-05 09:51:43: 0: STDOUT: Encoding Progress: 63%
2015-02-05 09:51:43: 0: STDOUT: Encoding Progress: 64%
2015-02-05 09:51:43: 0: STDOUT: Encoding Progress: 65%
2015-02-05 09:51:43: 0: STDOUT: Encoding Progress: 66%
2015-02-05 09:51:43: 0: STDOUT: Encoding Progress: 67%
2015-02-05 09:51:43: 0: STDOUT: Encoding Progress: 68%
2015-02-05 09:51:43: 0: STDOUT: Encoding Progress: 69%
2015-02-05 09:51:43: 0: STDOUT: Encoding Progress: 70%
2015-02-05 09:51:44: 0: STDOUT: Encoding Progress: 71%
2015-02-05 09:51:44: 0: STDOUT: Encoding Progress: 72%
2015-02-05 09:51:44: 0: STDOUT: Encoding Progress: 73%
2015-02-05 09:51:44: 0: STDOUT: Encoding Progress: 74%
2015-02-05 09:51:44: 0: STDOUT: Encoding Progress: 75%
2015-02-05 09:51:44: 0: STDOUT: Encoding Progress: 76%
2015-02-05 09:51:44: 0: STDOUT: Encoding Progress: 77%
2015-02-05 09:51:44: 0: STDOUT: Encoding Progress: 78%
2015-02-05 09:51:44: 0: STDOUT: Encoding Progress: 79%
2015-02-05 09:51:45: 0: STDOUT: Encoding Progress: 80%
2015-02-05 09:51:45: 0: STDOUT: Encoding Progress: 81%
2015-02-05 09:51:45: 0: STDOUT: Encoding Progress: 82%
2015-02-05 09:51:45: 0: STDOUT: Encoding Progress: 83%
2015-02-05 09:51:45: 0: STDOUT: Encoding Progress: 84%
2015-02-05 09:51:45: 0: STDOUT: Encoding Progress: 85%
2015-02-05 09:51:45: 0: STDOUT: Encoding Progress: 86%
2015-02-05 09:51:45: 0: STDOUT: Encoding Progress: 87%
2015-02-05 09:51:46: 0: STDOUT: Encoding Progress: 88%
2015-02-05 09:51:46: 0: STDOUT: Encoding Progress: 89%
2015-02-05 09:51:46: 0: STDOUT: Encoding Progress: 90%
2015-02-05 09:51:46: 0: STDOUT: Encoding Progress: 91%
2015-02-05 09:51:46: 0: STDOUT: Encoding Progress: 92%
2015-02-05 09:51:46: 0: STDOUT: Encoding Progress: 93%
2015-02-05 09:51:46: 0: STDOUT: Encoding Progress: 94%
2015-02-05 09:51:46: 0: STDOUT: Encoding Progress: 95%
2015-02-05 09:51:47: 0: STDOUT: Encoding Progress: 96%
2015-02-05 09:51:47: 0: STDOUT: Encoding Progress: 97%
2015-02-05 09:51:47: 0: STDOUT: Encoding Progress: 98%
2015-02-05 09:51:47: 0: STDOUT: Encoding Progress: 99%
2015-02-05 09:51:47: 0: STDOUT: Encoding Progress: 100%
2015-02-05 09:51:47: 0: STDOUT: Finalizing encoding…
2015-02-05 09:51:47: 0: STDOUT: Done!
2015-02-05 09:51:47: 0: STDOUT: [libx264 @ 000000000038cc20] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
2015-02-05 09:51:47: 0: STDOUT: [libx264 @ 000000000038cc20] profile Constrained Baseline, level 3.1
2015-02-05 09:51:47: 0: STDOUT: [libx264 @ 000000000038cc20] 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=12 lookahead_threads=2 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-02-05 09:51:47: 0: STDOUT: Output #0, mov, to ‘C:\Users\ntreanor\Desktop\Example ASP\output\Draft\shotgun_h264.mov’:
2015-02-05 09:51:47: 0: STDOUT: Metadata:
2015-02-05 09:51:47: 0: STDOUT: encoder : Lavf55.48.100
2015-02-05 09:51:47: 0: STDOUT: Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuvj420p(pc, bt709), 1280x720, q=4-51, 12288 tbn, 24 tbc
2015-02-05 09:51:47: 0: STDOUT: [libx264 @ 000000000038cc20] frame I:34 Avg QP: 5.46 size: 16660
2015-02-05 09:51:47: 0: STDOUT: [libx264 @ 000000000038cc20] frame P:68 Avg QP:12.33 size: 1354
2015-02-05 09:51:47: 0: STDOUT: [libx264 @ 000000000038cc20] mb I I16…4: 92.2% 0.0% 7.8%
2015-02-05 09:51:47: 0: STDOUT: [libx264 @ 000000000038cc20] mb P I16…4: 0.3% 0.0% 0.1% P16…4: 3.1% 1.4% 0.6% 0.0% 0.0% skip:94.5%
2015-02-05 09:51:47: 0: STDOUT: [libx264 @ 000000000038cc20] coded y,uvDC,uvAC intra: 6.7% 8.5% 7.7% inter: 0.8% 0.5% 0.3%
2015-02-05 09:51:47: 0: STDOUT: [libx264 @ 000000000038cc20] i16 v,h,dc,p: 90% 1% 9% 0%
2015-02-05 09:51:47: 0: STDOUT: [libx264 @ 000000000038cc20] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 31% 20% 20% 8% 3% 4% 4% 5% 6%
2015-02-05 09:51:47: 0: STDOUT: [libx264 @ 000000000038cc20] i8c dc,h,v,p: 94% 3% 2% 1%
2015-02-05 09:51:47: 0: STDOUT: [libx264 @ 000000000038cc20] ref P L0: 89.5% 10.5%
2015-02-05 09:51:47: 0: STDOUT: [libx264 @ 000000000038cc20] kb/s:1239.55
2015-02-05 09:51:48: 0: INFO: Process exit code: 0
2015-02-05 09:51:48: 0: INFO: Draft job complete!

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

Date: 02/05/2015 09:51:48
Frames: 1-102
Job Submit Date: 02/05/2015 09:51:27
Job User: gchadwick
Average RAM Usage: 115331888 (2%)
Peak RAM Usage: 200867840 (3%)
Average CPU Usage: 22%
Peak CPU Usage: 26%
Used CPU Clocks: 20556
Total CPU Clocks: 93433

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

Slave Name: CS-COMP-045
Version: v7.0.2.3 R (24b5c0a7f)
Operating System: Windows 7 Professional (SP1)
Machine User: gchadwick
IP Address: 192.168.3.199
MAC Address: 90:B1:1C:75:CB:DD
CPU Architecture: x64
CPUs: 8
CPU Usage: 27%
Memory Usage: 3.4 GB / 8.0 GB (42%)
Free Disk Space: 210.880 GB (131.396 GB on C:, 79.484 GB on E:)
Video Card: NVIDIA Quadro FX 580
[/code]

In the file C:\DeadlineRepository7\events\Shotgun\Draft_CreateShotgunMovie.py, what line of code are you using to create the Draft.VideoEncoder? (Could you send this script to me?) In the midst of the libx264 output, I’m not seeing any reference to an audio file, so I’m thinking it’s not actually getting passed to the Draft.VideoEncoder constructor.

Note: my output for the line:

enc = Draft.VideoEncoder("testvid.mov", 24, 800, 600, codec="h264", audioFilename='4885.mp3')

produces the following output:

[libx264 @ 00000000040ae4e0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX [libx264 @ 00000000040ae4e0] profile Constrained Baseline, level 3.1 [libx264 @ 00000000040ae4e0] 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=6 lookahead_threads=1 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 [mp3 @ 0000000004557c40] Estimating duration from bitrate, this may be inaccurate audio track count: 1 [mp3 @ 00000000045d94e0] Estimating duration from bitrate, this may be inaccurate Input #0, mp3, from '4885.mp3': Metadata: title : Foreign Correspondent artist : Academy Award Theater album : 07/24/46, episode 18 date : 1946 Duration: 00:29:14.09, start: 0.000000, bitrate: 32 kb/s Stream #0:0: Audio: mp3, 22050 Hz, stereo, s16p, 32 kb/s Output #0, mov, to 'testvid.mov': Metadata: encoder : Lavf55.48.100 Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuvj420p(pc, bt709), 800x600, q=4-51, 12288 tbn, 24 tbc Stream #0:1: Audio: mp3 (.mp3 / 0x33706D2E), 22050 Hz, stereo, s16p, 32 kb/s

(There are some other things that are odd with your output that would be helpful if I could see your script…)

Thanks,
Andrea

Aha, you were completely right. I had trouble locating that Shotgun submission script before but now that I found it, it turns out it doesn’t automatically check for audio files. So it was just ignoring the parameter even though it was passed the file path.
Now that I found that and added the audio file part I’ve got it working finally.

Thanks Andrea and Jon!
Gary

Great to hear it!

Privacy | Site terms | Cookie preferences