-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvideo.h
40 lines (31 loc) · 876 Bytes
/
video.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
//
// Created by Trevor Starick on 2016-02-01.
//
#ifndef GFYTUBE_RENDER_VIDEO_H
#define GFYTUBE_RENDER_VIDEO_H
#include "helpers.h"
#include "duktape.h"
#include "rapidxml.hpp"
#include "md5.h"
#include <cpr/cpr.h>
#include <curl/curl.h>
#include <string>
#include <sys/stat.h>
#include "json.hpp"
using json = nlohmann::json;
extern std::string pwd;
class Video : public Helpers {
public:
Video();
~Video();
std::string download(std::string url);
std::string convert(std::string filename);
std::string extractMetadata(std::string filename);
std::string thumbnail(std::string filename);
std::string loop(std::string filename, int loopCount);
private:
CURL *curl = curl_easy_init();
std::string convertToWebm(std::string filename);
std::string convertToMp4(std::string filename);
};
#endif //GFYTUBE_RENDER_VIDEO_H