LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-04-2005, 05:36 AM   #1
cicada
LQ Newbie
 
Registered: Jun 2005
Distribution: Debian Sid/Unstable
Posts: 2

Rep: Reputation: 0
volume adjustment without converting mpa to wav?


Hi all,

I'm new here, but I've gotten lots of help from posts here in the past. This one I can't seem to find a good answer for however..

I'm making some SVCDs from a bunch of DivX files using the transcode package.

The conversion is no problem, but the audio is far too quiet.

Here's my transcode line:

transcode -i "foo.avi"
-x divx
-y mpeg2enc,mp2enc -E 44100 -F5,-S700 -w 1152 -b 128
-j -56,0 -X 0,0 -B 0,5
-o "foo_bar"


This leaves me with foo_bar.m2v and foo_bar.mpa

Currently, I'm using Audacity to adjust the gain +9.0dB, then I export to a .wav file, which I then re-encode to mpa with mp2enc. I then use tcmplex to recombine the streams into foo_bar.mpg, which works nicely in my DVD player.

I've got about 40 more files to go, and they each take a good hour and a half to encode, then I spend another 20-30 minutes fixing the audio.

Does anyone know of any tools I could use in a script to adjust the gain of the .mpa file directly without having to do the mpa -> wav + gain -> mpa conversion?

Alternatively, does anyone know of a good command-line tool to convert the mpa stream to wav? I've got a package called wavegain that should be able to adjust the gain easily, but I can't seem to find any good tools for exporting the mpa -> wav. Does any part of the transcode package have this capability?

I'd love to be able to save some time and effort by scripting this puppy out instead of editing the audio manually..

<edit>
f.y.i - the .mpa files are mpeg 2, 128kbps 44100hz

Last edited by cicada; 06-04-2005 at 05:56 AM.
 
Old 06-04-2005, 10:51 PM   #2
shaitand
Member
 
Registered: Jun 2005
Posts: 54

Rep: Reputation: 15
transcode has a -s option to adjust gain, you could use it when you transcode initially with little or no added time to the transcode and probably skip the gain adjustment step altogether.

Read more in the transcode manpage.
 
Old 06-08-2005, 05:01 PM   #3
cicada
LQ Newbie
 
Registered: Jun 2005
Distribution: Debian Sid/Unstable
Posts: 2

Original Poster
Rep: Reputation: 0
that did it, thanks a million
 
  


Reply



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
Converting an RA file to a WAV or an MP3 one hhegab Linux - Software 2 04-26-2005 05:55 AM
Converting WAV to MP3 ? dolphans1 Mandriva 8 08-03-2004 03:52 AM
Trying to get back the "Calculate gain adjustment" checkbox in Grip matthanley Linux - Software 0 03-14-2004 10:31 PM
Converting mp3 to wav J.W. Linux - Software 2 03-10-2004 01:41 AM
Converting mp3 to wav. ??? rayflynn Linux - General 2 12-11-2001 05:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:28 AM.

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
Open Source Consulting | Domain Registration