summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSt33v <github@f3rr3t.com>2026-06-09 14:05:18 +1000
committerSt33v <github@f3rr3t.com>2026-06-09 14:05:18 +1000
commit71a0aecb76984347292199db328142bef4807088 (patch)
tree6d546840c07a77ce533be2895bdb65ecf8154793
parent421b7cbb42341bf2ce6ce99afe782ac89738519d (diff)
Force rgba in ffmpeg apng pipeline
Composited frames are palette-based PNGs with slightly different palettes per frame; ffmpeg's apng encoder rejected this with "Input contains more than one unique palette." Converting to rgba in the filter chain gives all frames the same pixel format. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
-rwxr-xr-xradarFetch.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/radarFetch.sh b/radarFetch.sh
index 4ba302c..84b0f82 100755
--- a/radarFetch.sh
+++ b/radarFetch.sh
@@ -190,7 +190,7 @@ printf "file '%s'\n" "${composited[$last_idx]}" >> "$LIST_FILE"
ffmpeg -y -hide_banner -loglevel error \
-f concat -safe 0 -i "$LIST_FILE" \
- -plays 0 -f apng "$TMP_APNG"
+ -plays 0 -vf format=rgba -f apng "$TMP_APNG"
install -m 644 "$TMP_APNG" "$PUBLISH_PATH"
rm -f "$TMP_APNG"