Jump to content


Photo

Preview With Djv


  • Please log in to reply
11 replies to this topic

#1 pingking

pingking

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 893 posts

Posted 11 August 2009 - 07:08 PM

the great open source frame buffer/imagesequence viewer DJV has arrived in a new version and it is availible as a 64bit version. so you can use all of your ram

even if fusion has a great caching system i like to have my previews opened in DJV. for this i wrote this script.
it works similar to the "create preview on ..." feature in fusion. if you use it on a loader/saver it will just open the image sequence directly, on every other tool it will create a temporary saver and renders, after that the temporary renders are opend in DJV.
i also tried to mimic a kind of proxy render, so you can render lower resolutions as preview.
to use it place the script into the ../scripts/tools folder and edit lines 37&38 to your prefered preview format and alter the path to your DJV folder

comments and feedback are always welcome


p.s.: you can easily alter the script to use it with any other framebuffer application you have (e.g. framecycler)

Attached Files



#2 leif3d

leif3d

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 554 posts

Posted 11 August 2009 - 07:35 PM

This is a great idea.
I like using DJV myself, it has a little bug in Vista with Aero (even while turned off) right now, but it's the best viewer IMHO, so good thing your script makes it available in Fusion.

Thanks. ;)

#3 Gringo

Gringo

    Associate Administrator

  • Adv Members
  • PipPipPipPipPip
  • 1,455 posts

Posted 12 August 2009 - 02:11 AM

Great job, as always!

Thank you Michael, it's another very useful script which is going to be an everyday tool.

Added to the Script Collection

#4 SecondMan

SecondMan

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 1,797 posts

Posted 13 August 2009 - 07:17 AM

Great idea, but your script doesn't support spaces in the filenames. Without going into debates whether spaces in file names is a good idea, could you do a quick revision for that? :)

Thanks,
Pieter.

#5 Gringo

Gringo

    Associate Administrator

  • Adv Members
  • PipPipPipPipPip
  • 1,455 posts

Posted 13 August 2009 - 07:32 AM

I can't help remembering a Russian joke:

Q: Why do I get an error trying to compile "New Version of My Program.ext"?
A: Real_programmers_don't_use_spaces.

Well, it's not the case, of course :)

#6 SecondMan

SecondMan

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 1,797 posts

Posted 13 August 2009 - 07:38 AM

Funnily enough, it's the programmer in this house who is adding the spaces.

:mf_fartnew:

He did solve it though, line 60 of the script should be:

Clipname = " \""..path..name..ext.."\"" -- building path

Another question; is there any way to make DJV preview just the frames set in the Render Start and Render End Time fields?

#7 pingking

pingking

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 893 posts

Posted 13 August 2009 - 10:28 AM

thanks for solving the problem for me, i will make the changes to my script and upload a fixed version

for the framerange:
i wanted to add this feature, but i could not find any hints for that in the djv documantation and i wrote an email to the developer of djv if this is possible. got no response yet. :-(

#8 SecondMan

SecondMan

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 1,797 posts

Posted 13 August 2009 - 11:11 AM

Cool. Thanks!

#9 pingking

pingking

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 893 posts

Posted 13 August 2009 - 06:25 PM

i made an update to the script
  • corrected the path building to support whitespaces within the path
  • found out how to load only the part in the renderrange

so here we go:

Attached Files



#10 SecondMan

SecondMan

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 1,797 posts

Posted 14 August 2009 - 04:23 AM

Yay! Thanks!

Pieter.

#11 drswoboda

drswoboda

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 268 posts

Posted 18 August 2009 - 02:33 PM

Excellent script pingking!

I ran into an issue with DJV, which Darby appears to have fixed in the latest preview build. DJV had issue loading sequences with the #'s seperated with . instead of _. That lead me to an issue with the fusion script.

For me, when running on a Loader with a file sequence like this: TVS_2_3518_JFH_Fill.2071901.jpg the script fails in the DJV message console with this message:
[ERROR] Image I/O, JPEG - Cannot open file: H:\FXPHD\term12\FLM205\flm205-class02\flm205-files02\TVS_2_3518_JFH_Fill.0000000.jpg

If I run it on loader that has a filename like this: GainMonitors_0000.tif, it runs as expected.

Thanks for the script.
-David

#12 pingking

pingking

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 893 posts

Posted 18 August 2009 - 02:56 PM

thanks for the comment, i will take a look at thsi issue




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users