StreamPack
Toggle table of contents
3.0.0-RC
androidJvm
Platform filter
androidJvm
Switch theme
Search in API
StreamPack
streampack-core
/
io.github.thibaultbee.streampack.core.elements.encoders
/
VideoCodecConfig
/
VideoCodecConfig
Video
Codec
Config
constructor
(
mimeType
:
String
=
MediaFormat.MIMETYPE_VIDEO_AVC
,
resolution
:
Size
=
DEFAULT_RESOLUTION
,
startBitrate
:
Int
=
getBestBitrate(resolution)
,
fps
:
Int
=
DEFAULT_FPS
,
profileLevel
:
MediaCodecInfo.CodecProfileLevel
,
gopDurationInS
:
Float
=
1.0f
)
constructor
(
mimeType
:
String
=
MediaFormat.MIMETYPE_VIDEO_AVC
,
startBitrate
:
Int
,
resolution
:
Size
=
Size(1280, 720)
,
fps
:
Int
=
30
,
profile
:
Int
=
getBestProfile(mimeType)
,
level
:
Int
=
getBestLevel(mimeType, profile)
,
gopDurationInS
:
Float
=
1.0f
)