ffmpegwasm / ffmpegwasm/ffmpeg.wasm

TypeError [ERR_WORKER_PATH]: The worker script or module filename must be an absolute path or a relative path

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

説明

**Describe the bug**
Hi, I'm trying to implement a feature which is live transcoding a hls stream (h265) to another hls stream (h264) so the video can be played using html5 as we know that h265 is not supported on browsers. This in an Electron desktop app by the way.

However, when running this ffmpeg command: -i http://10.70.39.32:80/streams/60dd68f…/stream/60dd68f….m3u8 -vcodec libx264 -acodec copy -f hls -hls_list_size 3 -hls_wrap 5 playlist.m3u8

I encountered this error about worker could not find the necessary script.

![image](https://user-images.githubusercontent.com/28868992/124858508-64ae3300-dfd8-11eb-8a3b-34b81d34b357.png)

**To Reproduce**
Steps to reproduce the behavior:

My dev Enviroment:

```
"devDependencies": {
"electron": "^13.1.5",
"electron-packager": "^13.0.1",
"electron-winstaller": "^2.7.0"
}
```
Steps to reproduce:

1. Includes the script in header tag:
`
`
2. Load ffmpeg in the body:

```
Play





var player = videojs('my_video_1');


async function loadPlayerHEVC() {
var resource = 'http://10.70.39.32:80/streams/60dd68fdc88f570012526657/stream/60dd68fdc8....526657.m3u8'
const { createFFmpeg } = FFmpeg;
const ffmpeg = createFFmpeg({ log: true });
const { fetchFile } = FFmpeg;
await ffmpeg.load();
await ffmpeg.run('-i', resource, '-vcodec', 'libx264', '-acodec', 'copy', '-f' ,'hls', '-hls_list_size', '3', '-hls_wrap', '5', 'playlist.m3u8' );
// ffmpeg.exit(0);
}

```
Any help would be much appreciated.

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

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

評価

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

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

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