├── .github ├── funding.yml └── workflows │ └── build.yml ├── .gitignore ├── .husky ├── .gitignore └── pre-commit ├── LICENSE.md ├── README.md ├── package.json ├── src ├── cli.ts ├── create-ffmpeg-shell-commands │ ├── create-ffmpeg-flags │ │ ├── __tests__ │ │ │ ├── crop.ts │ │ │ ├── format.ts │ │ │ ├── fps.ts │ │ │ ├── resize.ts │ │ │ ├── reverse.ts │ │ │ ├── rotate.ts │ │ │ ├── speed.ts │ │ │ ├── trim.ts │ │ │ └── volume.ts │ │ ├── create-ffmpeg-flags.ts │ │ ├── default-options.ts │ │ └── utilities │ │ │ ├── format-float.ts │ │ │ ├── map-rotate-option-to-video-filter.ts │ │ │ ├── map-speed-option-to-audio-filter.ts │ │ │ └── map-speed-option-to-video-filter.ts │ └── create-ffmpeg-shell-commands.ts ├── escape-file-path.ts ├── execute-shell-commands.ts ├── parse-option-value │ ├── parse-crop-value.ts │ ├── parse-resize-value.ts │ └── parse-trim-value.ts ├── types.ts └── vdx.ts ├── tsconfig.json └── yarn.lock /.github/funding.yml: -------------------------------------------------------------------------------- 1 | custom: https://paypal.me/yuanqinglim 2 | -------------------------------------------------------------------------------- /.github/workflows/build.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuanqing/vdx/HEAD/.github/workflows/build.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuanqing/vdx/HEAD/.gitignore -------------------------------------------------------------------------------- /.husky/.gitignore: -------------------------------------------------------------------------------- 1 | _ 2 | -------------------------------------------------------------------------------- /.husky/pre-commit: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | . "$(dirname "$0")/_/husky.sh" 3 | 4 | yarn run lint-staged 5 | -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuanqing/vdx/HEAD/LICENSE.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuanqing/vdx/HEAD/README.md -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuanqing/vdx/HEAD/package.json -------------------------------------------------------------------------------- /src/cli.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuanqing/vdx/HEAD/src/cli.ts -------------------------------------------------------------------------------- /src/create-ffmpeg-shell-commands/create-ffmpeg-flags/__tests__/crop.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuanqing/vdx/HEAD/src/create-ffmpeg-shell-commands/create-ffmpeg-flags/__tests__/crop.ts -------------------------------------------------------------------------------- /src/create-ffmpeg-shell-commands/create-ffmpeg-flags/__tests__/format.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuanqing/vdx/HEAD/src/create-ffmpeg-shell-commands/create-ffmpeg-flags/__tests__/format.ts -------------------------------------------------------------------------------- /src/create-ffmpeg-shell-commands/create-ffmpeg-flags/__tests__/fps.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuanqing/vdx/HEAD/src/create-ffmpeg-shell-commands/create-ffmpeg-flags/__tests__/fps.ts -------------------------------------------------------------------------------- /src/create-ffmpeg-shell-commands/create-ffmpeg-flags/__tests__/resize.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuanqing/vdx/HEAD/src/create-ffmpeg-shell-commands/create-ffmpeg-flags/__tests__/resize.ts -------------------------------------------------------------------------------- /src/create-ffmpeg-shell-commands/create-ffmpeg-flags/__tests__/reverse.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuanqing/vdx/HEAD/src/create-ffmpeg-shell-commands/create-ffmpeg-flags/__tests__/reverse.ts -------------------------------------------------------------------------------- /src/create-ffmpeg-shell-commands/create-ffmpeg-flags/__tests__/rotate.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuanqing/vdx/HEAD/src/create-ffmpeg-shell-commands/create-ffmpeg-flags/__tests__/rotate.ts -------------------------------------------------------------------------------- /src/create-ffmpeg-shell-commands/create-ffmpeg-flags/__tests__/speed.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuanqing/vdx/HEAD/src/create-ffmpeg-shell-commands/create-ffmpeg-flags/__tests__/speed.ts -------------------------------------------------------------------------------- /src/create-ffmpeg-shell-commands/create-ffmpeg-flags/__tests__/trim.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuanqing/vdx/HEAD/src/create-ffmpeg-shell-commands/create-ffmpeg-flags/__tests__/trim.ts -------------------------------------------------------------------------------- /src/create-ffmpeg-shell-commands/create-ffmpeg-flags/__tests__/volume.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuanqing/vdx/HEAD/src/create-ffmpeg-shell-commands/create-ffmpeg-flags/__tests__/volume.ts -------------------------------------------------------------------------------- /src/create-ffmpeg-shell-commands/create-ffmpeg-flags/create-ffmpeg-flags.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuanqing/vdx/HEAD/src/create-ffmpeg-shell-commands/create-ffmpeg-flags/create-ffmpeg-flags.ts -------------------------------------------------------------------------------- /src/create-ffmpeg-shell-commands/create-ffmpeg-flags/default-options.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuanqing/vdx/HEAD/src/create-ffmpeg-shell-commands/create-ffmpeg-flags/default-options.ts -------------------------------------------------------------------------------- /src/create-ffmpeg-shell-commands/create-ffmpeg-flags/utilities/format-float.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuanqing/vdx/HEAD/src/create-ffmpeg-shell-commands/create-ffmpeg-flags/utilities/format-float.ts -------------------------------------------------------------------------------- /src/create-ffmpeg-shell-commands/create-ffmpeg-flags/utilities/map-rotate-option-to-video-filter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuanqing/vdx/HEAD/src/create-ffmpeg-shell-commands/create-ffmpeg-flags/utilities/map-rotate-option-to-video-filter.ts -------------------------------------------------------------------------------- /src/create-ffmpeg-shell-commands/create-ffmpeg-flags/utilities/map-speed-option-to-audio-filter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuanqing/vdx/HEAD/src/create-ffmpeg-shell-commands/create-ffmpeg-flags/utilities/map-speed-option-to-audio-filter.ts -------------------------------------------------------------------------------- /src/create-ffmpeg-shell-commands/create-ffmpeg-flags/utilities/map-speed-option-to-video-filter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuanqing/vdx/HEAD/src/create-ffmpeg-shell-commands/create-ffmpeg-flags/utilities/map-speed-option-to-video-filter.ts -------------------------------------------------------------------------------- /src/create-ffmpeg-shell-commands/create-ffmpeg-shell-commands.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuanqing/vdx/HEAD/src/create-ffmpeg-shell-commands/create-ffmpeg-shell-commands.ts -------------------------------------------------------------------------------- /src/escape-file-path.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuanqing/vdx/HEAD/src/escape-file-path.ts -------------------------------------------------------------------------------- /src/execute-shell-commands.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuanqing/vdx/HEAD/src/execute-shell-commands.ts -------------------------------------------------------------------------------- /src/parse-option-value/parse-crop-value.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuanqing/vdx/HEAD/src/parse-option-value/parse-crop-value.ts -------------------------------------------------------------------------------- /src/parse-option-value/parse-resize-value.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuanqing/vdx/HEAD/src/parse-option-value/parse-resize-value.ts -------------------------------------------------------------------------------- /src/parse-option-value/parse-trim-value.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuanqing/vdx/HEAD/src/parse-option-value/parse-trim-value.ts -------------------------------------------------------------------------------- /src/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuanqing/vdx/HEAD/src/types.ts -------------------------------------------------------------------------------- /src/vdx.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuanqing/vdx/HEAD/src/vdx.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuanqing/vdx/HEAD/tsconfig.json -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuanqing/vdx/HEAD/yarn.lock --------------------------------------------------------------------------------