File indexing completed on 2025-01-19 03:57:00

0001 /* ============================================================
0002  *
0003  * This file is a part of digiKam project
0004  * https://www.digikam.org
0005  *
0006  * Date        : 2017-07-04
0007  * Description : Autodetect FFmpeg binary program
0008  *
0009  * SPDX-FileCopyrightText: 2017-2024 by Gilles Caulier <caulier dot gilles at gmail dot com>
0010  *
0011  * SPDX-License-Identifier: GPL-2.0-or-later
0012  *
0013  * ============================================================ */
0014 
0015 #include "ffmpegbinary.h"
0016 
0017 // KDE includes
0018 
0019 #include <klocalizedstring.h>
0020 
0021 namespace Digikam
0022 {
0023 
0024 FFmpegBinary::FFmpegBinary(QObject* const)
0025     : DBinaryIface(
0026                    QLatin1String("ffmpeg"),
0027                    QLatin1String("FFmpeg"),
0028                    QLatin1String("https://ffmpeg.org/download.html"),
0029                    QString(),
0030                    QStringList(QLatin1String("-version")),
0031                    i18n("A complete, cross-platform solution to record, convert and stream audio and video.")
0032                   )
0033 {
0034     setup();
0035 }
0036 
0037 FFmpegBinary::~FFmpegBinary()
0038 {
0039 }
0040 
0041 QString FFmpegBinary::ffmpegToolBin()
0042 {
0043 
0044 #ifdef Q_OS_WIN
0045 
0046     return QLatin1String("ffmpeg.exe");
0047 
0048 #else
0049 
0050     return QLatin1String("ffmpeg");
0051 
0052 #endif
0053 
0054 }
0055 
0056 } // namespace Digikam
0057 
0058 #include "moc_ffmpegbinary.cpp"