1
0
mirror of https://github.com/mifi/lossless-cut.git synced 2024-11-22 10:22:31 +01:00
lossless-cut/src/ffmpeg-parameters.js
Mikael Finstad e937cd0979
improvements
- make zoom exponential
- make segments copyable - fixes #719
2022-12-30 12:47:39 +08:00

35 lines
1.1 KiB
JavaScript

import i18n from 'i18next';
export const blackdetect = () => ({
black_min_duration: {
value: '2.0',
hint: i18n.t('Set the minimum detected black duration expressed in seconds. It must be a non-negative floating point number.'),
},
picture_black_ratio_th: {
value: '0.98',
hint: i18n.t('Set the threshold for considering a picture "black".'),
},
pixel_black_th: {
value: '0.10',
hint: i18n.t('Set the threshold for considering a pixel "black".'),
},
});
export const silencedetect = () => ({
noise: {
value: '-60dB',
hint: i18n.t('Set noise tolerance. Can be specified in dB (in case "dB" is appended to the specified value) or amplitude ratio. Default is -60dB, or 0.001.'),
},
duration: {
value: '2.0',
hint: i18n.t('Set minimum silence duration that will be converted into a segment.'),
},
});
export const sceneChange = () => ({
minChange: {
value: '0.3',
hint: i18n.t('Minimum change between two frames to be considered a new scene. A value between 0.3 and 0.5 is generally a sane choice.'),
},
});