ffmpegwasm / ffmpegwasm/ffmpeg.wasm

FFmpeg can't combine images & audio to a video, hangs with no callback

Open
#715 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
17.8k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

This is very similar to the issue I mentioned here: #714 (which I found a workaround by using `jpg` instead of `png`). But the behavior are similar: there's no feedback at all (no error, no log, no progress), and the command after it aren't executed (so it's stuck).

As usual, I tested with simpler commands in isolation and they work perfectly: combining images into video, and combining audio with video. Combining them both are not working in FFmpeg.WASM, despite the command I run working perfectly in native FFmpeg.

The command I run is below:
```
await this.ffmpeg.exec([
'-framerate', '1',
'-i', 'images/%03d.png',
'-i', 'audios/001.mp3',
'-map', '0',
'-map', '1:a',
'-r', '30',
'output.mp4'
]);
```

The current workaround I have is to do it in two steps, generating the video first then adding the audio. This should mean there's some gap between the WASM implementation and the native one. While that's to be expected, I kinda curious why does the FFmpeg decided to just get "stuck" without any logs or error.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.