Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#8481 closed defect (invalid)

highpass, audio filter - normalize option does not work

Reported by: mtc Owned by:
Priority: normal Component: undetermined
Version: unspecified Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

highpass
(while testing flags as in doc's)

highpass=f=100:p=2:m=1:n=1
does not work

also only 1 to 2 poles are supported, could there be more?

ffmpeg -v 9 -loglevel 99 -report -i '/tmp/input.wav' -af highpass=f=100:p=2:m=1:n=1 -c:a pcm_f32le '/tmp/output.wav'
ffmpeg started on 2020-01-17 at 18:23:43
Report written to "ffmpeg-20200117-182343.log"
ffmpeg version 4.2.2-0york0~18.04 Copyright (c) 2000-2019 the FFmpeg developers
  built with gcc 7 (Ubuntu 7.4.0-1ubuntu1~18.04.1)
  configuration: --prefix=/usr --extra-version='0york0~18.04' --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
  WARNING: library configuration mismatch
  avcodec     configuration: --prefix=/usr --extra-version='0york0~18.04' --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared --enable-version3 --disable-doc --disable-programs --enable-libaribb24 --enable-liblensfun --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libtesseract --enable-libvo_amrwbenc
  libavutil      56. 31.100 / 56. 31.100
  libavcodec     58. 54.100 / 58. 54.100
  libavformat    58. 29.100 / 58. 29.100
  libavdevice    58.  8.100 / 58.  8.100
  libavfilter     7. 57.100 /  7. 57.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  5.100 /  5.  5.100
  libswresample   3.  5.100 /  3.  5.100
  libpostproc    55.  5.100 / 55.  5.100
Splitting the commandline.
Reading option '-v' ... matched as option 'v' (set logging level) with argument '9'.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument '99'.
Reading option '-report' ... matched as option 'report' (generate a report) with argument '1'.
Reading option '-i' ... matched as input url with argument '/tmp/input.wav'.
Reading option '-af' ... matched as option 'af' (set audio filters) with argument 'highpass=f=100:p=2:m=1:n=1'.
Reading option '-c:a' ... matched as option 'c' (codec name) with argument 'pcm_f32le'.
Reading option '/tmp/output.wav' ... matched as output url.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option v (set logging level) with argument 9.
Applying option report (generate a report) with argument 1.
Successfully parsed a group of options.
Parsing a group of options: input url /tmp/input.wav.
Successfully parsed a group of options.
Opening an input file: /tmp/input.wav.
[NULL @ 0x5617874b5240] Opening '/tmp/input.wav' for reading
[file @ 0x5617874b5cc0] Setting default whitelist 'file,crypto'
Probing wav score:99 size:2048
[wav @ 0x5617874b5240] Format wav probed with size=2048 and score=99
[wav @ 0x5617874b5240] Before avformat_find_stream_info() pos: 44 bytes read:65580 seeks:1 nb_streams:1
[wav @ 0x5617874b5240] probing stream 0 pp:32
[wav @ 0x5617874b5240] probing stream 0 pp:31
[wav @ 0x5617874b5240] probing stream 0 pp:30
[wav @ 0x5617874b5240] probing stream 0 pp:29
[wav @ 0x5617874b5240] probing stream 0 pp:28
[wav @ 0x5617874b5240] probing stream 0 pp:27
[wav @ 0x5617874b5240] probing stream 0 pp:26
[wav @ 0x5617874b5240] probing stream 0 pp:25
[wav @ 0x5617874b5240] probing stream 0 pp:24
[wav @ 0x5617874b5240] probing stream 0 pp:23
[wav @ 0x5617874b5240] probing stream 0 pp:22
[wav @ 0x5617874b5240] probing stream 0 pp:21
[wav @ 0x5617874b5240] probing stream 0 pp:20
[wav @ 0x5617874b5240] probing stream 0 pp:19
[wav @ 0x5617874b5240] probing stream 0 pp:18
[wav @ 0x5617874b5240] probing stream 0 pp:17
[wav @ 0x5617874b5240] probing stream 0 pp:16
[wav @ 0x5617874b5240] probing stream 0 pp:15
[wav @ 0x5617874b5240] probing stream 0 pp:14
[wav @ 0x5617874b5240] probing stream 0 pp:13
[wav @ 0x5617874b5240] probing stream 0 pp:12
[wav @ 0x5617874b5240] probing stream 0 pp:11
[wav @ 0x5617874b5240] probing stream 0 pp:10
[wav @ 0x5617874b5240] probing stream 0 pp:9
[wav @ 0x5617874b5240] probing stream 0 pp:8
[wav @ 0x5617874b5240] probing stream 0 pp:7
[wav @ 0x5617874b5240] probing stream 0 pp:6
[wav @ 0x5617874b5240] probing stream 0 pp:5
[wav @ 0x5617874b5240] probing stream 0 pp:4
[wav @ 0x5617874b5240] probing stream 0 pp:3
[wav @ 0x5617874b5240] probing stream 0 pp:2
[wav @ 0x5617874b5240] probing stream 0 pp:1
[wav @ 0x5617874b5240] probed stream 0
[wav @ 0x5617874b5240] parser not found for codec pcm_s16le, packets or times may be invalid.
[wav @ 0x5617874b5240] All info found
[wav @ 0x5617874b5240] stream 0: start_time: -209146758205323.719 duration: 19.204
[wav @ 0x5617874b5240] format: start_time: -9223372036854.775 duration: 19.204 bitrate=705 kb/s
[wav @ 0x5617874b5240] After avformat_find_stream_info() pos: 204844 bytes read:294956 seeks:1 frames:50
Guessed Channel Layout for Input Stream #0.0 : mono
Input #0, wav, from '/tmp/input.wav':
  Duration: 00:00:19.20, bitrate: 705 kb/s
    Stream #0:0, 50, 1/44100: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, mono, s16, 705 kb/s
Successfully opened the file.
Parsing a group of options: output url /tmp/output.wav.
Applying option af (set audio filters) with argument highpass=f=100:p=2:m=1:n=1.
Applying option c:a (codec name) with argument pcm_f32le.
Successfully parsed a group of options.
Opening an output file: /tmp/output.wav.
[file @ 0x5617874ea340] Setting default whitelist 'file,crypto'
Successfully opened the file.
Stream mapping:
  Stream #0:0 -> #0:0 (pcm_s16le (native) -> pcm_f32le (native))
Press [q] to stop, [?] for help
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
detected 8 logical cores
[Parsed_highpass_0 @ 0x561787503880] Setting 'f' to value '100'
[Parsed_highpass_0 @ 0x561787503880] Setting 'p' to value '2'
[Parsed_highpass_0 @ 0x561787503880] Setting 'm' to value '1'
[Parsed_highpass_0 @ 0x561787503880] Setting 'n' to value '1'
[Parsed_highpass_0 @ 0x561787503880] Option 'n' not found
[AVFilterGraph @ 0x561787502280] Error initializing filter 'highpass' with args 'f=100:p=2:m=1:n=1'
Error reinitializing filters!
Failed to inject frame into filter network: Option not found
Error while processing the decoded data for stream #0:0
[AVIOContext @ 0x5617874fff00] Statistics: 0 seeks, 0 writeouts
[AVIOContext @ 0x5617874be080] Statistics: 294956 bytes read, 1 seeks
Conversion failed!

Change History (8)

by mtc, 4 years ago

Attachment: ffmpeg-20200117-182457.log added

comment:1 by mtc, 4 years ago

Summary: highpass, audio filter normalize option does not workhighpass, audio filter - normalize option does not work

comment:2 by Carl Eugen Hoyos, 4 years ago

Version: 4.2unspecified

Is the issue reproducible with current FFmpeg git head, the only version supported on this bug tracker?

comment:3 by Carl Eugen Hoyos, 4 years ago

Resolution: invalid
Status: newclosed

comment:4 by Elon Musk, 4 years ago

The normalize option is added to latest master and is not available for your ffmpeg version.

Note: See TracTickets for help on using tickets.