Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
wiwikuan authored Sep 1, 2024
1 parent f64825f commit a6970dd
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions png-seq-to-prores.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/bin/bash

# Check if an output filename was provided
if [ $# -eq 0 ]; then
echo "Error: No output filename provided"
echo "Usage: $0 <output_filename>"
exit 1
fi

# Get the output filename from the first argument
output_file="$1"

# Check if the output filename ends with .mov, if not, append it
if [[ ! $output_file =~ \.mov$ ]]; then
output_file="${output_file}.mov"
fi

# Run the FFmpeg command
ffmpeg -framerate 30 -i %06d.png -c:v prores_ks -profile:v 4444 -qscale:v 5 -vendor apl0 -pix_fmt yuva444p10le "$output_file"

# Check if FFmpeg command was successful
if [ $? -eq 0 ]; then
echo "Conversion completed successfully. Output file: $output_file"
else
echo "Error: FFmpeg command failed"
exit 1
fi

0 comments on commit a6970dd

Please sign in to comment.