We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8734602 commit 2a42782Copy full SHA for 2a42782
lib/ex_webrtc_recorder/converter/ffmpeg.ex
@@ -17,7 +17,8 @@ defmodule ExWebRTC.Recorder.Converter.FFmpeg do
17
{_io, 0} =
18
System.cmd(
19
"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}),
+ # 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}),
22
stderr_to_stdout: true
23
)
24
0 commit comments