Дефолтный ФПС 30 + ограничения максимального в 120 и целевого видео

This commit is contained in:
2025-11-11 21:25:37 +03:00
parent 2da2b584fa
commit 8cf4210d20
4 changed files with 56 additions and 50 deletions

View File

@@ -140,17 +140,26 @@ async function convertToDashInternal(
// Show errors if any
if (result.errors.length > 0) {
console.warn('\n⚠️ Profile warnings:');
console.warn('\n Profile errors:');
for (const error of result.errors) {
console.warn(` - ${error}`);
}
console.warn('');
}
// Show warnings if any
if (result.warnings.length > 0) {
console.warn('\n⚠ Profile warnings:');
for (const warning of result.warnings) {
console.warn(` - ${warning}`);
}
console.warn('');
}
profiles = result.profiles;
if (profiles.length === 0) {
throw new Error('No valid profiles found in custom list. Check warnings above.');
throw new Error('No valid profiles found in custom list. Check errors above.');
}
} else if (userProfiles) {
// Programmatic API usage
@@ -222,7 +231,6 @@ async function convertToDashInternal(
codecPreset,
metadata.duration,
segmentDuration,
metadata.fps || 25,
metadata.audioBitrate,
parallel,
maxConcurrent,