Opened 13 months ago

Closed 3 weeks ago

#5931 closed defect (wontfix)

showwavespic, showspectrumpic innacurate length of resulting image

Reported by: jonata Owned by:
Priority: minor Component: avfilter
Version: git-master Keywords: showwavespic
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:showwavespic, showspectrumpic innacurate length of resulting image
How to reproduce:

ffmpeg -i voice.wav -lavfi  showwavespic=scale=log:s=1000x180 waveform.png

In this example, the waveform is rendered correctly (end of waveform on image1.png). But if we increase the with to 10000, the end of waveform have an extra gap (end of waveform on image2.png).

ffmpeg -i voice.wav -lavfi  showwavespic=scale=log:s=10000x180 waveform.png

Attachments (4)

image1.png (16.1 KB) - added by jonata 13 months ago.
image1
image2.png (14.0 KB) - added by jonata 13 months ago.
voice.wav (1.2 MB) - added by jonata 13 months ago.
generate-waveform.zip (80.1 KB) - added by Ruuttu 3 months ago.
Example of rendering a waveform with a one second audio file

Download all attachments as: .zip

Change History (7)

Changed 13 months ago by jonata

image1

Changed 13 months ago by jonata

Changed 13 months ago by jonata

comment:1 Changed 13 months ago by cehoyos

  • Keywords showwavespic added
  • Priority changed from normal to minor
  • Status changed from new to open

Afaict, there is always a right border (without waves), even for small width (at least for a width of 1000 for the given sample). I don't know if this is intended or not.

comment:2 Changed 3 months ago by Ruuttu

It appears the shorter your audio is, the bigger the gap can get. Rendering a one second WAV into a 1000px wide image leaves 20 pixels empty on the right. This is not a trivial amount of error. I'll try upload a simple test case.

Changed 3 months ago by Ruuttu

Example of rendering a waveform with a one second audio file

comment:3 Changed 3 weeks ago by richardpl

  • Resolution set to wontfix
  • Status changed from open to closed
Note: See TracTickets for help on using tickets.