Pipe for scripts<->application communication, write UYVY files

Got pipe to work between movie subprocess and main code. We use it to
display progress from the scripts. Write "gstreamer raw" files, that
can be worked with easily from gstreamer.
This commit is contained in:
Pavel Machek
2024-05-01 22:47:40 +02:00
parent df7e7e9eed
commit f0d8834b4a
4 changed files with 102 additions and 14 deletions

View File

@@ -22,8 +22,8 @@ jpegize() {
done
for DNG in *.dng; do
PERC=$[(100*$I)/$NUM]
echo $PERC
PERC=$[(50*$I)/$NUM]
echo Message: ${PERC}%
BASE=${DNG%%.dng}
# -w Use camera white balance
# +M use embedded color matrix
@@ -67,10 +67,13 @@ elif [ "-$1" == "-stop" ]; then
mkdir $GIGA_DIR/sm
kill `cat $2/audio.pid`
jpegize $2 # | zenity --progress "--text=Converting, phase 1, dng -> jpeg" --time-remaining
echo Message: Mp
cd $GIGA_DIR/sm
@LIBEXECDIR@/mpegize.py convertall $GIGA_DIR/ $FPS
echo Message: Cl
mv $GIGA_DIR/smo/*.mp4 $DEST_NAME
rm -r $GIGA_DIR
echo Message: Ok
else
echo "Unrecognized command"
fi