OpenShot Library | libopenshot
0.2.2
|
Go to the documentation of this file.
28 #ifndef OPENSHOT_WRITER_BASE_H
29 #define OPENSHOT_WRITER_BASE_H
100 virtual bool IsOpen() = 0;
103 virtual void WriteFrame(std::shared_ptr<Frame> frame) = 0;
106 virtual void WriteFrame(
ReaderBase* reader, int64_t start, int64_t length) = 0;
110 Json::Value JsonValue();
111 void SetJson(
string value);
112 void SetJsonValue(Json::Value root);
118 virtual void Open() = 0;
std::map< string, string > metadata
An optional map/dictionary of video & audio metadata.
bool has_single_image
Determines if this file only contains a single image.
Header file for ChannelLayout class.
int64_t video_length
The number of frames in the video stream.
int video_bit_rate
The bit rate of the video stream (in bytes)
string vcodec
The name of the video codec used to encode / decode the video stream.
Header file for Fraction class.
This namespace is the default namespace for all code in the openshot library.
string acodec
The name of the audio codec used to encode / decode the video stream.
int audio_bit_rate
The bit rate of the audio stream (in bytes)
int channels
The number of audio channels used in the audio stream.
Fraction pixel_ratio
The pixel ratio of the video stream as a fraction (i.e. some pixels are not square)
This class represents a fraction.
This struct contains info about encoding a media file, such as height, width, frames per second,...
Fraction audio_timebase
The audio timebase determines how long each audio packet should be played.
int video_stream_index
The index of the video stream.
Fraction video_timebase
The video timebase determines how long each frame stays on the screen.
int width
The width of the video (in pixels)
bool top_field_first
Which interlaced field should be displayed first.
int64_t file_size
Size of file (in bytes)
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 ZeroMQ-based Logger class.
float duration
Length of time (in seconds)
Fraction fps
Frames per second, as a fraction (i.e. 24/1 = 24 fps)
int pixel_format
The pixel format (i.e. YUV420P, RGB24, etc...)
Header file for Frame class.
bool has_video
Determines if this file has a video stream.
bool has_audio
Determines if this file has an audio stream.
Header file for ReaderBase class.
int height
The height of the video (in pixels)
ChannelLayout channel_layout
The channel layout (mono, stereo, 5 point surround, etc...)
This abstract class is the base class, used by all readers in libopenshot.
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)
ChannelLayout
This enumeration determines the audio channel layout (such as stereo, mono, 5 point surround,...
int audio_stream_index
The index of the audio stream.
WriterInfo info
Information about the current media file.
This abstract class is the base class, used by writers. Writers are types of classes that encode vide...