We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf016d7 commit 446a42dCopy full SHA for 446a42d
scripts/check-documentation-videos-format.sh
@@ -1,12 +1,10 @@
1
-for file in ./docs/img/*; do
+for file in ./docs/img/**; do
2
codec=$(mediainfo --Inform="Video;%CodecID%" "$file")
3
if [ "$codec" = "hvc1" ]; then
4
- # Construct the output file name
5
- output_file="${file%.*}_avc1.${file##*.}"
6
- # Convert the file to avc1 (H.264)
7
- ffmpeg -i "$file" -c:v libx264 -c:a copy "$output_file"
8
- rm $file
9
- mv $output_file $file
10
- echo "Fixed codec for $file"
+ echo "Invalid codec for $file"
+ echo "Convert it to avc1 with:"
+ echo "ffmpeg -i $file -c:v libx264 -c:a copy ${file%.*}_avc1.${file##*.}"
+ echo "rm $file"
+ echo "mv $output_file $file"
11
fi
12
done
0 commit comments