/
CM QT Demux

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.

image-20240531-030008.png

Main codes

Test result

demux-20240531-031208.png

 

Related content

CM MP4 Record
CM MP4 Record
More like this
CM H264 Encode
CM H264 Encode
More like this
NN Object Preview and Record
NN Object Preview and Record
Read with this
FFmpegAVDemuxer
FFmpegAVDemuxer
More like this
CM Streaming API
CM Streaming API
Read with this
CM APP Source
CM APP Source
More like this