How to create bash script with ffmpeg to flip a dir of vids 180, then stitch together without losing vid length

Viewed 21

I'm trying to make a bash script in linux to flip a bunch of AVI files 180 degrees, then stitch them together without losing the length of the vids. My code works, but it truncates each vid and makes 60 10sec vids, which should be 600 seconds of video, down to about 11 seconds.

I removed the transpose to flip the vids and now I'm getting the correct vid length. So it works, but I have to flip the vid in the video player.

>videos.txt

files=DSCF*.AVI

for f in $files
do
    #make list of vids, copy to videos.txt
    echo "file '$f'" >> videos.txt;
    echo "duration 10.0" >> videos.txt;
    
done

#stitch all vids together
ffmpeg -f concat -safe 0 -i videos.txt -c copy bigvid.AVI
0 Answers
Related