Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unknown format when parsing wav stretched by rubberband #11

Closed
binarykitchen opened this issue Nov 19, 2016 · 7 comments
Closed

Unknown format when parsing wav stretched by rubberband #11

binarykitchen opened this issue Nov 19, 2016 · 7 comments

Comments

@binarykitchen
Copy link

binarykitchen commented Nov 19, 2016

Looks like there is a problem when parsing wav files that have been stretched by rubberband. Here an example error

{ error: true,
  invalid_reasons: [ 'Unknwon format: 22127' ],
  header: 
   { riff_head: 'RIFF',
     chunk_size: 6554,
     wave_identifier: 'WAVE',
     fmt_identifier: 'fmt ',
     subchunk_size: 3326,
     audio_format: 22127,
     num_channels: 1,
     sample_rate: 44100,
     byte_rate: 0,
     block_align: 2,
     bits_per_sample: 16,
     data_identifier: 'k\f\u0002\u001e' },
  stats: 
   { ... } }

Trying to grab the duration of the file here. Any clues?

@binarykitchen
Copy link
Author

http://soundfile.sapp.org/doc/WaveFormat/ says

20        2   AudioFormat      PCM = 1 (i.e. Linear quantization)
                               Values other than 1 indicate some 
                               form of compression.

and since rubberband does stretch files, the format 22127 is probably valid and indicating some kind of compression?

@binarykitchen
Copy link
Author

Btw, the ffmpeg command I used to generate that stretched wav file was

ffmpeg -thread_queue_size 2048 -i /home/michael-heuberger/binarykitchen/code/videomail.io/var/local/tmp/clients/videomail.io/11e6-aebd-f5430180-84c7-074d5706928b/videomail_preview.wav -y -acodec libvorbis -ac 1 -filter:a rubberband=tempo=1.454366279637038 -loglevel warning /home/michael-heuberger/binarykitchen/code/videomail.io/var/local/tmp/clients/videomail.io/11e6-aebd-f5430180-84c7-074d5706928b/videomail_preview_for_webm_stretched.wav

@drj-io
Copy link
Member

drj-io commented Nov 22, 2016

Hi thanks for all the info!

We'll take a look ASAP

@ghost
Copy link

ghost commented Nov 24, 2016

Vorbis in WAV is an odd combination. Removing -c:a libvorbis from the command will solve the issue. The "Unknwon" typo could be fixed though.

@binarykitchen
Copy link
Author

right, that audio codec was unnecessary.

but yeah, fixing the unknown typo would be good, thanks

@drj-io
Copy link
Member

drj-io commented Nov 28, 2016

Thanks guys! We'll correct the typo.

@binarykitchen
Copy link
Author

Thx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants