video2mp4: Converting other video format to .mp4

Description Usage Arguments Examples

View source: R/audio2mp4.R

Description

Converting other video format to .mp4

Usage

1
video2mp4(fileFormat = "webm", path, removeSource = FALSE)

Arguments

fileFormat

character, video file format, without "." in front. The default is "webm".

path

character, the path where the files located.

removeSource

logic, removing the original video file after converting.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
{
## Not run: 
url0 = "https://www.youtube.com/watch?v=DejHQYAGb7Q&list=PLkDaE6sCZn6F6wUI9tvS_Gw1vaFAx6rd6"
# the folder to save downloaded files
folder = "/data/surfDrive/TutorialVideos/"

# Video folder
newFolder = videoListDownload(urlSeed = url0, path = folder,
                              saveFileList = TRUE,
                              sleepTime = 5, maxDownload = 200,
                              bothVideoAudio = TRUE)
# Converting
vidio2mp4(fileFormat = "webm", path = newFolder,
          removeSource = FALSE)

## End(Not run)
}

paodan/youtubeDownloader documentation built on Nov. 15, 2020, 9:48 p.m.