Skip to content

Commit 9e5c294

Browse files
committed
Make converter output seekable WEBM
1 parent 8734602 commit 9e5c294

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/ex_webrtc_recorder/converter/ffmpeg.ex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ defmodule ExWebRTC.Recorder.Converter.FFmpeg do
1717
{_io, 0} =
1818
System.cmd(
1919
"ffmpeg",
20-
~w(-ss #{video_start_time} -i #{video_file} -ss #{audio_start_time} -i #{audio_file} -c:v copy -c:a copy -shortest #{output_file}),
20+
# FIXME: we're assuming a lot here
21+
~w(-ss #{video_start_time} -i #{video_file} -ss #{audio_start_time} -i #{audio_file} -c:v vp8 -threads 8 -b:v 1.5M -cues_to_front 1 -g 150 -c:a copy -shortest #{output_file}),
2122
stderr_to_stdout: true
2223
)
2324

0 commit comments

Comments
 (0)