I want to convert a bunch of MP3s to AC3.
I know there are other encoders, but I would like to use Aften, which takes wave input.
And ideally, I would like to stream the MP3 into Aften rather than making a lot of large WAVE files.
Is there something that streams MP3 to wave so I can make a batch file like:
for %%I in (*.mp3) do (
MP3wave %%I - | p:\aften\aften.exe - %%~nI.ac3
)
		
			+ Reply to Thread
			
		
		
		
			
	
	
				Results 1 to 6 of 6
			
		- 
	
- 
	This works for me. Note you need 'bsn.dll' in the besweet folder. I had problems with a couple of versions of the dll. You may need to experiment. 
 
 
 Code:FOR /F "delims=" %%W IN ( *.mp3) DO "C:\VidAud\Besweet\BeSweet.exe" -core( -input "%%~nW.mp3" -output "%%~nW.ac3" ) -ota( -d 2 ) -ssrc( --rate 48000 ) -bsn( -exe aften.exe -b 384 ) 
- 
	I'll bet mplayer or ffmpeg will do it. 
 
 for %%a in ("*.mp3") do ffmpeg -i "%%a" -vn -y - | aften.exe -b 384 - "%%~na.ac3"
 
 Or wrap them in an avisynth script. Use nicaudio as the audio plugin and WAVI to output to stdout
 
 http://www.codeplex.com/NicAudio/Release/ProjectReleases.aspx?ReleaseId=12395
 http://sourceforge.net/projects/wavi-avi2wav
 
 for %%a in ("*.mp3") do @echo NicMPG123Source(""%%a"").normalize() >"%%~na.avs"
 for %%a in ("*.avs") do wavi "%%a" - | aften.exe -b 384 - "%%~na.ac3"
 
 hi pcspeak!  
- 
	Thanks.Originally Posted by Soopafresh
 That gave an error "Unable for find a suitable output format for 'pipe:'"
 A little research showed it needed a "-f wav" parameter to determine that.
 
 This works:
 ffmpeg -i "%%a" -ar 48000 -f wav -vn -y - | aften.exe -b 192 - "%%~na.ac3"
 (Also changing the sample rate, as this is intended for DVD.)
 
 I thought of that, but I'd have to create a bunch of AVS scripts.Originally Posted by Soopafresh
 I'm not that adept at creating them programmatically, I'll keep your method in mind.
 
 If I couldn't get the pipe working I was just going to create temporary WAVE files. Inelegant but works.
Similar Threads
- 
  Command-line command for fixing AVI?By timur in forum ffmpegX general discussionReplies: 1Last Post: 23rd Sep 2009, 03:23
- 
  best way to record tv from command lineBy mierdatuti in forum LinuxReplies: 1Last Post: 17th Jun 2009, 03:08
- 
  A-B repeat in command lineBy alexandre_fs in forum Software PlayingReplies: 4Last Post: 15th Jan 2009, 16:35
- 
  command lineBy exekutive in forum ffmpegX general discussionReplies: 22Last Post: 2nd Jun 2008, 00:44
- 
  VobSub command lineBy Zhango in forum SubtitleReplies: 4Last Post: 26th Jul 2007, 09:04


 
		
		 View Profile
				View Profile
			 View Forum Posts
				View Forum Posts
			 Private Message
				Private Message
			 
 
			
			 
			

 Quote
 Quote