Skip to content

Instantly share code, notes, and snippets.

View Wllew4's full-sized avatar
💻
*click click click clack click clack click click*

Will Janelle Wllew4

💻
*click click click clack click clack click click*
  • Wentworth Institute of Technology
  • Boston, MA
  • 18:16 (UTC -04:00)
View GitHub Profile
@Wllew4
Wllew4 / convert_for_plex.ps1
Last active December 6, 2022 02:04
Convert all files to h.264 for Plex direct play, eliminate transcoding.
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
@Wllew4
Wllew4 / .prettierrc
Created September 14, 2022 02:23
my personal prettier configuration
{
"tabWidth": 4,
"useTabs": true,
"quoteProps": "consistent",
"singleQuote": true,
"semi": false
}
@Wllew4
Wllew4 / tsconfig.json
Created December 14, 2021 04:03
my default tsconfig
{
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"outDir": "./build",
"rootDir": "./src",
"strict": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,