[FFmpeg-trac] #5965(undetermined:new): Stretching wav file with Rubberband generates invalid audio format

FFmpeg trac at avcodec.org
Sun Nov 20 03:25:42 EET 2016


#5965: Stretching wav file with Rubberband generates invalid audio format
-------------------------------------+-------------------------------------
             Reporter:               |                    Owner:
  michael.heuberger                  |                   Status:  new
                 Type:  defect       |                Component:
             Priority:  minor        |  undetermined
              Version:  unspecified  |               Resolution:
             Keywords:  wav,         |               Blocked By:
  rubberband                         |  Reproduced by developer:  0
             Blocking:               |
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------

Comment (by michael.heuberger):

 and for reference, here the full ffmpeg output in debug mode

   built with gcc 6.1.1 (Ubuntu 6.1.1-11ubuntu12) 20160805
   configuration: --prefix=/usr --extra-version=1ubuntu3
 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu
 --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl
 --enable-shared --disable-stripping --disable-decoder=libopenjpeg
 --disable-decoder=libschroedinger --enable-avresample --enable-avisynth
 --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray
 --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite
 --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-
 libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-
 libopenjpeg --enable-libopus --enable-libpulse --enable-librubberband
 --enable-librtmp --enable-libschroedinger --enable-libshine --enable-
 libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-
 libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-
 libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-
 libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-
 libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-
 chromaprint --enable-libx264
   libavutil      55. 17.103 / 55. 17.103
   libavcodec     57. 24.102 / 57. 24.102
   libavformat    57. 25.100 / 57. 25.100
   libavdevice    57.  0.101 / 57.  0.101
   libavfilter     6. 31.100 /  6. 31.100
   libavresample   3.  0.  0 /  3.  0.  0
   libswscale      4.  0.100 /  4.  0.100
   libswresample   2.  0.101 /  2.  0.101
   libpostproc    54.  0.100 / 54.  0.100
 Splitting the commandline.
 Reading option '-thread_queue_size' ... matched as option
 'thread_queue_size' (set the maximum number of queued packets from the
 demuxer) with argument '2048'.
 Reading option '-i' ... matched as input file with argument '/home
 /michael-
 heuberger/binarykitchen/code/videomail.io/var/local/tmp/clients/videomail.io/11e6
 -aebf-b232a970-9f2a-a75d3836b2e7/videomail_preview.wav'.
 Reading option '-y' ... matched as option 'y' (overwrite output files)
 with argument '1'.
 Reading option '-acodec' ... matched as option 'acodec' (force audio codec
 ('copy' to copy stream)) with argument 'libvorbis'.
 Reading option '-ac' ... matched as option 'ac' (set number of audio
 channels) with argument '1'.
 Reading option '-filter:a' ... matched as option 'filter' (set stream
 filtergraph) with argument 'rubberband=tempo=1.239223338862328'.
 Reading option '-loglevel' ... matched as option 'loglevel' (set logging
 level) with argument 'debug'.
 Reading option '/home/michael-
 heuberger/binarykitchen/code/videomail.io/var/local/tmp/clients/videomail.io/11e6
 -aebf-b232a970-9f2a-a75d3836b2e7/videomail_preview_for_webm_stretched.wav'
 ... matched as output file.
 Finished splitting the commandline.
 Parsing a group of options: global .
 Applying option y (overwrite output files) with argument 1.
 Applying option loglevel (set logging level) with argument debug.
 Successfully parsed a group of options.
 Parsing a group of options: input file /home/michael-
 heuberger/binarykitchen/code/videomail.io/var/local/tmp/clients/videomail.io/11e6
 -aebf-b232a970-9f2a-a75d3836b2e7/videomail_preview.wav.
 Applying option thread_queue_size (set the maximum number of queued
 packets from the demuxer) with argument 2048.
 Successfully parsed a group of options.
 Opening an input file: /home/michael-
 heuberger/binarykitchen/code/videomail.io/var/local/tmp/clients/videomail.io/11e6
 -aebf-b232a970-9f2a-a75d3836b2e7/videomail_preview.wav.
 [file @ 0x56386702e0e0] Setting default whitelist 'file,crypto'
 [wav @ 0x56386702d880] Format wav probed with size=2048 and score=99
 [wav @ 0x56386702d880] Before avformat_find_stream_info() pos: 44 bytes
 read:32768 seeks:0
 [wav @ 0x56386702d880] probing stream 0 pp:32
 [wav @ 0x56386702d880] probing stream 0 pp:31
 [wav @ 0x56386702d880] probing stream 0 pp:30
 [wav @ 0x56386702d880] probing stream 0 pp:29
 [wav @ 0x56386702d880] probing stream 0 pp:28
 [wav @ 0x56386702d880] probing stream 0 pp:27
 [wav @ 0x56386702d880] probing stream 0 pp:26
 [wav @ 0x56386702d880] probing stream 0 pp:25
 [wav @ 0x56386702d880] probing stream 0 pp:24
 [wav @ 0x56386702d880] probing stream 0 pp:23
 [wav @ 0x56386702d880] probing stream 0 pp:22
 [wav @ 0x56386702d880] probed stream 0
 [wav @ 0x56386702d880] parser not found for codec pcm_s16le, packets or
 times may be invalid.
 [wav @ 0x56386702d880] After avformat_find_stream_info() pos: 41004 bytes
 read:41004 seeks:0 frames:10
 Guessed Channel Layout for  Input Stream #0.0 : mono
 Input #0, wav, from '/home/michael-
 heuberger/binarykitchen/code/videomail.io/var/local/tmp/clients/videomail.io/11e6
 -aebf-b232a970-9f2a-a75d3836b2e7/videomail_preview.wav':
   Duration: 00:00:00.46, bitrate: 706 kb/s
     Stream #0:0, 10, 1/44100: Audio: pcm_s16le ([1][0][0][0] / 0x0001),
 44100 Hz, 1 channels, s16, 705 kb/s
 Successfully opened the file.
 Parsing a group of options: output file /home/michael-
 heuberger/binarykitchen/code/videomail.io/var/local/tmp/clients/videomail.io/11e6
 -aebf-b232a970-9f2a-a75d3836b2e7/videomail_preview_for_webm_stretched.wav.
 Applying option acodec (force audio codec ('copy' to copy stream)) with
 argument libvorbis.
 Applying option ac (set number of audio channels) with argument 1.
 Applying option filter:a (set stream filtergraph) with argument
 rubberband=tempo=1.239223338862328.
 Successfully parsed a group of options.
 Opening an output file: /home/michael-
 heuberger/binarykitchen/code/videomail.io/var/local/tmp/clients/videomail.io/11e6
 -aebf-b232a970-9f2a-a75d3836b2e7/videomail_preview_for_webm_stretched.wav.
 [file @ 0x5638670439a0] Setting default whitelist 'file,crypto'
 Successfully opened the file.
 detected 8 logical cores
 [Parsed_rubberband_0 @ 0x56386704ddc0] Setting 'tempo' to value
 '1.239223338862328'
 [graph 0 input from stream 0:0 @ 0x563867033bc0] Setting 'time_base' to
 value '1/44100'
 [graph 0 input from stream 0:0 @ 0x563867033bc0] Setting 'sample_rate' to
 value '44100'
 [graph 0 input from stream 0:0 @ 0x563867033bc0] Setting 'sample_fmt' to
 value 's16'
 [graph 0 input from stream 0:0 @ 0x563867033bc0] Setting 'channel_layout'
 to value '0x4'
 [graph 0 input from stream 0:0 @ 0x563867033bc0] tb:1/44100 samplefmt:s16
 samplerate:44100 chlayout:0x4
 [audio format for output stream 0:0 @ 0x56386704e4c0] Setting
 'sample_fmts' to value 'fltp'
 [audio format for output stream 0:0 @ 0x56386704e4c0] Setting
 'channel_layouts' to value '0x4'
 [Parsed_rubberband_0 @ 0x56386704ddc0] auto-inserting filter 'auto-
 inserted resampler 0' between the filter 'graph 0 input from stream 0:0'
 and the filter 'Parsed_rubberband_0'
 [AVFilterGraph @ 0x5638670437c0] query_formats: 4 queried, 6 merged, 3
 already done, 0 delayed
 [auto-inserted resampler 0 @ 0x56386704fb60] [SWR @ 0x56386704ff40] Using
 s16p internally between filters
 [auto-inserted resampler 0 @ 0x56386704fb60] ch:1 chl:mono fmt:s16
 r:44100Hz -> ch:1 chl:mono fmt:fltp r:44100Hz
 Output #0, wav, to '/home/michael-
 heuberger/binarykitchen/code/videomail.io/var/local/tmp/clients/videomail.io/11e6
 -aebf-b232a970-9f2a-
 a75d3836b2e7/videomail_preview_for_webm_stretched.wav':
   Metadata:
     ISFT            : Lavf57.25.100
     Stream #0:0, 0, 1/44100: Audio: vorbis (libvorbis) (oV[0][0] /
 0x566F), 44100 Hz, mono, fltp
     Metadata:
       encoder         : Lavc57.24.102 libvorbis
 Stream mapping:
   Stream #0:0 -> #0:0 (pcm_s16le (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)
     Last message repeated 2 times
 [Parsed_rubberband_0 @ 0x56386704ddc0] nb_samples_in 20480 nb_samples_out
 13788
 [output stream 0:0 @ 0x56386704e260] EOF on sink link output stream
 0:0:default.
 No more output streams to write to, finishing.
 [libvorbis @ 0x563867043100] Trying to remove 100 more samples than there
 are in the queue
 size=       6kB time=00:00:00.29 bitrate= 161.0kbits/s speed=9.96x
 video:0kB audio:2kB subtitle:0kB other streams:0kB global headers:3kB
 muxing overhead: 136.203445%
 Input file #0 (/home/michael-
 heuberger/binarykitchen/code/videomail.io/var/local/tmp/clients/videomail.io/11e6
 -aebf-b232a970-9f2a-a75d3836b2e7/videomail_preview.wav):
   Input stream #0:0 (audio): 10 packets read (40960 bytes); 10 frames
 decoded (20480 samples);
   Total: 10 packets (40960 bytes) demuxed
 Output file #0 (/home/michael-
 heuberger/binarykitchen/code/videomail.io/var/local/tmp/clients/videomail.io/11e6
 -aebf-b232a970-9f2a-
 a75d3836b2e7/videomail_preview_for_webm_stretched.wav):
   Output stream #0:0 (audio): 216 frames encoded (13788 samples); 15
 packets muxed (2497 bytes);
   Total: 15 packets (2497 bytes) muxed
 10 frames successfully decoded, 0 decoding errors
 [AVIOContext @ 0x56386702e640] Statistics: 6 seeks, 20 writeouts
 [AVIOContext @ 0x563867036360] Statistics: 41004 bytes read, 0 seeks

--
Ticket URL: <https://trac.ffmpeg.org/ticket/5965#comment:2>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list