Closed StashAppDev closed 8 months ago
ffmpeg can convert a mp3 to mp4
with this
ffmpeg -i input -filter_complex "[0:a]showwaves=s=128x96:mode=cline,format=yuv420p[v]" -map "[v]" -map 0:a -c:v libx264 -c:a copy output
in Interface Configuration you can add a line for mp3 to mp4 where you can edit the conversion as ffmpeg has many visualizer
how i see this working is in task - Generated Content - Generate this would look for any mp3 ogg wav etc if found then it will render the mp4 with visualizer then delete the mp3 ogg wav etc (user can turn this off)
long term i like to see this with ui options with pic of how the visualizer will look and leave the command line config for advance users
i also like to see this in a new tab "Audio"
i also like a way of uploading a image for a cover. a nice long term support feature would be able to generate a cover from title maybe have a template where you could upload a background image for it and pick a font for when there no covers
Are we thinking like ASMR or audiobook content thats contextually relevant?
not sure what asmr is but i was wanting it for adult audio books and stories i converted for text (text to speech)
plus reddit has adult audio selection
would also be great for hypno femdom stuff.
i have started you use this to convert mp3 into mp4 videos just make sure to change the path in the batch file windows only sorry for linux mac user
all in one download (file too big for github so i use a other service) https://gofile.io/d/LWu4Hm
batch file only (this can fit in github) you must put windows build of ffmpeg in same folder with batch file
Evaluating as candidate for bounty.
I'm thinking a new top-level object audio
with a field list similar to video/images:
title
url
checksum
path
date
details
rating
organized
studio
tags
performers
o_counter
file {
size
duration
bitrate
}
The library configuration would need to be adjusted to allow inclusion/exclusion of audio files. The current tick box way of doing things will likely be insufficient, so we'll need another approach.
We'll need audioExtensions
and excludedAudioPatterns
configuration fields.
I think we'll need to overhaul the top navbar before we commence on this since another top-level navitem will make it too crowded.
I'd estimate around 20 hours for this.
Closing in favour of #1258
https://github.com/stashapp/StashServer/issues/42