mirror of
https://github.com/rwinkhart/flac2pod.git
synced 2026-09-06 09:07:13 -04:00
Removed alac support, as it does not work with Sound Check
This commit is contained in:
@@ -1,16 +1,14 @@
|
|||||||
# flac2pod
|
# flac2pod
|
||||||
Seamlessly converts your existing FLAC library to be played on an iPod Classic.
|
Seamlessly converts your existing FLAC library to be played on an iPod Classic.
|
||||||
|
|
||||||
This script makes use of ffmpeg to convert your existing FLAC music library to either MP3-320 or ALAC for easy iPod Classic use. It also takes advantage of "rg2sc" (https://github.com/rwinkhart/rg2sc) to convert any existing ReplayGain tags to Apple Sound Check tags that are compatible with Apple products.
|
This script makes use of ffmpeg to convert your existing FLAC music library to MP3-320 for easy iPod Classic use. It also takes advantage of "rg2sc" (https://github.com/rwinkhart/rg2sc) to convert any existing ReplayGain tags to Apple Sound Check tags that are compatible with Apple products.
|
||||||
|
|
||||||
# Usage
|
# Usage
|
||||||
|
|
||||||
```
|
```
|
||||||
flac2pod -f --mp3 # will convert library to MP3-320 and forcefully update Sound Check tags (even if they already exist)
|
|
||||||
|
|
||||||
flac2pod --alac # will convert library to ALAC in a .m4a container - only updates missing Sound Check tags
|
|
||||||
|
|
||||||
flac2pod # will convert library to MP3-320 - only updates missing Sound Check tags
|
flac2pod # will convert library to MP3-320 - only updates missing Sound Check tags
|
||||||
|
|
||||||
|
flac2pod -f # will convert library to MP3-320 and forcefully update Sound Check tags (even if they already exist)
|
||||||
```
|
```
|
||||||
|
|
||||||
In order for flac2pod to function, your library must be structured as follows:
|
In order for flac2pod to function, your library must be structured as follows:
|
||||||
|
|||||||
+2
-12
@@ -35,13 +35,6 @@ def create_destination():
|
|||||||
.mkdir(0o700, parents=True, exist_ok=True)
|
.mkdir(0o700, parents=True, exist_ok=True)
|
||||||
|
|
||||||
|
|
||||||
def scan_destination_convert_alac():
|
|
||||||
for _file in source_directories[1]:
|
|
||||||
if not Path(f"{_file.replace(path.expanduser(source), path.expanduser(destination))}.m4a").is_file():
|
|
||||||
system(f"ffmpeg -i '{_file}.flac' -c:v copy -c:a alac -map_metadata 0 -id3v2_version 3 "
|
|
||||||
f"'{_file.replace(path.expanduser(source), path.expanduser(destination))}.m4a'")
|
|
||||||
|
|
||||||
|
|
||||||
def scan_destination_convert_mp3():
|
def scan_destination_convert_mp3():
|
||||||
for _file in source_directories[1]:
|
for _file in source_directories[1]:
|
||||||
print(_file)
|
print(_file)
|
||||||
@@ -77,8 +70,5 @@ if destination.endswith('/'):
|
|||||||
|
|
||||||
source_directories = scan_source()
|
source_directories = scan_source()
|
||||||
create_destination()
|
create_destination()
|
||||||
if argument.__contains__('--alac'):
|
scan_destination_convert_mp3()
|
||||||
scan_destination_convert_alac()
|
rg2sc()
|
||||||
else:
|
|
||||||
scan_destination_convert_mp3()
|
|
||||||
rg2sc()
|
|
||||||
|
|||||||
Reference in New Issue
Block a user