👐 foo: too lazy to come up with a helpful commit message :)

This commit is contained in:
2025-12-16 21:45:53 +01:00
parent 8fc4fd63ff
commit 809de7f5a3
28 changed files with 61 additions and 52 deletions

View File

@@ -1,5 +1,20 @@
#!/usr/bin/env bash
# Description:
# Play the video embedded in a live photo file (or so-called Motion Photo).
# The literal tags differ between manufacturers, so this script looks for
# the common 'ftyp' box that indicates the start of an MP4 video stream
# instead of "MotionPhotoVideo" or "EmbeddedVideo" or something.
#
# Requirements:
# - mpv or vlc media player installed.
#
# Usage:
# - playlive <file>
# - case `config/scripts/.local/share/applications/playlive.desktop` is installed,
# right-click on a live photo file in file manager and choose "Open With..." ->
# "Play Live Photo".
set -euo pipefail
if [ -z "${1:-}" ]; then