Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- VDIR="/root/DreamScene"
- SAVEIFS=$IFS
- IFS=$'\n\b'
- for (( ; ; ))
- do
- LIST=""
- for file_list in $(ls -1 $VDIR | sort -R); do
- time_c_f=`ffprobe -i $VDIR/$file_list -show_format -v quiet | sed -n 's/duration=//p' | sed 's/[,.]/\ /g' | awk '{print $1}'`
- time_c_f=`echo $time_c_f|sed 's/^0*//'`
- count=$(( 600 / $time_c_f ))
- LIST="$LIST --\{ --loop-file=$count '$VDIR/$file_list' --\} "
- # LIST="$LIST $VDIR/$file_list -loop $count"
- done
- xwinwrap -ni -fs -s -st -sp -b -nf -- mpv --x11-name dreamscene --fs -vo opengl-hq --hwdec=vaapi -wid WID `echo $LIST | xargs -n 1 echo` 2>/dev/null
- # xwinwrap -ni -fs -s -st -sp -b -nf -- mplayer -nosound -fs -vo vdpau -fixed-vo -wid WID -really-quiet `echo $LIST | xargs -n 1 echo` 1>/dev/null 2>/dev/null
- done
- IFS=$SAVEIFS
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement