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
:: Extract main audio track as AC3 for mkvtoolnix adding | |
:: Opens mvktoolnix with original mkv file to then add ac3 manually | |
:: Recommended: create Scripts folder in your user folder and then copy MKVToolnix portable there | |
:: This will retain all original video/audio/subtitle streams and make ac3 versions of | |
:: all audiostreams in mka form and then open mkvtoolnix with said files to then multiplex. | |
:: seamonkey420 | |
:: 1/14/2025 | |
::------------ | |
setlocal EnableExtensions DisableDelayedExpansion |
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
:: below will encode audio as AAC (nice for eac3 audio tracks!) | |
:: move ffmpmeg to c:\windows\system32 | |
::---------------------------------------- | |
setlocal EnableExtensions DisableDelayedExpansion | |
::get filename and extensions as variables | |
set _name=%~n1 | |
set _ext=%~x1 | |
ffmpeg -i "%_name%%_ext%" -map 0:v -c:v copy -map 0:a -c:a aac -ac 6 -b:a 640k -map 0:s? -c:s copy "%_name%.NEW%_ext%" |
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
:: below command will retain original audio stream and then create 2nd stream encoded in ac3 | |
:: move ffmpmeg to c:\windows\system32 | |
:: -vf "crop=trunc(iw/2)*2:trunc(ih/2)*2" command added to avoid errors with cropping | |
:: this will retain all prev audio streams and just add a new ac3 stream (converts first audio stream to ac3) | |
:: | |
:: THIS does take a LONG TIME and would not recommend this method, use my extract audio as ac3 for fastest way! | |
:: Also my mapping may be messed up on this one too, def test on test files first! | |
::---------------------------------------- | |
setlocal EnableExtensions DisableDelayedExpansion | |
::get filename and extensions as variables |
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
:: Dec 2024, Seamonkey420 | |
:: This is just a note for myself on some common ffmpeg commands i use for scripting. | |
:: Used in my .cmd/.bat script files on mkv files. | |
:: change %~1 to a proper variable, otherwise you can add commands to a batch file and then drag files to file to run! | |
:: add this to top of batch files!!: | |
:: setlocal EnableExtensions DisableDelayedExpansion | |
::----------------------------------------------------- | |
::Convert original audio streams to AAC 6 Channel, retains original video and subtitles streams |
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
:: Examples of converting mov to mp4 via ffmpeg | |
:: near lossless (visually) | |
ffmpeg -i input.mov -crf 18 output.mp4 | |
:: lossless (huge file sizes) | |
ffmpeg -i input.mov -crf 0 output.mp4 | |
:: compatibility (possible washout of colors though!) | |
ffmpeg -i input.mov -crf 18 -vf format=yuv420p output.mp4 |
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
Yoga Android 7.1.1 update notes! | |
Models: YB1-X90F and YB1-X90L (LTE needs to be added back, not covered here) | |
seamonkey420 | |
created: 9/21/2024 | |
updated: 10/16/2024 | |
Wait to plug in yoga to pc! | |
Pre-req work: |
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
version: "2.1" | |
services: | |
wirepod: | |
container_name: wirepod | |
image: thecrystalcross/wirepod-server:latest | |
hostname: escapepod | |
ports: | |
- 8080:8080 | |
labels: | |
- "traefik.enable=true" |
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
for %%a in (*.avi) do ffmpeg -fflags +genpts -i "%%a" -c copy -map 0 "%%a.mp4" | |
pause |
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
:: Meant to be called by a context menu item or can drag and drop movies on .cmd/.bat file with commands | |
:: This will use ffmpeg to retain original video and audio streams (ie very fast, full quality retained) of a mkv file | |
:: and remove all subtitles or just english ones. | |
:: | |
:: if you want to use command on its own, use command below and replace filename with file name | |
:: ffmpeg -i "filename -map 0:v -c:v copy -map 0:a -c:a copy -map 0:m:language:eng -c:s copy "%filename.new" | |
:: Be sure to delete or comment out (using ::) the command you dont plan to use!! | |
setlocal EnableExtensions DisableDelayedExpansion |
NewerOlder