I'd like to use mplayer to play a video in an infinity loop with no interrupts between. So I tryied it with a mkfifo pipe. Like this one here.
mkfifo pipe
(cat pipe | mplayer -cache 10000 -cache-min 0 -really-quiet - ) &
cat video.avi >> pipe
until [ -e /tmp/stop_loop ] #stop file
do
sleep 20 #video.avi is 25sec long
cat video.avi >> pipe #fill pipe with the video again slightly before the first video ends
done
Anyone an idea why this don't work? Somehow the pipe can be filled only one time. Or is it because of the video format .avi? But I tried it with .mp4 whith still no luck too.