![]() |
![]() |
![]() |
OGMRip Reference Manual | ![]() |
---|---|---|---|---|
#include <ogmrip-codec.h> OGMRipCodec; 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); 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_unlink_on_unref (OGMRipCodec *codec, gboolean do_unlink); gboolean ogmrip_codec_get_unlink_on_unref (OGMRipCodec *codec);
GObject +----OGMJobSpawn +----OGMJobContainer +----OGMJobBin +----OGMRipCodec +----OGMRipAudio +----OGMRipChapters +----OGMRipDvdCpy +----OGMRipSubp +----OGMRipVideo
"end-chapter" gint : Read / Write "framerate-denominator" guint : Read / Write "framerate-numerator" guint : Read / Write "framestep" guint : Read / Write "input" gpointer : Read / Write "length" gdouble : Read "output" gchararray : Read / Write "start-chapter" gint : Read / Write
gchar* ogmrip_codec_get_output (OGMRipCodec *codec);
Gets the name of the output file.
codec : |
an OGMRipCodec |
Returns : | the filename, or NULL |
void ogmrip_codec_set_output (OGMRipCodec *codec, const gchar *output);
Sets the name of the output file.
codec : |
an OGMRipCodec |
output : |
the name of the output file |
OGMDvdTitle* ogmrip_codec_get_input (OGMRipCodec *codec);
Gets the input DVD title.
codec : |
an OGMRipCodec |
Returns : | an OGMDvdTitle, or NULL |
void ogmrip_codec_set_input (OGMRipCodec *codec, OGMDvdTitle *title);
Sets the input DVD title.
codec : |
an OGMRipCodec |
title : |
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.
codec : |
an OGMRipCodec |
length : |
a pointer to store an OGMDvdTime, or NULL |
Returns : | the length in seconds, or -1.0 |
void ogmrip_codec_set_edl (OGMRipCodec *codec, OGMRipEdl *edl);
Sets an edit decision list file.
codec : |
an OGMRipCodec |
edl : |
an OGMRipEdl |
OGMRipEdl* ogmrip_codec_get_edl (OGMRipCodec *codec);
Gets the edit decision list if any.
codec : |
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.
codec : |
an OGMRipCodec |
start : |
the start chapter |
end : |
the end chapter |
void ogmrip_codec_get_chapters (OGMRipCodec *codec, guint *start, guint *end);
Gets which chapters to start and end at.
codec : |
an OGMRipCodec |
start : |
a pointer to set the start chapter |
end : |
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.
codec : |
an OGMRipCodec |
numerator : |
the framerate numerator |
denominator : |
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.
codec : |
an OGMRipCodec |
numerator : |
a pointer to store the framerate numerator |
denominator : |
a pointer to store the framerate denominator |
void ogmrip_codec_set_framestep (OGMRipCodec *codec, guint framestep);
Skips framestep
frames after every frame.
codec : |
an OGMRipCodec |
framestep : |
the framestep |
gint ogmrip_codec_get_framestep (OGMRipCodec *codec);
Gets the number of frames to skip after every frame.
codec : |
an OGMRipCodec |
Returns : | the framestep, or -1 |
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.
codec : |
an OGMRipCodec |
do_unlink : |
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
.
codec : |
an OGMRipCodec |
Returns : | a boolean |
end-chapter
" property"end-chapter" gint : Read / Write
Set end chapter.
Allowed values: >= -1
Default value: -1
framerate-denominator
" property"framerate-denominator" guint : Read / Write
Set framerate denominator.
Default value: 1
framerate-numerator
" property"framerate-numerator" guint : Read / Write
Set framerate numerator.
Default value: 25
start-chapter
" property"start-chapter" gint : Read / Write
Set start chapter.
Allowed values: >= 0
Default value: 0