
私はすべてのタグを維持しながら、数テラバイトのFLACをmp3(VBR v0)に非常に迅速に変換するために、GPUまたは少なくともCPUの複数のコアを活用できる製品を探しています。
どんなアドバイスも本当にありがとうございます。
答え1
ディレクトリ構造(データはフラットですか?)に応じて多くのものを追い出すことができます。パシフィックオイルカンパニー並列に。変換時にラベルを保存するのにかなり効果的です。
GPUを利用しませんが、いくつかの並列化を使用すると、複数のコアを利用できます(ディスクがボトルネックを引き起こす可能性があります)。
答え2
まあ、それは実際にいくつかの質問です。
マルチコアを活用することはそれほど難しくなく、シェルスクリプトとフォークで達成できます。
以下はzshの非常に簡単な例です。
for f in *flac; do
sox $f ${f%%.flac}.mp3 &
done
もちろん、コア数に基づいて最適化して一括変換することもできます。
今タグを維持することはもう一つのことです。ソックス、これが役立つことを確認してください。それ以外の場合は、メタフラックを使用してデータを小さなスクリプトにダンプし、MP3タグを設定します(私のお気に入りのプログラムは目D3)。 FLACタグ(実際にはVorbisコメント)をID3タグに直接「翻訳」する必要があります。
このような:
for f in *flac; do
eyeD3 -a $(metaflac --show-tag-name=ARTIST $f) ${f%%.flac}.mp3
done
もちろんこれは単なるデモのためのラベルなどです。もちろん、2つの部分を組み合わせることもできます。
しかし、GPUが解決する問題を最適化するのに役立つことはできません。 GPUはベクトル計算に最適化されているので、これがどのように役立つかわかりません。
答え3
私はこのツールを使用していませんが、あなたが探しているツールのようです。知られているFlack 2 すべて。特に、この箇条書きは次のとおりです。
- スレッド数を自動的に選択するためのCPU/コア検出。
使用法
flac2all.py with "-h" to get an overview, like so:
Usage:
flac2all [convert type] [input dir] <options>
where 'convert type' is one of:
[mp3]: convert file to mp3
[vorbis]: convert file to ogg vorbis
[flac]: convert file to flac
[aacplusnero]: (NO TAGGING SUPPORT) convert file to aacplus using the proprietery (but excellent) Nero AAC encoder.
Options:
-h, --help show this help message and exit
-c, --copy Copy non flac files across (default=False)
-v OGGENCOPTS, --vorbis-options=OGGENCOPTS
Colon delimited options to pass to oggenc,for example:
'quality=5:resample 32000:downmix:bitrate_average=96'.
Any oggenc long option (one with two '--' in front)
can be specified in the above format.
-l LAMEOPTS, --lame-options=LAMEOPTS
Options to pass to lame, for example:
'-preset extreme:q 0:h:-abr'. Any lame option can be
specified here, if you want a short option (e.g. -h),
then just do 'h'. If you want a long option (e.g. '--
abr'), then you need a dash: '-abr'
-a AACPLUSOPTS, --aacplus-options=AACPLUSOPTS
AACplus options, currently only bitrate supported.
e.g: " -a 64 "
-o DIR, --outdir=DIR Set custom output directory (default='./')
-f, --force Force overwrite of existing files (by default we skip)
-t THREADS, --threads=THREADS
How many threads to run in parallel (default:
autodetect [found 2 cpu(s)] )
-n, --nodirs Don't create Directories, put everything together
ビデオデモ
YouTubeには、16コアシステムが飽和していることを示す次のタイトルのビデオもあります。flac2all飽和16CPUマシン(デュアルクアッドコア+ HT)。