LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-03-2008, 06:40 AM   #16
greengrocer
Member
 
Registered: Aug 2005
Distribution: Ubuntu Intrepid and Meerkat, formerly used Debian 3.1 (Sarge) with Gnome Desktop
Posts: 353

Original Poster
Rep: Reputation: 37

Quote:
Do you need a seperate volume level for each file? Won't one do? If the files have different volumes, you could normalize them.
How do you normalise the sound level in a collection of MPEG files which may have either AAC audio or MP2 audio in them?

Anyway, isn't it easier to create a playlist (essentially a little database) of media object names and their volume level. This way when the playlist is running un-attended, you avoid loud, soft, loud, soft, loud, loud, soft. And you dont need to re-process your audio files which will also serve to degrade their quality and faithfulness to the original further.

I actually cannot believe that no-one has created a playlist format that supports volume level. For some odd reason, they seem to have a fixation on duration parameters, which are almost (not entirely) pointless. A Volume level based on an index that the user can determine is a VERY useful feature.

Last edited by greengrocer; 08-03-2008 at 06:43 AM.
 
Old 08-03-2008, 06:49 AM   #17
greengrocer
Member
 
Registered: Aug 2005
Distribution: Ubuntu Intrepid and Meerkat, formerly used Debian 3.1 (Sarge) with Gnome Desktop
Posts: 353

Original Poster
Rep: Reputation: 37
I've got past all the problems with generating random numbers, and Iv'e cobbled together a script which reads the first line of a text file where there is a number which represents the number of items in the playlist.

The number is stored as a variable which is used to set a ceiling for the random number function.

Then the script generates a random number with a floor of 3 and a ceiling of whatever, so we get a random number which will be the line number in the playlist file to read.

What I havent yet worked out, is how to fetch the contents of the randomly chosen line, and then using a comma, determine that the first part of the data before the comma is a path/filename.mpg and the number after the comma is a volume level between 1 and 100.

I'm also steering away from the use of line numbers on each line because I also don't think they are required.

Last edited by greengrocer; 08-03-2008 at 06:51 AM.
 
Old 08-04-2008, 11:16 AM   #18
smoked kipper
Member
 
Registered: May 2008
Location: UK
Distribution: Slackware,Slamd64
Posts: 81

Rep: Reputation: 15
Quote:
Originally Posted by greengrocer View Post
How do you normalise the sound level in a collection of MPEG files which may have either AAC audio or MP2 audio in them?

Anyway, isn't it easier to create a playlist (essentially a little database) of media object names and their volume level. This way when the playlist is running un-attended, you avoid loud, soft, loud, soft, loud, loud, soft. And you dont need to re-process your audio files which will also serve to degrade their quality and faithfulness to the original further.
There are a number of programs that can normalize audio data, google for them, I haven't used any so I don't know what formats they handle. I fail to see how they would cause a noticeable degradation in quality, unless you have the ears of a dog. But it's no big deal either way, just a suggestion.

Quote:
I've got past all the problems with generating random numbers, and Iv'e cobbled together a script which reads the first line of a text file where there is a number which represents the number of items in the playlist.
The number of lines in the file tell you the number of items, as arizonagroovejet has already mentioned, you don't need a seperate counter.
Quote:

What I havent yet worked out, is how to fetch the contents of the randomly chosen line, and then using a comma, determine that the first part of the data before the comma is a path/filename.mpg and the number after the comma is a volume level between 1 and 100.
I've already shown you an example of this in the script above.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Any project feasible for newbie? shogun1234 Linux - Newbie 3 07-28-2007 10:21 AM
Synchronizing a PocketPC with Linux - Is it feasible? winterhunter Linux - Software 1 03-29-2007 09:41 AM
Would this be feasible misterjingo Linux - Networking 3 09-26-2005 03:04 AM
Is this feasible? Backdraft Linux - Security 1 06-14-2005 03:32 PM
Possible Server configuration help. Is this feasible? esears Linux - General 2 04-25-2004 02:39 PM


All times are GMT -5. The time now is 10:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration