1
0
mirror of https://github.com/clementine-player/Clementine synced 2025-01-18 20:40:43 +01:00

Oops, AAC works better in a container...

This commit is contained in:
David Sansome 2010-05-03 22:58:18 +00:00
parent 6e3cab8667
commit e862555f56
3 changed files with 19 additions and 6 deletions

View File

@ -83,7 +83,8 @@ Transcoder::Transcoder(QObject* parent)
formats_ << new OggSpeexTranscoder;
formats_ << new FlacTranscoder;
formats_ << new Mp3Transcoder;
formats_ << new AacTranscoder;
formats_ << new M4aTranscoder;
formats_ << new ThreeGPTranscoder;
connect(future_watcher_, SIGNAL(finished()), SLOT(JobsFinished()));
}

View File

@ -32,6 +32,10 @@ GstElement* Mp3Transcoder::CreateEncodeBin() const {
return CreateElement("lamemp3enc");
}
GstElement* AacTranscoder::CreateEncodeBin() const {
return CreateElement("faac");
GstElement* M4aTranscoder::CreateEncodeBin() const {
return CreateBin(QStringList() << "faac" << "ffmux_mp4");
}
GstElement* ThreeGPTranscoder::CreateEncodeBin() const {
return CreateBin(QStringList() << "faac" << "ffmux_3gp");
}

View File

@ -51,10 +51,18 @@ class Mp3Transcoder : public TranscoderFormat {
GstElement* CreateEncodeBin() const;
};
class AacTranscoder : public TranscoderFormat {
class M4aTranscoder : public TranscoderFormat {
public:
QString name() const { return "AAC"; }
QString file_extension() const { return "aac"; }
QString name() const { return "M4A 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;
};