Skip to content

Commit 2a42782

Browse files
authored
Make converter output seekable WEBM (#2)
1 parent 8734602 commit 2a42782

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/ex_webrtc_recorder/converter/ffmpeg.ex

+2-1
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)