CVB++ 14.0
DirectShowSettings Class Reference

Settings for initializing a direct show engine recorder. More...

#include <cvb/movie2/recording_settings.hpp>

Inherits RecordingSettings.

Public Member Functions

std::vector< StringAvailableCodecs ()
 Gets the available codecs currently installed in the system. More...
 
String Codec () const
 Gets the name of the codec to use. More...
 
void SetCodec (const String &name)
 Sets the name of the codec to use. More...
 
bool UseMetaData () const noexcept
 Gets whether text metadata is to be written into the stream. More...
 
void SetUseMetaData (bool useMetaData) noexcept
 Sets whether text metadata is to be written into the stream. More...
 
- Public Member Functions inherited from RecordingSettings
double FrameRate () const noexcept
 Gets the frame rate the video uses for playback. More...
 
void SetFrameRate (double frameRate)
 Sets the frame rate the video uses for playback. More...
 
RecordingEngineType EngineType () const noexcept
 Returns the engine type. More...
 

Detailed Description

Settings for initializing a direct show engine recorder.

Examples
Movie2/QtMovie2.

Member Function Documentation

◆ AvailableCodecs()

std::vector< String > AvailableCodecs ( )
inline

Gets the available codecs currently installed in the system.

Returns
List containing the names of the codecs.
Exceptions
Anyexception derived from std::exception including CvbException.

◆ Codec()

String Codec ( ) const
inline

Gets the name of the codec to use.

Returns
The codec name.
Exceptions
Anyexception derived from std::exception including CvbException.

◆ SetCodec()

void SetCodec ( const String name)
inline

Sets the name of the codec to use.

Parameters
[in]nameThe new codec name.
Exceptions
Anyexception derived from std::exception including CvbException.

◆ SetUseMetaData()

void SetUseMetaData ( bool  useMetaData)
inlinenoexcept

Sets whether text metadata is to be written into the stream.

Parameters
[in]useMetaDataTrue to write metadata, false otherwise.
Exceptions
Doesnot throw any exception.

Default is false as some players reject video streams containing text metadata.

◆ UseMetaData()

bool UseMetaData ( ) const
inlinenoexcept

Gets whether text metadata is to be written into the stream.

Returns
True if metadata is written, false otherwise.
Exceptions
Doesnot throw any exception.

Default is false as some players reject video streams containing text metadata.