ffmpeg -i input.mp4 -f srt -i input.srt -map 0:0 -map 0:1 -map 1:0 -c:v copy \
-c:a copy -c:s mov_text 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
ffmpeg -i input.mp4 -vcodec libx265 -crf 28 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
// Usage: pnpm vue-codemod "client/**/*.vue" -t codemods/options-to-composition.cjs | |
// TODO: add support for "data" option | |
const IGNORED_OPTIONS = ['name', 'components']; | |
const LIFECYCLE_METHODS = { | |
created: 'onCreated', | |
beforeMount: 'onBeforeMount', | |
mounted: 'onMounted', |
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
# Add this function to ~/.bashrc | |
function open() { | |
cmd.exe /C start `wslpath -w "$1"` | |
} | |
alias openurl='cmd.exe /C start' |