This file contains 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
@echo off | |
rem Saves information about the videos on the requested YouTube channel to a JSON file | |
set YTDLP="c:\Program Files\yt-dlp\yt-dlp.exe" | |
set OUTPUT_FOLDER="d:\My Files\" | |
set TM=%TIME:~0,2%%TIME:~3,2%%TIME:~6,2% | |
set TM=%TM: =0% | |
set DT=_%Date:~6,4%%Date:~3,2%%Date:~0,2%-%TM% | |
for %%i in (%OUTPUT_FOLDER%) do (set OUTPUT_FOLDER=%%~di%%~pi%DT%\) |
This file contains 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
'--------------------------------------------------------------------------------------------------' | |
' Convert Firefox bookmarks file (JSON format) to plain text (v.20211212) ' | |
'--------------------------------------------------------------------------------------------------' | |
set-executionpolicy unrestricted -scope currentuser | |
$erroractionpreference = "silentlycontinue"; remove-variable *; $erroractionpreference = "continue" | |
$inputFile = "bookmarks.json" | |
$outputFile = "bookmarks.txt" | |
$separator = "`t" |
This file contains 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
'--------------------------------------------------------------------------------------------------' | |
' ee.fastvid (v.20211211) Simple video crop, resize, deinterlace and set the aspect ratio ' | |
'--------------------------------------------------------------------------------------------------' | |
set-executionpolicy unrestricted -scope currentuser | |
$erroractionpreference = "silentlycontinue"; remove-variable *; $erroractionpreference = "continue" | |
$ffmpegDir = "p:\!programs\!consoles\ffmpeg" | |
$outputDir = "c:\!downloads" | |
$outputFormat = ".mp4" | |
$audioCompress = "-c:a aac" | |
$videoCompress = "-c:v h264_qsv -q:v 22" |
This file contains 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
@echo off | |
set DIROUTPUT="d:\Recordings" | |
set FFMPEG="c:\Program Files\FFmpeg\ffmpeg.exe" | |
rem TO LIST AVAILABLE DEVICES: | |
rem %FFMPEG% -hide_banner -list_devices true -f dshow -i dummy | |
rem pause & exit | |
rem SET DEVICE NAME: |
This file contains 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
@echo off | |
set OUTPUTFOLDER="d:\downloads" | |
set CURL="c:\Program Files\Curl\curl.exe" | |
set /p URL=Enter URL: | |
set TM=%TIME:~0,2%%TIME:~3,2%%TIME:~6,2% | |
set TM=%TM: =0% | |
set OUTPUT="%OUTPUTFOLDER%\%Date:~6,4%%Date:~3,2%%Date:~0,2%-%TM%.dat" | |
%CURL% -L "%URL%" --remote-time -o %OUTPUT% |
This file contains 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
'-------------------------------------------------------------------------------------------------' | |
' renameFoldersWithItsLastEditDates (2020-11-08) ' | |
' Renames folders with the last write time of their most recent files ' | |
' [directoryName] -> [directoryName]_[YYYYMMDD-HHmmss] ' | |
'-------------------------------------------------------------------------------------------------' | |
Set-ExecutionPolicy Unrestricted -Scope CurrentUser | |
$erroractionpreference = "SilentlyContinue"; Remove-Variable *; $erroractionpreference = "Continue" | |
$pathWithFoldersToRename = "c:\FoldersToRename\" |
This file contains 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
"--------------------------------------------------" | |
set-executionpolicy unrestricted -scope currentuser | |
$erroractionpreference = "silentlycontinue"; remove-variable *; $erroractionpreference = "continue" | |
$objShell = new-object -comobject shell.application | |
$folderFFprobe = "C:\Program Files\FFmpeg" | |
$folderMedia = "D:\My Documents" | |
"Get media info for *.mp4 files with FFprobe and standard Windows shell" | |
"Folder: $folderMedia" | |
"--------------------------------------------------" |
This file contains 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
#------------------------------------------------------------------------------ | |
# Listing files contained inside zip archives of a specified folder | |
#------------------------------------------------------------------------------ | |
#<#---------------------------------------------------------------------------- | |
function ListFilesInZips ([string]$inputFolder) | |
{ | |
add-type -assembly System.IO.Compression.FileSystem | |
foreach ($zipFile in (get-childitem $inputFolder -filter '*.zip')) |
This file contains 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
@echo off | |
set FOLDEROUTPUT=c:\output | |
set FOLDERFFMPEG=c:\programs\ffmpeg | |
set VIDEOPRESET_1=-preset ultrafast | |
set VIDEOPRESET_2=-vcodec h264_qsv -q 20 | |
if [%1]==[] goto noargument | |
:begin | |
cls |