Compare commits
2 Commits
main
...
fe1972b877
| Author | SHA1 | Date | |
|---|---|---|---|
| fe1972b877 | |||
| 5805e7969f |
35
main.lua
Normal file
35
main.lua
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
------------------------------
|
||||||
|
------- Main Lua Script ------
|
||||||
|
------------------------------
|
||||||
|
|
||||||
|
------------------------------
|
||||||
|
---------- Variables ---------
|
||||||
|
------------------------------
|
||||||
|
|
||||||
|
-- path to traverse
|
||||||
|
local path=''
|
||||||
|
|
||||||
|
-- file type to look for to examine
|
||||||
|
local file_type='m4a'
|
||||||
|
|
||||||
|
-- encoding to convert from
|
||||||
|
local input_encoding='alac'
|
||||||
|
|
||||||
|
-- encoding to convert TODO
|
||||||
|
local output_encoding='flac'
|
||||||
|
|
||||||
|
------------------------------
|
||||||
|
-------- Functions -----------
|
||||||
|
------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
------------------------------
|
||||||
|
---------- Body --------------
|
||||||
|
------------------------------
|
||||||
|
|
||||||
|
-- TODO: check if ffmpeg is installed/available
|
||||||
|
-- TODO: Loop through the path provided
|
||||||
|
-- TODO: Check if the file is the file_type
|
||||||
|
-- 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
|
||||||
|
---- ffprobe -v error -select_streams a:0 -show_entries stream=codec_name -of default=noprint_wrappers=1:nokey=1 file.m4a
|
||||||
Reference in New Issue
Block a user