| FFmpegKit Linux API 6.0

Loading...
Searching...
No Matches
FFprobeKit.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2022 Taner Sener
3 *
4 * This file is part of FFmpegKit.
5 *
6 * FFmpegKit is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU Lesser General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
10 *
11 * FFmpegKit is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public License
17 * along with FFmpegKit. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20#ifndef FFPROBE_KIT_H
21#define FFPROBE_KIT_H
22
23#include <string.h>
24#include <stdlib.h>
25#include "FFprobeSession.h"
26#include "MediaInformationJsonParser.h"
27#include "MediaInformationSession.h"
28
29 namespace ffmpegkit {
30
48 class FFprobeKit {
49 public:
50
57 static std::shared_ptr<ffmpegkit::FFprobeSession> executeWithArguments(const std::list<std::string>& arguments);
58
69 static std::shared_ptr<ffmpegkit::FFprobeSession> executeWithArgumentsAsync(const std::list<std::string>& arguments, FFprobeSessionCompleteCallback completeCallback);
70
82 static std::shared_ptr<ffmpegkit::FFprobeSession> executeWithArgumentsAsync(const std::list<std::string>& arguments, FFprobeSessionCompleteCallback completeCallback, ffmpegkit::LogCallback logCallback);
83
92 static std::shared_ptr<ffmpegkit::FFprobeSession> execute(const std::string command);
93
105 static std::shared_ptr<ffmpegkit::FFprobeSession> executeAsync(const std::string command, FFprobeSessionCompleteCallback completeCallback);
106
119 static std::shared_ptr<ffmpegkit::FFprobeSession> executeAsync(const std::string command, FFprobeSessionCompleteCallback completeCallback, ffmpegkit::LogCallback logCallback);
120
127 static std::shared_ptr<ffmpegkit::MediaInformationSession> getMediaInformation(const std::string path);
128
136 static std::shared_ptr<ffmpegkit::MediaInformationSession> getMediaInformation(const std::string path, const int waitTimeout);
137
148 static std::shared_ptr<ffmpegkit::MediaInformationSession> getMediaInformationAsync(const std::string path, MediaInformationSessionCompleteCallback completeCallback);
149
162 static std::shared_ptr<ffmpegkit::MediaInformationSession> getMediaInformationAsync(const std::string path, MediaInformationSessionCompleteCallback completeCallback, ffmpegkit::LogCallback logCallback, const int waitTimeout);
163
170 static std::shared_ptr<ffmpegkit::MediaInformationSession> getMediaInformationFromCommand(const std::string command);
171
177 static std::shared_ptr<std::list<std::shared_ptr<ffmpegkit::FFprobeSession>>> listFFprobeSessions();
178
184 static std::shared_ptr<std::list<std::shared_ptr<ffmpegkit::MediaInformationSession>>> listMediaInformationSessions();
185
186 };
187
188}
189
190#endif // FFPROBE_KIT_H
logCallback
static ffmpegkit::LogCallback logCallback
Definition FFmpegKitConfig.cpp:69
FFprobeSession.h
MediaInformationJsonParser.h
MediaInformationSession.h
ffmpegkit::FFprobeKit
Definition FFprobeKit.h:48
ffmpegkit::FFprobeKit::listMediaInformationSessions
static std::shared_ptr< std::list< std::shared_ptr< ffmpegkit::MediaInformationSession > > > listMediaInformationSessions()
Definition FFprobeKit.cpp:106
ffmpegkit::FFprobeKit::getMediaInformation
static std::shared_ptr< ffmpegkit::MediaInformationSession > getMediaInformation(const std::string path)
Definition FFprobeKit.cpp:68
ffmpegkit::FFprobeKit::executeWithArgumentsAsync
static std::shared_ptr< ffmpegkit::FFprobeSession > executeWithArgumentsAsync(const std::list< std::string > &arguments, FFprobeSessionCompleteCallback completeCallback)
Definition FFprobeKit.cpp:38
ffmpegkit::FFprobeKit::getMediaInformationFromCommand
static std::shared_ptr< ffmpegkit::MediaInformationSession > getMediaInformationFromCommand(const std::string command)
Definition FFprobeKit.cpp:96
ffmpegkit::FFprobeKit::executeAsync
static std::shared_ptr< ffmpegkit::FFprobeSession > executeAsync(const std::string command, FFprobeSessionCompleteCallback completeCallback)
Definition FFprobeKit.cpp:56
ffmpegkit::FFprobeKit::executeWithArguments
static std::shared_ptr< ffmpegkit::FFprobeSession > executeWithArguments(const std::list< std::string > &arguments)
Definition FFprobeKit.cpp:32
ffmpegkit::FFprobeKit::listFFprobeSessions
static std::shared_ptr< std::list< std::shared_ptr< ffmpegkit::FFprobeSession > > > listFFprobeSessions()
Definition FFprobeKit.cpp:102
ffmpegkit::FFprobeKit::execute
static std::shared_ptr< ffmpegkit::FFprobeSession > execute(const std::string command)
Definition FFprobeKit.cpp:50
ffmpegkit::FFprobeKit::getMediaInformationAsync
static std::shared_ptr< ffmpegkit::MediaInformationSession > getMediaInformationAsync(const std::string path, MediaInformationSessionCompleteCallback completeCallback)
Definition FFprobeKit.cpp:82
ffmpegkit
Definition AbstractSession.h:25
ffmpegkit::MediaInformationSessionCompleteCallback
std::function< void(const std::shared_ptr< ffmpegkit::MediaInformationSession > session)> MediaInformationSessionCompleteCallback
Definition MediaInformationSessionCompleteCallback.h:53
ffmpegkit::LogCallback
std::function< void(const std::shared_ptr< ffmpegkit::Log > log)> LogCallback
Definition LogCallback.h:35
ffmpegkit::FFprobeSessionCompleteCallback
std::function< void(const std::shared_ptr< ffmpegkit::FFprobeSession > session)> FFprobeSessionCompleteCallback
Definition FFprobeSessionCompleteCallback.h:52