Added WavPack support. fixes #195
This commit is contained in:
@@ -119,7 +119,6 @@ Transcoder::start()
|
||||
args.emplace_back("-b:a");
|
||||
args.emplace_back(std::to_string(_parameters.bitrate));
|
||||
|
||||
|
||||
// Codecs and formats
|
||||
switch (_parameters.format)
|
||||
{
|
||||
|
||||
@@ -24,16 +24,15 @@
|
||||
|
||||
#include "Types.hpp"
|
||||
|
||||
namespace Av {
|
||||
|
||||
struct TranscodeParameters
|
||||
namespace Av
|
||||
{
|
||||
Format format;
|
||||
std::size_t bitrate {128000};
|
||||
std::optional<std::size_t> stream; // Id of the stream to be transcoded (auto detect by default)
|
||||
std::chrono::milliseconds offset {0};
|
||||
bool stripMetadata {true};
|
||||
};
|
||||
|
||||
struct TranscodeParameters
|
||||
{
|
||||
Format format;
|
||||
std::size_t bitrate {128000};
|
||||
std::optional<std::size_t> stream; // Id of the stream to be transcoded (auto detect by default)
|
||||
std::chrono::milliseconds offset {0};
|
||||
bool stripMetadata {true};
|
||||
};
|
||||
} // namespace Av
|
||||
|
||||
|
||||
@@ -33,12 +33,11 @@ namespace Av {
|
||||
|
||||
enum class Format
|
||||
{
|
||||
// Values are important and must not be changed (stored in the UI's localstorage)
|
||||
MP3 = 0,
|
||||
OGG_OPUS = 1,
|
||||
MATROSKA_OPUS = 2,
|
||||
OGG_VORBIS = 3,
|
||||
WEBM_VORBIS = 4,
|
||||
MP3,
|
||||
OGG_OPUS,
|
||||
MATROSKA_OPUS,
|
||||
OGG_VORBIS,
|
||||
WEBM_VORBIS,
|
||||
};
|
||||
|
||||
std::string_view formatToMimetype(Format format);
|
||||
|
||||
Reference in New Issue
Block a user