mirror of
https://github.com/clementine-player/Clementine
synced 2025-01-31 11:35:24 +01:00
Oops, AAC works better in a container...
This commit is contained in:
parent
6e3cab8667
commit
e862555f56
@ -83,7 +83,8 @@ Transcoder::Transcoder(QObject* parent)
|
|||||||
formats_ << new OggSpeexTranscoder;
|
formats_ << new OggSpeexTranscoder;
|
||||||
formats_ << new FlacTranscoder;
|
formats_ << new FlacTranscoder;
|
||||||
formats_ << new Mp3Transcoder;
|
formats_ << new Mp3Transcoder;
|
||||||
formats_ << new AacTranscoder;
|
formats_ << new M4aTranscoder;
|
||||||
|
formats_ << new ThreeGPTranscoder;
|
||||||
|
|
||||||
connect(future_watcher_, SIGNAL(finished()), SLOT(JobsFinished()));
|
connect(future_watcher_, SIGNAL(finished()), SLOT(JobsFinished()));
|
||||||
}
|
}
|
||||||
|
@ -32,6 +32,10 @@ GstElement* Mp3Transcoder::CreateEncodeBin() const {
|
|||||||
return CreateElement("lamemp3enc");
|
return CreateElement("lamemp3enc");
|
||||||
}
|
}
|
||||||
|
|
||||||
GstElement* AacTranscoder::CreateEncodeBin() const {
|
GstElement* M4aTranscoder::CreateEncodeBin() const {
|
||||||
return CreateElement("faac");
|
return CreateBin(QStringList() << "faac" << "ffmux_mp4");
|
||||||
|
}
|
||||||
|
|
||||||
|
GstElement* ThreeGPTranscoder::CreateEncodeBin() const {
|
||||||
|
return CreateBin(QStringList() << "faac" << "ffmux_3gp");
|
||||||
}
|
}
|
||||||
|
@ -51,10 +51,18 @@ class Mp3Transcoder : public TranscoderFormat {
|
|||||||
GstElement* CreateEncodeBin() const;
|
GstElement* CreateEncodeBin() const;
|
||||||
};
|
};
|
||||||
|
|
||||||
class AacTranscoder : public TranscoderFormat {
|
class M4aTranscoder : public TranscoderFormat {
|
||||||
public:
|
public:
|
||||||
QString name() const { return "AAC"; }
|
QString name() const { return "M4A AAC"; }
|
||||||
QString file_extension() const { return "aac"; }
|
QString file_extension() const { return "m4a"; }
|
||||||
|
|
||||||
|
GstElement* CreateEncodeBin() const;
|
||||||
|
};
|
||||||
|
|
||||||
|
class ThreeGPTranscoder : public TranscoderFormat {
|
||||||
|
public:
|
||||||
|
QString name() const { return "3GP AAC"; }
|
||||||
|
QString file_extension() const { return "3gp"; }
|
||||||
|
|
||||||
GstElement* CreateEncodeBin() const;
|
GstElement* CreateEncodeBin() const;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user