OGMRip Reference Manual | ||||
---|---|---|---|---|
#include <ogmrip-codec.h> OGMRipCodec; OGMRipCodecClass; void ogmrip_codec_set_options (OGMRipCodec *codec, const gchar *section); gchar* ogmrip_codec_get_output (OGMRipCodec *codec); void ogmrip_codec_set_output (OGMRipCodec *codec, const gchar *output); OGMDvdTitle* ogmrip_codec_get_input (OGMRipCodec *codec); void ogmrip_codec_set_input (OGMRipCodec *codec, OGMDvdTitle *title); gdouble ogmrip_codec_get_length (OGMRipCodec *codec, OGMDvdTime *length); gboolean ogmrip_codec_get_telecine (OGMRipCodec *codec); void ogmrip_codec_set_telecine (OGMRipCodec *codec, gboolean telecine); gboolean ogmrip_codec_get_progressive (OGMRipCodec *codec); void ogmrip_codec_set_progressive (OGMRipCodec *codec, gboolean progressive); void ogmrip_codec_set_edl (OGMRipCodec *codec, OGMRipEdl *edl); OGMRipEdl* ogmrip_codec_get_edl (OGMRipCodec *codec); void ogmrip_codec_set_chapters (OGMRipCodec *codec, guint start, gint end); void ogmrip_codec_get_chapters (OGMRipCodec *codec, guint *start, guint *end); void ogmrip_codec_set_framerate (OGMRipCodec *codec, guint numerator, guint denominator); void ogmrip_codec_get_framerate (OGMRipCodec *codec, guint *numerator, guint *denominator); void ogmrip_codec_set_framestep (OGMRipCodec *codec, guint framestep); gint ogmrip_codec_get_framestep (OGMRipCodec *codec); void ogmrip_codec_set_play_length (OGMRipCodec *codec, gdouble length); gdouble ogmrip_codec_get_play_length (OGMRipCodec *codec); void ogmrip_codec_set_start (OGMRipCodec *codec, gdouble start); gdouble ogmrip_codec_get_start (OGMRipCodec *codec); void ogmrip_codec_set_unlink_on_unref (OGMRipCodec *codec, gboolean do_unlink); gboolean ogmrip_codec_get_unlink_on_unref (OGMRipCodec *codec);
GObject +----OGMJobSpawn +----OGMJobContainer +----OGMJobBin +----OGMRipCodec +----OGMRipAudioCodec +----OGMRipChapters +----OGMRipDvdCpy +----OGMRipSubpCodec +----OGMRipVideoCodec
"end-chapter" gint : Read / Write "framestep" guint : Read / Write "input" gpointer : Read / Write "length" gdouble : Read "output" gchar* : Read / Write "progressive" gboolean : Read / Write "start-chapter" gint : Read / Write "telecine" gboolean : Read / Write
typedef struct { OGMJobBinClass parent_class; /* vtable */ void (* set_options) (OGMRipCodec *codec, const gchar *section); } OGMRipCodecClass;
void ogmrip_codec_set_options (OGMRipCodec *codec, const gchar *section);
Sets codec specific options from the specified profile.
|
An OGMRipCodec |
|
A profile |
gchar* ogmrip_codec_get_output (OGMRipCodec *codec);
Gets the name of the output file.
|
an OGMRipCodec |
Returns : |
the filename, or NULL |
void ogmrip_codec_set_output (OGMRipCodec *codec, const gchar *output);
Sets the name of the output file.
|
an OGMRipCodec |
|
the name of the output file |
OGMDvdTitle* ogmrip_codec_get_input (OGMRipCodec *codec);
Gets the input DVD title.
|
an OGMRipCodec |
Returns : |
an OGMDvdTitle, or NULL |
void ogmrip_codec_set_input (OGMRipCodec *codec, OGMDvdTitle *title);
Sets the input DVD title.
|
an OGMRipCodec |
|
an OGMDvdTitle |
gdouble ogmrip_codec_get_length (OGMRipCodec *codec, OGMDvdTime *length);
Returns the length of the encoding in seconds. If length
is not NULL, the
data structure will be filled with the length in hours, minutes seconds and
frames.
|
an OGMRipCodec |
|
a pointer to store an OGMDvdTime, or NULL |
Returns : |
the length in seconds, or -1.0 |
gboolean ogmrip_codec_get_telecine (OGMRipCodec *codec);
Gets whether an inverse telecine filter will be applied
|
an OGMRipCodec |
Returns : |
TRUE if inverse telecine
|
void ogmrip_codec_set_telecine (OGMRipCodec *codec, gboolean telecine);
Sets whether an inverse telecine filter will be applied
|
an OGMRipCodec |
|
TRUE to inverse telecine
|
gboolean ogmrip_codec_get_progressive (OGMRipCodec *codec);
Gets whether an inverse progressive filter will be applied
|
an OGMRipCodec |
Returns : |
TRUE if inverse progressive
|
void ogmrip_codec_set_progressive (OGMRipCodec *codec, gboolean progressive);
Sets whether an inverse progressive filter will be applied
|
an OGMRipCodec |
|
TRUE to inverse progressive
|
void ogmrip_codec_set_edl (OGMRipCodec *codec, OGMRipEdl *edl);
Sets an edit decision list file.
|
an OGMRipCodec |
|
an OGMRipEdl |
OGMRipEdl* ogmrip_codec_get_edl (OGMRipCodec *codec);
Gets the edit decision list if any.
|
an OGMRipCodec |
Returns : |
an OGMRipEdl, or NULL |
void ogmrip_codec_set_chapters (OGMRipCodec *codec, guint start, gint end);
Sets which chapters to start and end at.
|
an OGMRipCodec |
|
the start chapter |
|
the end chapter |
void ogmrip_codec_get_chapters (OGMRipCodec *codec, guint *start, guint *end);
Gets which chapters to start and end at.
|
an OGMRipCodec |
|
a pointer to set the start chapter |
|
a pointer to set the end chapter |
void ogmrip_codec_set_framerate (OGMRipCodec *codec, guint numerator, guint denominator);
Sets a frames per second (fps) value for the output file, which can be different from that of the source material.
|
an OGMRipCodec |
|
the framerate numerator |
|
the framerate denominator |
void ogmrip_codec_get_framerate (OGMRipCodec *codec, guint *numerator, guint *denominator);
Gets the framerate of the output file in the form of a fraction.
|
an OGMRipCodec |
|
a pointer to store the framerate numerator |
|
a pointer to store the framerate denominator |
void ogmrip_codec_set_framestep (OGMRipCodec *codec, guint framestep);
Skips framestep
frames after every frame.
|
an OGMRipCodec |
|
the framestep |
gint ogmrip_codec_get_framestep (OGMRipCodec *codec);
Gets the number of frames to skip after every frame.
|
an OGMRipCodec |
Returns : |
the framestep, or -1 |
void ogmrip_codec_set_play_length (OGMRipCodec *codec, gdouble length);
Encodes only length
seconds.
|
an OGMRipCodec |
|
the length to encode in seconds |
gdouble ogmrip_codec_get_play_length (OGMRipCodec *codec);
Gets the length to encode in seconds.
|
an OGMRipCodec |
Returns : |
the length, or -1.0 |
void ogmrip_codec_set_start (OGMRipCodec *codec, gdouble start);
Seeks to the given time position.
|
an OGMRipCodec |
|
the position to seek in seconds |
gdouble ogmrip_codec_get_start (OGMRipCodec *codec);
Gets the position to seek in seconds.
|
an OGMRipCodec |
Returns : |
the position, or -1.0 |
void ogmrip_codec_set_unlink_on_unref (OGMRipCodec *codec, gboolean do_unlink);
Whether to unlink the output file on the final unref of the OGMRipCodec data structure.
|
an OGMRipCodec |
|
TRUE to unlink the output file
|
gboolean ogmrip_codec_get_unlink_on_unref (OGMRipCodec *codec);
Returns whether the output file will be unlinked on the final unref of
codec
.
|
an OGMRipCodec |
Returns : |
a boolean |
"end-chapter"
property"end-chapter" gint : Read / Write
Set end chapter.
Allowed values: >= -1
Default value: -1
"progressive"
property"progressive" gboolean : Read / Write
Set progressive.
Default value: FALSE
"start-chapter"
property"start-chapter" gint : Read / Write
Set start chapter.
Allowed values: >= 0
Default value: 0