silent_video v0.1.0 SilentVideo.FFmpexCommon

Summary

Functions

Use yuv420p pixel format instead of FFmpeg default yuv444p. Requires width 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_height \\ "ih")

Use yuv420p pixel format instead of FFmpeg default yuv444p. Requires width 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.