Edit: wäre schön, wenn Leute mit FBC Tuner dies mal testen könnten.
Ich habe eine Zgemma H7C

Code: Alles auswählen
#!/bin/sh
# ffpip 003 von ice32
# ffpip 002 von Don de Deckelwech
function ffplay() {
if [[ "$osd_res" == 0 ]]; then
x_scale=320
y_scale=240
x_offset=1280-"$x_scale"-"$x_pos"
fi
nice -n -1 ffmpeg -nostdin -loglevel panic -fflags +genpts -i http://"$ip_box":"$port"/id="$channel" \
-map 0:v -c:v rawvideo -vf scale="$x_scale":"$y_scale":force_original_aspect_ratio=disable \
-f:v yadif=0:0:0 -sws_flags fast_bilinear \
-vsync -1 -an -sn -dn \
-r 25 -pix_fmt bgra -yoffset 15 -xoffset "$x_offset" \
-threads 2 -f fbdev /dev/fb0 \
&
}
function ffkill() {
kill -TERM "$ffmpid"
}
#ffmsg="timeout=2 hide=1 refresh=1"
ffmpid=$(pidof ffmpeg)
osd_res=$(pzapit -osd)
channel=$(pzapit -gi | awk '{print $1}')
ip_box=$(ifconfig |grep -m 1 'inet addr'| cut -d':' -f2| awk '{print $1}')
port=31339
x_scale=6*80
y_scale=4.5*80/1.3
x_pos=15
x_offset=1920-"$x_scale"-"$x_pos"
msgbox title="FFPIP" select="Starten,tauschen,Beenden" cyclic=0 order=1 msg="~cAuswahl" refresh=1
auswahl="$?"
case "$auswahl" in
1) if [ -n "$ffmpid" ]; then
msgbox popup="FFPIP läuft schon.." timeout=2 hide=1 refresh=1
rcsim KEY_EXIT
exit
fi
msgbox popup="FFPIP wird gestartet..." timeout=2 hide=1 refresh=1
ffplay
;;
2) ffget=$(ps aux | grep id= | cut -d'=' -f2 | awk '{print $1}')
ffkill
ffplay
msgbox popup="FFPIP tausche Bild..." timeout=2 hide=1 refresh=1
pzapit -zi "$ffget"
;;
3) ffkill
msgbox popup="FFPIP wird beendet..." timeout=2 hide=1 refresh=1
;;
esac
rcsim KEY_EXIT
exit 0
Code: Alles auswählen
3) ffkill
msgbox popup="PIP wird beendet..." timeout=2 hide=1 refresh=1
;;
esac
done
exit 0
Ich stelle nicht infrage, dass du recht hast, aber mit "done" schließt man in Scripten Schleifen ab, die vorher mit "do" eröffnet wurden. Und in dem Script sind keine Schleifen drin. Auf den ersten Blick sieht das also falsch aus.
danke für deine erklärung...war ja nur ein vorschlag für ein vorübergehendes workaround.