Convert Video to .mp4

Usage

convert_to_mp4(path, out = paste0(substring(path, 1, nchar(path) - 4), ".mp4"), codec = NULL)

Arguments

path
Path to the in video file.
out
Path to the in out .mp4 file.
codec
An optional codec string to supply ffmpeg. If NULL), convert_to_mp4 will attempt to guess based on in put )path) video file extension.

Description

Reports the length of a video in seconds.

Examples

## Not run: # convert_to_mp4("new_project.wmv")# convert_to_mp4("x.avi")# ## End(Not run)