Call for Submission
NAB 2012 Best of the Best Show Reel
Submit your work today!
  • 1/3
You are here: Forum Home / Autodesk® MotionBuilder® / Python / Render Compression Settings
  RSS 2.0 ATOM  

Render Compression Settings
Rate this thread
 
36766
 
Permlink of this thread   Subscribe to this thread
avatar
  • Kathryn
  • Posted: 16 November 2009 11:17 PM
  • Total Posts: 26
  • Joined: 21 October 2009 11:43 AM

Hi there,

I am trying to make a script to render files to specific render settings and compression settings.  I have got all the render settings sorted and working fine. As I go to set the Compression settings it doesnt seem to work.

I tell the script to print the default codec, in which is prints ‘png’ which is the type i wish to use. But when i go to set this it doesn’t seem to change a thing and still has ‘Video’ as the selected compression type.

What am I doing wrong?

mgr = FBVideoCodecManager()
mgr.VideoCodecMode = FBVideoCodecMode.FBVideoCodecStored
mgr.GetDefaultCodec("mov")
print “Default Compression file is “ + mgr.GetDefaultCodec("mov")
##This returns: “Default Compression file is png"##
mgr.SetDefaultCodec("mov", “png")



Replies: 0
avatar
  • Kathryn
  • Posted: 26 November 2009 11:25 PM

No one has replied :(

I would still like to know what i am doing wrong with this issue, if anyone happens to know?



Replies: 1
/img/forum/dark/default_avatar.png

Hey Koneko,

I am trying to do batch video rendering as well.  Have you found a solution to your problem?  If not, have you tried using the default script JpegRender.py and just changing the file type to png?

Author: melloajello

Replied: 10 May 2010 02:09 PM  
avatar
  • Kathryn
  • Posted: 24 May 2010 05:16 AM

No i never found a solution im afraid. 

Thanks for your advice though, i’ll try that out :)



Replies: 0
avatar

Hey,

Try setting the default codec first, before calling the Video Codec Mode or rendering the file. It seems to work for me!

mgr FBVideoCodecManager()
mgr.SetDefaultCodec("mov""png")
mgr.VideoCodecMode FBVideoCodecMode.FBVideoCodecStored

lOptions
.OutputFileName "c:\\users\\Username\\desktop\\temp.mov"
lOptions.BitsPerPixel FBVideoRenderDepth.FBVideoRender32Bits
lApp
.FileRender(lOptions)

Hope that helps :)



All views/opinions expressed here are my own and do not necessarily reflect those of my company or anyone else in the world

Replies: 0




   
  Settings Choose Theme color: