mkotyk / qt428

Wrapper for DVR Live video streaming
Apache License 2.0
4 stars 1 forks source link

Detect when mplayer or ffplay has exited #5

Open jidanni opened 7 years ago

jidanni commented 7 years ago

Here's how I run the program:

set -ue './qt428 -c 5 59.126.105.57'; cd qt428-master && $* |\
( mplayer -fps 25 -demuxer h264es -nocache -nolirc -really-quiet -;\
pkill -xf "$*")

I need the pkill because ./qt428 cannot detect that I have finished watching already and have typed 'q' into mplayer. It just keeps using the network sending the results nowhere. So I have to kill it.

jidanni commented 7 years ago

However when I limit to just one frame.

cd qt428-master; for i do ./qt428 -c $i 59.126.105.57|
mplayer -fps 25 -demuxer h264es -nocache -nolirc -really-quiet \
-frames 1 -vo jpeg:outdir=/tmp/camera$i -; done

there is no problem stopping.