Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unique images for audio files #519

Open
tommyneu opened this issue Jan 6, 2025 · 3 comments
Open

Unique images for audio files #519

tommyneu opened this issue Jan 6, 2025 · 3 comments

Comments

@tommyneu
Copy link
Member

tommyneu commented Jan 6, 2025

Currently audio uses a default image file for all audio. It would be nice to be able to generate a waveform image of the audio. This is done on the frontend after the audio starts but not on the backend when the audio is uploaded.

M4a audio files also supports album art so it would be nice if it had that pulled into the default thumbnail

@tommyneu
Copy link
Member Author

tommyneu commented Jan 6, 2025

Looks like there is some ffmpeg commands that will generate the waveform image file from an audio file

Example command:
ffmpeg -i input_audio.mp3 -filter_complex "aformat=channel_layouts=mono,showwavespic=s=1280x720:colors=red,drawbox=x=0:y=360:w=1280:h=1:color=red" -frames:v 1 output_waveform.png

@sarongebre
Copy link
Contributor

Users would like the option to choose whether or not to display the waveform/poster for audio files.

@tommyneu
Copy link
Member Author

tommyneu commented Jan 6, 2025

@sarongebre I think on mediahub we would want it to be with the waveform. That way the user experience is the same across all audio media on mediahub. I think embed wise that would be a good option if the person wanted it or not

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants