From ecd8a389412e4d4a2e03150c220e1e7ead5ab2a4 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Sun, 10 Feb 2013 17:12:37 +0000 Subject: added ffmpeg_legacy plugin git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@3216 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/Input/ffmpeg_legacy/decoder_ffmpeg.cpp | 401 +++++++++++++++++++++ src/plugins/Input/ffmpeg_legacy/decoder_ffmpeg.h | 84 +++++ .../Input/ffmpeg_legacy/decoderffmpegfactory.cpp | 230 ++++++++++++ .../Input/ffmpeg_legacy/decoderffmpegfactory.h | 51 +++ src/plugins/Input/ffmpeg_legacy/ffmpeg_legacy.pro | 59 +++ .../Input/ffmpeg_legacy/ffmpegmetadatamodel.cpp | 70 ++++ .../Input/ffmpeg_legacy/ffmpegmetadatamodel.h | 46 +++ src/plugins/Input/ffmpeg_legacy/settingsdialog.cpp | 111 ++++++ src/plugins/Input/ffmpeg_legacy/settingsdialog.h | 46 +++ src/plugins/Input/ffmpeg_legacy/settingsdialog.ui | 182 ++++++++++ .../translations/ffmpeg_legacy_plugin_cs.ts | 153 ++++++++ .../translations/ffmpeg_legacy_plugin_de.ts | 154 ++++++++ .../translations/ffmpeg_legacy_plugin_es.ts | 153 ++++++++ .../translations/ffmpeg_legacy_plugin_fr.ts | 153 ++++++++ .../translations/ffmpeg_legacy_plugin_he.ts | 153 ++++++++ .../translations/ffmpeg_legacy_plugin_hu.ts | 153 ++++++++ .../translations/ffmpeg_legacy_plugin_it.ts | 153 ++++++++ .../translations/ffmpeg_legacy_plugin_ja.ts | 153 ++++++++ .../translations/ffmpeg_legacy_plugin_kk.ts | 153 ++++++++ .../translations/ffmpeg_legacy_plugin_lt.ts | 153 ++++++++ .../translations/ffmpeg_legacy_plugin_nl.ts | 153 ++++++++ .../translations/ffmpeg_legacy_plugin_pl.ts | 161 +++++++++ .../translations/ffmpeg_legacy_plugin_pl_PL.ts | 153 ++++++++ .../translations/ffmpeg_legacy_plugin_pt_BR.ts | 153 ++++++++ .../translations/ffmpeg_legacy_plugin_ru.ts | 153 ++++++++ .../translations/ffmpeg_legacy_plugin_sk.ts | 153 ++++++++ .../translations/ffmpeg_legacy_plugin_tr.ts | 153 ++++++++ .../translations/ffmpeg_legacy_plugin_uk_UA.ts | 153 ++++++++ .../translations/ffmpeg_legacy_plugin_zh_CN.ts | 153 ++++++++ .../translations/ffmpeg_legacy_plugin_zh_TW.ts | 153 ++++++++ .../ffmpeg_legacy/translations/translations.qrc | 24 ++ 31 files changed, 4373 insertions(+) create mode 100644 src/plugins/Input/ffmpeg_legacy/decoder_ffmpeg.cpp create mode 100644 src/plugins/Input/ffmpeg_legacy/decoder_ffmpeg.h create mode 100644 src/plugins/Input/ffmpeg_legacy/decoderffmpegfactory.cpp create mode 100644 src/plugins/Input/ffmpeg_legacy/decoderffmpegfactory.h create mode 100644 src/plugins/Input/ffmpeg_legacy/ffmpeg_legacy.pro create mode 100644 src/plugins/Input/ffmpeg_legacy/ffmpegmetadatamodel.cpp create mode 100644 src/plugins/Input/ffmpeg_legacy/ffmpegmetadatamodel.h create mode 100644 src/plugins/Input/ffmpeg_legacy/settingsdialog.cpp create mode 100644 src/plugins/Input/ffmpeg_legacy/settingsdialog.h create mode 100644 src/plugins/Input/ffmpeg_legacy/settingsdialog.ui create mode 100644 src/plugins/Input/ffmpeg_legacy/translations/ffmpeg_legacy_plugin_cs.ts create mode 100644 src/plugins/Input/ffmpeg_legacy/translations/ffmpeg_legacy_plugin_de.ts create mode 100644 src/plugins/Input/ffmpeg_legacy/translations/ffmpeg_legacy_plugin_es.ts create mode 100644 src/plugins/Input/ffmpeg_legacy/translations/ffmpeg_legacy_plugin_fr.ts create mode 100644 src/plugins/Input/ffmpeg_legacy/translations/ffmpeg_legacy_plugin_he.ts create mode 100644 src/plugins/Input/ffmpeg_legacy/translations/ffmpeg_legacy_plugin_hu.ts create mode 100644 src/plugins/Input/ffmpeg_legacy/translations/ffmpeg_legacy_plugin_it.ts create mode 100644 src/plugins/Input/ffmpeg_legacy/translations/ffmpeg_legacy_plugin_ja.ts create mode 100644 src/plugins/Input/ffmpeg_legacy/translations/ffmpeg_legacy_plugin_kk.ts create mode 100644 src/plugins/Input/ffmpeg_legacy/translations/ffmpeg_legacy_plugin_lt.ts create mode 100644 src/plugins/Input/ffmpeg_legacy/translations/ffmpeg_legacy_plugin_nl.ts create mode 100644 src/plugins/Input/ffmpeg_legacy/translations/ffmpeg_legacy_plugin_pl.ts create mode 100644 src/plugins/Input/ffmpeg_legacy/translations/ffmpeg_legacy_plugin_pl_PL.ts create mode 100644 src/plugins/Input/ffmpeg_legacy/translations/ffmpeg_legacy_plugin_pt_BR.ts create mode 100644 src/plugins/Input/ffmpeg_legacy/translations/ffmpeg_legacy_plugin_ru.ts create mode 100644 src/plugins/Input/ffmpeg_legacy/translations/ffmpeg_legacy_plugin_sk.ts create mode 100644 src/plugins/Input/ffmpeg_legacy/translations/ffmpeg_legacy_plugin_tr.ts create mode 100644 src/plugins/Input/ffmpeg_legacy/translations/ffmpeg_legacy_plugin_uk_UA.ts create mode 100644 src/plugins/Input/ffmpeg_legacy/translations/ffmpeg_legacy_plugin_zh_CN.ts create mode 100644 src/plugins/Input/ffmpeg_legacy/translations/ffmpeg_legacy_plugin_zh_TW.ts create mode 100644 src/plugins/Input/ffmpeg_legacy/translations/translations.qrc (limited to 'src') diff --git a/src/plugins/Input/ffmpeg_legacy/decoder_ffmpeg.cpp b/src/plugins/Input/ffmpeg_legacy/decoder_ffmpeg.cpp new file mode 100644 index 000000000..c9845bbef --- /dev/null +++ b/src/plugins/Input/ffmpeg_legacy/decoder_ffmpeg.cpp @@ -0,0 +1,401 @@ +/*************************************************************************** + * Copyright (C) 2006-2013 by Ilya Kotov * + * forkotov02@hotmail.ru * + * * + * 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 2 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, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ + +#include +#include +#include "decoder_ffmpeg.h" + +// callbacks + +static int ffmpeg_read(void *data, uint8_t *buf, int size) +{ + DecoderFFmpeg *d = (DecoderFFmpeg*)data; + return (int)d->input()->read((char*)buf, size); +} + +static int64_t ffmpeg_seek(void *data, int64_t offset, int whence) +{ + DecoderFFmpeg *d = (DecoderFFmpeg*)data; + int64_t absolute_pos = 0; + /*if(d->input()->isSequential()) + return -1;*/ + switch( whence ) + { + case AVSEEK_SIZE: + return d->input()->size(); + case SEEK_SET: + absolute_pos = offset; + break; + case SEEK_CUR: + absolute_pos = d->input()->pos() + offset; + break; + case SEEK_END: + absolute_pos = d->input()->size() - offset; + default: + return -1; + } + if(absolute_pos < 0 || absolute_pos > d->input()->size()) + return -1; + return d->input()->seek(absolute_pos); +} + +// Decoder class +//legacy ffmpeg support +DecoderFFmpeg::DecoderFFmpeg(const QString &path, QIODevice *i) + : Decoder(i) +{ + m_bitrate = 0; + m_skip = false; + m_totalTime = 0; + ic = 0; + m_path = path; + m_temp_pkt.size = 0; + m_pkt.size = 0; + m_pkt.data = 0; + m_output_buf = 0; + m_output_at = 0; + m_skipBytes = 0; + m_stream = 0; + av_init_packet(&m_pkt); + av_init_packet(&m_temp_pkt); +} + + +DecoderFFmpeg::~DecoderFFmpeg() +{ + m_bitrate = 0; + m_temp_pkt.size = 0; + if (ic) + av_close_input_stream(ic); + if(m_pkt.data) + av_free_packet(&m_pkt); + if(m_output_buf) + av_free(m_output_buf); + if(m_stream) + av_free(m_stream); +} + +bool DecoderFFmpeg::initialize() +{ + m_bitrate = 0; + m_skip = false; + m_totalTime = 0; + m_seekTime = -1; + av_register_all(); + + AVProbeData pd; + uint8_t buf[PROBE_BUFFER_SIZE + AVPROBE_PADDING_SIZE]; + pd.filename = m_path.toLocal8Bit().constData(); + pd.buf_size = input()->peek((char*)buf, sizeof(buf) - AVPROBE_PADDING_SIZE); + pd.buf = buf; + if(pd.buf_size < PROBE_BUFFER_SIZE) + { + qWarning("DecoderFFmpeg: too small buffer size: %d bytes", pd.buf_size); + return false; + } + AVInputFormat *fmt = av_probe_input_format(&pd, 1); + if(!fmt) + { + qWarning("DecoderFFmpeg: usupported format"); + return false; + } + qDebug("DecoderFFmpeg: detected format: %s", fmt->long_name); + qDebug("=%s=", fmt->name); + +#if (LIBAVFORMAT_VERSION_INT >= ((52<<16)+(105<<8)+0)) + m_stream = avio_alloc_context(m_input_buf, INPUT_BUFFER_SIZE, 0, this, ffmpeg_read, NULL, ffmpeg_seek); + if(!m_stream) + { + qWarning("DecoderFFmpeg: unable to initialize I/O callbacks"); + return false; + } + m_stream->seekable = !input()->isSequential(); +#else + m_stream = (ByteIOContext *)av_malloc(sizeof(ByteIOContext)); + init_put_byte(m_stream, m_input_buf, INPUT_BUFFER_SIZE, 0, this, ffmpeg_read, NULL, ffmpeg_seek); + m_stream->is_streamed = input()->isSequential(); +#endif + m_stream->max_packet_size = INPUT_BUFFER_SIZE; + + AVFormatParameters ap; + memset(&ap, 0, sizeof(ap)); + + if(av_open_input_stream(&ic, m_stream, m_path.toLocal8Bit(), fmt, &ap) != 0) + { + qDebug("DecoderFFmpeg: av_open_input_stream() failed"); + return false; + } + av_find_stream_info(ic); + if(ic->pb) + ic->pb->eof_reached = 0; + + if (input()->isSequential()) + { + QMap metaData; + AVMetadataTag *album = av_metadata_get(ic->metadata,"album",0,0); + if(!album) + album = av_metadata_get(ic->metadata,"WM/AlbumTitle",0,0); + AVMetadataTag *artist = av_metadata_get(ic->metadata,"artist",0,0); + if(!artist) + artist = av_metadata_get(ic->metadata,"author",0,0); + AVMetadataTag *comment = av_metadata_get(ic->metadata,"comment",0,0); + AVMetadataTag *genre = av_metadata_get(ic->metadata,"genre",0,0); + AVMetadataTag *title = av_metadata_get(ic->metadata,"title",0,0); + AVMetadataTag *year = av_metadata_get(ic->metadata,"WM/Year",0,0); + if(!year) + year = av_metadata_get(ic->metadata,"year",0,0); + if(!year) + year = av_metadata_get(ic->metadata,"date",0,0); + AVMetadataTag *track = av_metadata_get(ic->metadata,"track",0,0); + if(!track) + track = av_metadata_get(ic->metadata,"WM/Track",0,0); + if(!track) + track = av_metadata_get(ic->metadata,"WM/TrackNumber",0,0); + + if(album) + metaData.insert(Qmmp::ALBUM, QString::fromUtf8(album->value).trimmed()); + if(artist) + metaData.insert(Qmmp::ARTIST, QString::fromUtf8(artist->value).trimmed()); + if(comment) + metaData.insert(Qmmp::COMMENT, QString::fromUtf8(comment->value).trimmed()); + if(genre) + metaData.insert(Qmmp::GENRE, QString::fromUtf8(genre->value).trimmed()); + if(title) + metaData.insert(Qmmp::TITLE, QString::fromUtf8(title->value).trimmed()); + if(year) + metaData.insert(Qmmp::YEAR, year->value); + if(track) + metaData.insert(Qmmp::TRACK, track->value); + metaData.insert(Qmmp::URL, m_path); + addMetaData(metaData); + } + + ic->flags |= AVFMT_FLAG_GENPTS; + av_read_play(ic); + for (wma_idx = 0; wma_idx < (int)ic->nb_streams; wma_idx++) + { + c = ic->streams[wma_idx]->codec; +#if LIBAVCODEC_VERSION_MAJOR < 53 + if (c->codec_type == CODEC_TYPE_AUDIO) +#else + if (c->codec_type == AVMEDIA_TYPE_AUDIO) +#endif + break; + } + + if (c->channels > 0) + c->request_channels = qMin(2, c->channels); + else + c->request_channels = 2; + +#if (LIBAVCODEC_VERSION_INT >= ((52<<16)+(101<<8)+0)) + av_dump_format(ic,0,0,0); +#else + dump_format(ic,0,0,0); +#endif + AVCodec *codec = avcodec_find_decoder(c->codec_id); + + if (!codec) + { + qWarning("DecoderFFmpeg: unsupported codec for output stream"); + return false; + } + + if (avcodec_open(c, codec) < 0) + { + qWarning("DecoderFFmpeg: error while opening codec for output stream"); + return false; + } + + m_totalTime = input()->isSequential() ? 0 : ic->duration * 1000 / AV_TIME_BASE; + m_output_buf = (uint8_t *)av_malloc(AVCODEC_MAX_AUDIO_FRAME_SIZE*2); + +#if (LIBAVCODEC_VERSION_INT >= ((52<<16)+(20<<8)+0)) + if(c->codec_id == CODEC_ID_SHORTEN) //ffmpeg bug workaround + m_totalTime = 0; +#endif + +#if (LIBAVUTIL_VERSION_INT >= ((50<<16)+(38<<8)+0)) + if(c->sample_fmt == AV_SAMPLE_FMT_S32) + configure(c->sample_rate, c->request_channels, Qmmp::PCM_S32LE); + else + configure(c->sample_rate, c->request_channels, Qmmp::PCM_S16LE); +#else + if(c->sample_fmt == SAMPLE_FMT_S32) + configure(c->sample_rate, c->request_channels, Qmmp::PCM_S32LE); + else + configure(c->sample_rate, c->request_channels, Qmmp::PCM_S16LE); +#endif + if(ic->bit_rate) + m_bitrate = ic->bit_rate/1000; + if(c->bit_rate) + m_bitrate = c->bit_rate/1000; + qDebug("DecoderFFmpeg: initialize succes"); + return true; +} + + +qint64 DecoderFFmpeg::totalTime() +{ + return m_totalTime; +} + +int DecoderFFmpeg::bitrate() +{ + return m_bitrate; +} + +qint64 DecoderFFmpeg::read(char *audio, qint64 maxSize) +{ + m_skipBytes = 0; + if (m_skip) + { + while(m_temp_pkt.size) + ffmpeg_decode(m_output_buf); + m_output_at = 0; + m_skip = false; + } + if(!m_output_at) + fillBuffer(); + if(!m_output_at) + return 0; + qint64 len = qMin(m_output_at, maxSize); + memcpy(audio, m_output_buf, len); + m_output_at -= len; + memmove(m_output_buf, m_output_buf + len, m_output_at); + return len; +} + +qint64 DecoderFFmpeg::ffmpeg_decode(uint8_t *audio) +{ + int out_size = AVCODEC_MAX_AUDIO_FRAME_SIZE * 2; + if((m_pkt.stream_index == wma_idx)) + { +#if (LIBAVCODEC_VERSION_INT >= ((52<<16)+(23<<8)+0)) + int l = avcodec_decode_audio3(c, (int16_t *)(audio), &out_size, &m_temp_pkt); +#else + int l = avcodec_decode_audio2(c, (int16_t *)(audio), &out_size, m_temp_pkt.data, m_temp_pkt.size); +#endif + if(c->bit_rate) + m_bitrate = c->bit_rate/1000; + if(l < 0) + return l; + m_temp_pkt.data += l; + m_temp_pkt.size -= l; + } + if (!m_temp_pkt.size && m_pkt.data) + av_free_packet(&m_pkt); + + return out_size; +} + +void DecoderFFmpeg::seek(qint64 pos) +{ + int64_t timestamp = int64_t(pos)*AV_TIME_BASE/1000; + if (ic->start_time != (qint64)AV_NOPTS_VALUE) + timestamp += ic->start_time; + m_seekTime = timestamp; + av_seek_frame(ic, -1, timestamp, AVSEEK_FLAG_BACKWARD); + if(m_pkt.size) + m_skip = true; +} + +void DecoderFFmpeg::fillBuffer() +{ + while(!m_output_at) + { + if(!m_temp_pkt.size) + { + if (av_read_frame(ic, &m_pkt) < 0) + { + m_temp_pkt.size = 0; + break; + } + m_temp_pkt.size = m_pkt.size; + m_temp_pkt.data = m_pkt.data; + + if(m_pkt.stream_index != wma_idx) + { + if(m_pkt.data) + av_free_packet(&m_pkt); + m_temp_pkt.size = 0; + continue; + } + if(m_seekTime && c->codec_id == CODEC_ID_APE) + { + int64_t rescaledPts = av_rescale(m_pkt.pts, + AV_TIME_BASE * (int64_t) + ic->streams[m_pkt.stream_index]->time_base.num, + ic->streams[m_pkt.stream_index]->time_base.den); + m_skipBytes = (m_seekTime - rescaledPts) * c->sample_rate * 4 / AV_TIME_BASE; + } + else + m_skipBytes = 0; + m_seekTime = 0; + } + + if(m_skipBytes > 0 && c->codec_id == CODEC_ID_APE) + { + while (m_skipBytes > 0) + { + m_output_at = ffmpeg_decode(m_output_buf); + if(m_output_at < 0) + break; + m_skipBytes -= m_output_at; + } + + if(m_skipBytes < 0) + { + qint64 size = m_output_at; + m_output_at = - m_skipBytes; + m_output_at = m_output_at/4*4; + memmove(m_output_buf, (m_output_buf + size - m_output_at), m_output_at); + m_skipBytes = 0; + } + } + else + m_output_at = ffmpeg_decode(m_output_buf); + + if(m_output_at < 0) + { + m_output_at = 0; + m_temp_pkt.size = 0; + + if(c->codec_id == CODEC_ID_SHORTEN) + { + if(m_pkt.data) + av_free_packet(&m_pkt); + m_pkt.data = 0; + break; + } + continue; + } + else if(m_output_at == 0) + { + if(c->codec_id == CODEC_ID_SHORTEN) + continue; + + if(m_pkt.data) + av_free_packet(&m_pkt); + m_pkt.data = 0; + break; + } + } +} diff --git a/src/plugins/Input/ffmpeg_legacy/decoder_ffmpeg.h b/src/plugins/Input/ffmpeg_legacy/decoder_ffmpeg.h new file mode 100644 index 000000000..f8de1aea3 --- /dev/null +++ b/src/plugins/Input/ffmpeg_legacy/decoder_ffmpeg.h @@ -0,0 +1,84 @@ +/*************************************************************************** + * Copyright (C) 2006-2013 by Ilya Kotov * + * forkotov02@hotmail.ru * + * * + * 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 2 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, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ + +#ifndef __decoder_ffmeg_h +#define __decoder_ffmeg_h + +extern "C"{ +#include +#include +#include +#if (LIBAVUTIL_VERSION_INT >= ((51<<16)+(32<<8)+0)) +#include +#endif +} + + +#include + +#define PROBE_BUFFER_SIZE 8192 +#define INPUT_BUFFER_SIZE 16384 + +class DecoderFFmpeg : public Decoder +{ +public: + DecoderFFmpeg(const QString &, QIODevice *i); + virtual ~DecoderFFmpeg(); + + // Standard Decoder API + bool initialize(); + qint64 totalTime(); + int bitrate(); + qint64 read(char *audio, qint64 maxSize); + void seek(qint64 time); + +private: + //helper functions + void fillBuffer(); + + AVFormatContext *ic; + AVCodecContext *c; + + uint wma_st_buff, wma_idx2; + int m_bitrate, wma_idx; + + QString m_path; + qint64 m_totalTime; + AVPacket m_pkt; + AVPacket m_temp_pkt; + qint64 m_output_at; + uchar m_input_buf[INPUT_BUFFER_SIZE + FF_INPUT_BUFFER_PADDING_SIZE]; + int64_t m_seekTime; + qint64 m_skipBytes; + + qint64 ffmpeg_decode(uint8_t *audio); + bool m_skip; + +#if (LIBAVCODEC_VERSION_INT >= ((52<<16)+(102<<8)+0)) + AVIOContext *m_stream; +#else + ByteIOContext *m_stream; +#endif + + uint8_t *m_output_buf; +}; + + +#endif // __decoder_ffmpeg_h diff --git a/src/plugins/Input/ffmpeg_legacy/decoderffmpegfactory.cpp b/src/plugins/Input/ffmpeg_legacy/decoderffmpegfactory.cpp new file mode 100644 index 000000000..db98b3521 --- /dev/null +++ b/src/plugins/Input/ffmpeg_legacy/decoderffmpegfactory.cpp @@ -0,0 +1,230 @@ +/*************************************************************************** + * Copyright (C) 2008-2013 by Ilya Kotov * + * forkotov02@hotmail.ru * + * * + * 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 2 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, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ + +#include +#include + +extern "C"{ +#include +#include +#if (LIBAVUTIL_VERSION_INT >= ((51<<16)+(32<<8)+0)) +#include +#endif +} + +#include "ffmpegmetadatamodel.h" +#include "settingsdialog.h" +#include "decoder_ffmpeg.h" +#include "decoderffmpegfactory.h" + + +// DecoderFFmpegFactory + +bool DecoderFFmpegFactory::supports(const QString &source) const +{ + foreach(QString filter, properties().filters) + { + QRegExp regexp(filter, Qt::CaseInsensitive, QRegExp::Wildcard); + if (regexp.exactMatch(source)) + return true; + } + return false; +} + +bool DecoderFFmpegFactory::canDecode(QIODevice *i) const +{ + av_register_all(); + QStringList filters = properties().filters; + + AVProbeData pd; + uint8_t buf[PROBE_BUFFER_SIZE + AVPROBE_PADDING_SIZE]; + pd.filename = 0; + pd.buf_size = i->peek((char*)buf, sizeof(buf) - AVPROBE_PADDING_SIZE); + pd.buf = buf; + if(pd.buf_size < PROBE_BUFFER_SIZE) + return false; + AVInputFormat *fmt = av_probe_input_format(&pd, 1); + if(!fmt) + { + qWarning("DecoderFFmpegFactory: usupported format"); + return false; + } + if(filters.contains("*.wma") && !memcmp(fmt->name, "asf", 3)) + return true; + else if(filters.contains("*.mp3") && !memcmp(fmt->name, "mp3", 3)) + return true; + else if(filters.contains("*.aac") && !memcmp(fmt->name, "aac", 3)) + return true; + else if(filters.contains("*.ac3") && !memcmp(fmt->name, "eac3", 4)) + return true; + else if(filters.contains("*.dts") && !memcmp(fmt->name, "dts", 3)) + return true; + else if(filters.contains("*.mka") && !memcmp(fmt->name, "mka", 3)) + return true; + else if(filters.contains("*.vqf") && !memcmp(fmt->name, "vqf", 3)) + return true; + return false; +} + +const DecoderProperties DecoderFFmpegFactory::properties() const +{ + av_register_all(); + QSettings settings(Qmmp::configFile(), QSettings::IniFormat); + QStringList filters; + filters << "*.wma" << "*.ape"; + filters = settings.value("FFMPEG_legacy/filters", filters).toStringList(); + + if(!avcodec_find_decoder(CODEC_ID_AAC)) + { + filters.removeAll("*.aac"); + filters.removeAll("*.m4a"); + } + DecoderProperties properties; + properties.name = tr("FFmpeg Plugin"); + properties.filters = filters; + properties.description = tr("FFmpeg Formats"); + if(filters.contains("*.wma")) + properties.contentTypes << "audio/x-ms-wma"; + if(filters.contains("*.mp3")) + properties.contentTypes << "audio/mpeg"; + if(filters.contains("*.aac")) + properties.contentTypes << "audio/aac" << "audio/aacp"; + if(filters.contains("*.shn")) + properties.contentTypes << "audio/x-ffmpeg-shorten"; + if(filters.contains("*.m4a")) + { + properties.contentTypes << "audio/3gpp" << "audio/3gpp2" << "audio/mp4"; + properties.contentTypes << "audio/MP4A-LATM" << "audio/mpeg4-generic"; + properties.contentTypes << "audio/m4a"; + } + if(filters.contains("*.ac3")) + properties.contentTypes << "audio/ac3" << "audio/eac3"; + if(filters.contains("*.dts")) + properties.contentTypes << "audio/dts"; + if(filters.contains("*.mka")) + properties.contentTypes << "audio/true-hd" << "audio/x-matroska"; + properties.shortName = "ffmpeg_legacy"; + properties.hasAbout = true; + properties.hasSettings = true; + properties.noInput = false; + properties.priority = 10; + return properties; +} + +Decoder *DecoderFFmpegFactory::create(const QString &path, QIODevice *input) +{ + return new DecoderFFmpeg(path, input); +} + +QList DecoderFFmpegFactory::createPlayList(const QString &fileName, bool useMetaData) +{ + + QList list; + avcodec_init(); + avcodec_register_all(); + av_register_all(); + AVFormatContext *in = 0; + + if (av_open_input_file(&in, fileName.toLocal8Bit(), 0, 0, 0) < 0) + { + qDebug("DecoderFFmpegFactory: unable to open file"); + return list; + } + FileInfo *info = new FileInfo(fileName); + av_find_stream_info(in); + + if (useMetaData) + { + AVMetadataTag *album = av_metadata_get(in->metadata,"album",0,0); + if(!album) + album = av_metadata_get(in->metadata,"WM/AlbumTitle",0,0); + AVMetadataTag *artist = av_metadata_get(in->metadata,"artist",0,0); + if(!artist) + artist = av_metadata_get(in->metadata,"author",0,0); + AVMetadataTag *comment = av_metadata_get(in->metadata,"comment",0,0); + AVMetadataTag *genre = av_metadata_get(in->metadata,"genre",0,0); + AVMetadataTag *title = av_metadata_get(in->metadata,"title",0,0); + AVMetadataTag *year = av_metadata_get(in->metadata,"WM/Year",0,0); + if(!year) + year = av_metadata_get(in->metadata,"year",0,0); + if(!year) + year = av_metadata_get(in->metadata,"date",0,0); + AVMetadataTag *track = av_metadata_get(in->metadata,"track",0,0); + if(!track) + track = av_metadata_get(in->metadata,"WM/Track",0,0); + if(!track) + track = av_metadata_get(in->metadata,"WM/TrackNumber",0,0); + + if(album) + info->setMetaData(Qmmp::ALBUM, QString::fromUtf8(album->value).trimmed()); + if(artist) + info->setMetaData(Qmmp::ARTIST, QString::fromUtf8(artist->value).trimmed()); + if(comment) + info->setMetaData(Qmmp::COMMENT, QString::fromUtf8(comment->value).trimmed()); + if(genre) + info->setMetaData(Qmmp::GENRE, QString::fromUtf8(genre->value).trimmed()); + if(title) + info->setMetaData(Qmmp::TITLE, QString::fromUtf8(title->value).trimmed()); + if(year) + info->setMetaData(Qmmp::YEAR, year->value); + if(track) + info->setMetaData(Qmmp::TRACK, track->value); + } + info->setLength(in->duration/AV_TIME_BASE); + av_close_input_file(in); + list << info; + return list; +} + +MetaDataModel* DecoderFFmpegFactory::createMetaDataModel(const QString &path, QObject *parent) +{ + return new FFmpegMetaDataModel(path,parent); +} + +void DecoderFFmpegFactory::showSettings(QWidget *parent) +{ + SettingsDialog *s = new SettingsDialog(parent); + s->show(); +} + +void DecoderFFmpegFactory::showAbout(QWidget *parent) +{ + QMessageBox::about (parent, tr("About FFmpeg Audio Plugin"), + + tr("Qmmp FFmpeg Audio Plugin")+"\n"+ + QString(tr("Compiled against libavformat-%1.%2.%3 and libavcodec-%4.%5.%6")) + .arg(LIBAVFORMAT_VERSION_MAJOR) + .arg(LIBAVFORMAT_VERSION_MINOR) + .arg(LIBAVFORMAT_VERSION_MICRO) + .arg(LIBAVCODEC_VERSION_MAJOR) + .arg(LIBAVCODEC_VERSION_MINOR) + .arg(LIBAVCODEC_VERSION_MICRO)+"\n"+ + tr("Written by: Ilya Kotov ")); +} + +QTranslator *DecoderFFmpegFactory::createTranslator(QObject *parent) +{ + QTranslator *translator = new QTranslator(parent); + QString locale = Qmmp::systemLanguageID(); + translator->load(QString(":/ffmpeg_legacy_plugin_") + locale); + return translator; +} + +Q_EXPORT_PLUGIN2(ffmpeg,DecoderFFmpegFactory) diff --git a/src/plugins/Input/ffmpeg_legacy/decoderffmpegfactory.h b/src/plugins/Input/ffmpeg_legacy/decoderffmpegfactory.h new file mode 100644 index 000000000..a668c8608 --- /dev/null +++ b/src/plugins/Input/ffmpeg_legacy/decoderffmpegfactory.h @@ -0,0 +1,51 @@ +/*************************************************************************** + * Copyright (C) 2006-2013 by Ilya Kotov * + * forkotov02@hotmail.ru * + * * + * 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 2 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, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ +#ifndef DECODERFFMPEGFACTORY_H +#define DECODERFFMPEGFACTORY_H + +#include +#include +#include +#include + +#include +#include +#include +#include + +class DecoderFFmpegFactory : public QObject, + DecoderFactory +{ +Q_OBJECT +Q_INTERFACES(DecoderFactory) + +public: + bool supports(const QString &source) const; + bool canDecode(QIODevice *input) const; + const DecoderProperties properties() const; + Decoder *create(const QString &, QIODevice *); + QList createPlayList(const QString &fileName, bool useMetaData); + MetaDataModel* createMetaDataModel(const QString &path, QObject *parent = 0); + void showSettings(QWidget *parent); + void showAbout(QWidget *parent); + QTranslator *createTranslator(QObject *parent); +}; + +#endif diff --git a/src/plugins/Input/ffmpeg_legacy/ffmpeg_legacy.pro b/src/plugins/Input/ffmpeg_legacy/ffmpeg_legacy.pro new file mode 100644 index 000000000..54099d44a --- /dev/null +++ b/src/plugins/Input/ffmpeg_legacy/ffmpeg_legacy.pro @@ -0,0 +1,59 @@ +include(../../plugins.pri) +FORMS += settingsdialog.ui +HEADERS += decoderffmpegfactory.h \ + decoder_ffmpeg.h \ + settingsdialog.h \ + ffmpegmetadatamodel.h +SOURCES += decoder_ffmpeg.cpp \ + decoderffmpegfactory.cpp \ + settingsdialog.cpp \ + ffmpegmetadatamodel.cpp + +INCLUDEPATH += ../../../ + + + +CONFIG += release \ + warn_on \ + plugin \ + link_pkgconfig +TEMPLATE = lib + +TARGET = $$PLUGINS_PREFIX/Input/ffmpeg_legacy + +unix { + isEmpty(LIB_DIR):LIB_DIR = /lib + target.path = $$LIB_DIR/qmmp/Input + INSTALLS += target + QMAKE_CLEAN = $$PLUGINS_PREFIX/Input/libffmpeg_legacy.so + LIBS += -lqmmp + QMAKE_LIBDIR += ../../../../lib + PKGCONFIG += libavcodec libavformat libavutil +} + + +win32 { + HEADERS += ../../../../src/qmmp/metadatamodel.h \ + ../../../../src/qmmp/decoderfactory.h + QMAKE_LIBDIR += ../../../../bin + LIBS += -lqmmp0 -lavcodec.dll -lavformat.dll -lavutil.dll +} + +DEFINES += __STDC_CONSTANT_MACROS + +TRANSLATIONS = translations/ffmpeg_plugin_legacy_ru.ts \ + translations/ffmpeg_plugin_legacy_uk_UA.ts \ + translations/ffmpeg_plugin_legacy_zh_CN.ts \ + translations/ffmpeg_plugin_legacy_zh_TW.ts \ + translations/ffmpeg_plugin_legacy_cs.ts \ + translations/ffmpeg_plugin_legacy_pl.ts \ + translations/ffmpeg_plugin_legacy_de.ts \ + translations/ffmpeg_plugin_legacy_it.ts \ + translations/ffmpeg_plugin_legacy_tr.ts \ + translations/ffmpeg_plugin_legacy_lt.ts \ + translations/ffmpeg_plugin_legacy_nl.ts \ + translations/ffmpeg_plugin_legacy_ja.ts \ + translations/ffmpeg_plugin_legacy_es.ts + +RESOURCES = translations/translations.qrc + diff --git a/src/plugins/Input/ffmpeg_legacy/ffmpegmetadatamodel.cpp b/src/plugins/Input/ffmpeg_legacy/ffmpegmetadatamodel.cpp new file mode 100644 index 000000000..412b139f8 --- /dev/null +++ b/src/plugins/Input/ffmpeg_legacy/ffmpegmetadatamodel.cpp @@ -0,0 +1,70 @@ +/*************************************************************************** + * Copyright (C) 2009-2013 by Ilya Kotov * + * forkotov02@hotmail.ru * + * * + * 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 2 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, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ + +#include "ffmpegmetadatamodel.h" + +FFmpegMetaDataModel::FFmpegMetaDataModel(const QString &path, QObject *parent) : MetaDataModel(parent) +{ + m_in = 0; + avcodec_init(); + avcodec_register_all(); + av_register_all(); + if (av_open_input_file(&m_in, path.toLocal8Bit(), NULL,0, NULL) < 0) + return; + av_find_stream_info(m_in); + av_read_play(m_in); +} + +FFmpegMetaDataModel::~FFmpegMetaDataModel() +{ + if(m_in) + av_close_input_file(m_in); +} + +QHash FFmpegMetaDataModel::audioProperties() +{ + QHash ap; + if(!m_in) + return ap; + QString text = QString("%1").arg(int(m_in->duration/AV_TIME_BASE)/60); + text +=":"+QString("%1").arg(int(m_in->duration/AV_TIME_BASE)%60,2,10,QChar('0')); + ap.insert(tr("Length"), text); + ap.insert(tr("File size"), QString("%1 ").arg(m_in->file_size/1024)+" "+tr("KB")); + ap.insert(tr("Bitrate"), QString("%1 "+tr("kbps")).arg(m_in->bit_rate/1000)); + + AVCodecContext *c = 0; + uint wma_idx; + for (wma_idx = 0; wma_idx < m_in->nb_streams; wma_idx++) + { + c = m_in->streams[wma_idx]->codec; +#if LIBAVCODEC_VERSION_MAJOR < 53 + if (c->codec_type == CODEC_TYPE_AUDIO) +#else + if (c->codec_type == AVMEDIA_TYPE_AUDIO) +#endif + break; + } + if (c) + { + ap.insert(tr("Sample rate"), QString("%1 " + tr("Hz")).arg(c->sample_rate)); + ap.insert(tr("Channels"), QString("%1").arg(c->channels)); + } + return ap; +} diff --git a/src/plugins/Input/ffmpeg_legacy/ffmpegmetadatamodel.h b/src/plugins/Input/ffmpeg_legacy/ffmpegmetadatamodel.h new file mode 100644 index 000000000..d2e3e4e87 --- /dev/null +++ b/src/plugins/Input/ffmpeg_legacy/ffmpegmetadatamodel.h @@ -0,0 +1,46 @@ +/*************************************************************************** + * Copyright (C) 2009-2013 by Ilya Kotov * + * forkotov02@hotmail.ru * + * * + * 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 2 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, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ + +#ifndef FFMPEGMETADATAMODEL_H +#define FFMPEGMETADATAMODEL_H + +extern "C"{ +#include +#include +#if (LIBAVUTIL_VERSION_INT >= ((51<<16)+(32<<8)+0)) +#include +#endif +} + +#include + +class FFmpegMetaDataModel : public MetaDataModel +{ +Q_OBJECT +public: + FFmpegMetaDataModel(const QString &path, QObject *parent); + ~FFmpegMetaDataModel(); + QHash audioProperties(); + +private: + AVFormatContext *m_in; +}; + +#endif // FFMPEGMETADATAMODEL_H diff --git a/src/plugins/Input/ffmpeg_legacy/settingsdialog.cpp b/src/plugins/Input/ffmpeg_legacy/settingsdialog.cpp new file mode 100644 index 000000000..f0a518276 --- /dev/null +++ b/src/plugins/Input/ffmpeg_legacy/settingsdialog.cpp @@ -0,0 +1,111 @@ +/*************************************************************************** + * Copyright (C) 2008-2013 by Ilya Kotov * + * forkotov02@hotmail.ru * + * * + * 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 2 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, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ + +#include +#include + +#include + +extern "C"{ +#include +#include +#if (LIBAVUTIL_VERSION_INT >= ((51<<16)+(32<<8)+0)) +#include +#endif +} +#include "settingsdialog.h" + +SettingsDialog::SettingsDialog(QWidget *parent) + : QDialog(parent) +{ + ui.setupUi(this); + setAttribute(Qt::WA_DeleteOnClose); + QSettings settings(Qmmp::configFile(), QSettings::IniFormat); + QStringList filters; + filters << "*.wma"; + filters << "*.ape"; + filters = settings.value("FFMPEG_legacy/filters", filters).toStringList(); + avcodec_register_all(); + av_register_all(); + ui.wmaCheckBox->setEnabled(avcodec_find_decoder(CODEC_ID_WMAV1)); + ui.wmaCheckBox->setChecked(filters.contains("*.wma") && avcodec_find_decoder(CODEC_ID_WMAV1)); + ui.apeCheckBox->setEnabled(avcodec_find_decoder(CODEC_ID_APE)); + ui.apeCheckBox->setChecked(filters.contains("*.ape") && avcodec_find_decoder(CODEC_ID_APE)); + ui.ttaCheckBox->setEnabled(avcodec_find_decoder(CODEC_ID_TTA)); + ui.ttaCheckBox->setChecked(filters.contains("*.tta") && avcodec_find_decoder(CODEC_ID_TTA)); + ui.aacCheckBox->setEnabled(avcodec_find_decoder(CODEC_ID_AAC)); + ui.aacCheckBox->setChecked(filters.contains("*.aac") && avcodec_find_decoder(CODEC_ID_AAC)); + ui.mp3CheckBox->setEnabled(avcodec_find_decoder(CODEC_ID_MP3)); + ui.mp3CheckBox->setChecked(filters.contains("*.mp3") && avcodec_find_decoder(CODEC_ID_MP3)); + ui.mp4CheckBox->setEnabled(avcodec_find_decoder(CODEC_ID_AAC)); + ui.mp4CheckBox->setChecked(filters.contains("*.m4a") && (avcodec_find_decoder(CODEC_ID_AAC) + || avcodec_find_decoder(CODEC_ID_ALAC))); + ui.raCheckBox->setEnabled(avcodec_find_decoder(CODEC_ID_RA_288)); + ui.raCheckBox->setChecked(filters.contains("*.ra") && avcodec_find_decoder(CODEC_ID_RA_288)); + ui.shCheckBox->setChecked(filters.contains("*.shn") && avcodec_find_decoder(CODEC_ID_SHORTEN)); + ui.ac3CheckBox->setEnabled(avcodec_find_decoder(CODEC_ID_EAC3)); + ui.ac3CheckBox->setChecked(filters.contains("*.ac3") && avcodec_find_decoder(CODEC_ID_EAC3)); + ui.dtsCheckBox->setEnabled(avcodec_find_decoder(CODEC_ID_DTS)); + ui.dtsCheckBox->setChecked(filters.contains("*.dts") && avcodec_find_decoder(CODEC_ID_DTS)); + ui.mkaCheckBox->setEnabled(avcodec_find_decoder(CODEC_ID_TRUEHD)); + ui.mkaCheckBox->setChecked(filters.contains("*.mka") && avcodec_find_decoder(CODEC_ID_TRUEHD)); + ui.vqfCheckBox->setEnabled(avcodec_find_decoder(CODEC_ID_TWINVQ)); +#if (LIBAVCODEC_VERSION_INT >= ((53<<16)+(42<<8)+4)) + ui.vqfCheckBox->setChecked(filters.contains("*.vqf") && avcodec_find_decoder(CODEC_ID_TWINVQ)); +#else + ui.vqfCheckBox->hide(); +#endif +} + +SettingsDialog::~SettingsDialog() +{ +} + +void SettingsDialog::accept() +{ + QStringList filters; + if (ui.mp3CheckBox->isChecked()) + filters << "*.mp3"; + if (ui.wmaCheckBox->isChecked()) + filters << "*.wma"; + if (ui.apeCheckBox->isChecked()) + filters << "*.ape"; + if (ui.ttaCheckBox->isChecked()) + filters << "*.tta"; + if (ui.aacCheckBox->isChecked()) + filters << "*.aac"; + if (ui.mp4CheckBox->isChecked()) + filters << "*.m4a"; + if (ui.raCheckBox->isChecked()) + filters << "*.ra"; + if (ui.shCheckBox->isChecked()) + filters << "*.shn"; + if (ui.ac3CheckBox->isChecked()) + filters << "*.ac3"; + if (ui.dtsCheckBox->isChecked()) + filters << "*.dts"; + if (ui.mkaCheckBox->isChecked()) + filters << "*.mka"; + if (ui.vqfCheckBox->isChecked()) + filters << "*.vqf"; + QSettings settings(Qmmp::configFile(), QSettings::IniFormat); + settings.setValue("FFMPEG_legacy/filters", filters); + QDialog::accept(); +} diff --git a/src/plugins/Input/ffmpeg_legacy/settingsdialog.h b/src/plugins/Input/ffmpeg_legacy/settingsdialog.h new file mode 100644 index 000000000..9721dfcb0 --- /dev/null +++ b/src/plugins/Input/ffmpeg_legacy/settingsdialog.h @@ -0,0 +1,46 @@ +/*************************************************************************** + * Copyright (C) 2008-2013 by Ilya Kotov * + * forkotov02@hotmail.ru * + * * + * 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 2 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, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ +#ifndef SETTINGSDIALOG_H +#define SETTINGSDIALOG_H + +#include + +#include "ui_settingsdialog.h" + +/** + @author Ilya Kotov +*/ +class SettingsDialog : public QDialog +{ + Q_OBJECT +public: + SettingsDialog(QWidget *parent = 0); + + ~SettingsDialog(); + +public slots: + virtual void accept(); + +private: + Ui::SettingsDialog ui; + +}; + +#endif diff --git a/src/plugins/Input/ffmpeg_legacy/settingsdialog.ui b/src/plugins/Input/ffmpeg_legacy/settingsdialog.ui new file mode 100644 index 000000000..cdeac3529 --- /dev/null +++ b/src/plugins/Input/ffmpeg_legacy/settingsdialog.ui @@ -0,0 +1,182 @@ + + + SettingsDialog + + + + 0 + 0 + 308 + 328 + + + + FFmpeg Plugin Settings + + + + 6 + + + 6 + + + 6 + + + + + Qt::Horizontal + + + + 178 + 20 + + + + + + + + + 0 + 0 + + + + QDialogButtonBox::Cancel|QDialogButtonBox::Ok + + + + + + + Formats + + + + + + Windows Media Audio + + + + + + + Monkey's Audio (APE) + + + + + + + True Audio + + + + + + + ADTS AAC + + + + + + + MP3 (MPEG audio layer 3) + + + + + + + MPEG-4 AAC/ALAC + + + + + + + RealAudio 1.0/2.0 + + + + + + + Shorten + + + + + + + AC3/EAC + + + + + + + DTS/DTS-Core + + + + + + + Matroska Audio (Dolby TrueHD Lossless) + + + + + + + VQF + + + + + + + + + + + + buttonBox + accepted() + SettingsDialog + accept() + + + 214 + 167 + + + 103 + 160 + + + + + buttonBox + rejected() + SettingsDialog + reject() + + + 269 + 174 + + + 148 + 169 + + + + + diff --git a/src/plugins/Input/ffmpeg_legacy/translations/ffmpeg_legacy_plugin_cs.ts b/src/plugins/Input/ffmpeg_legacy/translations/ffmpeg_legacy_plugin_cs.ts new file mode 100644 index 000000000..833d5e24d --- /dev/null +++ b/src/plugins/Input/ffmpeg_legacy/translations/ffmpeg_legacy_plugin_cs.ts @@ -0,0 +1,153 @@ + + + + + DecoderFFmpegFactory + + + About FFmpeg Audio Plugin + O modulu FFmpeg + + + + Qmmp FFmpeg Audio Plugin + Vstupní modul Qmmp FFmpeg + + + + Written by: Ilya Kotov <forkotov02@hotmail.ru> + Autor: Ilja Kotov <forkotov02@hotmail.ru> + + + + FFmpeg Plugin + Modul FFmpeg + + + + FFmpeg Formats + Formáty FFmpeg + + + + Compiled against libavformat-%1.%2.%3 and libavcodec-%4.%5.%6 + Přeloženo s libavformat-%1.%2.%3 a libavcodec-%4.%5.%6 + + + + FFmpegMetaDataModel + + + Length + Délka + + + + File size + Velikost souboru + + + + KB + KiB + + + + Bitrate + Datový tok + + + + kbps + kbps + + + + Sample rate + Vzorkovací frekvence + + + + Hz + Hz + + + + Channels + Počet kanálů + + + + SettingsDialog + + + Formats + Formáty + + + + Windows Media Audio + Windows Media Audio + + + + True Audio + True Audio + + + + ADTS AAC + ADTS AAC + + + + MPEG-4 AAC/ALAC + + + + + RealAudio 1.0/2.0 + RealAudio 1.0/2.0 + + + + Shorten + + + + + AC3/EAC + + + + + DTS/DTS-Core + + + + + Matroska Audio (Dolby TrueHD Lossless) + + + + + VQF + + + + + FFmpeg Plugin Settings + Nastavení modulu FFmpeg + + + + Monkey's Audio (APE) + + + + + MP3 (MPEG audio layer 3) + MP3 (MPEG audio layer 3) + + + diff --git a/src/plugins/Input/ffmpeg_legacy/translations/ffmpeg_legacy_plugin_de.ts b/src/plugins/Input/ffmpeg_legacy/translations/ffmpeg_legacy_plugin_de.ts new file mode 100644 index 000000000..021c9c3d6 --- /dev/null +++ b/src/plugins/Input/ffmpeg_legacy/translations/ffmpeg_legacy_plugin_de.ts @@ -0,0 +1,154 @@ + + + + + DecoderFFmpegFactory + + + About FFmpeg Audio Plugin + Über FFmpeg-Audio-Modul + + + + Qmmp FFmpeg Audio Plugin + Qmmp FFmpeg-Audio-Modul + + + + Written by: Ilya Kotov <forkotov02@hotmail.ru> + Autor: Ilya Kotov <forkotov02@hotmail.ru> + + + + FFmpeg Plugin + FFmpeg-Modul + + + + FFmpeg Formats + FFmpeg-Formate + + + + Compiled against libavformat-%1.%2.%3 and libavcodec-%4.%5.%6 + Kompiliert gegen libavformat-%1.%2.%3 und libavcodec-%4.%5.%6 + + + + FFmpegMetaDataModel + + + Length + Länge + + + + File size + Dateigröße + + + + KB + KB + + + + Bitrate + Bitrate + + + + kbps + kbps + + + + Sample rate + Abtastrate + + + + Hz + Hz + + + + Channels + Kanäle + + + + SettingsDialog + + + Formats + Formate + + + + Windows Media Audio + Windows Media Audio + + + + True Audio + True Audio + + + + ADTS AAC + ADTS AAC + + + + MPEG-4 AAC/ALAC + MPEG-4 AAC/ALAC + + + + RealAudio 1.0/2.0 + RealAudio 1.0/2.0 + + + + Shorten + Name eines Dateiformats + Shorten + + + + AC3/EAC + AC3/EAC + + + + DTS/DTS-Core + DTS/DTS-Core + + + + Matroska Audio (Dolby TrueHD Lossless) + Matroska Audio (Dolby TrueHD, verlustfrei) + + + + VQF + VQF + + + + FFmpeg Plugin Settings + Einstellungen FFmpeg-Modul + + + + Monkey's Audio (APE) + Monkey’s Audio (APE) + + + + MP3 (MPEG audio layer 3) + MP3 (MPEG Audio Layer 3) + + + diff --git a/src/plugins/Input/ffmpeg_legacy/translations/ffmpeg_legacy_plugin_es.ts b/src/plugins/Input/ffmpeg_legacy/translations/ffmpeg_legacy_plugin_es.ts new file mode 100644 index 000000000..9ef0d215d --- /dev/null +++ b/src/plugins/Input/ffmpeg_legacy/translations/ffmpeg_legacy_plugin_es.ts @@ -0,0 +1,153 @@ + + + + + DecoderFFmpegFactory + + + About FFmpeg Audio Plugin + Acerca del módulo de audio FFmpeg + + + + Qmmp FFmpeg Audio Plugin + Módulo de audio FFmpeg para Qmmp + + + + Written by: Ilya Kotov <forkotov02@hotmail.ru> + Escrito por: Ilya Kotov <forkotov02@hotmail.ru> + + + + FFmpeg Plugin + Módulo FFmpeg + + + + FFmpeg Formats + Formatos FFmpeg + + + + Compiled against libavformat-%1.%2.%3 and libavcodec-%4.%5.%6 + Compilado con libavformat-%1.%2.%3 y libavcodec-%4.%5.%6 + + + + FFmpegMetaDataModel + + + Length + Duración + + + + File size + Tamaño del archivo + + + + KB + KB + + + + Bitrate + Tasa de bits + + + + kbps + kbps + + + + Sample rate + Frecuencia + + + + Hz + Hz + + + + Channels + Canales + + + + SettingsDialog + + + Formats + Formatos + + + + Windows Media Audio + Windows Media Audio + + + + True Audio + True Audio + + + + ADTS AAC + ADTS AAC + + + + MPEG-4 AAC/ALAC + + + + + RealAudio 1.0/2.0 + RealAudio 1.0/2.0 + + + + Shorten + Shorten + + + + AC3/EAC + + + + + DTS/DTS-Core + + + + + Matroska Audio (Dolby TrueHD Lossless) + + + + + VQF + + + + + FFmpeg Plugin Settings + Configuración del módulo FFmpeg + + + + Monkey's Audio (APE) + + + + + MP3 (MPEG audio layer 3) + MP3 (MPEG Audio Layer 3) + + + diff --git a/src/plugins/Input/ffmpeg_legacy/translations/ffmpeg_legacy_plugin_fr.ts b/src/plugins/Input/ffmpeg_legacy/translations/ffmpeg_legacy_plugin_fr.ts new file mode 100644 index 000000000..51f445581 --- /dev/null +++ b/src/plugins/Input/ffmpeg_legacy/translations/ffmpeg_legacy_plugin_fr.ts @@ -0,0 +1,153 @@ + + + + + DecoderFFmpegFactory + + + FFmpeg Plugin + + + + + FFmpeg Formats + + + + + About FFmpeg Audio Plugin + + + + + Qmmp FFmpeg Audio Plugin + + + + + Compiled against libavformat-%1.%2.%3 and libavcodec-%4.%5.%6 + + + + + Written by: Ilya Kotov <forkotov02@hotmail.ru> + + + + + FFmpegMetaDataModel + + + Length + + + + + File size + + + + + KB + + + + + Bitrate + + + + + kbps + + + + + Sample rate + + + + + Hz + + + + + Channels + + + + + SettingsDialog + + + FFmpeg Plugin Settings + + + + + Formats + + + + + Windows Media Audio + + + + + Monkey's Audio (APE) + + + + + True Audio + + + + + ADTS AAC + + + + + MP3 (MPEG audio layer 3) + + + + + MPEG-4 AAC/ALAC + + + + + RealAudio 1.0/2.0 + + + + + Shorten + + + + + AC3/EAC + + + + + DTS/DTS-Core + + + + + Matroska Audio (Dolby TrueHD Lossless) + + + + + VQF + + + + diff --git a/src/plugins/Input/ffmpeg_legacy/translations/ffmpeg_legacy_plugin_he.ts b/src/plugins/Input/ffmpeg_legacy/translations/ffmpeg_legacy_plugin_he.ts new file mode 100644 index 000000000..6aa37403a --- /dev/null +++ b/src/plugins/Input/ffmpeg_legacy/translations/ffmpeg_legacy_plugin_he.ts @@ -0,0 +1,153 @@ + + + + + DecoderFFmpegFactory + + + FFmpeg Plugin + תוספת FFmpeg + + + + FFmpeg Formats + פורמטים של FFmpeg + + + + About FFmpeg Audio Plugin + אודות תוספת שמע FFmpeg + + + + Qmmp FFmpeg Audio Plugin + תוספת שמע FFmpeg ‫Qmmp + + + + Compiled against libavformat-%1.%2.%3 and libavcodec-%4.%5.%6 + הודרה כנגד libavformat-%1.%2.%3 וכנגד libavcodec-%4.%5.%6 + + + + Written by: Ilya Kotov <forkotov02@hotmail.ru> + חוברה על ידי: Ilya Kotov ‫<forkotov02@hotmail.ru> + + + + FFmpegMetaDataModel + + + Length + אריכות + + + + File size + גודל קובץ + + + + KB + ק״ב + + + + Bitrate + שיעור סיביות + + + + kbps + + + + + Sample rate + שיעור דגימה + + + + Hz + הרץ + + + + Channels + ערוצים + + + + SettingsDialog + + + FFmpeg Plugin Settings + הגדרות תוספת FFmpeg + + + + Formats + פורמטים + + + + Windows Media Audio + + + + + Monkey's Audio (APE) + + + + + True Audio + שמע אמיתי + + + + ADTS AAC + + + + + MP3 (MPEG audio layer 3) + + + + + MPEG-4 AAC/ALAC + + + + + RealAudio 1.0/2.0 + + + + + Shorten + מקוצר + + + + AC3/EAC + + + + + DTS/DTS-Core + + + + + Matroska Audio (Dolby TrueHD Lossless) + שמע Matroska ‫(Dolby TrueHD נטול אובדן) + + + + VQF + + + + diff --git a/src/plugins/Input/ffmpeg_legacy/translations/ffmpeg_legacy_plugin_hu.ts b/src/plugins/Input/ffmpeg_legacy/translations/ffmpeg_legacy_plugin_hu.ts new file mode 100644 index 000000000..176f64142 --- /dev/null +++ b/src/plugins/Input/ffmpeg_legacy/translations/ffmpeg_legacy_plugin_hu.ts @@ -0,0 +1,153 @@ + + + + + DecoderFFmpegFactory + + + FFmpeg Plugin + + + + + FFmpeg Formats + + + + + About FFmpeg Audio Plugin + + + + + Qmmp FFmpeg Audio Plugin + + + + + Compiled against libavformat-%1.%2.%3 and libavcodec-%4.%5.%6 + + + + + Written by: Ilya Kotov <forkotov02@hotmail.ru> + + + + + FFmpegMetaDataModel + + + Length + + + + + File size + + + + + KB + + + + + Bitrate + + + + + kbps + + + + + Sample rate + + + + + Hz + + + + + Channels + + + + + SettingsDialog + + + FFmpeg Plugin Settings + + + + + Formats + + + + + Windows Media Audio + + + + + Monkey's Audio (APE) + + + + + True Audio + + + + + ADTS AAC + + + + + MP3 (MPEG audio layer 3) + + + + + MPEG-4 AAC/ALAC + + + + + RealAudio 1.0/2.0 + + + + + Shorten + + + + + AC3/EAC + + + + + DTS/DTS-Core + + + + + Matroska Audio (Dolby TrueHD Lossless) + + + + + VQF + + + + diff --git a/src/plugins/Input/ffmpeg_legacy/translations/ffmpeg_legacy_plugin_it.ts b/src/plugins/Input/ffmpeg_legacy/translations/ffmpeg_legacy_plugin_it.ts new file mode 100644 index 000000000..75ed8b763 --- /dev/null +++ b/src/plugins/Input/ffmpeg_legacy/translations/ffmpeg_legacy_plugin_it.ts @@ -0,0 +1,153 @@ + + + + + DecoderFFmpegFactory + + + About FFmpeg Audio Plugin + Info sul modulo audi FFmpeg + + + + Qmmp FFmpeg Audio Plugin + Modulo audio FFmpeg per Qmmp + + + + Written by: Ilya Kotov <forkotov02@hotmail.ru> + Autore: Ilya Kotov <forkotov02@hotmail.ru> + + + + FFmpeg Plugin + Modulo FFmpeg + + + + FFmpeg Formats + Formati FFmpeg + + + + Compiled against libavformat-%1.%2.%3 and libavcodec-%4.%5.%6 + Compilato con libavformat-%1.%2.%3 e libavcodec-%4.%5.%6 + + + + FFmpegMetaDataModel + + + Length + Durata + + + + File size + Dimensione file + + + + KB + KB + + + + Bitrate + Bit/secondo + + + + kbps + kbps + + + + Sample rate + Campionamento + + + + Hz + Hz + + + + Channels + Canali + + + + SettingsDialog + + + Formats + Formati + + + + Windows Media Audio + Windows Media Audio + + + + True Audio + True Audio + + + + ADTS AAC + ADTS AAC + + + + MPEG-4 AAC/ALAC + + + + + RealAudio 1.0/2.0 + RealAudio 1.0/2.0 + + + + Shorten + + + + + AC3/EAC + + + + + DTS/DTS-Core + + + + + Matroska Audio (Dolby TrueHD Lossless) + + + + + VQF + + + + + FFmpeg Plugin Settings + Impostazioni del modulo FFmpeg + + + + Monkey's Audio (APE) + + + + + MP3 (MPEG audio layer 3) + MP3 (MPEG Audio Layer 3) + + + diff --git a/src/plugins/Input/ffmpeg_legacy/translations/ffmpeg_legacy_plugin_ja.ts b/src/plugins/Input/ffmpeg_legacy/translations/ffmpeg_legacy_plugin_ja.ts new file mode 100644 index 000000000..3404cf8f9 --- /dev/null +++ b/src/plugins/Input/ffmpeg_legacy/translations/ffmpeg_legacy_plugin_ja.ts @@ -0,0 +1,153 @@ + + + + + DecoderFFmpegFactory + + + FFmpeg Plugin + FFmpeg プラグイン + + + + FFmpeg Formats + FFmpeg 用の形式 + + + + About FFmpeg Audio Plugin + FFmpeg 音響プラグインについて + + + + Qmmp FFmpeg Audio Plugin + QMMP FFmpeg 音響プラグイン + + + + Compiled against libavformat-%1.%2.%3 and libavcodec-%4.%5.%6 + libavformat-%1.%2.%3 と libavcodec-%4.%5.%6 対応でコンパイル + + + + Written by: Ilya Kotov <forkotov02@hotmail.ru> + 制作: Илья Котов (Ilya Kotov) <forkotov02@hotmail.ru> + + + + FFmpegMetaDataModel + + + Length + 長さ + + + + File size + ファイルの大きさ + + + + KB + KiB + + + + Bitrate + ビットレート + + + + kbps + キロビット毎秒 + + + + Sample rate + サンプルレート + + + + Hz + Hz + + + + Channels + チャンネル + + + + SettingsDialog + + + FFmpeg Plugin Settings + FFmpeg プラグイン設定 + + + + Formats + 形式 + + + + Windows Media Audio + + + + + Monkey's Audio (APE) + + + + + True Audio + + + + + ADTS AAC + + + + + MP3 (MPEG audio layer 3) + MP3 (MPEG オーディオ レイヤー3) + + + + MPEG-4 AAC/ALAC + + + + + RealAudio 1.0/2.0 + RealAudio 1.0/2.0 + + + + Shorten + 短縮 + + + + AC3/EAC + + + + + DTS/DTS-Core + + + + + Matroska Audio (Dolby TrueHD Lossless) + + + + + VQF + + + + diff --git a/src/plugins/Input/ffmpeg_legacy/translations/ffmpeg_legacy_plugin_kk.ts b/src/plugins/Input/ffmpeg_legacy/translations/ffmpeg_legacy_plugin_kk.ts new file mode 100644 index 000000000..e25f1c514 --- /dev/null +++ b/src/plugins/Input/ffmpeg_legacy/translations/ffmpeg_legacy_plugin_kk.ts @@ -0,0 +1,153 @@ + + + + + DecoderFFmpegFactory + + + FFmpeg Plugin + + + + + FFmpeg Formats + + + + + About FFmpeg Audio Plugin + + + + + Qmmp FFmpeg Audio Plugin + + + + + Compiled against libavformat-%1.%2.%3 and libavcodec-%4.%5.%6 + + + + + Written by: Ilya Kotov <forkotov02@hotmail.ru> + + + + + FFmpegMetaDataModel + + + Length + + + + + File size + + + + + KB + + + + + Bitrate + + + + + kbps + + + + + Sample rate + + + + + Hz + + + + + Channels + + + + + SettingsDialog + + + FFmpeg Plugin Settings + + + + + Formats + + + + + Windows Media Audio + + + + + Monkey's Audio (APE) + + + + + True Audio + + + + + ADTS AAC + + + + + MP3 (MPEG audio layer 3) + + + + + MPEG-4 AAC/ALAC + + + + + RealAudio 1.0/2.0 + + + + + Shorten + + + + + AC3/EAC + + + + + DTS/DTS-Core + + + + + Matroska Audio (Dolby TrueHD Lossless) + + + + + VQF + + + + diff --git a/src/plugins/Input/ffmpeg_legacy/translations/ffmpeg_legacy_plugin_lt.ts b/src/plugins/Input/ffmpeg_legacy/translations/ffmpeg_legacy_plugin_lt.ts new file mode 100644 index 000000000..8f2a6283d --- /dev/null +++ b/src/plugins/Input/ffmpeg_legacy/translations/ffmpeg_legacy_plugin_lt.ts @@ -0,0 +1,153 @@ + + + + + DecoderFFmpegFactory + + + About FFmpeg Audio Plugin + Apie FFmpeg įskiepį + + + + Qmmp FFmpeg Audio Plugin + FFmpeg Qmmp audio įskiepis + + + + Written by: Ilya Kotov <forkotov02@hotmail.ru> + Sukūrė: Ilya Kotov <forkotov02@hotmail.ru> + + + + FFmpeg Plugin + FFmpeg įskiepis + + + + FFmpeg Formats + FFmpeg bylų tipai + + + + Compiled against libavformat-%1.%2.%3 and libavcodec-%4.%5.%6 + Surinkta iš libavformat-%1.%2.%3 ir libavcodec-%4.%5.%6 + + + + FFmpegMetaDataModel + + + Length + Trukmė + + + + File size + Bylos dydis + + + + KB + КB + + + + Bitrate + Kokybė + + + + kbps + kbps + + + + Sample rate + Dažnis + + + + Hz + Hz + + + + Channels + Kanalai + + + + SettingsDialog + + + Formats + Tipai + + + + Windows Media Audio + Windows Media Audio + + + + True Audio + True Audio + + + + ADTS AAC + ADTS AAC + + + + MPEG-4 AAC/ALAC + MPEG-4 AAC/ALAC + + + + RealAudio 1.0/2.0 + RealAudio 1.0/2.0 + + + + Shorten + Shorten + + + + AC3/EAC + AC3/EAC + + + + DTS/DTS-Core + DTS/DTS-Core + + + + Matroska Audio (Dolby TrueHD Lossless) + Matroska Audio (Dolby TrueHD Lossless) + + + + VQF + VQF + + + + FFmpeg Plugin Settings + FFmpeg įskiepio nustatymai + + + + Monkey's Audio (APE) + Monkey's Audio (APE) + + + + MP3 (MPEG audio layer 3) + MP3 (MPEG audio layer 3) + + + diff --git a/src/plugins/Input/ffmpeg_legacy/translations/ffmpeg_legacy_plugin_nl.ts b/src/plugins/Input/ffmpeg_legacy/translations/ffmpeg_legacy_plugin_nl.ts new file mode 100644 index 000000000..221b9562e --- /dev/null +++ b/src/plugins/Input/ffmpeg_legacy/translations/ffmpeg_legacy_plugin_nl.ts @@ -0,0 +1,153 @@ + + + + + DecoderFFmpegFactory + + + About FFmpeg Audio Plugin + Over de FFmpeg Audio Module + + + + Qmmp FFmpeg Audio Plugin + FFmpeg Audio Module voor Qmmp + + + + Written by: Ilya Kotov <forkotov02@hotmail.ru> + Auteur: Ilya Kotov <forkotov02@hotmail.ru> + + + + FFmpeg Plugin + FFmpeg Module + + + + FFmpeg Formats + FFmpeg Formaat + + + + Compiled against libavformat-%1.%2.%3 and libavcodec-%4.%5.%6 + Gecompileerd tegen libavformat-%1.%2.%3 en libavcodec-%4.%5.%6 + + + + FFmpegMetaDataModel + + + Length + Duur + + + + File size + Bestandsgrootte + + + + KB + + + + + Bitrate + Bitsnelheid + + + + kbps + + + + + Sample rate + Sample frequentie + + + + Hz + + + + + Channels + Kanalen + + + + SettingsDialog + + + Formats + Formaten + + + + Windows Media Audio + + + + + True Audio + + + + + ADTS AAC + + + + + MPEG-4 AAC/ALAC + + + + + RealAudio 1.0/2.0 + + + + + Shorten + + + + + AC3/EAC + + + + + DTS/DTS-Core + + + + + Matroska Audio (Dolby TrueHD Lossless) + + + + + VQF + + + + + FFmpeg Plugin Settings + FFmpeg Module Instellingen + + + + Monkey's Audio (APE) + + + + + MP3 (MPEG audio layer 3) + + + + diff --git a/src/plugins/Input/ffmpeg_legacy/translations/ffmpeg_legacy_plugin_pl.ts b/src/plugins/Input/ffmpeg_legacy/translations/ffmpeg_legacy_plugin_pl.ts new file mode 100644 index 000000000..f445778dd --- /dev/null +++ b/src/plugins/Input/ffmpeg_legacy/translations/ffmpeg_legacy_plugin_pl.ts @@ -0,0 +1,161 @@ + + + + + DecoderFFmpegFactory + + + FFmpeg Plugin + Wtyczka FFMPEG + + + + FFmpeg Formats + Formaty FFmpeg + + + + About FFmpeg Audio Plugin + O wtyczce FFmpeg Audio + + + + Qmmp FFmpeg Audio Plugin + Wtyczka FFmpeg Audio dla Qmmp + + + + Compiled against libavformat-%1.%2.%3 and libavcodec-%4.%5.%6 + Skompilowane przy użyciu libavformat-%1.%2.%3 i libavcodec-%4.%5.%6 + + + + Written by: Ilya Kotov <forkotov02@hotmail.ru> + Autor: Ilja Kotov <forkotov02@hotmail.ru> + + + + FFmpegMetaDataModel + + + + Length + Długość + + + + + File size + Wielkość pliku + + + + + KB + + + + + + Bitrate + Szybkość transmisji + + + + + kbps + + + + + + Sample rate + Próbkowanie + + + + + Hz + + + + + + Channels + Kanały + + + + SettingsDialog + + + FFmpeg Plugin Settings + Ustawienia wtyczki FFMPEG + + + + Formats + Formaty + + + + Windows Media Audio + + + + + Monkey's Audio (APE) + + + + + True Audio + + + + + ADTS AAC + + + + + MP3 (MPEG audio layer 3) + + + + + MPEG-4 AAC/ALAC + + + + + RealAudio 1.0/2.0 + + + + + Shorten + Shorten (SHN) + + + + AC3/EAC + + + + + DTS/DTS-Core + + + + + Matroska Audio (Dolby TrueHD Lossless) + Matroska Audio (Dolby TrueHD Bezstratny) + + + + VQF + + + + diff --git a/src/plugins/Input/ffmpeg_legacy/translations/ffmpeg_legacy_plugin_pl_PL.ts b/src/plugins/Input/ffmpeg_legacy/translations/ffmpeg_legacy_plugin_pl_PL.ts new file mode 100644 index 000000000..3770dc05d --- /dev/null +++ b/src/plugins/Input/ffmpeg_legacy/translations/ffmpeg_legacy_plugin_pl_PL.ts @@ -0,0 +1,153 @@ + + + + + DecoderFFmpegFactory + + + FFmpeg Plugin + Wtyczka FFMPEG + + + + FFmpeg Formats + Formaty FFmpeg + + + + About FFmpeg Audio Plugin + O wtyczce FFmpeg Audio + + + + Qmmp FFmpeg Audio Plugin + Wtyczka FFmpeg Audio dla Qmmp + + + + Compiled against libavformat-%1.%2.%3 and libavcodec-%4.%5.%6 + Skompilowane przy użyciu libavformat-%1.%2.%3 i libavcodec-%4.%5.%6 + + + + Written by: Ilya Kotov <forkotov02@hotmail.ru> + Autor: Ilja Kotov <forkotov02@hotmail.ru> + + + + FFmpegMetaDataModel + + + Length + Długość + + + + File size + Wielkość pliku + + + + KB + + + + + Bitrate + Szybkość transmisji + + + + kbps + + + + + Sample rate + Próbkowanie + + + + Hz + + + + + Channels + Kanały + + + + SettingsDialog + + + FFmpeg Plugin Settings + Ustawienia wtyczki FFMPEG + + + + Formats + Formaty + + + + Windows Media Audio + + + + + Monkey's Audio (APE) + + + + + True Audio + + + + + ADTS AAC + + + + + MP3 (MPEG audio layer 3) + + + + + MPEG-4 AAC/ALAC + + + + + RealAudio 1.0/2.0 + + + + + Shorten + Shorten (SHN) + + + + AC3/EAC + + + + + DTS/DTS-Core + + + + + Matroska Audio (Dolby TrueHD Lossless) + Matroska Audio (Dolby TrueHD Bezstratny) + + + + VQF + + + + diff --git a/src/plugins/Input/ffmpeg_legacy/translations/ffmpeg_legacy_plugin_pt_BR.ts b/src/plugins/Input/ffmpeg_legacy/translations/ffmpeg_legacy_plugin_pt_BR.ts new file mode 100644 index 000000000..8eb7e2e6f --- /dev/null +++ b/src/plugins/Input/ffmpeg_legacy/translations/ffmpeg_legacy_plugin_pt_BR.ts @@ -0,0 +1,153 @@ + + + + + DecoderFFmpegFactory + + + FFmpeg Plugin + + + + + FFmpeg Formats + + + + + About FFmpeg Audio Plugin + + + + + Qmmp FFmpeg Audio Plugin + + + + + Compiled against libavformat-%1.%2.%3 and libavcodec-%4.%5.%6 + + + + + Written by: Ilya Kotov <forkotov02@hotmail.ru> + + + + + FFmpegMetaDataModel + + + Length + + + + + File size + + + + + KB + + + + + Bitrate + + + + + kbps + + + + + Sample rate + + + + + Hz + + + + + Channels + + + + + SettingsDialog + + + FFmpeg Plugin Settings + + + + + Formats + + + + + Windows Media Audio + + + + + Monkey's Audio (APE) + + + + + True Audio + + + + + ADTS AAC + + + + + MP3 (MPEG audio layer 3) + + + + + MPEG-4 AAC/ALAC + + + + + RealAudio 1.0/2.0 + + + + + Shorten + + + + + AC3/EAC + + + + + DTS/DTS-Core + + + + + Matroska Audio (Dolby TrueHD Lossless) + + + + + VQF + + + + diff --git a/src/plugins/Input/ffmpeg_legacy/translations/ffmpeg_legacy_plugin_ru.ts b/src/plugins/Input/ffmpeg_legacy/translations/ffmpeg_legacy_plugin_ru.ts new file mode 100644 index 000000000..6288768bf --- /dev/null +++ b/src/plugins/Input/ffmpeg_legacy/translations/ffmpeg_legacy_plugin_ru.ts @@ -0,0 +1,153 @@ + + + + + DecoderFFmpegFactory + + + About FFmpeg Audio Plugin + Об аудио-модуле FFmpeg + + + + Qmmp FFmpeg Audio Plugin + Аудио-модуль FFmpeg для Qmmp + + + + Written by: Ilya Kotov <forkotov02@hotmail.ru> + Разработчик: Илья Котов <forkotov02@hotmail.ru> + + + + FFmpeg Plugin + Модуль FFmpeg + + + + FFmpeg Formats + Форматы FFmpeg + + + + Compiled against libavformat-%1.%2.%3 and libavcodec-%4.%5.%6 + Собрано с libavformat-%1.%2.%3 и libavcodec-%4.%5.%6 + + + + FFmpegMetaDataModel + + + Length + Длительность + + + + File size + Размер файла + + + + KB + КБ + + + + Bitrate + Битовая частота + + + + kbps + Кб/с + + + + Sample rate + Дискретизация + + + + Hz + Гц + + + + Channels + Каналов + + + + SettingsDialog + + + Formats + Форматы + + + + Windows Media Audio + + + + + True Audio + + + + + ADTS AAC + + + + + MPEG-4 AAC/ALAC + + + + + RealAudio 1.0/2.0 + + + + + Shorten + + + + + AC3/EAC + + + + + DTS/DTS-Core + + + + + Matroska Audio (Dolby TrueHD Lossless) + + + + + VQF + + + + + FFmpeg Plugin Settings + Настройки модуля FFmpeg + + + + Monkey's Audio (APE) + + + + + MP3 (MPEG audio layer 3) + + + + diff --git a/src/plugins/Input/ffmpeg_legacy/translations/ffmpeg_legacy_plugin_sk.ts b/src/plugins/Input/ffmpeg_legacy/translations/ffmpeg_legacy_plugin_sk.ts new file mode 100644 index 000000000..8a783fb40 --- /dev/null +++ b/src/plugins/Input/ffmpeg_legacy/translations/ffmpeg_legacy_plugin_sk.ts @@ -0,0 +1,153 @@ + + + + + DecoderFFmpegFactory + + + FFmpeg Plugin + + + + + FFmpeg Formats + + + + + About FFmpeg Audio Plugin + + + + + Qmmp FFmpeg Audio Plugin + + + + + Compiled against libavformat-%1.%2.%3 and libavcodec-%4.%5.%6 + + + + + Written by: Ilya Kotov <forkotov02@hotmail.ru> + + + + + FFmpegMetaDataModel + + + Length + + + + + File size + + + + + KB + + + + + Bitrate + + + + + kbps + + + + + Sample rate + + + + + Hz + + + + + Channels + + + + + SettingsDialog + + + FFmpeg Plugin Settings + + + + + Formats + + + + + Windows Media Audio + + + + + Monkey's Audio (APE) + + + + + True Audio + + + + + ADTS AAC + + + + + MP3 (MPEG audio layer 3) + + + + + MPEG-4 AAC/ALAC + + + + + RealAudio 1.0/2.0 + + + + + Shorten + + + + + AC3/EAC + + + + + DTS/DTS-Core + + + + + Matroska Audio (Dolby TrueHD Lossless) + + + + + VQF + + + + diff --git a/src/plugins/Input/ffmpeg_legacy/translations/ffmpeg_legacy_plugin_tr.ts b/src/plugins/Input/ffmpeg_legacy/translations/ffmpeg_legacy_plugin_tr.ts new file mode 100644 index 000000000..19a8cd036 --- /dev/null +++ b/src/plugins/Input/ffmpeg_legacy/translations/ffmpeg_legacy_plugin_tr.ts @@ -0,0 +1,153 @@ + + + + + DecoderFFmpegFactory + + + FFmpeg Plugin + FFmpeg Eklentisi + + + + FFmpeg Formats + FFmpeg Biçimleri + + + + About FFmpeg Audio Plugin + FFmpeg Ses Eklentisi Hakkında + + + + Qmmp FFmpeg Audio Plugin + Qmmp FFmpeg Ses Eklentisi + + + + Compiled against libavformat-%1.%2.%3 and libavcodec-%4.%5.%6 + libavformat-%1.%2.%3 ve libavcodec-%4.%5.%6 ile derlenmiştir + + + + Written by: Ilya Kotov <forkotov02@hotmail.ru> + Yazan: Ilya Kotov <forkotov02@hotmail.ru> + + + + FFmpegMetaDataModel + + + Length + + + + + File size + + + + + KB + KB + + + + Bitrate + + + + + kbps + kbps + + + + Sample rate + + + + + Hz + Hz + + + + Channels + + + + + SettingsDialog + + + FFmpeg Plugin Settings + FFmpeg Eklenti Ayarları + + + + Formats + Biçimler + + + + Windows Media Audio + Windows Media Audio + + + + Monkey's Audio (APE) + + + + + True Audio + True Audio + + + + ADTS AAC + ADTS AAC + + + + MP3 (MPEG audio layer 3) + MP3 (MPEG audio layer 3) + + + + MPEG-4 AAC/ALAC + + + + + RealAudio 1.0/2.0 + RealAudio 1.0/2.0 + + + + Shorten + + + + + AC3/EAC + + + + + DTS/DTS-Core + + + + + Matroska Audio (Dolby TrueHD Lossless) + + + + + VQF + + + + diff --git a/src/plugins/Input/ffmpeg_legacy/translations/ffmpeg_legacy_plugin_uk_UA.ts b/src/plugins/Input/ffmpeg_legacy/translations/ffmpeg_legacy_plugin_uk_UA.ts new file mode 100644 index 000000000..5d86ac6f8 --- /dev/null +++ b/src/plugins/Input/ffmpeg_legacy/translations/ffmpeg_legacy_plugin_uk_UA.ts @@ -0,0 +1,153 @@ + + + + + DecoderFFmpegFactory + + + About FFmpeg Audio Plugin + Про аудіо-модуль FFmpeg + + + + Qmmp FFmpeg Audio Plugin + Аудіо-модуль FFmpeg для Qmmp + + + + Written by: Ilya Kotov <forkotov02@hotmail.ru> + Розробник: Ілля Котов <forkotov02@hotmail.ru> + + + + FFmpeg Plugin + Модуль FFmpeg + + + + FFmpeg Formats + Формати FFmpeg + + + + Compiled against libavformat-%1.%2.%3 and libavcodec-%4.%5.%6 + Зібрано з libavformat-%1.%2.%3 та libavcodec-%4.%5.%6 + + + + FFmpegMetaDataModel + + + Length + Тривалість + + + + File size + Розмір файлу + + + + KB + Кб + + + + Bitrate + Бітрейт + + + + kbps + Кб/с + + + + Sample rate + Частота + + + + Hz + Гц + + + + Channels + Канали + + + + SettingsDialog + + + Formats + Формати + + + + Windows Media Audio + + + + + True Audio + + + + + ADTS AAC + + + + + MPEG-4 AAC/ALAC + + + + + RealAudio 1.0/2.0 + + + + + Shorten + + + + + AC3/EAC + + + + + DTS/DTS-Core + + + + + Matroska Audio (Dolby TrueHD Lossless) + + + + + VQF + + + + + FFmpeg Plugin Settings + Налаштування модуля FFmpeg + + + + Monkey's Audio (APE) + + + + + MP3 (MPEG audio layer 3) + + + + diff --git a/src/plugins/Input/ffmpeg_legacy/translations/ffmpeg_legacy_plugin_zh_CN.ts b/src/plugins/Input/ffmpeg_legacy/translations/ffmpeg_legacy_plugin_zh_CN.ts new file mode 100644 index 000000000..2c95328d2 --- /dev/null +++ b/src/plugins/Input/ffmpeg_legacy/translations/ffmpeg_legacy_plugin_zh_CN.ts @@ -0,0 +1,153 @@ + + + + + DecoderFFmpegFactory + + + About FFmpeg Audio Plugin + 关于 FFmpeg 音频插件 + + + + Qmmp FFmpeg Audio Plugin + Qmmp FFmpeg 音频插件 + + + + Written by: Ilya Kotov <forkotov02@hotmail.ru> + 作者:Ilya Kotov <forkotov02@hotmail.ru> + + + + FFmpeg Plugin + FFmpeg 插件 + + + + FFmpeg Formats + FFmpeg 格式 + + + + Compiled against libavformat-%1.%2.%3 and libavcodec-%4.%5.%6 + 编译依赖 libavformat-%1.%2.%3 和 libavcodec-%4.%5.%6 + + + + FFmpegMetaDataModel + + + Length + 长度 + + + + File size + 文件大小 + + + + KB + + + + + Bitrate + 比特率 + + + + kbps + + + + + Sample rate + 取样率 + + + + Hz + + + + + Channels + 声音通道 + + + + SettingsDialog + + + Formats + 格式 + + + + Windows Media Audio + + + + + True Audio + + + + + ADTS AAC + + + + + MPEG-4 AAC/ALAC + + + + + RealAudio 1.0/2.0 + + + + + Shorten + + + + + AC3/EAC + + + + + DTS/DTS-Core + + + + + Matroska Audio (Dolby TrueHD Lossless) + + + + + VQF + + + + + FFmpeg Plugin Settings + FFmpeg 插件设置 + + + + Monkey's Audio (APE) + + + + + MP3 (MPEG audio layer 3) + + + + diff --git a/src/plugins/Input/ffmpeg_legacy/translations/ffmpeg_legacy_plugin_zh_TW.ts b/src/plugins/Input/ffmpeg_legacy/translations/ffmpeg_legacy_plugin_zh_TW.ts new file mode 100644 index 000000000..40bba9dda --- /dev/null +++ b/src/plugins/Input/ffmpeg_legacy/translations/ffmpeg_legacy_plugin_zh_TW.ts @@ -0,0 +1,153 @@ + + + + + DecoderFFmpegFactory + + + About FFmpeg Audio Plugin + 關於 FFmpeg 聲訊插件 + + + + Qmmp FFmpeg Audio Plugin + Qmmp FFmpeg 聲訊插件 + + + + Written by: Ilya Kotov <forkotov02@hotmail.ru> + 作者:Ilya Kotov <forkotov02@hotmail.ru> + + + + FFmpeg Plugin + FFmpeg 插件 + + + + FFmpeg Formats + FFmpeg 格式 + + + + Compiled against libavformat-%1.%2.%3 and libavcodec-%4.%5.%6 + 編譯依賴 libavformat-%1.%2.%3 與 libavcodec-%4.%5.%6 + + + + FFmpegMetaDataModel + + + Length + 長度 + + + + File size + 文件大小 + + + + KB + KB + + + + Bitrate + 比特率 + + + + kbps + kbps + + + + Sample rate + 取樣率 + + + + Hz + Hz + + + + Channels + 聲音通道 + + + + SettingsDialog + + + Formats + 格式 + + + + Windows Media Audio + + + + + True Audio + + + + + ADTS AAC + + + + + MPEG-4 AAC/ALAC + + + + + RealAudio 1.0/2.0 + + + + + Shorten + + + + + AC3/EAC + + + + + DTS/DTS-Core + + + + + Matroska Audio (Dolby TrueHD Lossless) + + + + + VQF + + + + + FFmpeg Plugin Settings + FFmpeg 插件設置 + + + + Monkey's Audio (APE) + + + + + MP3 (MPEG audio layer 3) + + + + diff --git a/src/plugins/Input/ffmpeg_legacy/translations/translations.qrc b/src/plugins/Input/ffmpeg_legacy/translations/translations.qrc new file mode 100644 index 000000000..49a792f75 --- /dev/null +++ b/src/plugins/Input/ffmpeg_legacy/translations/translations.qrc @@ -0,0 +1,24 @@ + + + + ffmpeg_legacy_plugin_ru.qm + ffmpeg_legacy_plugin_uk_UA.qm + ffmpeg_legacy_plugin_zh_CN.qm + ffmpeg_legacy_plugin_zh_TW.qm + ffmpeg_legacy_plugin_tr.qm + ffmpeg_legacy_plugin_cs.qm + ffmpeg_legacy_plugin_pt_BR.qm + ffmpeg_legacy_plugin_de.qm + ffmpeg_legacy_plugin_pl_PL.qm + ffmpeg_legacy_plugin_fr.qm + ffmpeg_legacy_plugin_it.qm + ffmpeg_legacy_plugin_kk.qm + ffmpeg_legacy_plugin_lt.qm + ffmpeg_legacy_plugin_hu.qm + ffmpeg_legacy_plugin_nl.qm + ffmpeg_legacy_plugin_ja.qm + ffmpeg_legacy_plugin_sk.qm + ffmpeg_legacy_plugin_es.qm + ffmpeg_legacy_plugin_he.qm + + -- cgit v1.2.3-13-gbd6f