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 64c306b commit 3727b59Copy full SHA for 3727b59
scripts/check-documentation-videos-format.sh
@@ -1,9 +1,11 @@
1
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
echo "Invalid codec for $file"
7
echo "Convert it to avc1 with:"
- echo "ffmpeg -i $file -c:v libx264 -c:a copy ${file%.*}_avc1.${file##*.}"
8
+ echo "ffmpeg -i $file -c:v libx264 -c:a copy ${output_file}"
9
echo "rm $file"
10
echo "mv $output_file $file"
11
exit 1;
0 commit comments