silent_video v0.2.0 SilentVideo.FFmpexCommon

Summary

Functions

Use yuv420p pixel format instead of FFmpeg default yuv444p. Requires width and height divisible by 2, so adds “-vf scale=…” option

Remove audio track

Move the index to the beginning of the file so it can be streamed

Functions

compatible_pixel_format(ffmpex_command, output_width \\ nil, output_height \\ nil, max_width \\ nil, max_height \\ nil)

Use yuv420p pixel format instead of FFmpeg default yuv444p. Requires width and height divisible by 2, so adds “-vf scale=…” option.

remove_audio(ffmpex_command)

Remove audio track.

streamable(ffmpex_command)

Move the index to the beginning of the file so it can be streamed.