mirror of
https://github.com/snobu/destreamer.git
synced 2026-01-24 08:52:18 +00:00
Renamed re-encoding parameters, amended README
This commit is contained in:
@@ -62,22 +62,19 @@ export const argv = yargs.options({
|
||||
default: false,
|
||||
demandOption: false
|
||||
},
|
||||
encodeVideo: {
|
||||
alias: 'ev',
|
||||
describe: 'Encode the video with a specify encoder. Set to "none" to disable video.',
|
||||
vcodec: {
|
||||
describe: 'Re-encode video track. Specify FFmpeg codec (e.g. libx265) or set to "none" to disable video.',
|
||||
type: 'string',
|
||||
default: 'copy',
|
||||
demandOption: false
|
||||
},
|
||||
encodeAudio: {
|
||||
alias: 'ea',
|
||||
describe: 'Encode the audio with a specify encoder. Set to "none" to disable audio.',
|
||||
acodec: {
|
||||
describe: 'Re-encode audio track. Specify FFmpeg codec (e.g. libopus) or set to "none" to disable audio.',
|
||||
type: 'string',
|
||||
default: 'copy',
|
||||
demandOption: false
|
||||
},
|
||||
format: {
|
||||
alias: 'F',
|
||||
describe: 'The file format of the output file(s)',
|
||||
type: 'string',
|
||||
default: 'mkv',
|
||||
|
||||
@@ -217,8 +217,8 @@ async function downloadVideo(videoUrls: string[], outputDirectories: string[], s
|
||||
['headers', headers]
|
||||
]));
|
||||
const ffmpegOutput = new FFmpegOutput(outputPath, new Map([
|
||||
argv.encodeAudio === 'none' ? ['an', null] : ['c:a', argv.encodeAudio],
|
||||
argv.encodeVideo === 'none' ? ['vn', null] : ['c:v', argv.encodeVideo]
|
||||
argv.acodec === 'none' ? ['an', null] : ['c:a', argv.acodec],
|
||||
argv.vcodec === 'none' ? ['vn', null] : ['c:v', argv.vcodec]
|
||||
]));
|
||||
const ffmpegCmd = new FFmpegCommand();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user