From fab6141ccf59cfe7393fcca62e98b86037de589f Mon Sep 17 00:00:00 2001 From: Joe Date: Sat, 23 Jun 2018 00:21:52 +0200 Subject: [PATCH 1/2] Added up-to-date instructions for how to install ffmpeg on Fedora and RHEL/CentOS. --- README.md | 32 ++++++++++++++++++++++++++++---- 1 file changed, 28 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 2776bea..4628307 100644 --- a/README.md +++ b/README.md @@ -118,12 +118,36 @@ __Ubuntu, Linux Mint, Debian__ sudo apt-get update sudo apt-get install ffmpeg libav-tools x264 x265 ``` -__CentOS, RHEL & Fedora__ -``` -# CentOS/RHEL and Fedora users make sure that you have enabled atrpms repository in system. Let’s begin installing FFmpeg as per your operating system. -yum install ffmpeg +__Fedora__ + +Fedora users need to enable the rpm fusion repository to install ffmpeg. Version 22 and upwards are currently supported. The following command works independent of your current version: ``` +sudo dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm +``` +Afterwards use the package manager to install ffmpeg: +``` +sudo dnf install ffmpeg +``` + +__RHEL or compatible like CentOS__ + +RHEL version 6 and 7 are currently able to use rpm fusion. +In order to use rpm fusion you have to enable EPEL, see http://fedoraproject.org/wiki/EPEL + +Add the rpm fusion repositories in version 6 +``` +sudo yum localinstall --nogpgcheck https://download1.rpmfusion.org/free/el/rpmfusion-free-release-6.noarch.rpm https://download1.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-6.noarch.rpm +``` +or version 7: +``` +sudo yum localinstall --nogpgcheck https://download1.rpmfusion.org/free/el/rpmfusion-free-release-7.noarch.rpm https://download1.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-7.noarch.rpm +``` +then install ffmpeg: +``` +sudo yum install ffmpeg +``` + __MacOS__ ``` brew install ffmpeg From a6da4412b8de5cb3bb47f4f3b32074e8a6a771df Mon Sep 17 00:00:00 2001 From: upuv Date: Mon, 25 Jun 2018 14:17:30 +1000 Subject: [PATCH 2/2] Fixing Bad Merge. --- AAXtoMP3 | 71 -------------------------------------------------------- 1 file changed, 71 deletions(-) diff --git a/AAXtoMP3 b/AAXtoMP3 index ffc9bb8..af7e8db 100755 --- a/AAXtoMP3 +++ b/AAXtoMP3 @@ -210,28 +210,6 @@ if [[ "x${targetdir}" != "x" ]]; then exit 1 fi fi -======= -auth_code=""; -for dir in $authcodeDirs; do - codeFile="${dir}$authcode"; - - if [ ! -f "$codeFile" -o ! -s "$codeFile" ]; then - codeFile="" - echo "INFO: Sorry, missing or empty \"$codeFile\" found, skipping."; - fi; -done; - -if [ ! -f "$codeFile" ]; then - auth_code=$1 - shift -else - auth_code=`head -1 "$codeFile"` -fi - -if [ -z "$auth_code" ]; then - echo "INFO: Sorry, no authcode provided."; - exit 1; -fi; # ----- # Check the target dir for if set if it is writable @@ -470,55 +448,6 @@ do # Detect if we are actuall m4b instead of m4a Then rename the file. if [[ ${extension} == "m4a" && ${container}="m4b" ]]; then mv "${output_file}" "${output_file/.m4a/.m4b}" -======= - debug "Decoding ${path} with auth code ${auth_code}..." - - save_metadata "${path}" - genre=$(get_metadata_value genre) - artist=$(get_metadata_value artist) - title=$(get_metadata_value title | sed 's/'\:'/'\ -'/g' | xargs -0) - output_directory="$(dirname "${path}")/${genre}/${artist}/${title}" - mkdir -p "${output_directory}" - full_file_path="${output_directory}/${title}.${extension}" - -