Compare commits

..
2 Commits
Author SHA1 Message Date
nortega e1ba233753 sync-camera: copy MOV file and *then* convert.
This is important to at least not keep files on the device for too long.
2025-04-11 12:53:14 +02:00
nortega cbb8d1a9e8 launch-sway: Add script. 2025-04-11 12:53:01 +02:00
2 changed files with 12 additions and 1 deletions
Executable
+7
View File
@@ -0,0 +1,7 @@
#!/bin/bash
#export SDL_VIDEODRIVER=wayland
export _JAVA_AWT_WM_NONREPARENTING=1
export QT_QPA_PLATFORM=wayland
export XDG_CURRENT_DESKTOP=sway
export XDG_SESSION_DESKTOP=sway
exec sway
+5 -1
View File
@@ -88,8 +88,12 @@ do
OUTPUT_PATH="$OUTPUT_DIR/${INPUT_FILE##*/}"
if ! [ -f "$OUTPUT_PATH" ]
then
echo "Copying $INPUT_FILE to ${OUTPUT_PATH} ..."
cp "${INPUT_FILE}" "${OUTPUT_PATH}"
echo "Converting ${INPUT_FILE} to MP4 at ${OUTPUT_PATH::-4}.mp4 ..."
ffmpeg -loglevel fatal -nostdin -i "$INPUT_FILE" "${OUTPUT_PATH::-4}.mp4"
ffmpeg -loglevel fatal -nostdin -i "$OUTPUT_PATH" "${OUTPUT_PATH::-4}.mp4"
echo "Removing temporary file $OUTPUT_PATH ..."
rm "$OUTPUT_PATH"
fi
if [ $REMOVE_FILES -eq 1 ]