Dirk Meyer wrote: > Morten Nilsen wrote: >> >> I would like for this sort of thing to be handled automatically without >> anyone having to create special files for each movie on the server... >> And I'm sure I'm not alone in wanting such a feature... > > On the todo list. >
thanks! I made a script, and here it is for the world to point and laugh at ;) ---- fxdgen.sh ---- #!/bin/bash if [ "$1" == "-p" ]; then title=`echo $2 | sed -e "s/ .of.\....//" -e "s/\.\///"`; count=`echo $2 | sed -e "s/.* .of\(.\)\..../\\1/"`; format=`echo $2 | sed -e "s/.* .of.\.\(...\)/\\1/"`; number=1; cat > "${title}.fxd" << EOF <freevo> <movie title="${title}"> <video> EOF while [ $number -le $count ]; do thisfile="$title ${number}of${count}.${format}" if [ -f "$thisfile" ]; then echo " <file id=\"part${count}\" name=\"${title}, Part ${count}\">${thisfile}</file>" >> "${title}.fxd" else echo "File not found: $thisfile" rm "${title}.fxd" exit 1; fi (( number++ )) done cat >> "${title}.fxd" << EOF </video> </movie> </freevo> EOF else find . -name "* 1of?.*" -exec $0 -p "{}" \; fi ---- eof ---- Seems to generate correct syntax files, possible features to add include auto-adding a cover image if present, and be a little mor fuzzy with piecing together the bits... Right now, ou need to follow this scheme for this script to work; Some Movie 1of2.avi Some Movie 2of2.avi Some Other Movie 1of2.mpg Some Other Movie 2of2.mpg Resulting in the files; Some Movie.fxd Some Other Movie.fxd The script will fail to see movies with more than 3 letters in the extension, so .mpeg will not work. xofy must be immediately followed by .xxx, or the script will ignore them. if the script doesn't find all parts of a movie, it won't generate the .fxd for that movie. It should be noted that I haven't actually tested any output from the script in freevo, just tried to make it adhere to the standard documented on the web. Cheers, -- Morten ------------------------------------------------------- This SF.net email sponsored by: Enterprise Linux Forum Conference & Expo The Event For Linux Datacenter Solutions & Strategies in The Enterprise Linux in the Boardroom; in the Front Office; & in the Server Room http://www.enterpriselinuxforum.com _______________________________________________ Freevo-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freevo-users