Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scripting to insert DR into track metadata #47

Open
brendan-pike opened this issue May 15, 2017 · 1 comment
Open

Scripting to insert DR into track metadata #47

brendan-pike opened this issue May 15, 2017 · 1 comment

Comments

@brendan-pike
Copy link

brendan-pike commented May 15, 2017

I'm pretty sure these issues are my own poor scriping skills in using perl with in bash etc but I'm desperate for help.

I'm wanting to build a bash script to run dr14_t.meter and then write the results into each tracks meta-data and I'm having trouble. I figured the easiest way was to let dr14_t.meter do its things and write a file into each album directory and then I'll use sed to extract the data I need. I've run into problems though and I'm hoping someone can help.

I loop through albums with the following:

while` IFS= read -r -d $'\0' album ; do
    dr14_tmeter -1 -d -b "$album";
done < <(find "$inputdir" -mindepth 2 -maxdepth 2 -type d -print0)

Problem 1
Unless I disable multithread I find a called ffmpeg hangs on the last track processed within the first album preventing further progress; (most likely caused by issue 2)
Problem 2
By disabling multithread I can see dr14_tmeter fails to use the correct path for the second album.

There is this clue in the script output;

- The full result has been written in the files:  dr14.txt 
- located in the directory: 
/music_album

Success! 
Elapsed time: 6.05 sec
stty: 'standard input': Inappropriate ioctl for device
Processing maica
Error: The input directory "/mnt/Audio/maica" don't exixst! 

There album "maica" is actually should of actually been "/mnt/Audio/Pre-Staging/Inna\ De\ Yard/The\ Soul\ Of\ Jamaica"

Can anyone help?

@magicgoose
Copy link
Contributor

Not sure if this data is useful in any way in metadata.
It's not suitable for uploading into DR database. It cannot be used to aid playback (ReplayGain should be used for that instead)
What is your use case?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants