Skip to content

Latest commit

 

History

History
57 lines (39 loc) · 1.48 KB

README.md

File metadata and controls

57 lines (39 loc) · 1.48 KB

ffmpegR

license

These are functions to do common video editing operations in ffmpeg through R.

Works on macOS only for now. Windows support wouldn’t be difficult to add, and I’ll consider it if anyone shows some interest.

Installation

devtools::install_github("nicholascarey/ffmpegR")

Functions

Currently there are three functions:

trim_vid

Simply trims a video between two timepoints.

 trim_vid(dir = "path/to/directory", # location, if not in current working directory
          file = "input_file.mp4", # name of file including extension
          output = "output", # name of output file
          from = "00:02:45", # trim from here...
          to = "00:09:15") # ...to here

join_vid

Joins two videos together into one file.

join_vid(dir = "path/to/directory", # working directory
         file1 = "input_file_1.mp4", # file 1
         file2 = "input_file_2.mp4", # file 2 
         output = "output") # name of output file

remove_fisheye

Removes the ‘fisheye’ effect from GoPro Hero 5 Black videos (other models to follow….)

 remove_fisheye(file = "path/to/file", # input
                dir = "path/to/dir", # directory
                output = "output", # output
                remove_audio = FALSE) # remove the audio?