dvd-slideshow-0.8.6-1/0000775000175000017500000000000012641034770013517 5ustar scottscottdvd-slideshow-0.8.6-1/jigl2slideshow0000775000175000017500000001211010467216631016373 0ustar scottscott#!/bin/bash # jigl2slideshow # Copyright 2003 Scott Merrill # adapted from gallery2slideshow by Scott Dylewski # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # version='0.4' changes () { echo ' Changes: 0.4 -i switch not required for input file 0.3 Added fadein before first picture and fadeout at the end 0.2 Scott Changed typo [ -n $output_dir ] to [ -z $output_dir ] 0.1 Initial release' } # set defaults duration="10"; output_dir=""; gallery_path=""; crossfade=0 help () { echo "jigl2slideshow $version" echo "jigl2slideshow is part of the dvd-slideshow set of tools." echo 'http://freshmeat.net/dvdslideshow' echo 'Copyright 2003 Scott Merrill ' echo 'Copyright 2003 Scott Dylewski ' echo echo ' jigl2slideshow description: Generates a text file listing of the pictures visible in a given jigl (http://xome.net/projects/jigl/) photo album in order to easily pass the information to dvd_slideshow Usage: jigl2slideshow -o -t Options: path_to_album Path to the gallery.dat that you want to generate a slideshow for. -o output_directory Path to the directory where you want to output file written. -t time_per_picture Integer number of seconds for each picture to be displayed. -h or -help Prints this help.' } if [ $# -lt 1 ]; then help exit 1 fi ## setup initial variables: debug=0 # 1 or 0 for arg do case "$arg" in -i) shift ; gallery_path="$1" ; shift ;; -o) shift; output_dir="$1"; shift ;; -t) shift; duration="$1"; shift ;; # need to do more work to get this working: # -c) shift; crossfade=1; crossfade_duration="$1"; shift ;; -h) help ; exit 0 ; shift ;; -?) help ; exit 0 ; shift ;; -help) help ; exit 0 ; shift ;; esac done if [ -z "$gallery_path" ] ; then gallery_path="$1" fi if [ -z "$gallery_path" ] ; then echo "[jigl2slideshow] Error: No album specified" exit 1 fi # sanity checking # did the user give us a valid input file to work with? if [ ! -f $gallery_path ]; then # it's not a regular file if [ ! -d $gallery_path ]; then # it's not a directory! echo "Bogus input file (-i $gallery_path)!" exit 1; else # it is a directory, so use gallery.dat echo "*** Using gallery.dat in $gallery_path"; gallery="gallery.dat"; if [ ! -f $gallery_path/$gallery ]; then # there's no gallery.dat file there! echo "No such file $gallery_path/$gallery!"; echo "Aborting!"; exit 1; fi fi else # it is a regular file! gallery=`basename "${gallery_path}"`; gallery_path=`echo $gallery_path | sed -e "s/$gallery//"`; fi # make sure $gallery_path has no trailing slash gallery_path=`echo $gallery_path | sed -e 's/\/$//'`; # did the user give us a valid destination directory? # if I was really good, I'd check permissions to ensure we can _write_ there # but I suck and should be destroyed if [ -z $output_dir ]; then # no output directory specified! echo "Invalid output destination (-o $output_dir)!"; echo "*** Using $gallery_path instead."; output_dir=$gallery_path; fi if [ ! -d $output_dir ]; then # I'm sure it was a simple typo. echo "Invalid output destination (-o $output_dir)!"; echo "*** Using $gallery_path instead."; output_dir=$gallery_path; fi # make sure $output_dir has no trailing slash output_dir=`echo $output_dir | sed -e 's/\/$//'`; cleanup () { ## clean up temporary files echo "All done!"; echo "Enjoy your new $output_dir/pictures_list.txt!"; } forcequit () ## function gets run when we have some sort of forcequit... { ## clean up temporary files cleanup } trap 'forcequit' INT trap 'forcequit' KILL trap 'forcequit' TERM ## snag the title from the gallery.dat file title_bit="INDEX-TITLE ---- "; title=`grep "$title_bit" $gallery_path/$gallery | sed -e "s/$title_bit//"`; echo title:$duration:$title > $output_dir/picture_list.txt; ## fade in after title: echo "background:1" >> "${output_dir}/picture_list.txt" echo "fadein:1" >> "${output_dir}/picture_list.txt" `grep -i .jpg $gallery_path/$gallery | sed -e "s/ ---- /:$duration:/" -e "s#^#$gallery_path/#" >> $output_dir/picture_list.txt`; ## fade out at end echo "fadeout:1" >> "${output_dir}/picture_list.txt" echo "background:1" >> "${output_dir}/picture_list.txt" cleanup dvd-slideshow-0.8.6-1/INSTALL.txt0000664000175000017500000000366211513642245015374 0ustar scottscottInstall locations according to LSB: http://www.freestandards.org/docs/lsbbook/install-app.html For dvd-slideshow > 0.8.1, we'll install into this location: /opt/dvd-slideshow/bin (linked to from /usr/local/bin?) /opt/dvd-slideshow/share/man /opt/dvd-slideshow/share/doc /etc/opt/dvd-slideshow/ /var/opt/dvd-slideshow/ system administrator may add links from /opt/bin to the /opt/dvd-slideshow/bin I figure we'll have to add a link from /usr/local/bin to /opt/dvd-slideshow/bin/ also... ############################# old install instructions: First, you'll need all of the required packages in order to create and burn a dvd: ImageMagick > 5.5.4 Sox > 14 libsox-fmt-all (deb only?) dvdauthor > 0.6.11 lame [required for mp3 decoding] oggdec [required for ogg decoding] mkisofs dvdrtools [to actually burn dvds] ffmpeg > 0.4.8 [ for ac3 audio ] In order to install the dvd-slideshow package, you can copy the executables into a bin directory in your path. Man pages are provided in man/ and there are also some documents in the doc/ directory. OR You can execute (as root): sh install.sh This will simply do the following: ## install some files and such: # copy documentation: cp man/dvd-slideshow.1 /usr/local/man/man1/. cp man/dvd-menu.1 /usr/local/man/man1/. cp man/dir2slideshow.1 /usr/local/man/man1/. cp man/gallery1-to-slideshow.1 /usr/local/man/man1/. cp man/jigl2slideshow.1 /usr/local/man/man1/. # copy executables: cp dvd-slideshow /usr/bin/. cp dvd-menu /usr/bin/. cp gallery1-to-slideshow /usr/bin/. cp jigl2slideshow /usr/bin/. cp dir2slideshow /usr/bin/. remove old versions: if [ -r "/usr/bin/gallery2slideshow" ] ; then echo "Removing old gallery2slideshow and installing gallery1-to-slideshow instead" echo "See changelog for details." rm "/usr/bin/gallery2slideshow" rm "/usr/local/man/man1/gallery2slideshow.1" fi Please let me know if you have any recommendations or if you are having problems. -scott scott at dylewski dot com dvd-slideshow-0.8.6-1/dvd-menu0000775000175000017500000024725512636157227015212 0ustar scottscott#!/bin/bash # dvd-menu # Copyright 2003-2008 Scott Dylewski # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # name='dvd-menu' version='0.8.6-1' echo "[dvd-menu] dvd-menu $version" echo "[dvd-menu] Licensed under the GNU GPL" echo "[dvd-menu] Copyright 2003-2015 by Scott Dylewski" echo "[dvd-menu] " ## TODO: # read in variables from ~/.dvd-menurc and local .dvd-menurc # relative paths in xine output suggestion ## Known bugs: ## set up bash variables LANG="POSIX" changes () { echo 'Changes: 0.8.6 Need to fix sox errors for newer versions, "warning Option -s depreciated" Change ac3 encoding to ac3_fixed in ffmpeg to avoid core dump 0.8.4 Fix sox arguments to work with both old and new versions of sox. Added "unset CDPATH to full_path function. (Thanks Bob!) Add explicit PAL or NTSC in .xml files for dvdauthor 0.7.0 Add totem and VLC playback examples 0.8.2 Change imagemagick calls with -type TrueColor to -type TrueColorMatte for latest version Sox v. > 13 changes -w to -2 and -e to -n (thanks Ludovic) Font path follows links. Thanks Jim Potter! AC3 audio created with ffmpeg needs k added to bitrate Changed -depth 16 to -depth 8 in background gradient creation. Fix embedded image help text. Default layout will switch to two columns of buttons (no embedded image) if the button list is long. Change LANG=C to LANG=POSIX to try to fix radix problems with printf Add menu fix so "dvd menu" button works on dvd players (thanks will guaraldi) 0.8.0 pre9: Added 6image layout option. It can also read the title and icon from the .xml file output from dvd-slideshow. more testing is needed. Added many more variables to control the layout of the menu also. pre8: Added -vcd and -svcd modes. Works! tested -vcd a little. Audio automatically fades in/out for 2 seconds Reads variables correctly from ~/.dvd-slideshow/dvd-slideshowrc Updated variables. See dvd-slideshowrc example file Better control of fonts and variables. Deletes temp directory when finished. -nocleanup works Reads -theme files Added -fadein and -fadeout for menus. Remove seq calls for compatibility with FreeBSD (Thanks David Mulcahy) Remove wc --chars calls for compatibility with FreeBSD 0.2 Initial release' } help () { echo "dvd-menu is part of dvd-slideshow $version" echo "`basename $0`" echo "http://freshmeat.net/dvdslideshow/" echo 'Copyright 2003 Scott Dylewski Usage: dvd-menu -t ... -t -f ... -f [-o output_directory] [-n "menu title"] [-e ] [-L] [-b ] [ -a ] [-p] [-c] [-D] [-W] [-mp2] [-iso] [-w] [-theme ] [-nomenu] Description: Creates a simple vmgm menu with buttons that link to the mpeg files in the specified dvdauthor-compatible xml files. Options: -t -t ... -t Name of each title. Each string will be used for the button menu corresponding to each xmlfile. This sets the order of the menu buttons! -f ... Name of each titleset xml file. You can use dvd_slideshow to generate one for each slideshow or you can create your own for a simple mpeg2 file. [-o ] Directory where the output dvd file system resides [-n "dvd_title"] This string will be placed on the top of the menu page. [-b ] Image to put in the background of the menu. [-e ] Embed a jpeg image in the middle of the screen. The image shows up as a thumnail to the left of the menu buttons. Only one image is allowed. [-a ] Audio file to use in the background of the menu. The full audio file will keep looping. Supports mp3, ogg, or wav. [-mp2] Use MP2 audio by default. AC3 seems to be more stable in hardware players, but requires ffmpeg. [-p] Use PAL format instead of NTSC (untested initial support) [-c] Use continuous method. Each video plays one after another. [-W] Do not generate 50% white background behind menu text. [-w] Use widescreen mode (16:9) instead of default 4:3 aspect ratio. [-L] Use low quality mode for compatibility with the same option in dvd-slideshow. This renders half-resolution menus. [-D] Do not call dvdauthor at the end. Useful when you want to edit your own xml file and pass it to dvdauthor by hand. [-theme themename] Use the given theme when setting variables/colors/etc. Themes are installed in /opt/dvd-slideshow/themes or in a local directory ~/.dvd-slideshow/themes [-vcd]|[-svcd] [ALPHA!] Create vcd .cue and .bin files (requires vcdimager) [-iso] Create iso image with mkisofs when finished. [-nomenu] Do not create a menu. Useful for just finishing the dvdauthor xml file from one video that you want to just start playing when the user puts it into a dvd player. [-nocleanup] Save files in temp directory for debugging. -h or -help Prints this help. -v or -version Prints this help. Requires: dvdauthor 0.6.11 sox >= 14.0.0 mjpegtools (mp2enc, mpeg2enc, ppmtoy4m) ImageMagick (convert) ffmpeg Variables: dvd-menu will read the following variables out of your ~/.dvd-slideshow/dvd-slideshowrc file. The default values are shown menu_bg_color='steelblue' # imagemagick colors or a hex #rrggbb value. menu_title_font_size=40 menu_title_white_height=125 menu_title_location_x=80 menu_title_location_y=50 menu_panel_height=28 # height of each button. Default is slightly bigger than font size menu_panel_width=400 # goes all the way to the right of the screen menu_panel_location_x=420 menu_panel_location_y=175 # distance of the top of the first menu item to the top of the screen menu_button_font_size=21 menu_title_justify=left mpeg_encodr='ffmpeg' # or mpeg2enc ' } if [ $# -lt 1 ]; then help exit 1 fi # [-button