Ffmpeg not rendering in deadline

Hello, All.

Sorry for my english.

I am copy ffmpeg in drive C:\ffmepg-0.5
and send to deadline command script job like us

C:\ffmpeg-0.5\ffmpeg.exe -i c:\1.vob -croptop 6 -cropbottom 14 -cropleft 8 -cropright 4 -acodec libfaac -ar 48000 -ab 96k -coder ac -me_range 16 -subq 5 -sc_threshold 40 -vcodec libx264 -s 840x460 -b 1000k -cmp +chroma -partitions +parti4x4+partp8x8+partb8x8 -i_qfactor 0.71 -keyint_min 25 -b_strategy 1 -g 250 -r 25 -y c:\1_1mb.mp4 C:\ffmpeg-0.5\ffmpeg.exe -i c:\2.vob -croptop 60 -cropbottom 58 -cropleft 30 -cropright 230 -acodec libfaac -ar 48000 -ab 96k -coder ac -me_range 16 -subq 5 -sc_threshold 40 -vcodec libx264 -s 736x430 -b 1000k -cmp +chroma -partitions +parti4x4+partp8x8+partb8x8 -i_qfactor 0.71 -keyint_min 25 -b_strategy 1 -g 250 -r 25 -y c:\2_1mb.mp4 C:\ffmpeg-0.5\ffmpeg.exe -i c:\3.vob -croptop 22 -cropbottom 6 -cropleft 22 -cropright 30 -acodec libfaac -ar 48000 -ab 96k -coder ac -me_range 16 -subq 5 -sc_threshold 40 -vcodec libx264 -s 588x452 -b 1000k -cmp +chroma -partitions +parti4x4+partp8x8+partb8x8 -i_qfactor 0.71 -keyint_min 25 -b_strategy 1 -g 250 -r 25 -y c:\3_1mb.mp4

But slave write error

[code]Slave Log
8 -i_qfactor 0.71 -keyint_min 25 -b_strategy 1 -g 250 -r 25 -y c:\1_1mb.mp4
0: INFO: Startup Directory: “\rserv\r\rsq\oleg”
0: INFO: Process Priority: BelowNormal
0: INFO: Process is now running
0: STDOUT: FFmpeg version 0.5, Copyright © 2000-2009 Fabrice Bellard, et al.
0: STDOUT: configuration: --enable-gpl --enable-postproc --enable-swscale --enable-avfilter --enable-avfilter-lavf --enable-pthreads --enable-avisynth --enable-libfaac --enable-libfaad --enable-libmp3lame --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libxvid --enable-libx264 --enable-memalign-hack
0: STDOUT: libavutil 49.15. 0 / 49.15. 0
0: STDOUT: libavcodec 52.20. 0 / 52.20. 0
0: STDOUT: libavformat 52.31. 0 / 52.31. 0
0: STDOUT: libavdevice 52. 1. 0 / 52. 1. 0
0: STDOUT: libavfilter 0. 4. 0 / 0. 4. 0
0: STDOUT: libswscale 0. 7. 1 / 0. 7. 1
0: STDOUT: libpostproc 51. 2. 0 / 51. 2. 0
0: STDOUT: built on Mar 16 2009 16:09:18, gcc: 4.2.4 [Sherpya]
0: STDOUT:
0: STDOUT: Seems stream 0 codec frame rate differs from container frame rate: 50.00 (50/1) -> 25.00 (25/1)
0: STDOUT: Input #0, mpeg, from ‘c:\1.vob’:
0: STDOUT: Duration: 03:13:43.77, start: 0.280000, bitrate: 5053 kb/s
0: STDOUT: Stream #0.0[0x1e0]: Video: mpeg2video, yuv420p, 720x576 [PAR 16:15 DAR 4:3], 9800 kb/s, 25 tbr, 90k tbn, 50 tbc
0: STDOUT: Stream #0.1[0x80]: Audio: ac3, 48000 Hz, 5.1, s16, 448 kb/s
0: STDOUT: Unable to find a suitable output format for 'c:\1_1mb.mp4
0: STDOUT: ’
0: INFO: Process exit code: 1
Scheduler Thread - Render Thread 0 threw an error:
Scheduler Thread - Exception during render: An error occurred in RenderTasks(): Error in CheckExitCode(): Renderer returned non-zero error code, 1 (FranticX.Processes.ManagedProcessAbort) (Deadline.Plugins.RenderPluginException)

at Deadline.Plugins.ScriptPlugin.RenderTasks(Int32 startFrame, Int32 endFrame, String& outMessage)
[/code]

If I remote login in slave and send command from console cmd she normally executable:

C:\ffmpeg-0.5\ffmpeg.exe -i c:\1.vob -croptop 6 -cropbottom 14 -cropleft 8 -cropright 4  -acodec libfaac -ar 48000 -ab 96k -coder ac  -me_range 16 -subq 5 -sc_threshold 40 -vcodec libx264  -s 840x460 -b 1000k -cmp +chroma -partitions +parti4x4+partp8x8+partb8x8 -i_qfactor 0.71 -keyint_min 25 -b_strategy 1 -g 250 -r 25  -y c:\1_1mb.mp4

What is the output you get when you run from the console? When rendering through Deadline, ffmpeg is printing out this:

Then it returns a non-zero exit code which indicates that something went wrong, which is why Deadline fails the render. I’m just curious if you get the same message above when rendering from the console.

Cheers,

  • Ryan
0: STDOUT: Unable to find a suitable output format for 'c:\1_1mb.mp4

This error return deadline slave. When I run ffmpeg from console, his work and return zero code after executing.

Actually, I was looking for the full output you get when you run the command from the console. I just want to compare it to what is printed out by the Deadline Slave.

Thanks!

Logs from cmd console:

[code]C:>C:\ffmpeg-0.5\ffmpeg.exe -i c:\2.vob -croptop 6 -cropbottom
14 -cropleft 8 -cropright 4 -acodec libfaac -ar 48000 -ab 96k -coder ac -me_ra
nge 16 -subq 5 -sc_threshold 40 -vcodec libx264 -s 840x460 -b 1000k -cmp +chrom
a -partitions +parti4x4+partp8x8+partb8x8 -i_qfactor 0.71 -keyint_min 25 -b_stra
tegy 1 -g 250 -r 25 -y c:\2_1mb.mp4
FFmpeg version 0.5, Copyright © 2000-2009 Fabrice Bellard, et al.
configuration: --enable-gpl --enable-postproc --enable-swscale --enable-avfilt
er --enable-avfilter-lavf --enable-pthreads --enable-avisynth --enable-libfaac -
-enable-libfaad --enable-libmp3lame --enable-libspeex --enable-libtheora --enabl
e-libvorbis --enable-libxvid --enable-libx264 --enable-memalign-hack
libavutil 49.15. 0 / 49.15. 0
libavcodec 52.20. 0 / 52.20. 0
libavformat 52.31. 0 / 52.31. 0
libavdevice 52. 1. 0 / 52. 1. 0
libavfilter 0. 4. 0 / 0. 4. 0
libswscale 0. 7. 1 / 0. 7. 1
libpostproc 51. 2. 0 / 51. 2. 0
built on Mar 16 2009 16:09:18, gcc: 4.2.4 [Sherpya]

Seems stream 0 codec frame rate differs from container frame rate: 50.00 (50/1)
-> 25.00 (25/1)
Input #0, mpeg, from ‘c:\2.vob’:
Duration: 01:26:21.12, start: 0.280000, bitrate: 5229 kb/s
Stream #0.0[0x1e0]: Video: mpeg2video, yuv420p, 720x576 [PAR 64:45 DAR 16:9]
, 9000 kb/s, 25 tbr, 90k tbn, 50 tbc
Stream #0.1[0x80]: Audio: ac3, 48000 Hz, stereo, s16, 192 kb/s
Output #0, mp4, to ‘c:\2_1mb.mp4’:
Stream #0.0: Video: libx264, yuv420p, 840x460 [PAR 184:189 DAR 16:9], q=2-31
, 1000 kb/s, 90k tbn, 25 tbc
Stream #0.1: Audio: libfaac, 48000 Hz, stereo, s16, 96 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Stream #0.1 -> #0.1
[libx264 @ 0x2f45b00]width or height not divisible by 16 (840x460), compression
will suffer.
[libx264 @ 0x2f45b00]using SAR=184/189
[libx264 @ 0x2f45b00]using cpu capabilities: MMX2 SSE2Fast SSSE3 PHADD SSE4.1 Ca
che64
[libx264 @ 0x2f45b00]profile Main, level 3.0
Press [q] to stop encoding
frame= 153 fps= 27 q=24.0 size= 761kB time=5.89 bitrate=1058.3kbits/s
frame= 2523 fps= 33 q=23.0 size= 13408kB time=100.80 bitrate=1089.7kbits/s
frame= 2542 fps= 33 q=23.0 size= 13514kB time=101.57 bitrate=1090.0kbits/s
frame= 2563 fps= 34 q=21.0 size= 13615kB time=102.29 bitrate=1090.3kbits/s
frame= 2584 fps= 34 q=20.0 size= 13728kB time=103.23 bitrate=1089.4kbits/s
frame= 2611 fps= 34 q=11.0 size= 13811kB time=104.15 bitrate=1086.3kbits/s
frame= 2631 fps= 34 q=23.0 size= 13947kB time=105.17 bitrate=1086.3kbits/s
frame= 2649 fps= 34 q=22.0 size= 14067kB time=105.81 bitrate=1089.1kbits/s
frame= 2668 fps= 34 q=22.0 size= 14181kB time=106.52 bitrate=1090.6kbits/s
frame= 2685 fps= 34 q=25.0 size= 14287kB time=107.20 bitrate=1091.8kbits/s
frame= 2701 fps= 34 q=24.0 size= 14429kB time=107.86 bitrate=1095.9kbits/s
frame= 2719 fps= 34 q=22.0 size= 14561kB time=108.69 bitrate=1097.4kbits/s
frame= 2737 fps= 34 q=23.0 size= 14659kB time=109.38 bitrate=1097.9kbits/s
frame= 2756 fps= 34 q=24.0 size= 14778kB time=110.10 bitrate=1099.6kbits/s
frame= 2775 fps= 34 q=23.0 size= 14877kB time=110.72 bitrate=1100.7kbits/s
frame= 2793 fps= 34 q=25.0 size= 15020kB time=111.64 bitrate=1102.2kbits/s
frame= 2809 fps= 34 q=25.0 size= 15140kB time=112.32 bitrate=1104.2kbits/s
frame= 2827 fps= 34 q=24.0 size= 15250kB time=112.98 bitrate=1105.8kbits/s
frame= 2843 fps= 34 q=25.0 size= 15369kB time=113.66 bitrate=1107.7kbits/s
frame= 2862 fps= 34 q=23.0 size= 15473kB time=114.33 bitrate=1108.7kbits/s
frame= 2882 fps= 34 q=22.0 size= 15601kB time=115.20 bitrate=1109.4kbits/s
frame= 2905 fps= 34 q=19.0 size= 15693kB time=115.99 bitrate=1108.3kbits/s
frame= 2929 fps= 34 q=21.0 size= 15810kB time=117.08 bitrate=1106.2kbits/s
frame= 2951 fps= 34 q=20.0 size= 15893kB time=117.76 bitrate=1105.6kbits/s

[/code]

etc. while not complete rendering

Logs from deadline slave:

[code]Error Message
Exception during render: An error occurred in RenderTasks(): Error in CheckExitCode(): Renderer returned non-zero error code, 1 (FranticX.Processes.ManagedProcessAbort) (Deadline.Plugins.RenderPluginException)
at Deadline.Plugins.ScriptPlugin.RenderTasks(Int32 startFrame, Int32 endFrame, String& outMessage)

Slave Log
8 -i_qfactor 0.71 -keyint_min 25 -b_strategy 1 -g 250 -r 25 -y c:\2_1mb.mp4
0: INFO: Startup Directory: “c:”
0: INFO: Process Priority: BelowNormal
0: INFO: Process is now running
0: STDOUT: FFmpeg version 0.5, Copyright © 2000-2009 Fabrice Bellard, et al.
0: STDOUT: configuration: --enable-gpl --enable-postproc --enable-swscale --enable-avfilter --enable-avfilter-lavf --enable-pthreads --enable-avisynth --enable-libfaac --enable-libfaad --enable-libmp3lame --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libxvid --enable-libx264 --enable-memalign-hack
0: STDOUT: libavutil 49.15. 0 / 49.15. 0
0: STDOUT: libavcodec 52.20. 0 / 52.20. 0
0: STDOUT: libavformat 52.31. 0 / 52.31. 0
0: STDOUT: libavdevice 52. 1. 0 / 52. 1. 0
0: STDOUT: libavfilter 0. 4. 0 / 0. 4. 0
0: STDOUT: libswscale 0. 7. 1 / 0. 7. 1
0: STDOUT: libpostproc 51. 2. 0 / 51. 2. 0
0: STDOUT: built on Mar 16 2009 16:09:18, gcc: 4.2.4 [Sherpya]
0: STDOUT:
0: STDOUT: Seems stream 0 codec frame rate differs from container frame rate: 50.00 (50/1) -> 25.00 (25/1)
0: STDOUT: Input #0, mpeg, from ‘c:\2.vob’:
0: STDOUT: Duration: 03:13:43.77, start: 0.280000, bitrate: 5053 kb/s
0: STDOUT: Stream #0.0[0x1e0]: Video: mpeg2video, yuv420p, 720x576 [PAR 16:15 DAR 4:3], 9800 kb/s, 25 tbr, 90k tbn, 50 tbc
0: STDOUT: Stream #0.1[0x80]: Audio: ac3, 48000 Hz, 5.1, s16, 448 kb/s
0: STDOUT: Unable to find a suitable output format for 'c:\2_1mb.mp4
0: STDOUT: ’
0: INFO: Process exit code: 1
Scheduler Thread - Render Thread 0 threw an error:
Scheduler Thread - Exception during render: An error occurred in RenderTasks(): Error in CheckExitCode(): Renderer returned non-zero error code, 1 (FranticX.Processes.ManagedProcessAbort) (Deadline.Plugins.RenderPluginException)

at Deadline.Plugins.ScriptPlugin.RenderTasks(Int32 startFrame, Int32 endFrame, String& outMessage)

Error Type
RenderPluginException

Error Stack Trace
at Deadline.Plugins.Plugin.RenderTask(Int32 startFrame, Int32 endFrame)
at Deadline.Slaves.SlaveRenderThread.RenderCurrentTask()

[/code]

Thanks. I’m a little stumped on this one though…

Have you tried rebooting the slave machine? Maybe Deadline is missing an environment variable that was recently set, and a reboot should ensure that everything is refreshed.

I rebooted slave machine, but did not help… :frowning:
may be lenght of command very big? and did not send all parametrs?

But if I send Command Script Job,

c:\render.bat

render.bat[code]@echo off

C:\ffmpeg-0.5\ffmpeg.exe -i c:\1.vob -croptop 6 -cropbottom 14 -cropleft 8 -cropright 4 -acodec libfaac -ar 48000 -ab 96k -coder ac -me_range 16 -subq 5 -sc_threshold 40 -vcodec libx264 -s 840x460 -b 1000k -cmp +chroma -partitions +parti4x4+partp8x8+partb8x8 -i_qfactor 0.71 -keyint_min 25 -b_strategy 1 -g 250 -r 25 -y c:\1_1mb.mp4

echo " WELL DONE"
[/code]
Its execute and rendering…
May be bug in command script job?

Hmm, the length of the command shouldn’t be a problem. Can you post the full render log for the task? The error report only displays a few lines. You can find the log by right-clicking on the job and selecting Job Reports -> View Log Reports.

Thanks!

Logs:

    Error Message
    Exception during render: An error occurred in RenderTasks(): Error in CheckExitCode(): Renderer returned non-zero error code, 1 (FranticX.Processes.ManagedProcessAbort) (Deadline.Plugins.RenderPluginException)
    at Deadline.Plugins.ScriptPlugin.RenderTasks(Int32 startFrame, Int32 endFrame, String& outMessage)


    Slave Log
    8 -i_qfactor 0.71 -keyint_min 25 -b_strategy 1 -g 250 -r 25 -y c:\2_1mb.mp4
    0: INFO: Startup Directory: "c:\"
    0: INFO: Process Priority: BelowNormal
    0: INFO: Process is now running
    0: STDOUT: FFmpeg version 0.5, Copyright (c) 2000-2009 Fabrice Bellard, et al.
    0: STDOUT: configuration: --enable-gpl --enable-postproc --enable-swscale --enable-avfilter --enable-avfilter-lavf --enable-pthreads --enable-avisynth --enable-libfaac --enable-libfaad --enable-libmp3lame --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libxvid --enable-libx264 --enable-memalign-hack
    0: STDOUT: libavutil 49.15. 0 / 49.15. 0
    0: STDOUT: libavcodec 52.20. 0 / 52.20. 0
    0: STDOUT: libavformat 52.31. 0 / 52.31. 0
    0: STDOUT: libavdevice 52. 1. 0 / 52. 1. 0
    0: STDOUT: libavfilter 0. 4. 0 / 0. 4. 0
    0: STDOUT: libswscale 0. 7. 1 / 0. 7. 1
    0: STDOUT: libpostproc 51. 2. 0 / 51. 2. 0
    0: STDOUT: built on Mar 16 2009 16:09:18, gcc: 4.2.4 [Sherpya]
    0: STDOUT:
    0: STDOUT: Seems stream 0 codec frame rate differs from container frame rate: 50.00 (50/1) -> 25.00 (25/1)
    0: STDOUT: Input #0, mpeg, from 'c:\2.vob':
    0: STDOUT: Duration: 03:13:43.77, start: 0.280000, bitrate: 5053 kb/s
    0: STDOUT: Stream #0.0[0x1e0]: Video: mpeg2video, yuv420p, 720x576 [PAR 16:15 DAR 4:3], 9800 kb/s, 25 tbr, 90k tbn, 50 tbc
    0: STDOUT: Stream #0.1[0x80]: Audio: ac3, 48000 Hz, 5.1, s16, 448 kb/s
    0: STDOUT: Unable to find a suitable output format for 'c:\2_1mb.mp4
    0: STDOUT: '
    0: INFO: Process exit code: 1
    Scheduler Thread - Render Thread 0 threw an error:
    Scheduler Thread - Exception during render: An error occurred in RenderTasks(): Error in CheckExitCode(): Renderer returned non-zero error code, 1 (FranticX.Processes.ManagedProcessAbort) (Deadline.Plugins.RenderPluginException)

    at Deadline.Plugins.ScriptPlugin.RenderTasks(Int32 startFrame, Int32 endFrame, String& outMessage)


    Error Type
    RenderPluginException


    Error Stack Trace
    at Deadline.Plugins.Plugin.RenderTask(Int32 startFrame, Int32 endFrame)
    at Deadline.Slaves.SlaveRenderThread.RenderCurrentTask()

This is the error report. I need the full render log, which you can find the log by right-clicking on the job and selecting Job Reports -> View Log Reports.

Thanks,

  • Ryan

Sorry, needs this logs?

Log Message 
0: Task timeout is disabled.
0: Loaded job: test (999_050_000_6d120a33)
0: Successfully mapped R: to \\rserv\r
0: INFO: StartJob: initializing script plugin CommandScript
0: INFO: About: Command Script support for Deadline, 2008-04-22
0: Plugin rendering frame(s): 0
0: INFO: Checking line:C:\ffmpeg-0.5\ffmpeg.exe -i \\rserv\r\rsq\111.vob -map 0:0 -map 0:1 -deinterlace -croptop 16 -cropbottom 16 -cropleft -cropright -s 720x384 -b 1000k -g 18 -qblur 0.5 -qmin 10 -qmax 51 -sc_threshold 40 -vcodec libx264 -bf 2 -refs 6 -b_strategy 0 -flags +loop -flags +mv4 -flags +qpel -flags +qpel -me_range 4 -me_method umh -subq 5 -i_qfactor 0.5 -qcomp 0.7 -qdiff 6 -directpred 3 -flags2 +dct8x8 -flags2 +bpyramid -flags2 +mixed_refs -trellis 1 -partitions +parti8x8 -partitions +parti4x4 -partitions +partp8x8 -partitions +partp4x4 -mbd simple -acodec libfaac -ar 48000 -ab 128k -y \\rserv\r\rsq\111_1mb.mp4

0: INFO: RenderExe found: C:\ffmpeg-0.5\ffmpeg.exe
0: INFO: RenderArg found: -i \\rserv\r\rsq\111.vob -map 0:0 -map 0:1 -deinterlace -croptop 16 -cropbottom 16 -cropleft -cropright -s 720x384 -b 1000k -g 18 -qblur 0.5 -qmin 10 -qmax 51 -sc_threshold 40 -vcodec libx264 -bf 2 -refs 6 -b_strategy 0 -flags +loop -flags +mv4 -flags +qpel -flags +qpel -me_range 4 -me_method umh -subq 5 -i_qfactor 0.5 -qcomp 0.7 -qdiff 6 -directpred 3 -flags2 +dct8x8 -flags2 +bpyramid -flags2 +mixed_refs -trellis 1 -partitions +parti8x8 -partitions +parti4x4 -partitions +partp8x8 -partitions +partp4x4 -mbd simple -acodec libfaac -ar 48000 -ab 128k -y \\rserv\r\rsq\111_1mb.mp4

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: Render Executable: "C:\ffmpeg-0.5\ffmpeg.exe"
0: INFO: Render Argument: -i \\rserv\r\rsq\111.vob -map 0:0 -map 0:1 -deinterlace -croptop 16 -cropbottom 16 -cropleft -cropright -s 720x384 -b 1000k -g 18 -qblur 0.5 -qmin 10 -qmax 51 -sc_threshold 40 -vcodec libx264 -bf 2 -refs 6 -b_strategy 0 -flags +loop -flags +mv4 -flags +qpel -flags +qpel -me_range 4 -me_method umh -subq 5 -i_qfactor 0.5 -qcomp 0.7 -qdiff 6 -directpred 3 -flags2 +dct8x8 -flags2 +bpyramid -flags2 +mixed_refs -trellis 1 -partitions +parti8x8 -partitions +parti4x4 -partitions +partp8x8 -partitions +partp4x4 -mbd simple -acodec libfaac -ar 48000 -ab 128k -y \\rserv\r\rsq\111_1mb.mp4

0: INFO: Startup Directory: "\\rserv\r\rsq\"


 
Log Details 
Log Date/Time = Sep 21/09 12:08:27 
Frames = 0-0 

Slave Machine = Test 
Slave Version = v3.1.0.35390 R 

Plugin Name = CommandScript 

Weird. This log seems to be missing the output from the application. It finishes with the startup directory, and that’s it. Also, I noticed that you’re now passing a UNC path to the -y argument, whereas in previous error messages it was a c:\ path. What I really need is a full render log from Deadline and a full console log that uses the exact same command line arguments so that I can compare them.

So can you please do the following:

  1. Pick one of your slaves to act as your test machine. Close down the Slave application on that machine if it is already running.
  2. Run a ffmpeg command from a command prompt on that machine, and post the full results.
  3. Submit the exact same command line job to Deadline, and set it up so that it will only run on the slave you have chosen.
  4. Start the Slave application on the machine you have chosen, and wait for it to pick up the job, attempt to render it, and fail.
  5. Open the client log folder from the Slave by selecting Help -> Explore Log Folder.
  6. Close the Slave application.
  7. Sort the logs by modified date/time and post the most recent Slave log file.

What might also be helpful is if you could post a test package that we can use to reproduce the problem. We would just need any input files that you are using for the test used above. We would then download ffmpeg and try to reproduce this here.

Thanks!!

  • Ryan

Sorry to disturb you.

We have resolved the problem.

  1. create script which generate tasks in bat scripts and file contains list bat files;
  2. in submit command script, load list bat files;

But now we have another problem…
not working concurrent task limit.
In submit command script job I set up eight (number of cores) “Concurrent Tasks” and in slave settings “Concurrent Task Limit Override” = 0, but at the same time execute one task, and processor load is 15%.
P.s. Version deadline v3.1.0.36430 R

Glad to hear you’ve worked around the problem!

The problem with the concurrent tasks is due to the CommandScript plugin not supporting it. This is an oversight on our part, and I’ve attached a patch that should fix the problem. To apply the patch:

  1. Backup the file \your\repository\plugins\CommandScript\CommandScript.dlinit, just in case.
  2. Unzip the attached file to \your\repository\plugins\CommandScript, and overwrite the existing CommandScript.dlinit when prompted.
  3. Try rendering with concurrent tasks again.

Let us know if this fixes the problem. We’ll be sure to include this fix in the next Deadline release, so thanks for bringing it to our attention!

Cheers,

Thanks for patch.
This work since restart slaves and uncheck “Limit Tasks To Slave’s Task Limit”
But one slave write errors…

[code]Error Message
Index was outside the bounds of the array.

Slave Log
ns.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)

at System.Collections.Generic.Dictionary`2.set_Item(TKey key, TValue value)

at IronPython.Runtime.Types.ComObject.AddType(Guid guid, Type type)

at IronPython.Runtime.TopReflectedPackage.LoadAssembly(SystemState state, Assembly assem, Boolean isInteropAssembly)

at IronPython.Modules.ClrModule.AddReference(Assembly assembly)

at IronPython.Modules.ClrModule.AddReferenceByName(String[] names)

at IronPython.Runtime.TopReflectedPackage.Initialize(SystemState state)

at IronPython.Runtime.Importer.ImportBuiltin(PythonModule mod, String name)

at IronPython.Runtime.Importer.ImportTopAbsolute(PythonModule mod, String name)

at IronPython.Runtime.Importer.ImportModule(ICallerContext context, String modName, Boolean bottom)

at IronPython.Hosting.EngineModule.Import(String moduleName)

at FranticX.Scripting.ScriptEngine…ctor()

at Deadline.Scripting.DeadlineScriptEngine…ctor(DeadlineController deadlineController)

at Deadline.Plugins.ScriptPlugin.GetNewScriptEngine()

at Deadline.Plugins.ScriptPlugin…ctor(String pluginName, DeadlineController deadlineController)

at Deadline.Plugins.Plugin…ctor(String name, String networkSourcePath, String slaveDestinationPath, Int32 threadId, DeadlineController deadlineController)

at Deadline.Controllers.DeadlineController.RequestPlugin(String pluginName, String slaveLocalPath, Int32 threadID)

at Deadline.Slaves.SlaveRenderThread.RequestPlugin(String pluginName, Boolean reloadPlugin)

at Deadline.Slaves.SlaveRenderThread.LoadPlugin()

at Deadline.Slaves.SlaveRenderThread.ThreadMain()

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Scheduler Thread - Render Thread 4 threw an error:
Scheduler Thread - Index was outside the bounds of the array.
Scheduler Thread - Unexpected Error Occured: Index was outside the bounds of the array. (System.IndexOutOfRangeException)

Error Type
IndexOutOfRangeException

Error Stack Trace
at System.Collections.Generic.Dictionary2.Insert(TKey key, TValue value, Boolean add) at System.Collections.Generic.Dictionary2.set_Item(TKey key, TValue value)
at IronPython.Runtime.Types.ComObject.AddType(Guid guid, Type type)
at IronPython.Runtime.TopReflectedPackage.LoadAssembly(SystemState state, Assembly assem, Boolean isInteropAssembly)
at IronPython.Modules.ClrModule.AddReference(Assembly assembly)
at IronPython.Modules.ClrModule.AddReferenceByName(String[] names)
at IronPython.Runtime.TopReflectedPackage.Initialize(SystemState state)
at IronPython.Runtime.Importer.ImportBuiltin(PythonModule mod, String name)
at IronPython.Runtime.Importer.ImportTopAbsolute(PythonModule mod, String name)
at IronPython.Runtime.Importer.ImportModule(ICallerContext context, String modName, Boolean bottom)
at IronPython.Hosting.EngineModule.Import(String moduleName)
at FranticX.Scripting.ScriptEngine…ctor()
at Deadline.Scripting.DeadlineScriptEngine…ctor(DeadlineController deadlineController)
at Deadline.Plugins.ScriptPlugin.GetNewScriptEngine()
at Deadline.Plugins.ScriptPlugin…ctor(String pluginName, DeadlineController deadlineController)
at Deadline.Plugins.Plugin…ctor(String name, String networkSourcePath, String slaveDestinationPath, Int32 threadId, DeadlineController deadlineController)
at Deadline.Controllers.DeadlineController.RequestPlugin(String pluginName, String slaveLocalPath, Int32 threadID)
at Deadline.Slaves.SlaveRenderThread.RequestPlugin(String pluginName, Boolean reloadPlugin)
at Deadline.Slaves.SlaveRenderThread.LoadPlugin()
at Deadline.Slaves.SlaveRenderThread.ThreadMain()
[/code]

Then I manually restart slave, and Command Script Job is work.

And find few bugs…

  1. slave takes eight task, but spawn less processes ffmpeg.exe, if I requeue task was not rendering, slaves write error in out, and dont take another task in processing (screenshot).

  2. after rendering task, slave write error, but task complete. Error logs:

Error Message 
Object reference not set to an instance of an object.

 
Slave Log 
: STDOUT: frame=128399 fps= 33 q=23.0 size= 691250kB time=5135.80 bitrate=1102.6kbits/s 
1: STDOUT: frame=128418 fps= 33 q=20.0 size= 691366kB time=5136.56 bitrate=1102.6kbits/s 
1: STDOUT: frame=128435 fps= 33 q=22.0 size= 691472kB time=5137.24 bitrate=1102.6kbits/s 
1: STDOUT: frame=128453 fps= 33 q=22.0 size= 691570kB time=5137.96 bitrate=1102.6kbits/s 
1: STDOUT: frame=128475 fps= 33 q=-1.0 Lsize= 695689kB time=5138.92 bitrate=1109.0kbits/s 
1: STDOUT: 
1: STDOUT: video:637287kB audio:54493kB global headers:1kB muxing overhead 0.565059%
1: STDOUT: [libx264 @ 0x311d010]slice I:8309 Avg QP:18.35 size: 24629
1: STDOUT: [libx264 @ 0x311d010]slice P:42748 Avg QP:23.24 size: 6155
1: STDOUT: [libx264 @ 0x311d010]slice B:77418 Avg QP:24.83 size: 2388
1: STDOUT: [libx264 @ 0x311d010]consecutive B-frames: 0.8% 10.4% 88.8%
1: STDOUT: [libx264 @ 0x311d010]mb I I16..4: 18.5% 26.7% 54.8%
1: STDOUT: [libx264 @ 0x311d010]mb P I16..4: 9.1% 15.3% 4.3% P16..4: 32.4% 16.3% 6.3% 0.8% 0.3% skip:15.2%
1: STDOUT: [libx264 @ 0x311d010]mb B I16..4: 4.4% 0.0% 0.0% B16..8: 38.1% 0.0% 0.0% direct:11.0% skip:46.4% L0:30.2% L1:51.5% BI:18.4%
1: STDOUT: [libx264 @ 0x311d010]final ratefactor: 21.17
1: STDOUT: [libx264 @ 0x311d010]8x8 transform intra:36.5% inter:31.5%
1: STDOUT: [libx264 @ 0x311d010]direct mvs spatial:100.0% temporal:0.0%
1: STDOUT: [libx264 @ 0x311d010]ref P L0 60.7% 23.6% 7.2% 4.0% 2.3% 2.3%
1: STDOUT: [libx264 @ 0x311d010]ref B L0 63.0% 22.6% 7.0% 4.9% 2.4%
1: STDOUT: [libx264 @ 0x311d010]ref B L1 89.9% 10.1%
1: STDOUT: [libx264 @ 0x311d010]SSIM Mean Y:0.9616937
1: STDOUT: [libx264 @ 0x311d010]kb/s:1015.9
1: INFO: Process exit code: 0
Scheduler Thread - Render Thread 0 threw an error: 
Scheduler Thread - Object reference not set to an instance of an object.
Scheduler Thread - Unexpected Error Occured: Object reference not set to an instance of an object. (System.NullReferenceException)

 
Error Type 
NullReferenceException

 
Error Stack Trace 
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at System.Collections.Generic.Dictionary`2.set_Item(TKey key, TValue value)
at IronPython.Runtime.Types.ComObject.AddType(Guid guid, Type type)
at IronPython.Runtime.TopReflectedPackage.LoadAssembly(SystemState state, Assembly assem, Boolean isInteropAssembly)
at IronPython.Modules.ClrModule.AddReference(Assembly assembly)
at IronPython.Modules.ClrModule.AddReferenceByName(String[] names)
at IronPython.Runtime.TopReflectedPackage.Initialize(SystemState state)
at IronPython.Runtime.Importer.ImportBuiltin(PythonModule mod, String name)
at IronPython.Runtime.Importer.ImportTopAbsolute(PythonModule mod, String name)
at IronPython.Runtime.Importer.ImportModule(ICallerContext context, String modName, Boolean bottom)
at IronPython.Hosting.EngineModule.Import(String moduleName)
at FranticX.Scripting.ScriptEngine..ctor()
at Deadline.Scripting.DeadlineScriptEngine..ctor(DeadlineController deadlineController)
at Deadline.Plugins.ScriptPlugin.GetNewScriptEngine()
at Deadline.Plugins.ScriptPlugin..ctor(String pluginName, DeadlineController deadlineController)
at Deadline.Plugins.Plugin..ctor(String name, String networkSourcePath, String slaveDestinationPath, Int32 threadId, DeadlineController deadlineController)
at Deadline.Controllers.DeadlineController.RequestPlugin(String pluginName, String slaveLocalPath, Int32 threadID)
at Deadline.Slaves.SlaveRenderThread.RequestPlugin(String pluginName, Boolean reloadPlugin)
at Deadline.Slaves.SlaveRenderThread.LoadPlugin()
at Deadline.Slaves.SlaveRenderThread.ThreadMain()

Those IronPython errors are threading related errors that we have resolved for the next release. The next release is currently in beta, so if you’re interested in joining, see here for more details:
viewtopic.php?f=10&t=2778

Regarding the slave spawning less ffmpeg processes then it’s supposed to, how are you determining this?

Cheers,

  • Ryan

I determinig this in task manager, and in slave window on the status bar, show on the screenshot above.

thank for invitation on beta test.

Hmm, strange. I’m not sure why Deadline wouldn’t launch the command. Can you try using lower numbers for concurrent tasks to see if the problem persists (for example: 2, 4, etc)?