1
0
Fork 0
mirror of https://github.com/codedread/bitjs synced 2025-10-03 09:39:16 +02:00

A couple more unit tests for matroska in codecs and update changelog for release.

This commit is contained in:
Jeff Schiller 2023-10-19 18:18:15 -07:00
parent bb0f40394e
commit 2d0bb47014
2 changed files with 41 additions and 0 deletions

View file

@ -2,6 +2,15 @@
All notable changes to this project will be documented in this file.
## [1.1.4] - 2023-10-19
### Changed
- codecs: Add support for DTS audio codec and AV1 video codec.
- codecs: Update how Matroska video/audio files are detected (video/x-matroska).
[Issue #43](https://github.com/codedread/bitjs/issues/43)
- untar: Fix long path/filenames in 'ustar' format. [Issue #42](https://github.com/codedread/bitjs/issues/43)
## [1.1.3] - 2023-10-15
### Changed

View file

@ -115,9 +115,21 @@ describe('codecs test suite', () => {
format: { format_name: 'matroska,webm' },
streams: [ { codec_type: 'video', codec_name: 'vp8' } ],
})).equals('video/webm');
expect(getShortMIMEString({
format: { format_name: 'matroska,webm' },
streams: [ { codec_type: 'video', codec_name: 'vp9' } ],
})).equals('video/webm');
expect(getShortMIMEString({
format: { format_name: 'matroska,webm' },
streams: [ { codec_type: 'video', codec_name: 'av1' } ],
})).equals('video/webm');
});
it('detects WEBM audio', () => {
expect(getShortMIMEString({
format: { format_name: 'matroska,webm' },
streams: [ { codec_type: 'audio', codec_name: 'opus' } ],
})).equals('audio/webm');
expect(getShortMIMEString({
format: { format_name: 'matroska,webm' },
streams: [ { codec_type: 'audio', codec_name: 'vorbis' } ],
@ -129,9 +141,29 @@ describe('codecs test suite', () => {
format: { format_name: 'matroska,webm' },
streams: [ { codec_type: 'video', codec_name: 'h264' } ],
})).equals('video/x-matroska');
expect(getShortMIMEString({
format: { format_name: 'matroska,webm' },
streams: [
{ codec_type: 'audio', codec_name: 'aac' },
{ codec_type: 'video', codec_name: 'vp9' },
],
})).equals('video/x-matroska');
expect(getShortMIMEString({
format: { format_name: 'matroska,webm' },
streams: [
{ codec_type: 'audio', codec_name: 'vorbis' },
{ codec_type: 'video', codec_name: 'h264' },
],
})).equals('video/x-matroska');
});
it('detects Matroska audio', () => {
expect(getShortMIMEString({
format: { format_name: 'matroska,webm' },
streams: [ { codec_type: 'audio', codec_name: 'aac' } ],
})).equals('audio/x-matroska');
expect(getShortMIMEString({
format: { format_name: 'matroska,webm' },
streams: [ { codec_type: 'audio', codec_name: 'dts' } ],