mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-26 20:02:21 +08:00
@@ -16,7 +16,7 @@
|
||||
#include "Util/ResourcePool.h"
|
||||
namespace mediakit {
|
||||
|
||||
class MP4Demuxer : public MP4FileDisk, public TrackSource{
|
||||
class MP4Demuxer : public TrackSource {
|
||||
public:
|
||||
typedef std::shared_ptr<MP4Demuxer> Ptr;
|
||||
|
||||
@@ -32,6 +32,11 @@ public:
|
||||
*/
|
||||
void openMP4(const string &file);
|
||||
|
||||
/**
|
||||
* @brief 关闭 mp4 文件
|
||||
*/
|
||||
void closeMP4();
|
||||
|
||||
/**
|
||||
* 移动时间轴至某处
|
||||
* @param stamp_ms 预期的时间轴位置,单位毫秒
|
||||
@@ -67,7 +72,8 @@ private:
|
||||
Frame::Ptr makeFrame(uint32_t track_id, const Buffer::Ptr &buf, int64_t pts, int64_t dts);
|
||||
|
||||
private:
|
||||
Reader _mov_reader;
|
||||
MP4FileDisk::Ptr _mp4_file;
|
||||
MP4FileDisk::Reader _mov_reader;
|
||||
uint64_t _duration_ms = 0;
|
||||
map<int, Track::Ptr> _track_to_codec;
|
||||
ResourcePool<BufferRaw> _buffer_pool;
|
||||
|
||||
Reference in New Issue
Block a user