yy-tromb / yy-many-convert

convert super many media file for me

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

yy-many-convert

convert super many media file for me

Usage

You need to install Node.js

Usage: path_to_Node.js path_to_yy-many-convert.js {source_folder} {output_folder} {MAX_PROCESS (int)}

I recomend that MAX_PROCESS value is less your computer core counts.

Custom

Please edit some code.
in line 15:const CONVERT_COMMAND = "ffmpeg"; for your favorite converter like qaac.
-> const CONVERT_COMMAND = "qaac";
below line 16,

const compile_args = (source_file, output_file) => {
    return [
        "-i",
        source_file,
        "-c:v",
        "libaom-av1",
        "-pix_fmt",
        "yuv420p",
        "-crf",
        "18",
        "-still-picture",
        "1",
        "-y",
        output_file,
    ];
};

edit for your favorite converter arguments like qaac.
->

const compile_args = (source_file, output_file) => {
    return [
        source_file,
        "-a",
        "192k",
        "-o",
        output_file,
        "-y",
    ];
};

source_file is file that you want to convert.
output_file is file that is converted.
source_file and output_file is automatically given.
in line 32:const OUTPUT_EXTENTION = ".avif"; for your favorite extention like m4a.
->const OUTPUT_EXTENTION = ".m4a";. Please include .

About

convert super many media file for me

License:MIT License


Languages

Language:JavaScript 100.0%