- Footage can store custom proxy parameters (width/height/crf/preset/ extension/audio) that override the global settings; they are serialized with the project and used by every generation entry point via Footage::GetEffectiveProxyParams() - Proxies now include the source audio streams (AAC) unless disabled; the proxy filename records the audio flag and offline audio rendering decodes from the proxy when present - ProxyTask resolves ffmpeg from the new FFmpegPath config key first, then PATH, then common install locations (e.g. Homebrew on macOS), instead of relying on PATH only; the error message points at the preferences when no executable is found - ProxyTask::BuildArguments() is extracted for testability - Add ProxyIncludeAudio and FFmpegPath config defaults - Add regression tests for the filename audio marker, config-backed params, ffmpeg resolution, argument building, and custom-param persistence
60 lines
1.6 KiB
C++
60 lines
1.6 KiB
C++
/*
|
|
* Oak Video Editor - Non-Linear Video Editor
|
|
* Copyright (C) 2026 Oak Team
|
|
*
|
|
* This program is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#ifndef PROXYTASK_H
|
|
#define PROXYTASK_H
|
|
|
|
#include "codec/proxymanager.h"
|
|
#include "task/task.h"
|
|
|
|
namespace olive
|
|
{
|
|
|
|
class ProxyTask : public Task {
|
|
Q_OBJECT
|
|
public:
|
|
ProxyTask(const QString &source_filename, int stream_index,
|
|
const ProxyManager::ProxyParams ¶ms,
|
|
const QString &output_filename);
|
|
|
|
/**
|
|
* @brief Builds the ffmpeg command line for a proxy generation run
|
|
*
|
|
* Extracted for testability. The video stream is always mapped first so
|
|
* that it is stream 0 in the proxy file; audio streams (when enabled)
|
|
* follow in source order.
|
|
*/
|
|
static QStringList BuildArguments(const QString &source_filename,
|
|
int stream_index,
|
|
const ProxyManager::ProxyParams ¶ms,
|
|
const QString &output_filename);
|
|
|
|
protected:
|
|
virtual bool Run() override;
|
|
|
|
private:
|
|
QString source_filename_;
|
|
int stream_index_;
|
|
ProxyManager::ProxyParams params_;
|
|
QString output_filename_;
|
|
};
|
|
|
|
}
|
|
|
|
#endif // PROXYTASK_H
|