Page 1 of 1

How to convert sound waves into images?

Posted: Tue Jul 18, 2023 2:42 pm
by wriirw
I am trying to make my first cockhero movie.
But I encountered difficulties in rhythm.

I used fl studio to create a beat track and wanted to convert it into image format for playback in the video.
I successfully converted it into an image using ffmpeg.


But next, when I zoomed in on the image in the video, I found that even if I maximized it in the video editor, the image was still very small.

The reason is that the sound wave image I converted is very long.
I tried to cut the picture into three parts, and the picture finally stopped being so small.
But after cutting it into three parts, I couldn't align it with the beat.
So I would like to ask what software everyone is using to solve this problem?

Re: How to convert sound waves into images?

Posted: Tue Jul 18, 2023 9:40 pm
by eatsl
wriirw wrote: Tue Jul 18, 2023 2:42 pm I am trying to make my first cockhero movie.
But I encountered difficulties in rhythm.

I used fl studio to create a beat track and wanted to convert it into image format for playback in the video.
I successfully converted it into an image using ffmpeg.


But next, when I zoomed in on the image in the video, I found that even if I maximized it in the video editor, the image was still very small.

The reason is that the sound wave image I converted is very long.
I tried to cut the picture into three parts, and the picture finally stopped being so small.
But after cutting it into three parts, I couldn't align it with the beat.
So I would like to ask what software everyone is using to solve this problem?
1) adjust the img to the right height, but keep ratio for this so the width gets adjusted at the same time
2) then, move the img completely from right to left until the img disappears as soon as the music stops (adjust the duration of the move command for this, if i am thinking straight, it should just be the duration of the sound clip)

make shure to work in 60fps for stuff like that, because otherwise it could end up pretty jerky

hope that helps

Re: How to convert sound waves into images?

Posted: Wed Jul 19, 2023 1:06 am
by wriirw
eatsl wrote: Tue Jul 18, 2023 9:40 pm
wriirw wrote: Tue Jul 18, 2023 2:42 pm I am trying to make my first cockhero movie.
But I encountered difficulties in rhythm.

I used fl studio to create a beat track and wanted to convert it into image format for playback in the video.
I successfully converted it into an image using ffmpeg.


But next, when I zoomed in on the image in the video, I found that even if I maximized it in the video editor, the image was still very small.

The reason is that the sound wave image I converted is very long.
I tried to cut the picture into three parts, and the picture finally stopped being so small.
But after cutting it into three parts, I couldn't align it with the beat.
So I would like to ask what software everyone is using to solve this problem?
1) adjust the img to the right height, but keep ratio for this so the width gets adjusted at the same time
2) then, move the img completely from right to left until the img disappears as soon as the music stops (adjust the duration of the move command for this, if i am thinking straight, it should just be the duration of the sound clip)

make shure to work in 60fps for stuff like that, because otherwise it could end up pretty jerky

hope that helps
It's working!
3Q~^_^
The reason is that the height of the image is not appropriate.
But,
a new problem has arisen.

The scale settings in ffmpeg include 'lin', 'log', 'sqrt', and 'cbrt'.
When I set the ratio of length to width to 200
For example: 90240x300
The image is too small in the video editor.

When I set the length to width ratio to 400
For example: 90240x600
The image can display its size normally in the video editor.

However, the generated sonogram will only display very long and thin patterns, no matter whether lin, log or others are selected for the scale attribute above.

The generated rhythm sound wave image is too ugly.
I would like to replace it with another pattern,for example, “Love”.
(I saw someone else's video using this pattern before.)
(But I don't know how it was made.)