codecs: Set Default Audio and Video Codecs

Description Usage Arguments Value See Also Examples

Description

Set Default Audio and Video Codecs

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11

Arguments

codec

The codec to use or get for audio/video. Uses the 'ffmpeg_audio_codec' and 'ffmpeg_video_codec' options to store this information.

Value

A 'NULL' output

See Also

[ffmpeg_codecs()] for options

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
## Not run: 
if (have_ffmpeg_exec()) {
print(ffmpeg_version())
get_audio_codec()
set_audio_codec(codec = "libfdk_aac")
get_audio_codec()
set_audio_codec(codec = "aac")
get_audio_codec()
}
if (have_ffmpeg_exec()) {
get_video_codec()
set_video_codec(codec = "libx265") 
get_video_codec()
set_video_codec(codec = "libx264")
get_video_codec()
}
## empty thing
if (have_ffmpeg_exec()) {
video_codec_encode("libx264")

audio_codec_encode("aac")
}

## End(Not run)

ari documentation built on Feb. 9, 2020, 1:07 a.m.