Table of contents

FFmpeg

%3 cluster_c7aa5d11_24b6_4e35_af14_3bfa428cba83 FFmpeg cluster_349974f2_71b6_4cf6_8038_98fd6101c498 Recurring commands _79861a10_7386_4b70_95d0_259dc84da73e Make boomerang video _47f6277e_0c89_4d9b_976a_500175b244ef Create animated GIF and WebP from videos using FFmpeg _de6369f1_f9c6_44ae_9617_56642ab87cb3 Simulating CRT Monitors with FFmpeg (Pt. 1: Color CRTs) _4994460c_7ec1_4549_b7d3_49626449279e Video __0:cluster_c7aa5d11_24b6_4e35_af14_3bfa428cba83->_4994460c_7ec1_4549_b7d3_49626449279e

Recurring commands

Make boomerang video

set -eu

     VIDEO="$1"
     REVERSED="$RANDOM"-rev.mp4
     LIST="$RANDOM"-list.txt
     OUTPUT="$2"


     ffmpeg -i "$VIDEO" -vf reverse -af areverse "$REVERSED"
     echo file "$VIDEO" > "$LIST"
     echo file "$REVERSED" >> "$LIST"
     ffmpeg -f concat -i "$LIST"  -c copy "$OUTPUT"

     rm "$LIST" "$REVERSED"