forked from facebookarchive/360-Capture-SDK
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMP4muxer.h
50 lines (42 loc) · 1.25 KB
/
MP4muxer.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/*
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
#pragma once
#include "3rdParty/Wamedia/mp4muxer/include/mp4muxing.h"
#include <stdio.h>
#include <iostream>
#include <algorithm>
#include <codecvt>
#include "Common/Log.h"
#include "Common/Common.h"
#include "3rdParty/Spatialmedia/metadata_utils.h"
using namespace std;
using namespace libmp4operations;
using namespace FBCapture::Common;
using namespace VrDeviceType;
using namespace StereoMode;
using namespace ProjectionType;
#define APPEND_METADATA_SUFFIX 1
namespace FBCapture {
namespace Mux {
class MP4Muxer {
public:
MP4Muxer();
virtual ~MP4Muxer();
private:
int frameIndex;
string videoFile_;
string audioFile_;
private:
string replaceString(const string& inputStr, const string& searchStr, const string& replaceStr);
public:
FBCAPTURE_STATUS muxingMedia(const wstring& videoFile, const string& audioFile, PROJECTIONTYPE projectionType, STEREO_MODE stereoMode, float fps, bool is360);
};
}
}