Functions | |
void | quicktime_set_framerate (quicktime_t *file, double framerate) |
Set the framerate for encoding. | |
int | quicktime_set_video (quicktime_t *file, int tracks, int frame_w, int frame_h, double frame_rate, char *compressor) |
Set up video tracks for encoding. | |
void | quicktime_set_jpeg (quicktime_t *file, int quality, int use_float) |
Set jpeg encoding quality. | |
void | quicktime_set_parameter (quicktime_t *file, char *key, void *value) |
Set a codec parameter. | |
void | quicktime_set_depth (quicktime_t *file, int depth, int track) |
Set the depth of a video track. | |
int | quicktime_write_frame (quicktime_t *file, uint8_t *video_buffer, int64_t bytes, int track) |
Write a compressed video frame. | |
int | quicktime_writes_cmodel (quicktime_t *file, int colormodel, int track) |
Check if a colormodel is supported for encoding. | |
int | quicktime_encode_video (quicktime_t *file, unsigned char **row_pointers, int track) |
Encode a video frame. | |
int | lqt_set_pixel_aspect (quicktime_t *file, int track, int pixel_width, int pixel_height) |
Set the pixel aspect ratio of a video track. | |
int | lqt_set_interlace_mode (quicktime_t *file, int track, lqt_interlace_mode_t mode) |
Set the interlace mode. | |
int | lqt_set_video (quicktime_t *file, int tracks, int frame_w, int frame_h, int frame_duration, int timescale, lqt_codec_info_t *codec_info) |
Set up video tracks for encoding. | |
int | lqt_add_video_track (quicktime_t *file, int frame_w, int frame_h, int frame_duration, int timescale, lqt_codec_info_t *codec_info) |
Add a video track for encoding. | |
int | lqt_set_video_pass (quicktime_t *file, int pass, int total_passes, const char *stats_file, int track) |
Enable multipass encoding. | |
int | lqt_encode_video (quicktime_t *file, unsigned char **row_pointers, int track, int64_t time) |
Encode one video frame. | |
int | lqt_encode_video_d (quicktime_t *file, unsigned char **row_pointers, int track, int64_t time, int duration) |
Encode one video frame. |
The video API changed a lot during the last years (causing lot of confusion), so here is the preferred way: Use the Codec registry functions to get all supported video encoders. Once you found a codec (i.e. a lqt_codec_info_t ), call lqt_add_video_track to add the track to the file. You can repeat this procedure to add as many tracks as you like with different formats and/or codecs. You can pass further format parameters with lqt_set_pixel_aspect.
A very important thing is the colormodel (see Color handling): First obtain the colormodel used natively by the codec with lqt_get_cmodel. Your application might or might not support all colormodels, which exist in libquicktime. The more colormodels you can handle yourself, the better, since libquicktimes built in colormodel converter is not the best. Thus, it's the best idea to pack all colormodels you can handle yourself into an array, and call lqt_get_best_colormodel to get the best colormodel. After you figured out, which colormodel you use, tell this to libquicktime with lqt_set_cmodel.
Next you might want to set some compression parameters. This is done by calling lqt_set_video_parameter. Supported parameters and valid ranges are in the lqt_codec_info_t.
Actual encoding should happen with lqt_encode_video.
|
Set the framerate for encoding.
This function is depracated and should not be used in newly written code. |
|
Set up video tracks for encoding.
|
|
Set jpeg encoding quality.
This function is depracated and should not be used in newly written code. Use lqt_set_video_parameter instead. |
|
Set a codec parameter.
This function sets the same parameter for all video AND audio streams, which is quite idiotic. Use lqt_set_audio_parameter and lqt_set_video_parameter to set codec parameters on a per stream basis. |
|
Set the depth of a video track.
|
|
Write a compressed video frame.
|
|
Check if a colormodel is supported for encoding.
|
|
Encode a video frame.
|
|
Set the pixel aspect ratio of a video track.
|
|
Set the interlace mode.
|
|
Set up video tracks for encoding.
|
|
Add a video track for encoding.
|
|
Enable multipass encoding.
Having more than 2 passes is not always useful. Audio encoding can be skipped for all passes until the last one. |
|
Encode one video frame.
|
|
Encode one video frame.
Since 1.1.2 |