kixelated / moq-js

Typescript library for Media over QUIC
Apache License 2.0
143 stars 32 forks source link

Issues in boxing of opus encoded audio #86

Closed ErikWAberg closed 10 months ago

ErikWAberg commented 10 months ago

Looking at output of ffprobe before and after -

Before:

[mov,mp4,m4a,3gp,3g2,mj2 @ 0x563823388ec0] overread end of atom 'stsd' by 31 bytes
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x563823388ec0] Could not find codec parameters for stream 0 (Video: none (Opus / 0x7375704F), none, 48000x0): unknown codec
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'dump/audio-init.mp4':
  Metadata:
    major_brand     : iso4
    minor_version   : 0
    compatible_brands: iso4
  Duration: N/A, bitrate: N/A
  Stream #0:0(eng): Video: none (Opus / 0x7375704F), none, 48000x0, 1000k tbr, 1000k tbn, 1000k tbc (default)
    Metadata:
      handler_name    : Track created with MP4Box.js
      vendor_id       : [0][0][0][0]
      encoder         : Ä
    Side data:
      displaymatrix: rotation of nan degrees
Unsupported codec with id 0 for input stream 0

After:

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'dump/audio-init.mp4':
  Metadata:
    major_brand     : iso4
    minor_version   : 0
    compatible_brands: iso4
  Duration: N/A, bitrate: N/A
  Stream #0:0(eng): Audio: opus (Opus / 0x7375704F), 48000 Hz, stereo, fltp (default)
    Metadata:
      handler_name    : Track created with MP4Box.js
      vendor_id       : [0][0][0][0]
ErikWAberg commented 10 months ago

Want me to do something or just forgot to merge? First pr:)

kixelated commented 10 months ago

Heh I just forgot to hit merge. Thanks for fixing this!