Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- ###############
- # dovid <videos>
- # - creates single webpage of contact sheets of a dIRECTORY oF vidEOS
- ###############
- # dependencies:
- #
- # vcs-creates video contact sheets (previews) of videos. http://p.outlyer.net/vcs/
- #
- # convert-part of ImageMagick suite, vcs dependent, robust collection of tools and
- # libraries to create, edit and compose bitmap images in over 90 image formats
- # http://www.imagemagick.org/
- #
- # pdftohtml-pdf to html converter http://pdftohtml.sourceforge.net/
- #
- ################
- rm="/bin/rm"
- mv="/bin/mv"
- time="/usr/bin/time"
- mkdir="/bin/mkdir"
- cd="/usr/bin/cd"
- date="/bin/date"
- sleep="/bin/sleep"
- vcs="/opt/local/bin/vcs"
- convert="/opt/local/bin/convert"
- pdftohtml="/opt/local/bin/pdftohtml"
- ########### contact sheet paramaters
- columns="2"
- rollsize="4"
- frame_height="320"
- mkdir html_preview_of_these_videos
- echo
- echo " creating contact sheets..."
- echo
- while [ "$1" != "" ]
- do
- echo " "$1
- echo " processing..."
- $(vcs --quiet -dt -ds -dp -u "0" -n $rollsize -c $columns -H $frame_height "$1" >/dev/null 2>&1)
- sleep 0.2
- mv $1.png html_preview_of_these_videos/
- shift
- done
- sleep 0.1
- cd html_preview_of_these_videos
- echo
- echo " merging documents..."
- echo
- convert *.png index.pdf >/dev/null
- sleep 0.1
- rm *.png
- echo
- echo " generating index file..."
- echo
- pdftohtml -s -noframes index.pdf >/dev/null
- sleep 0.1
- rm index.pdf
- echo
- echo " done."
- echo
- exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement