Skip to content

Commit

Permalink
Merge branch 'release/mp4-media-stream-2024.1.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
sile committed Oct 28, 2024
2 parents aa9b10d + 8b14925 commit 45b295d
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 6 deletions.
5 changes: 5 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@

## develop

## mp4-media-stream-2024.1.1

- [FIX] 音声のみの MP4 をロードした後に `Mp4MediaStream.play()` を呼び出すとエラーになる問題を修正する
- @sile

## mp4-media-stream-2024.1.0

**初リリース**
Expand Down
4 changes: 3 additions & 1 deletion examples/light-adjustment-gpu/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
<body>
<h1>Media Processors: ライト調整(GPU)サンプル</h1>

<b>GitHub: <a href="https://github.com/shiguredo/media-processors/tree/develop/packages/light-adjustment-gpu">https://github.com/shiguredo/media-processors/tree/develop/packages/light-adjustment-gpu</a></b>

<h3>入力映像設定</h3>
解像度: <input id="videoWidth" type="number" min="1" max="2000" value="640">x
<input id="videoHeight" type="number" min="1" max="2000" value="360">
Expand Down Expand Up @@ -40,4 +42,4 @@ <h3>左: 処理映像、右: オリジナル映像</h3>
<script type="module" src="./main.mts"></script>
</body>

</html>
</html>
2 changes: 2 additions & 0 deletions examples/light-adjustment/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
<body>
<h1>Media Processors: ライト調整サンプル</h1>

<b>GitHub: <a href="https://github.com/shiguredo/media-processors/tree/develop/packages/light-adjustment">https://github.com/shiguredo/media-processors/tree/develop/packages/light-adjustment</a></b>

<h3>入力映像設定</h3>
解像度: <input id="videoWidth" type="number" min="1" max="2000" value="480">x
<input id="videoHeight" type="number" min="1" max="2000" value="360">
Expand Down
4 changes: 3 additions & 1 deletion examples/mp4-media-stream/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@
<body>
<h1>Media Processors: MP4 メディアストリームサンプル</h1>

<b>GitHub: <a href="https://github.com/shiguredo/media-processors/tree/develop/packages/mp4-media-stream">https://github.com/shiguredo/media-processors/tree/develop/packages/mp4-media-stream</a></b>

<h3>入力 MP4 ファイル</h3>
ファイル選択後に「再生開始」ボタンを押してください。
再生する MP4 ファイルを選択した後に「再生開始」ボタンを押してください。
<br /><br />
<input id="input" type="file" accept="video/mp4" />
<br /><br />
Expand Down
4 changes: 3 additions & 1 deletion examples/noise-suppression/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
<body>
<h1>Media Processors: ノイズ抑制サンプル</h1>

<b>GitHub: <a href="https://github.com/shiguredo/media-processors/tree/develop/packages/noise-suppression">https://github.com/shiguredo/media-processors/tree/develop/packages/noise-suppression</a></b>

マイクに入力した音声が、ノイズ抑制されてスピーカから出力されます。<br />
<strong><span style="color:#F00">※ イヤホン推奨</span></strong><br />
<br />
Expand All @@ -26,4 +28,4 @@ <h3>波形: 左=オリジナル、右=ノイズ抑制後</h3>
<script type="module" src="./main.mts"></script>
</body>

</html>
</html>
4 changes: 3 additions & 1 deletion examples/virtual-background/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
<body>
<h1>Media Processors: 仮想背景サンプル</h1>

<b>GitHub: <a href="https://github.com/shiguredo/media-processors/tree/develop/packages/virtual-background">https://github.com/shiguredo/media-processors/tree/develop/packages/virtual-background</a></b>

<h3>入力設定</h3>
解像度: <input id="videoWidth" type="text" value="640">x<input id="videoHeight" type="text" value="360"><br />
FPS: <input id="videoFps" type="text" value="15"><br />
Expand All @@ -34,4 +36,4 @@ <h3>仮想背景設定</h3>
<script type="module" src="main.mts"></script>
</body>

</html>
</html>
2 changes: 1 addition & 1 deletion packages/mp4-media-stream/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@shiguredo/mp4-media-stream",
"version": "2024.1.0",
"version": "2024.1.1",
"description": "Library to generate MediaStream from MP4 file",
"author": "Shiguredo Inc.",
"license": "Apache-2.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/mp4-media-stream/src/mp4_media_stream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,8 @@ class Mp4MediaStream {
if (!(await VideoDecoder.isConfigSupported(config)).supported) {
throw new Error(`Unsupported video decoder configuration: ${JSON.stringify(config)}`)
}
this.info = info
}
this.info = info

return { audio: info.audioConfigs.length > 0, video: info.videoConfigs.length > 0 }
}
Expand Down

0 comments on commit 45b295d

Please sign in to comment.