[FFmpeg-trac] #6779(undetermined:new): resampler=soxr:tsf=s32 failed

FFmpeg trac at avcodec.org
Thu Oct 26 07:41:11 EEST 2017


#6779: resampler=soxr:tsf=s32 failed
-------------------------------------+-------------------------------------
             Reporter:  omniplex     |                     Type:  defect
               Status:  new          |                 Priority:  normal
            Component:               |                  Version:
  undetermined                       |  unspecified
             Keywords:  audio        |               Blocked By:
  sample formats                     |  Reproduced by developer:  0
             Blocking:               |
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 Summary of the bug: aresample resampler=soxr:tsf=s32 dislikes s32
 How to reproduce:
 {{{
 ffmpeg started on 2017-10-26 at 06:01:36
 Report written to "ffmpeg-20171026-060136.log"
 Command line:
 ffmpeg.exe -report -err_detect aggressive -v verbose -i
 battle_of_kings_preview.mp3 -vn -filter:a
 "aresample=48000:resampler=soxr:precision=28:ocl=downmix:cheby=1:matrix_encoding=dolby:tsf=s32"
 -f ogg -c:a libvorbis -b:a 25KiB
 "C:\\Users\\sysop\\Downloads\\battle_of_kings_preview.oga"
 ffmpeg version 3.3.3 Copyright (c) 2000-2017 the FFmpeg developers
   built with gcc 7.1.0 (GCC)
   configuration: --enable-gpl --enable-version3 --enable-cuda --enable-
 cuvid --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-nvenc
 --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r
 --enable-gnutls --enable-iconv --enable-libass --enable-libbluray
 --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme
 --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame
 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264
 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsnappy
 --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame
 --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-
 libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-
 libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma
 --enable-zlib
   libavutil      55. 58.100 / 55. 58.100
   libavcodec     57. 89.100 / 57. 89.100
   libavformat    57. 71.100 / 57. 71.100
   libavdevice    57.  6.100 / 57.  6.100
   libavfilter     6. 82.100 /  6. 82.100
   libswscale      4.  6.100 /  4.  6.100
   libswresample   2.  7.100 /  2.  7.100
   libpostproc    54.  5.100 / 54.  5.100
 Splitting the commandline.
 Reading option '-report' ... matched as option 'report' (generate a
 report) with argument '1'.
 Reading option '-err_detect' ...Routing option err_detect to both codec
 and muxer layer
  matched as AVOption 'err_detect' with argument 'aggressive'.
 Reading option '-v' ... matched as option 'v' (set logging level) with
 argument 'verbose'.
 Reading option '-i' ... matched as input url with argument
 'battle_of_kings_preview.mp3'.
 Reading option '-vn' ... matched as option 'vn' (disable video) with
 argument '1'.
 Reading option '-filter:a' ... matched as option 'filter' (set stream
 filtergraph) with argument
 'aresample=48000:resampler=soxr:precision=28:ocl=downmix:cheby=1:matrix_encoding=dolby:tsf=s32'.
 Reading option '-f' ... matched as option 'f' (force format) with argument
 'ogg'.
 Reading option '-c:a' ... matched as option 'c' (codec name) with argument
 'libvorbis'.
 Reading option '-b:a' ... matched as option 'b' (video bitrate (please use
 -b:v)) with argument '25KiB'.
 Reading option 'C:\Users\sysop\Downloads\battle_of_kings_preview.oga' ...
 matched as output url.
 Finished splitting the commandline.
 Parsing a group of options: global .
 Applying option report (generate a report) with argument 1.
 Applying option v (set logging level) with argument verbose.
 Successfully parsed a group of options.
 Parsing a group of options: input url battle_of_kings_preview.mp3.
 Successfully parsed a group of options.
 Opening an input file: battle_of_kings_preview.mp3.
 [NULL @ 000000000061a3e0] Opening 'battle_of_kings_preview.mp3' for
 reading
 [file @ 000000000061ab00] Setting default whitelist 'file,crypto'
 [mp3 @ 000000000061a3e0] Format mp3 probed with size=131072 and score=51
 id3v2 ver:3 flags:00 len:120115
 [mp3 @ 000000000061a3e0] Skipping 0 bytes of junk at 120125.
 [mp3 @ 000000000061a3e0] Before avformat_find_stream_info() pos: 120125
 bytes read:131072 seeks:0 nb_streams:2
 [mp3 @ 000000000061a3e0] All info found
 [mp3 @ 000000000061a3e0] Estimating duration from bitrate, this may be
 inaccurate
 [mp3 @ 000000000061a3e0] After avformat_find_stream_info() pos: 173373
 bytes read:196608 seeks:0 frames:51
 Input #0, mp3, from 'battle_of_kings_preview.mp3':
   Metadata:
     album           : Machinimasound 2012
     artist          : Machinimasound
     album_artist    : MachinimaSound
     composer        : MachinimaSound
     copyright       : Creative Commons Attribution 2.0
     publisher       : Machinimasound
     title           : Battle of Kings
     date            : 2012
   Duration: 00:03:28.36, start: 0.000000, bitrate: 324 kb/s
     Stream #0:0, 50, 1/14112000: Audio: mp3, 44100 Hz, stereo, s16p, 320
 kb/s
     Stream #0:1, 1, 1/90000: Video: png, 1 reference frame, rgb24(pc),
 600x600, 90k tbr, 90k tbn, 90k tbc
     Metadata:
       comment         : Cover (front)
 Successfully opened the file.
 Parsing a group of options: output url
 C:\Users\sysop\Downloads\battle_of_kings_preview.oga.
 Applying option vn (disable video) with argument 1.
 Applying option filter:a (set stream filtergraph) with argument
 aresample=48000:resampler=soxr:precision=28:ocl=downmix:cheby=1:matrix_encoding=dolby:tsf=s32.
 Applying option f (force format) with argument ogg.
 Applying option c:a (codec name) with argument libvorbis.
 Applying option b:a (video bitrate (please use -b:v)) with argument 25KiB.
 Successfully parsed a group of options.
 Opening an output file:
 C:\Users\sysop\Downloads\battle_of_kings_preview.oga.
 [file @ 000000000048aee0] Setting default whitelist 'file,crypto'
 Successfully opened the file.
 Stream mapping:
   Stream #0:0 -> #0:0 (mp3 (native) -> vorbis (libvorbis))
 Press [q] to stop, [?] for help
 cur_dts is invalid (this is harmless if it occurs once at the start per
 stream)
 cur_dts is invalid (this is harmless if it occurs once at the start per
 stream)
 detected 4 logical cores
 [Parsed_aresample_0 @ 00000000006192a0] Setting 'sample_rate' to value
 '48000'
 [Parsed_aresample_0 @ 00000000006192a0] Setting 'resampler' to value
 'soxr'
 [Parsed_aresample_0 @ 00000000006192a0] Setting 'precision' to value '28'
 [Parsed_aresample_0 @ 00000000006192a0] Setting 'ocl' to value 'downmix'
 [Parsed_aresample_0 @ 00000000006192a0] Setting 'cheby' to value '1'
 [Parsed_aresample_0 @ 00000000006192a0] Setting 'matrix_encoding' to value
 'dolby'
 [Parsed_aresample_0 @ 00000000006192a0] Setting 'tsf' to value 's32'
 [graph_0_in_0_0 @ 000000000046ade0] Setting 'time_base' to value '1/44100'
 [graph_0_in_0_0 @ 000000000046ade0] Setting 'sample_rate' to value '44100'
 [graph_0_in_0_0 @ 000000000046ade0] Setting 'sample_fmt' to value 's16p'
 [graph_0_in_0_0 @ 000000000046ade0] Setting 'channel_layout' to value
 '0x3'
 [graph_0_in_0_0 @ 000000000046ade0] tb:1/44100 samplefmt:s16p
 samplerate:44100 chlayout:0x3
 [format_out_0_0 @ 00000000004a6a40] Setting 'sample_fmts' to value 'fltp'
 [AVFilterGraph @ 00000000004c61c0] query_formats: 4 queried, 9 merged, 0
 already done, 0 delayed
 [Parsed_aresample_0 @ 00000000006192a0] [SWR @ 00000000004cdae0] Using s32
 internally between filters
 [Parsed_aresample_0 @ 00000000006192a0] [SWR @ 00000000004cdae0] Requested
 sample format s32 is not supported internally, S16/S32/S64/FLT/DBL is
 supported
 [Parsed_aresample_0 @ 00000000006192a0] Failed to configure output pad on
 Parsed_aresample_0
 Error reinitializing filters!
 Failed to inject frame into filter network: Invalid argument
 Error while processing the decoded data for stream #0:0
 [AVIOContext @ 000000000061bdc0] Statistics: 0 seeks, 0 writeouts
 [AVIOContext @ 000000000061aca0] Statistics: 196608 bytes read, 0 seeks
 Conversion failed!
 }}}

 The error message recommends S32 (capital S), but S32 or 32 never get as
 far as s32 (small s), which used to work as expected in older 2.x
 versions. Please holler if you prefer -report logs as attachment instead
 of inline in future tickets.

--
Ticket URL: <https://trac.ffmpeg.org/ticket/6779>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list