Subtitles aren’t being burnt into the video | embedding srt into video frames

Describe the bug

I’m trying to burn a subtitles.srt file onto the video (having the subtitle embeded within the frames themselves)

To Reproduce

both `input.mp4` and `subtitles.srt` are available to the WASM FFMPEG FS
const converted = await ffmpegRef.current.exec([
    '-i', "input.mp4", // Input File
    '-i', 'subtitles.srt',  // Burn subtitles into video
    '-vf', 'subtitles=subtitles.srt',  // Burn subtitles into video
    "output.mp4" // Output File
]);

Expected behavior

The Subtitles should be burned into the video.

Desktop:

  • OS: Windows 10
  • Browser Chrome
  • Version 122.0.6261.94 (Official Build) (64-bit) (cohort: M122 Rollout)

Additional context

Example extract from the subtitles.srt file

1
00:00:00,280 --> 00:00:01,379
Hi,

2
00:00:01,379 --> 00:00:01,679
and

3
00:00:01,679 --> 00:00:01,980
welcome

4
00:00:01,980 --> 00:00:02,200
to

5
00:00:02,200 --> 00:00:03,220
ClipDrop.

6
00:00:03,799 --> 00:00:03,919
Congratulations

7
00:00:03,919 --> 00:00:04,400
on

8
00:00:04,400 --> 00:00:04,719
being

9
00:00:04,719 --> 00:00:05,040
selected

10
00:00:05,040 --> 00:00:05,259
to

11
00:00:05,259 --> 00:00:05,480
do