ffmpegwasm / ffmpegwasm/ffmpeg.wasm

Send ts file to Medialive

Đang mở
#158 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
C
Star
17.8k
Fork
1.1k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

**Describe the bug**

Hello,

I'm trying to send a ts file to AWS Medialive. When I send the file with command line it's work well but I can't send it with ffmpeg.wasm

Here is the error :

```
[info] run ffmpeg command: -re -i http://localhost:8080/video.ts -c copy -map 0 -f rtp_mpegts -fec prompeg=l=5:d=20 rtp://xx.xx.xx.xxx:5000
[fferr] ffmpeg version v0.8.5 Copyright (c) 2000-2020 the FFmpeg developers
[fferr] built with emcc (Emscripten gcc/clang-like replacement) 2.0.8 (d059fd603d0b45b584f634dc2365bc9e9a6ec1dd)
[fferr] configuration: --target-os=none --arch=x86_32 --enable-cross-compile --disable-x86asm --disable-inline-asm --disable-stripping --disable-programs --disable-doc --disable-debug --disable-runtime-cpudetect --disable-autodetect --extra-cflags='-s USE_PTHREADS=1 -I/src/build/include -O3 --closure 1' --extra-cxxflags='-s USE_PTHREADS=1 -I/src/build/include -O3 --closure 1' --extra-ldflags='-s USE_PTHREADS=1 -I/src/build/include -O3 --closure 1 -L/src/build/lib' --pkg-config-flags=--static --nm=llvm-nm --ar=emar --ranlib=emranlib --cc=emcc --cxx=em++ --objcc=emcc --dep-cc=emcc --enable-gpl --enable-nonfree --enable-zlib --enable-libx264 --enable-libx265 --enable-libvpx --enable-libwavpack --enable-libmp3lame --enable-libfdk-aac --enable-libtheora --enable-libvorbis --enable-libfreetype --enable-libopus --enable-libwebp
[fferr] libavutil 56. 51.100 / 56. 51.100
[fferr] libavcodec 58. 91.100 / 58. 91.100
[fferr] libavformat 58. 45.100 / 58. 45.100
[fferr] libavdevice 58. 10.100 / 58. 10.100
[fferr] libavfilter 7. 85.100 / 7. 85.100
[fferr] libswscale 5. 7.100 / 5. 7.100
[fferr] libswresample 3. 7.100 / 3. 7.100
[fferr] libpostproc 55. 7.100 / 55. 7.100
WebSocket connection to 'ws://localhost:8080/' failed: WebSocket opening handshake timed out
[fferr] [tcp @ 0x1a36500] Connection to tcp://localhost:8080 failed: Connection refused
[fferr] http://localhost:8080/video.ts: Connection refused
[ffout] FFMPEG_END
```

**To Reproduce**

The command line :
ffmpeg -re -i video.ts -c copy -map 0 -f rtp_mpegts -fec prompeg=l=5:d=20 rtp://xx.xx.xx.xxx:5000

The code in the React.js app :
```
const res = await ffmpeg.run(
"-re",
"-i",
`${window.location.origin}/video.ts`,
"-c",
"copy",
"-map",
"0",
"-f",
"rtp_mpegts",
"-fec",
"prompeg=l=5:d=20",
"rtp://xx.xx.xx.xxx:5000"
);
```

**Expected behavior**

The same comportement than the command live : video accessible in the preview of mediapackage.

**Additional context**

`"@ffmpeg/ffmpeg": "^0.9.7",`

Thanks a lot !

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.