Opened 3 years ago
Last modified 3 years ago
#9278 new enhancement
support expression in aresample
Reported by: | yue | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | avfilter |
Version: | git-master | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | Reproduced by developer: | no | |
Analyzed by developer: | no |
Description (last modified by )
aresample should take an expression rather than an integer value.
suppose I want to write a graph that 1) upsample by 4x, 2) apply biquad filters 3)downsample by 4x
currently I have to write something like "aresample=176400, equalizer ..., aresample=44100". with different file formats it's very inconvenient.
a script would work in a few cases. but not all scenarios can be supported by scripts. It would be better if this could be supported by expression.
it would be better if we can write "aresample='rate *4', equalizer ..., aresample= 'rate / 4'".
one just need to change the integer sample rate option definition in af_asample.c to using av_expr_* parsers would do the job.
Change History (2)
comment:1 by , 3 years ago
Component: | undetermined → avfilter |
---|
comment:2 by , 3 years ago
Description: | modified (diff) |
---|---|
Version: | unspecified → git-master |