Bug #1354

bag-cat produces WAV files which cannot be processed by some tools

Added by J. Moringen over 11 years ago. Updated over 11 years ago.

Status:ResolvedStart date:01/24/2013
Priority:NormalDue date:
Assignee:J. Moringen% Done:

100%

Category:-
Target version:Robotics Service Bus - rsb-0.9

Description

In GStreamer, the problem looks like this:

Stream claims av_bsp = 264600, which is more than 132300 - invalid data

The problem seems to be that "Block Alignment" in the WAV header should contain the number of bytes required one sample for each channel.

Associated revisions

Revision dac7e1d0
Added by J. Moringen over 11 years ago

Fixed WAV header in formatting/payload-audio-wav.lisp

fixes #1354

GStreamer complained about claimed bitrates not matching actual audio
format.

  • formatting/payload-audio-wav.lisp (write-header): changed value of
    "Block Alignment" header filed width -> channels * width

Revision 3268a1e8
Added by J. Moringen over 11 years ago

Backport: Fixed WAV header in formatting/payload-audio-wav.lisp

refs #1354

GStreamer complained about claimed bitrates not matching actual audio
format.

  • formatting/payload-audio-wav.lisp (write-header): changed value of
    "Block Alignment" header filed width -> channels * width

History

#1 Updated by J. Moringen over 11 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Applied in changeset rsb:rsb-tools-cl|commit:dac7e1d0cf2c7f18c122adbd73b88696f11a8b4a.

Also available in: Atom PDF