This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Get-ChildItem -Recurse -File | ForEach-Object { | |
$tempName = "$($PSItem.Directory)\temp_$($PSItem.Name)" | |
$realName = $PSItem.FullName | |
$codec = & ffprobe.exe -v error -select_streams v:0 -show_entries stream=codec_name -of default=noprint_wrappers=1:nokey=1 $PSItem | |
if ($codec -eq "hevc") { | |
Write-Output "$codec : $PSItem" | |
& ffmpeg.exe -hwaccel cuda -i $realName -pix_fmt yuv420p -map 0:v:0 -map 0:a? -map 0:s? -c:v h264_nvenc -c:a copy -c:s copy $tempName 2>&1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"tabWidth": 4, | |
"useTabs": true, | |
"quoteProps": "consistent", | |
"singleQuote": true, | |
"semi": false | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"compilerOptions": { | |
"target": "es5", | |
"module": "commonjs", | |
"outDir": "./build", | |
"rootDir": "./src", | |
"strict": true, | |
"esModuleInterop": true, | |
"skipLibCheck": true, | |
"forceConsistentCasingInFileNames": true, |