mirror of
https://github.com/snobu/destreamer.git
synced 2026-01-28 02:42:20 +00:00
Add option to change encoder and container (#114)
This change enables the user to select a specific container and/or encoder for the output. As this change forces ffmpeg to use copy by default, destreamer now uses mkv as default output. This might be needed when MS Streams doesn't offer a mp4 compatible stream. mkv offers much more support.
This commit is contained in:
@@ -61,6 +61,27 @@ export const argv = yargs.options({
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
demandOption: false
|
||||
},
|
||||
encodeVideo: {
|
||||
alias: 'ev',
|
||||
describe: 'Encode the video with a specify encoder. 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.',
|
||||
type: 'string',
|
||||
default: 'copy',
|
||||
demandOption: false
|
||||
},
|
||||
format: {
|
||||
alias: 'F',
|
||||
describe: 'The file format of the output file(s)',
|
||||
type: 'string',
|
||||
default: 'mkv',
|
||||
demandOption: false
|
||||
}
|
||||
})
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user