Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#8911 closed defect (wontfix)

improve showspectrumpic height option documentation

Reported by: semiaddict Owned by:
Priority: minor Component: documentation
Version: git-master Keywords: showspectrumpic
Cc: info@semiaddict.com Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:
When using the showspectrumpic filter with a value for the stop option along with a size, the resulting image seems to always stop at a much lower frequency than the one specified.
The legend on the top right corner (Zoom: ...) is, however, correct.
This doesn't seem to be the case if the size option is not specified, and the issue seems to occur whether or not the legend option is active.


How to reproduce:

ffmpeg -i http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4 -filter_complex showspectrumpic=stop=5000:size=1024x768:legend=1 output.png

ffmpeg version 4.3
built on commit a3a6b56

This was tested on multiple files including http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4

Attachments (4)

showspectrumpic_no-size_no-stop.jpg (323.7 KB ) - added by semiaddict 3 years ago.
showspectrumpic without size and without stop
showspectrumpic_no-size_stop-5000.jpg (393.2 KB ) - added by semiaddict 3 years ago.
showspectrumpic without size and stop = 5000
showspectrumpic_size_no-stop.jpg (60.2 KB ) - added by semiaddict 3 years ago.
showspectrumpic size = 1024x768 and without stop
showspectrumpic_size_stop-5000.jpg (64.8 KB ) - added by semiaddict 3 years ago.
showspectrumpic size = 1024x768 and stop = 5000

Download all attachments as: .zip

Change History (11)

by semiaddict, 3 years ago

showspectrumpic without size and without stop

by semiaddict, 3 years ago

showspectrumpic without size and stop = 5000

by semiaddict, 3 years ago

showspectrumpic size = 1024x768 and without stop

by semiaddict, 3 years ago

showspectrumpic size = 1024x768 and stop = 5000

comment:1 by Elon Musk, 3 years ago

Resolution: invalid
Status: newclosed

Height must be always power of 2.

comment:2 by semiaddict, 3 years ago

Resolution: invalid
Status: closedreopened
Summary: showspectrumpic innacurate zoom of resulting image with stop and size optionsimprove showspectrumpic height option documentation
Type: defecttask

Hello richardpl,
Thank you for your reply.
Could we then state that the height should always be a power of 2 in the documentation, as I believe it is not stated anywhere.
Is that also the case for the width?
Best,
semiaddict

comment:3 by semiaddict, 3 years ago

Cc: info@semiaddict.com added

comment:4 by Carl Eugen Hoyos, 3 years ago

Component: avfilterdocumentation
Keywords: stop zoom removed
Priority: normalminor
Type: taskdefect

comment:5 by Elon Musk, 3 years ago

Resolution: wontfix
Status: reopenedclosed

Wait for non-power of 2 fft support in this filter, than any height will be supported.

in reply to:  5 comment:6 by semiaddict, 3 years ago

Replying to richardpl:

Wait for non-power of 2 fft support in this filter, than any height will be supported.

Hello @richardpl,
Is there another ticket that deals with this or is it already being worked on?
Thank you.

comment:7 by Elon Musk, 3 years ago

It is being worked on, no need to spam trac with new tickets.

Note: See TracTickets for help on using tickets.