You are not logged in.
Hi,
I have a weird issue over here.
I installed dvd-slideshow from official repos.
then inside my folder TEST:
<code>
[rafael@localhost TEST]$ ls -l
total 1180
-rwxrwxrwx 1 rafael rafael 105346 Jan 26 00:13 NICEFUTURE.INFO_10147541014755.jpg
-rwxrwxrwx 1 rafael rafael 160012 Jan 26 16:59 NICEFUTURE.INFO_10257841025787.jpg
-rwxrwxrwx 1 rafael rafael 378118 Jan 26 16:01 NICEFUTURE.INFO_10285471028551.jpg
-rwxrwxrwx 1 rafael rafael 261051 Jan 26 15:59 NICEFUTURE.INFO_10298171029819.jpg
-rwxrwxrwx 1 rafael rafael 289503 Jan 26 19:16 a.JPG
-rwxrwxrwx 1 rafael rafael 886 Nov 19 05:04 rename.x
</code>
I run
<code>
[rafael@localhost TEST]$ dir2slideshow -t 2 -n TEST -i ./
[dir2slideshow] dir2slideshow version 0.8.4-1
[dir2slideshow] Input directory = .
[dir2slideshow] Slideshow name = TEST
[dir2slideshow] Output file = ./TEST.txt
[dir2slideshow] subtitle=
[dir2slideshow] subtitle2=
[dir2slideshow] background=
[dir2slideshow] title_background=
[dir2slideshow] title=1
[dir2slideshow] kenburns=0
[dir2slideshow] pal=0
[dir2slideshow] output_dir=.
[dir2slideshow] slide_duration=2
[dir2slideshow] sortmethod=name
[dir2slideshow] crossfade=0
[dir2slideshow] wipe=0
[dir2slideshow] title_type=title
[dir2slideshow] themefile=
[dir2slideshow] audio_list=
find: paths must precede expression: NICEFUTURE.INFO_10257841025787.jpg
Usage: find [-H] [-L] [-P] [-Olevel] [-D help|tree|search|stat|rates|opt|exec] [path...] [expression]
[dir2slideshow] Total pictures found = 0
[dir2slideshow] Total audio files found = 0
[dir2slideshow] Total video files found = 0
[dir2slideshow] ERROR: No pictures or videos found. Check your settings and try again.
</code>
thats really weird it doen't find any pictures. Using the same syntax worked perfectly on debian one week ago. Any suggestions?
thanks,
saf
Offline
Read the man page. It doesn't mention '-i' switch anywhere. Maybe Debian uses a different version.
The code tag is not <code>, you have to use square brackets https://bbs.archlinux.org/help.php#bbcode
Last edited by karol (2014-01-28 16:29:48)
Offline
thank,
yes exactly same result without the 'i'
dir2slideshow -t 2 -n TEST ./ I read the man page
Last edited by saf (2014-01-28 16:32:29)
Offline
/usr/bin/dir2slideshow is a bash script, you can try to figure out what's up with the 'find' issue.
Offline
thanks,
coz its for work, i just did the job in another live-distribution. I'm sure it will also work soon under arch again.
Offline
ok, i checked the scipt /usr/bin/dir2slideshow
this is the part inside with find
if [ "$recursive_single" == 1 ] ; then
# need to list all images under this directory.
# put them all in one slideshow
# do not display images under .thumbs or .thumbnails directories
# first, get list of directories:
find "$input_dir" -type d | grep --invert-match -e '\.' | grep --invert-match -e '\/tn$' | sort > "$output_dir"/directory_list.txt
while read directory
do
find "$directory" -maxdepth 1 -type f -prune \( $picture_files \) | sort >> "$output_dir"/imagelist.txt
find "$directory" -maxdepth 1 -type f -prune \( $audio_files \) | sort >> "$output_dir"/audiolist.txt
find "$directory" -maxdepth 1 -type f -prune \( $video_files \) | sort >> "$output_dir"/videolist.txt
# find "$directory" -maxdepth 1 -type f \( $text_files \) -exec ls -1 {} \; | sort >> "$output_dir"/txtlist.txt
done < "$output_dir"/directory_list.txt
elif [ "$recursive_multiple" == 1 ] ; then
echo "[dir2slideshow] -R not supported yet"; exit 1
# do find, then check each file if it is a directory:
else # default case
# ok, we need to follow links, but don't do recursive directory searching
find "$input_dir" -maxdepth 1 \( -type f -o -type l \) \( $picture_files \) | sort > "$output_dir"/imagelist.txt
find "$input_dir" -maxdepth 1 \( -type f -o -type l \) \( $audio_files \) | sort > "$output_dir"/audiolist.txt
find "$input_dir" -maxdepth 1 -type f -prune \( $video_files \) | sort > "$output_dir"/videolist.txt
# find "$input_dir" -maxdepth 1 -type f \( $text_files \) -exec ls -1 {} \; | sort > "$output_dir"/txtlist.txt
fiThe error is called
FIND: Path must precede expression.
Because here is the problem, it doesn't find any pics.
Maybe some order of the find syntax must be changed or but into brackets ?
Last edited by saf (2014-01-29 13:34:00)
Offline
Ok I made a quick and dirty and less usuable, but working!
if [ "$recursive_single" == 1 ] ; then
# need to list all images under this directory.
# put them all in one slideshow
# do not display images under .thumbs or .thumbnails directories
# first, get list of directories:
find "$input_dir" -type d | grep --invert-match -e '\.' | grep --invert-match -e '\/tn$' | sort > "$output_dir"/directory_list.txt
while read directory
do
find ./ -name '*jpg*' | sort >> "$output_dir"/imagelist.txt
find "$directory" -maxdepth 1 -type f -prune \( $audio_files \) | sort >> "$output_dir"/audiolist.txt
find "$directory" -maxdepth 1 -type f -prune \( $video_files \) | sort >> "$output_dir"/videolist.txt
# find "$directory" -maxdepth 1 -type f \( $text_files \) -exec ls -1 {} \; | sort >> "$output_dir"/txtlist.txt
done < "$output_dir"/directory_list.txt
elif [ "$recursive_multiple" == 1 ] ; then
echo "[dir2slideshow] -R not supported yet"; exit 1
# do find, then check each file if it is a directory:
else # default case
# ok, we need to follow links, but don't do recursive directory searching
find ./ -name '*jpg*' | sort > "$output_dir"/imagelist.txt
find "$input_dir" -maxdepth 1 \( -type f -o -type l \) \( $audio_files \) | sort > "$output_dir"/audiolist.txt
find "$input_dir" -maxdepth 1 -type f -prune \( $video_files \) | sort > "$output_dir"/videolist.txt
# find "$input_dir" -maxdepth 1 -type f \( $text_files \) -exec ls -1 {} \; | sort > "$output_dir"/txtlist.txt
fiSomething really changed with find!
before i used it personally always like this
find ./ -name something*
but now i have to use it like this
find ./ -name 'something*'
it would be nice someone looks over the code to make it better, and not like i did only workable for *jpg files.
thanks
Offline
I did comment out the 'find' code from the script and just run a oneliner with a hardcoded path and it did work.
I can't get the video slideshow to get properly created with dvd-slideshow, but maybe you know more about it.
Do you have filenames with spaces?
$ touch "foo bar"
$ find foo*
find: paths must precede expression: foo barOffline