Merge pull request #5 from absoluteSpacehead/master

Cap preview streams to 30 seconds
This commit is contained in:
AveryMadness 2024-02-07 16:40:31 -07:00 committed by GitHub
commit b6bb64a438
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -254,6 +254,7 @@ App.post("/upload/audio",
"-use_timeline 1",
"-f dash",
"-ac 2", // downmix
"-t 30" // max of 30 seconds (requested by mc)
])
.output(`${AudioPath}/PreviewChunks/PreviewManifest.mpd`)
.on("start", cl => Debug(`Creating preview stream with ${magenta(cl)}`))

View File

@ -91,7 +91,7 @@ export function TrackSubmission() {
<FormControl.Caption>You can use the #tools-and-resources channel to find useful resources on how to create MIDIs.</FormControl.Caption>
</FormControl>
<FormControl required={true} sx={formControlStyle}>
<FormControl.Label>Audio File (.m4a, .mp3, .wav)</FormControl.Label>
<FormControl.Label>Audio File (.m4a, .mp3, .wav, .ogg)</FormControl.Label>
<TextInput type="file" />
<FormControl.Caption>This will play in the background of your song. Make sure it was exported from REAPER.</FormControl.Caption>
</FormControl>