bbc / audiowaveform

C++ program to generate waveform data and render waveform images from audio files
https://waveform.prototyping.bbc.co.uk
GNU General Public License v3.0
1.89k stars 241 forks source link

Empty image with a huge audio file. #156

Closed emmggi closed 2 years ago

emmggi commented 2 years ago

audiowaveform --input-filename Record.wav --pixels-per-second 2 --width 85198 --output-filename LastRecord.png

This is the command i'm using. The file is almost 12 hours long. If i specify smaller width then it can't fit the wave of the entire file.

I got the width by calculating how many seconds there are and mutiplying by two because there's 2 pixels per second.

How do I make it generate the waveform of a huge file in higher resolution so that i can navigate it?

chrisn commented 2 years ago

Can you use the --zoom auto option to fit the waveform to the desired image width? These commands all work OK for me on a 12 hour file:

audiowaveform --input-filename test.ogg --zoom auto --width 50000 --output-filename test1.png
audiowaveform --input-filename test.ogg --zoom auto --width 150000 --output-filename test2.png
emmggi commented 2 years ago

Doesn't work either.

chrisn commented 2 years ago

If you can upload the audio file somewhere, I'll be happy to see if I can reproduce the problem here.

emmggi commented 2 years ago

I'm sorry it's a private thing. I'll close this, I'll just use the audio wave in audacity.