Menu

#171 The Switches / Scripting Commands for Export Options

open
question
2018-09-24
2018-09-09
Revan
No

I was wonder what the switch or script code is for the Export options. Most of the old commands work, However options under Export I can not figure out what the commands are. The old SaveImageSequence() doesn't seem to work anymore. I was using animatedPNG & PNG as the base code. I tested both lower and uppercasing.

I tried it a mix of different code but VD2 and CLI kept returning ___ is not a memeber.

Discussion

  • Anton Shekhovtsov

    Not all export commands are exposed as script, best way to find out is to use "queue job operation" menu and then look in the jobs file.
    SaveImageSequence should work, post your failing script.

     
    • Revan

      Revan - 2018-09-09

      any way to get it added for the next update or atlease point me to where it is in the source code?

       
      • Anton Shekhovtsov

        See src\VirtualDub\source\Script.cpp, func_VirtualDub_SaveImageSequence
        AFAIK it works perfectly as part of batch process. Don't get what are you missing.

         
        • Revan

          Revan - 2018-09-09

          What I'm trying to do is issue all the command through cmdline or through scripting only. It's part of a bigger project I'm working on.

          It's only for AnimatedPNG save function.

           
          • Anton Shekhovtsov

            To save apng
            VirtualDub.SaveAnimatedPNG("E:\\temp\\cube.png", 1, 1, 0);
            filename, loopCount, alpha, grayscale

             
            • Revan

              Revan - 2018-09-11

              Thanks, got it to work. I thought I tried that line of code.

              One quick Question is there a way to control the compression on the PNG?

              I know aPNG was suppose to be smaller in filesize compared to gif. It's double the size of a gif.


              Also if you ever update the gif creation, should use palettegen from ffmpeg, Which create a much better output then what VirtualDub creates now. These options didn't exist when VirtualDub was created.

              First Run:

              ""ffmpeg -i Inputfile -vf 'fps=15,scale=480👎flags=spline,palettegen=stats_mode=diff' -loglevel quiet -y OutputFilePalettegen.png""

              Second Run:

              ""ffmpeg -i Inputfile -i OutputFilePalettegen.png -lavfi 'fps=15,scale=480👎flags=spline,[x]; [x][1:v] paletteuse=dither=floyd_steinberg' -loglevel quiet -y OutputFile.gif""

              There also ways to do single run as well.


              FYI VirtualDub2 works on linux using Wine or Playonlinux. Just like the old VirtualDub.

               

              Last edit: Revan 2018-09-11
              • Anton Shekhovtsov

                I agree apng eficiency is unimpressive. Don't know much about underlying technology. It's possible the specification allows better. APNG support came from https://sourceforge.net/projects/vdubapngmod/
                Btw why do you need it? webm (vp8/vp9) is much better in terms of filesize.
                I hate gif :)

                 
                • Revan

                  Revan - 2018-09-24

                  Not all filehost support webm. Some sites lock you to certain servers being used. :( Those servers still only support images for animation with no video support.

                  The apngopt usese zlib or 7zip (with -i15) has decreased the size a bit. For Example. Output in VD2 is 10MB, if you run it through apngopt it decreases to about 7MB.

                  gif maker in VD does need updated, it's way overcompressed. When it was made it was passable.

                  Palettegen from ffmpeg creates a much better looking gifs now.

                   

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB