X-Git-Url: https://zdv2.bktei.com/gitweb/BK-2020-03.git/blobdiff_plain/c13b0ce8d1c5a62377c8a4807dd7b6f403bd8e39..00fcff36572aa4cb92fe5363c52d6ed346a20120:/user/convert_file_to_flac.sh diff --git a/user/convert_file_to_flac.sh b/user/convert_file_to_flac.sh old mode 100644 new mode 100755 index cc6c621..cd20d2d --- a/user/convert_file_to_flac.sh +++ b/user/convert_file_to_flac.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash # Desc: Converts file readable by ffmpeg to FLAC audio file # Usage: convert_file_to_flac.sh [path] -# Version: 0.0.3 +# Version: 0.0.4 # Ref/Attrib: [1] Convert audio file to FLAC with ffmpeg? https://superuser.com/a/802126 # [2] How to specify flac compression level when converting with avconv? https://askubuntu.com/questions/544651/ # [3] How can I extract audio from video with ffmpeg? https://stackoverflow.com/a/27413824 @@ -217,7 +217,7 @@ main() { die "FATAL:Not an audio file:$1"; fi; # Convert file to FLAC. See [1], [2] - try ffmpeg -i "$1" -vn -c:a flac -compression_level 12 "$1".flac + try ffmpeg -i "$1" -vn -c:a flac -map_metadata 0 -compression_level 12 "$1".flac }; # main program main "$@";