mirror of
https://github.com/KrumpetPirate/AAXtoMP3.git
synced 2024-11-18 03:08:57 +01:00
Merge pull request #23 from KevinWang15/master
Prevent ffmpeg from showing "Enter command: <target>|all <time>|-1 <command>[ <argument>]" in bash
This commit is contained in:
commit
945cfa972c
@ -71,7 +71,7 @@ do
|
|||||||
mkdir -p "${output_directory}"
|
mkdir -p "${output_directory}"
|
||||||
full_file_path="${output_directory}/${title}.${extension}"
|
full_file_path="${output_directory}/${title}.${extension}"
|
||||||
|
|
||||||
ffmpeg -loglevel error -stats -activation_bytes "${auth_code}" -i "${path}" -vn -codec:a "${codec}" -ab "$(get_bitrate)k" -map_metadata -1 -metadata title="${title}" -metadata artist="${artist}" -metadata album_artist="$(get_metadata_value album_artist)" -metadata album="$(get_metadata_value album)" -metadata date="$(get_metadata_value date)" -metadata track="1/1" -metadata genre="${genre}" -metadata copyright="$(get_metadata_value copyright)" "${full_file_path}"
|
</dev/null ffmpeg -loglevel error -stats -activation_bytes "${auth_code}" -i "${path}" -vn -codec:a "${codec}" -ab "$(get_bitrate)k" -map_metadata -1 -metadata title="${title}" -metadata artist="${artist}" -metadata album_artist="$(get_metadata_value album_artist)" -metadata album="$(get_metadata_value album)" -metadata date="$(get_metadata_value date)" -metadata track="1/1" -metadata genre="${genre}" -metadata copyright="$(get_metadata_value copyright)" "${full_file_path}"
|
||||||
|
|
||||||
debug "Created ${full_file_path}."
|
debug "Created ${full_file_path}."
|
||||||
|
|
||||||
@ -85,7 +85,7 @@ do
|
|||||||
read -r -u9 _
|
read -r -u9 _
|
||||||
read -r -u9 _ _ chapter
|
read -r -u9 _ _ chapter
|
||||||
chapter_file="${output_directory}/${title} - ${chapter}.${extension}"
|
chapter_file="${output_directory}/${title} - ${chapter}.${extension}"
|
||||||
ffmpeg -loglevel error -stats -i "${full_file_path}" -ss "${start%?}" -to "${end}" -codec:a copy -metadata track="${chapter}" "${chapter_file}"
|
</dev/null ffmpeg -loglevel error -stats -i "${full_file_path}" -ss "${start%?}" -to "${end}" -codec:a copy -metadata track="${chapter}" "${chapter_file}"
|
||||||
fi
|
fi
|
||||||
done 9< "$metadata_file"
|
done 9< "$metadata_file"
|
||||||
rm "${full_file_path}"
|
rm "${full_file_path}"
|
||||||
@ -94,7 +94,7 @@ do
|
|||||||
|
|
||||||
cover_path="${output_directory}/cover.jpg"
|
cover_path="${output_directory}/cover.jpg"
|
||||||
debug "Extracting cover into ${cover_path}..."
|
debug "Extracting cover into ${cover_path}..."
|
||||||
ffmpeg -loglevel error -activation_bytes "${auth_code}" -i "${path}" -an -codec:v copy "${cover_path}"
|
</dev/null ffmpeg -loglevel error -activation_bytes "${auth_code}" -i "${path}" -an -codec:v copy "${cover_path}"
|
||||||
debug "Done."
|
debug "Done."
|
||||||
rm "${metadata_file}"
|
rm "${metadata_file}"
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user