The swiss army knife of lossless video/audio editing
Merge branch 'master' into ffmpeg-6
Mikael Finstaddde7c225b5c0
diff --cc src/util/outputNameTemplate.jsindex 44495f70,f9e971e2..694235f3--- a/src/util/outputNameTemplate.js+++ b/src/util/outputNameTemplate.js@@@ -1,13 -1,11 +1,13 @@@import i18n from 'i18next';import lodashTemplate from 'lodash/template';- import { isMac, isWindows, hasDuplicates, filenamify, getOutFileExtension, getNumDigits } from '../util';+ import { isMac, isWindows, hasDuplicates, filenamify, getOutFileExtension } from '../util';import isDev from '../isDev';- import { getSegmentTags } from '../segments';+ import { getSegmentTags, formatSegNum } from '../segments';+export const segNumVariable = 'SEG_NUM';+const { parse: parsePath, sep: pathSep, join: pathJoin, normalize: pathNormalize } = window.require('path');// eslint-disable-next-line import/prefer-default-export@@@ -89,17 -85,10 +89,12 @@@ function interpolateSegmentFileName({ treturn compiled(data);}- function formatSegNum(segIndex, segments) {- const numDigits = getNumDigits(segments);- return `${segIndex + 1}`.padStart(numDigits, '0');- }-export function generateOutSegFileNames({ segments, template, forceSafeOutputFileName, formatTimecode, isCustomFormatSelected, fileFormat, filePath, safeOutputFileName, maxLabelLength }) {+ const epochMs = Date.now();+return segments.map((segment, i) => {const { start, end, name = '' } = segment;- const segNum = formatSegNum(i, segments);+ const segNum = formatSegNum(i, segments.length);// Fields that did not come from the source file's name must be sanitized, because they may contain characters that are not supported by the target operating/file system// however we disable this when the user has chosen to (safeOutputFileName === false)diff --cc yarn.lockindex a19ffabb,50c526cf..2e424e41--- a/yarn.lock+++ b/yarn.lock@@@ -6210,8 -6434,8 +6441,8 @@@ __metadataeslint-plugin-react: ^7.28.0eslint-plugin-react-hooks: ^4.3.0evergreen-ui: ^6.13.1- execa: ^5.0.0+ execa: ^7.1.1- fast-xml-parser: ^4.0.3+ fast-xml-parser: ^4.2.4file-type: 16file-url: ^3.0.0framer-motion: ^9.0.3