QList<ConversionPipeTrunk> soundkonverter_filter_sox::codecTable() { QList<ConversionPipeTrunk> table; if( !binaries["sox"].isEmpty() ) { QFileInfo soxInfo( binaries["sox"] ); if( soxInfo.lastModified() > soxLastModified || configVersion < version() ) { infoProcess = new KProcess(); infoProcess.data()->setOutputChannelMode( KProcess::MergedChannels ); connect( infoProcess.data(), SIGNAL(readyRead()), this, SLOT(infoProcessOutput()) ); connect( infoProcess.data(), SIGNAL(finished(int,QProcess::ExitStatus)), this, SLOT(infoProcessExit(int,QProcess::ExitStatus)) ); QStringList command; command += binaries["sox"]; command += "--help"; infoProcess.data()->clearProgram(); infoProcess.data()->setShellCommand( command.join(" ") ); infoProcess.data()->start(); infoProcess.data()->waitForFinished( 3000 ); }
QList<ConversionPipeTrunk> soundkonverter_codec_ffmpeg::codecTable() { QList<ConversionPipeTrunk> table; QStringList fromCodecs; QStringList toCodecs; /// decode fromCodecs += "wav"; fromCodecs += "ogg vorbis"; // fromCodecs += "opus"; fromCodecs += "mp3"; fromCodecs += "flac"; fromCodecs += "wma"; fromCodecs += "aac"; fromCodecs += "ac3"; fromCodecs += "m4a/alac"; fromCodecs += "mp2"; // fromCodecs += "sonic"; // fromCodecs += "sonic lossless"; fromCodecs += "als"; fromCodecs += "amr nb"; fromCodecs += "amr wb"; fromCodecs += "ape"; // fromCodecs += "e-ac3"; fromCodecs += "speex"; fromCodecs += "m4a/aac"; fromCodecs += "mp1"; fromCodecs += "musepack"; fromCodecs += "shorten"; // fromCodecs += "mlp"; // fromCodecs += "truehd"; // fromCodecs += "truespeech"; fromCodecs += "tta"; fromCodecs += "wavpack"; fromCodecs += "ra"; fromCodecs += "sad"; /// containers fromCodecs += "3gp"; fromCodecs += "rm"; /// video fromCodecs += "avi"; fromCodecs += "mkv"; fromCodecs += "ogv"; fromCodecs += "mpeg"; fromCodecs += "mov"; fromCodecs += "mp4"; fromCodecs += "flv"; fromCodecs += "wmv"; fromCodecs += "rv"; /// encode if( !binaries["ffmpeg"].isEmpty() ) { QFileInfo ffmpegInfo( binaries["ffmpeg"] ); if( ffmpegInfo.lastModified() > ffmpegLastModified || configVersion < version() ) { infoProcess = new KProcess(); infoProcess.data()->setOutputChannelMode( KProcess::MergedChannels ); connect( infoProcess.data(), SIGNAL(readyRead()), this, SLOT(infoProcessOutput()) ); connect( infoProcess.data(), SIGNAL(finished(int,QProcess::ExitStatus)), this, SLOT(infoProcessExit(int,QProcess::ExitStatus)) ); QStringList command; command += binaries["ffmpeg"]; command += "-codecs"; infoProcess.data()->clearProgram(); infoProcess.data()->setShellCommand( command.join(" ") ); infoProcess.data()->start(); infoProcess.data()->waitForFinished( 3000 ); }