make waveform ffmpeg less verbose

pull/841/head
Mikael Finstad 4 years ago
parent 6bc5bb394f
commit 9479fa996d
No known key found for this signature in database
GPG Key ID: 25AB36E3E81CBC26

@ -445,6 +445,7 @@ export async function renderWaveformPng({ filePath, aroundTime, window, color })
const { from, to } = getIntervalAroundTime(aroundTime, window);
const args1 = [
'-hide_banner',
'-i', filePath,
'-ss', from,
'-t', to - from,
@ -456,6 +457,7 @@ export async function renderWaveformPng({ filePath, aroundTime, window, color })
];
const args2 = [
'-hide_banner',
'-i', '-',
'-filter_complex', `aformat=channel_layouts=mono,showwavespic=s=640x120:scale=sqrt:colors=${color}`,
'-frames:v', '1',

Loading…
Cancel
Save