GithubHelp home page GithubHelp logo

uhi67 / bdeshake Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 2.0 17 KB

Script to batch deshake videos using virtualdub and deshaker plugin. This is a single-file project, description included in the file.

Batchfile 100.00%
windows batch jscript virtualdub deshaker video-processing

bdeshake's Introduction

bdeshake

Script to batch deshake videos using virtualdub and deshaker plugin. This is a single-file project, description included in the file.

Batch deshaker

Deshakes (stabilizes) one video file or files of a directory to the same directory with .ds.mp4 name extension

Prerequisites

  1. Windows 7 or newer
  2. install virtualdub -- see http://virtualdub.org/
  3. install deshaker plugin -- see http://www.guthspot.se/video/deshaker.htm
  4. install ffmpeg -- see http://ffmpeg.org/
  5. install x264 external encoder named 'x264' with params '-B 18000 --profile baseline --preset slow --ref 5 --level 4.1 --keyint 24 --tune film --bluray-compat --stitchable --b-pyramid strict --demuxer raw --input-csp i420 --input-res %(width)x%(height) --fps %(fpsnum)/%(fpsden) -o "%(tempvideofile)" -' output '%(outputname).264'
  6. install neroAacEnc external encoder named 'neroaac' with params '-q 0.80 -ignorelength -if - -of "%(tempaudiofile)"', output '%(outputname).m4a'
  7. create mp4 external encoder set in virtualdub named 'MP4' containing 'x264' and 'neroaac'

Installation

  1. Save this single file to anywhere in your windows machine.
  2. Edit global settings below:
    • ffmpegbase is the path to the installed ffmpeg
    • commandbase is the path to the installed virtualdub
    • change any other settings if you want
  3. Review extensions and template files (if you know virtualdub scripting)

If template directory does not exists, it will be created and it's content initialized from this script. Embedded template files will be extracted only this times. If you modify the template files in the template directory, the modified files will be used.

Using

bdeshake.cmd filename [-t] [-o]

... or simply drop a directory to the script for default batch process.

Skips existing output files, unless -o switch specified. creates %filename%.ds.jobs temp file Detect interlaced files into %int%

uses jobs template files in priority order:

  • %inputpath%\vd-deshake-%ext%-%int%.jobs.sample
  • %inputpath%\vd-deshake-%ext%.jobs.sample
  • templates\vd-deshake-%ext%-%int%.jobs.sample
  • templates\vd-deshake-%ext%.jobs.sample
  • templates\vd-deshake-default.jobs.sample If templates directory is missing, it will be initialized from embedded template files. See virtualdub documentation for jobs file format, and deshaker documentation for deshaker parameters.

Creates %inputpath%%filename%.ds.log file Runs "...\VirtualDub\Veedub64.exe" /s %filename%.ds.jobs /x Returns only when finished Default removes all temp files created.

If you close the terminal window before the end of processing all files, the ongoing processes will continue and close when completed, but no more new process will start. If you close manually the ongoing processes, the result may be some damaged output file.

Options

-t do not delete temp files (default will be deleted after the last file completed) -o overwrite existing files (default skip) -p <#> number of paralel processes (default 4) -s user settings of plugin. See doc at http://www.guthspot.se/video/deshaker.htm

Bugs

  • avi does not work
  • PAL Wide is converting to 4:3

External references

bdeshake's People

Contributors

uhi67 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.