Skip to content

Commit

Permalink
chore: make the waveform image black and white
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Van Camp committed Jul 5, 2023
1 parent eec1da8 commit 3f49920
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ export function thumbnailFFMpegArguments(
'-frames:v 1',
hasVideoStream
? `-vf ${!seekTimeCode ? 'thumbnail,' : ''}scale=${metadata.version.width}:${metadata.version.height}` // Creates a thumbnail of the video.
: '-filter_complex "showwavespic=s=640x240:split_channels=1"', // Creates an image of the audio waveform.
: '-filter_complex "showwavespic=s=640x240:split_channels=1:colors=white"', // Creates an image of the audio waveform.
'-threads 1',
].filter(Boolean) as string[] // remove undefined values
}
Expand Down

0 comments on commit 3f49920

Please sign in to comment.