Compare commits
2 Commits
fe1972b877
...
developmen
| Author | SHA1 | Date | |
|---|---|---|---|
| 517676fb5d | |||
| ea3cde8136 |
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
Music/*
|
||||||
16
main.lua
16
main.lua
@@ -7,21 +7,25 @@
|
|||||||
------------------------------
|
------------------------------
|
||||||
|
|
||||||
-- path to traverse
|
-- path to traverse
|
||||||
local path=''
|
local music_path = ''
|
||||||
|
|
||||||
-- file type to look for to examine
|
-- file type to look for to examine
|
||||||
local file_type='m4a'
|
local file_type = 'm4a'
|
||||||
|
|
||||||
-- encoding to convert from
|
-- encoding to convert from
|
||||||
local input_encoding='alac'
|
local input_encoding = 'alac'
|
||||||
|
|
||||||
-- encoding to convert TODO
|
-- encoding to convert TODO
|
||||||
local output_encoding='flac'
|
local output_encoding = 'flac'
|
||||||
|
|
||||||
------------------------------
|
------------------------------
|
||||||
-------- Functions -----------
|
-------- Functions -----------
|
||||||
------------------------------
|
------------------------------
|
||||||
|
local function get_files(path)
|
||||||
|
-- Use the built in function to run the linux commands
|
||||||
|
-- TODO: at some point in the future determine what OS is being used and use the commands based on that
|
||||||
|
local file_results = io.popen('ls -al' .. path)
|
||||||
|
end
|
||||||
|
|
||||||
------------------------------
|
------------------------------
|
||||||
---------- Body --------------
|
---------- Body --------------
|
||||||
@@ -33,3 +37,5 @@ local output_encoding='flac'
|
|||||||
-- TODO: Check if the file has the encoding of ALAC
|
-- TODO: Check if the file has the encoding of ALAC
|
||||||
---- Use the hint found at https://stackoverflow.com/questions/10934936/determine-whether-an-audio-file-is-encoded-in-apple-lossless-alac
|
---- Use the hint found at https://stackoverflow.com/questions/10934936/determine-whether-an-audio-file-is-encoded-in-apple-lossless-alac
|
||||||
---- ffprobe -v error -select_streams a:0 -show_entries stream=codec_name -of default=noprint_wrappers=1:nokey=1 file.m4a
|
---- ffprobe -v error -select_streams a:0 -show_entries stream=codec_name -of default=noprint_wrappers=1:nokey=1 file.m4a
|
||||||
|
get_files(music_path)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user