this repo has no description

added scripts

+31
+20
scripts/convert_from_hvec_to_h264.ps1
··· 1 + # Define the path to ffmpeg.exe 2 + $ffmpegPath = "C:\Users\jhuet\AppData\Local\Microsoft\WinGet\Packages\Gyan.FFmpeg_Microsoft.Winget.Source_8wekyb3d8bbwe\ffmpeg-7.0.1-full_build\bin\ffmpeg.exe" 3 + 4 + # Get all .mkv files in the current directory 5 + $files = Get-ChildItem -Path . -Filter *.mkv 6 + 7 + foreach ($file in $files) { 8 + # Define the output file name 9 + $outputFile = [System.IO.Path]::ChangeExtension($file.FullName, "h264.mkv") 10 + 11 + # Build the ffmpeg command 12 + $ffmpegCommand = "$ffmpegPath -i `"$($file.FullName)`" -c:v libx264 -c:a copy `"$outputFile`"" 13 + 14 + # Execute the ffmpeg command 15 + Write-Host "Converting $($file.FullName) to $outputFile" 16 + Invoke-Expression $ffmpegCommand 17 + } 18 + 19 + Write-Host "Conversion complete!" 20 +
+11
scripts/convert_from_hvec_to_h264.sh
··· 1 + #!/bin/bash 2 + 3 + # Iterate through all .mkv files in the current directory 4 + for file in *.mkv; do 5 + if [ -e "$file" ]; then 6 + echo "Converting $file..." 7 + ffmpeg -i "$file" -c:v libx264 -crf 23 -preset medium -c:a copy "${file%.*}.mp4" 8 + fi 9 + done 10 + 11 + echo "Conversion complete."