28 #ifndef OPENSHOT_WRITER_BASE_H
29 #define OPENSHOT_WRITER_BASE_H
90 void AppendDebugMethod(
string method_name,
string arg1_name,
float arg1_value,
91 string arg2_name,
float arg2_value,
92 string arg3_name,
float arg3_value,
93 string arg4_name,
float arg4_value,
94 string arg5_name,
float arg5_value,
95 string arg6_name,
float arg6_value);
113 virtual bool IsOpen() = 0;
123 Json::Value JsonValue();
125 void SetJsonValue(Json::Value root);
131 virtual void Open() = 0;
int channels
The number of audio channels used in the audio stream.
Header file for Fraction class.
WriterInfo info
Information about the current media file.
int video_bit_rate
The bit rate of the video stream (in bytes)
Header file for ReaderBase class.
Fraction pixel_ratio
The pixel ratio of the video stream as a fraction (i.e. some pixels are not square) ...
string acodec
The name of the audio codec used to encode / decode the video stream.
string vcodec
The name of the video codec used to encode / decode the video stream.
This struct contains info about encoding a media file, such as height, width, frames per second...
This abstract class is the base class, used by all readers in libopenshot.
int width
The width of the video (in pixels)
int audio_bit_rate
The bit rate of the audio stream (in bytes)
Fraction audio_timebase
The audio timebase determines how long each audio packet should be played.
Exception when encoding audio packet.
Fraction video_timebase
The video timebase determines how long each frame stays on the screen.
int video_stream_index
The index of the video stream.
float duration
Length of time (in seconds)
Header file for Frame class.
bool top_field_first
Which interlaced field should be displayed first.
This abstract class is the base class, used by writers. Writers are types of classes that encode vide...
This class represents a fraction.
Header file for ZeroMQ-based Logger class.
int pixel_format
The pixel format (i.e. YUV420P, RGB24, etc...)
Fraction display_ratio
The ratio of width to height of the video stream (i.e. 640x480 has a ratio of 4/3) ...
Header file for ChannelLayout class.
ChannelLayout
This enumeration determines the audio channel layout (such as stereo, mono, 5 point surround...
bool interlaced_frame
Are the contents of this frame interlaced.
int sample_rate
The number of audio samples per second (44100 is a common sample rate)
bool has_video
Determines if this file has a video stream.
Fraction fps
Frames per second, as a fraction (i.e. 24/1 = 24 fps)
int audio_stream_index
The index of the audio stream.
Exception for invalid JSON.
int file_size
Size of file (in bytes)
bool has_audio
Determines if this file has an audio stream.
Exception when a writer is closed, and a frame is requested.
ChannelLayout channel_layout
The channel layout (mono, stereo, 5 point surround, etc...)
int height
The height of the video (in pixels)
long int video_length
The number of frames in the video stream.
bool has_single_image
Determines if this file only contains a single image.