CM QT Demux
The cmQTDemux is a demuxer to demux mp4 file to video and audio. It use the GStreamer element named qtdemux to do the process. Currently, it supports one video/x-h264 and one video/x-h264, one audio/mpeg.
It also supports demux the streaming by pts for display.
API Instructions
create/destroy
gpointer cm_qt_demux_create();
void cm_qt_demux_destroy(gpointer hd);
start/stop
void cm_opus_decode_start(gpointer hd);
void cm_opus_decode_stop(gpointer hd);
parameters
Use it after the demuxer is started.
/* @duration the duration of the file in seconds */
void cm_qt_demux_get_duration(gpointer hd, double *duration );
data
Demo
QT demux demo
Streaming Structure
Demux mp4 to single audio and video.
Main codes
Test result
Â