ffmpegwasm / ffmpegwasm/ffmpeg.wasm

generate thumbnail png from hls m3u8 video stream

オープン
#161 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
C
スター
17.8k
フォーク
1.1k
PR マージ指標
30日以内にマージされた PR はありません

説明

```
const str = 'https://bitdash-a.akamaihd.net/content/sintel/hls/playlist.m3u8';
await ffmpeg.load();
const name = 'playlist.m3u8';
ffmpeg.FS('writeFile', name, await fetchFile(str));
await ffmpeg.run(
'-i', name, '-ss', '00:00:00', '-vframes', '1', '-s', '160x90',
// '-vcodec', 'copy', '-c', 'copy', '-bsf:a', 'aac_adtstoasc',
'output.png'
);
const data = ffmpeg.FS('readFile', 'output.png');
setImageSrc(URL.createObjectURL(new Blob([data.buffer], { type: 'image/png' })));
```

![image](https://user-images.githubusercontent.com/48445639/108716889-524dc400-7525-11eb-8501-6bc31c8a981e.png)

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。