Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
Loading...
Searching...
No Matches
Jellyfin::DTO::TranscodingProfile Class Reference

#include <transcodingprofile.h>

Public Member Functions

 TranscodingProfile (QString container, DlnaProfileType type, QString videoCodec, QString audioCodec, MediaStreamProtocol protocol, std::optional< bool > estimateContentLength, std::optional< bool > enableMpegtsM2TsMode, TranscodeSeekInfo transcodeSeekInfo, std::optional< bool > copyTimestamps, EncodingContext context, std::optional< bool > enableSubtitlesInManifest, std::optional< qint32 > minSegments, std::optional< qint32 > segmentLength, std::optional< bool > breakOnNonKeyFrames, QList< ProfileCondition > conditions, std::optional< bool > enableAudioVbrEncoding)
 TranscodingProfile (const TranscodingProfile &other)
void replaceData (TranscodingProfile &other)
void setFromJson (QJsonObject source)
QJsonObject toJson () const
QString container () const
 Gets or sets the container.
void setContainer (QString newContainer)
 Gets or sets the container.
DlnaProfileType type () const
void setType (DlnaProfileType newType)
QString videoCodec () const
 Gets or sets the video codec.
void setVideoCodec (QString newVideoCodec)
 Gets or sets the video codec.
QString audioCodec () const
 Gets or sets the audio codec.
void setAudioCodec (QString newAudioCodec)
 Gets or sets the audio codec.
MediaStreamProtocol protocol () const
void setProtocol (MediaStreamProtocol newProtocol)
std::optional< bool > estimateContentLength () const
 Gets or sets a value indicating whether the content length should be estimated.
void setEstimateContentLength (std::optional< bool > newEstimateContentLength)
 Gets or sets a value indicating whether the content length should be estimated.
std::optional< bool > enableMpegtsM2TsMode () const
 Gets or sets a value indicating whether M2TS mode is enabled.
void setEnableMpegtsM2TsMode (std::optional< bool > newEnableMpegtsM2TsMode)
 Gets or sets a value indicating whether M2TS mode is enabled.
TranscodeSeekInfo transcodeSeekInfo () const
void setTranscodeSeekInfo (TranscodeSeekInfo newTranscodeSeekInfo)
std::optional< bool > copyTimestamps () const
 Gets or sets a value indicating whether timestamps should be copied.
void setCopyTimestamps (std::optional< bool > newCopyTimestamps)
 Gets or sets a value indicating whether timestamps should be copied.
EncodingContext context () const
void setContext (EncodingContext newContext)
std::optional< bool > enableSubtitlesInManifest () const
 Gets or sets a value indicating whether subtitles are allowed in the manifest.
void setEnableSubtitlesInManifest (std::optional< bool > newEnableSubtitlesInManifest)
 Gets or sets a value indicating whether subtitles are allowed in the manifest.
QString maxAudioChannels () const
 Gets or sets the maximum audio channels.
void setMaxAudioChannels (QString newMaxAudioChannels)
 Gets or sets the maximum audio channels.
bool maxAudioChannelsNull () const
void setMaxAudioChannelsNull ()
std::optional< qint32 > minSegments () const
 Gets or sets the minimum amount of segments.
void setMinSegments (std::optional< qint32 > newMinSegments)
 Gets or sets the minimum amount of segments.
std::optional< qint32 > segmentLength () const
 Gets or sets the segment length.
void setSegmentLength (std::optional< qint32 > newSegmentLength)
 Gets or sets the segment length.
std::optional< bool > breakOnNonKeyFrames () const
 Gets or sets a value indicating whether breaking the video stream on non-keyframes is supported.
void setBreakOnNonKeyFrames (std::optional< bool > newBreakOnNonKeyFrames)
 Gets or sets a value indicating whether breaking the video stream on non-keyframes is supported.
QList< ProfileConditionconditions () const
 Gets or sets the profile conditions.
void setConditions (QList< ProfileCondition > newConditions)
 Gets or sets the profile conditions.
std::optional< bool > enableAudioVbrEncoding () const
 Gets or sets a value indicating whether variable bitrate encoding is supported.
void setEnableAudioVbrEncoding (std::optional< bool > newEnableAudioVbrEncoding)
 Gets or sets a value indicating whether variable bitrate encoding is supported.

Static Public Member Functions

static TranscodingProfile fromJson (QJsonObject source)

Protected Attributes

QString m_container
DlnaProfileType m_type
QString m_videoCodec
QString m_audioCodec
MediaStreamProtocol m_protocol
std::optional< bool > m_estimateContentLength = std::nullopt
std::optional< bool > m_enableMpegtsM2TsMode = std::nullopt
TranscodeSeekInfo m_transcodeSeekInfo
std::optional< bool > m_copyTimestamps = std::nullopt
EncodingContext m_context
std::optional< bool > m_enableSubtitlesInManifest = std::nullopt
QString m_maxAudioChannels
std::optional< qint32 > m_minSegments = std::nullopt
std::optional< qint32 > m_segmentLength = std::nullopt
std::optional< bool > m_breakOnNonKeyFrames = std::nullopt
QList< ProfileConditionm_conditions
std::optional< bool > m_enableAudioVbrEncoding = std::nullopt

Constructor & Destructor Documentation

◆ TranscodingProfile() [1/2]

Jellyfin::DTO::TranscodingProfile::TranscodingProfile ( QString container,
DlnaProfileType type,
QString videoCodec,
QString audioCodec,
MediaStreamProtocol protocol,
std::optional< bool > estimateContentLength,
std::optional< bool > enableMpegtsM2TsMode,
TranscodeSeekInfo transcodeSeekInfo,
std::optional< bool > copyTimestamps,
EncodingContext context,
std::optional< bool > enableSubtitlesInManifest,
std::optional< qint32 > minSegments,
std::optional< qint32 > segmentLength,
std::optional< bool > breakOnNonKeyFrames,
QList< ProfileCondition > conditions,
std::optional< bool > enableAudioVbrEncoding )

◆ TranscodingProfile() [2/2]

Jellyfin::DTO::TranscodingProfile::TranscodingProfile ( const TranscodingProfile & other)

Member Function Documentation

◆ audioCodec()

QString Jellyfin::DTO::TranscodingProfile::audioCodec ( ) const

Gets or sets the audio codec.

◆ breakOnNonKeyFrames()

std::optional< bool > Jellyfin::DTO::TranscodingProfile::breakOnNonKeyFrames ( ) const

Gets or sets a value indicating whether breaking the video stream on non-keyframes is supported.

◆ conditions()

QList< ProfileCondition > Jellyfin::DTO::TranscodingProfile::conditions ( ) const

Gets or sets the profile conditions.

◆ container()

QString Jellyfin::DTO::TranscodingProfile::container ( ) const

Gets or sets the container.

◆ context()

EncodingContext Jellyfin::DTO::TranscodingProfile::context ( ) const

◆ copyTimestamps()

std::optional< bool > Jellyfin::DTO::TranscodingProfile::copyTimestamps ( ) const

Gets or sets a value indicating whether timestamps should be copied.

◆ enableAudioVbrEncoding()

std::optional< bool > Jellyfin::DTO::TranscodingProfile::enableAudioVbrEncoding ( ) const

Gets or sets a value indicating whether variable bitrate encoding is supported.

◆ enableMpegtsM2TsMode()

std::optional< bool > Jellyfin::DTO::TranscodingProfile::enableMpegtsM2TsMode ( ) const

Gets or sets a value indicating whether M2TS mode is enabled.

◆ enableSubtitlesInManifest()

std::optional< bool > Jellyfin::DTO::TranscodingProfile::enableSubtitlesInManifest ( ) const

Gets or sets a value indicating whether subtitles are allowed in the manifest.

◆ estimateContentLength()

std::optional< bool > Jellyfin::DTO::TranscodingProfile::estimateContentLength ( ) const

Gets or sets a value indicating whether the content length should be estimated.

◆ fromJson()

TranscodingProfile Jellyfin::DTO::TranscodingProfile::fromJson ( QJsonObject source)
static

◆ maxAudioChannels()

QString Jellyfin::DTO::TranscodingProfile::maxAudioChannels ( ) const

Gets or sets the maximum audio channels.

◆ maxAudioChannelsNull()

bool Jellyfin::DTO::TranscodingProfile::maxAudioChannelsNull ( ) const

◆ minSegments()

std::optional< qint32 > Jellyfin::DTO::TranscodingProfile::minSegments ( ) const

Gets or sets the minimum amount of segments.

◆ protocol()

MediaStreamProtocol Jellyfin::DTO::TranscodingProfile::protocol ( ) const

◆ replaceData()

void Jellyfin::DTO::TranscodingProfile::replaceData ( TranscodingProfile & other)

Replaces the data being hold by this class with that of the other.

◆ segmentLength()

std::optional< qint32 > Jellyfin::DTO::TranscodingProfile::segmentLength ( ) const

Gets or sets the segment length.

◆ setAudioCodec()

void Jellyfin::DTO::TranscodingProfile::setAudioCodec ( QString newAudioCodec)

Gets or sets the audio codec.

◆ setBreakOnNonKeyFrames()

void Jellyfin::DTO::TranscodingProfile::setBreakOnNonKeyFrames ( std::optional< bool > newBreakOnNonKeyFrames)

Gets or sets a value indicating whether breaking the video stream on non-keyframes is supported.

◆ setConditions()

void Jellyfin::DTO::TranscodingProfile::setConditions ( QList< ProfileCondition > newConditions)

Gets or sets the profile conditions.

◆ setContainer()

void Jellyfin::DTO::TranscodingProfile::setContainer ( QString newContainer)

Gets or sets the container.

◆ setContext()

void Jellyfin::DTO::TranscodingProfile::setContext ( EncodingContext newContext)

◆ setCopyTimestamps()

void Jellyfin::DTO::TranscodingProfile::setCopyTimestamps ( std::optional< bool > newCopyTimestamps)

Gets or sets a value indicating whether timestamps should be copied.

◆ setEnableAudioVbrEncoding()

void Jellyfin::DTO::TranscodingProfile::setEnableAudioVbrEncoding ( std::optional< bool > newEnableAudioVbrEncoding)

Gets or sets a value indicating whether variable bitrate encoding is supported.

◆ setEnableMpegtsM2TsMode()

void Jellyfin::DTO::TranscodingProfile::setEnableMpegtsM2TsMode ( std::optional< bool > newEnableMpegtsM2TsMode)

Gets or sets a value indicating whether M2TS mode is enabled.

◆ setEnableSubtitlesInManifest()

void Jellyfin::DTO::TranscodingProfile::setEnableSubtitlesInManifest ( std::optional< bool > newEnableSubtitlesInManifest)

Gets or sets a value indicating whether subtitles are allowed in the manifest.

◆ setEstimateContentLength()

void Jellyfin::DTO::TranscodingProfile::setEstimateContentLength ( std::optional< bool > newEstimateContentLength)

Gets or sets a value indicating whether the content length should be estimated.

◆ setFromJson()

void Jellyfin::DTO::TranscodingProfile::setFromJson ( QJsonObject source)

◆ setMaxAudioChannels()

void Jellyfin::DTO::TranscodingProfile::setMaxAudioChannels ( QString newMaxAudioChannels)

Gets or sets the maximum audio channels.

◆ setMaxAudioChannelsNull()

void Jellyfin::DTO::TranscodingProfile::setMaxAudioChannelsNull ( )

◆ setMinSegments()

void Jellyfin::DTO::TranscodingProfile::setMinSegments ( std::optional< qint32 > newMinSegments)

Gets or sets the minimum amount of segments.

◆ setProtocol()

void Jellyfin::DTO::TranscodingProfile::setProtocol ( MediaStreamProtocol newProtocol)

◆ setSegmentLength()

void Jellyfin::DTO::TranscodingProfile::setSegmentLength ( std::optional< qint32 > newSegmentLength)

Gets or sets the segment length.

◆ setTranscodeSeekInfo()

void Jellyfin::DTO::TranscodingProfile::setTranscodeSeekInfo ( TranscodeSeekInfo newTranscodeSeekInfo)

◆ setType()

void Jellyfin::DTO::TranscodingProfile::setType ( DlnaProfileType newType)

◆ setVideoCodec()

void Jellyfin::DTO::TranscodingProfile::setVideoCodec ( QString newVideoCodec)

Gets or sets the video codec.

◆ toJson()

QJsonObject Jellyfin::DTO::TranscodingProfile::toJson ( ) const

◆ transcodeSeekInfo()

TranscodeSeekInfo Jellyfin::DTO::TranscodingProfile::transcodeSeekInfo ( ) const

◆ type()

DlnaProfileType Jellyfin::DTO::TranscodingProfile::type ( ) const

◆ videoCodec()

QString Jellyfin::DTO::TranscodingProfile::videoCodec ( ) const

Gets or sets the video codec.

Member Data Documentation

◆ m_audioCodec

QString Jellyfin::DTO::TranscodingProfile::m_audioCodec
protected

◆ m_breakOnNonKeyFrames

std::optional<bool> Jellyfin::DTO::TranscodingProfile::m_breakOnNonKeyFrames = std::nullopt
protected

◆ m_conditions

QList<ProfileCondition> Jellyfin::DTO::TranscodingProfile::m_conditions
protected

◆ m_container

QString Jellyfin::DTO::TranscodingProfile::m_container
protected

◆ m_context

EncodingContext Jellyfin::DTO::TranscodingProfile::m_context
protected

◆ m_copyTimestamps

std::optional<bool> Jellyfin::DTO::TranscodingProfile::m_copyTimestamps = std::nullopt
protected

◆ m_enableAudioVbrEncoding

std::optional<bool> Jellyfin::DTO::TranscodingProfile::m_enableAudioVbrEncoding = std::nullopt
protected

◆ m_enableMpegtsM2TsMode

std::optional<bool> Jellyfin::DTO::TranscodingProfile::m_enableMpegtsM2TsMode = std::nullopt
protected

◆ m_enableSubtitlesInManifest

std::optional<bool> Jellyfin::DTO::TranscodingProfile::m_enableSubtitlesInManifest = std::nullopt
protected

◆ m_estimateContentLength

std::optional<bool> Jellyfin::DTO::TranscodingProfile::m_estimateContentLength = std::nullopt
protected

◆ m_maxAudioChannels

QString Jellyfin::DTO::TranscodingProfile::m_maxAudioChannels
protected

◆ m_minSegments

std::optional<qint32> Jellyfin::DTO::TranscodingProfile::m_minSegments = std::nullopt
protected

◆ m_protocol

MediaStreamProtocol Jellyfin::DTO::TranscodingProfile::m_protocol
protected

◆ m_segmentLength

std::optional<qint32> Jellyfin::DTO::TranscodingProfile::m_segmentLength = std::nullopt
protected

◆ m_transcodeSeekInfo

TranscodeSeekInfo Jellyfin::DTO::TranscodingProfile::m_transcodeSeekInfo
protected

◆ m_type

DlnaProfileType Jellyfin::DTO::TranscodingProfile::m_type
protected

◆ m_videoCodec

QString Jellyfin::DTO::TranscodingProfile::m_videoCodec
protected

The documentation for this class was generated from the following files: