Log in

View Full Version : mplayer.exe | neroAacEnc.exe in Windows


fangorn
19th March 2010, 21:20
Hi,

I am searching a solution to do a audio conversion using mplayer.exe to decode, remap audio channels, ... and neroAacEnc to encode to stereo or multichannel AAC stream. (without writing the audion streams to an intermediate file)

I searched the web and till now just found that the solution for UNIX/linux does not work under Windows (named pipes/FIFOs).

On the other side I found GUIs that claim to do exactly that. But as there is no source, I can't just look and see how it is done.

I am in the process of rewriting my script collection (see my Sig.) in Perl to make them available for Windows too. But my solution for automatic audio conversion using external encoders needs FIFOs.

Can someone point me in the right direction how to utilize these programs under Windows?

Thanks in advance,
fangorn

@Admin:
If this is better positioned in the Development section, please move.

Dark Shikari
19th March 2010, 21:32
Cygwin lets you use FIFOs in Windows.

fangorn
20th March 2010, 08:00
Thanks for the tip. Will try that.

But is there another solution? I would rather not depend on a cygwin installation (or package it with my scripts). Or are those GUIs silently using cygwin?

What I try to do is reduce dependencies:rolleyes:

Dark Shikari
20th March 2010, 08:04
Thanks for the tip. Will try that.

But is there another solution? I would rather not depend on a cygwin installation (or package it with my scripts). Or are those GUIs silently using cygwin?

What I try to do is reduce dependencies:rolleyes:Windows has named pipes; they're just not available on the commandline, only via Windows APIs. Also see PowerShell.

fangorn
20th March 2010, 09:40
I know Windows has to has have named pipes as it is called "POSIX compatible". I just got the impression that this is not designed for the same tasks as named pipes under UNIX.

Nevertheless I will look into Powershell. Maybe I have to distinct between output of a bash and a powershell script for conversion. That would be better than rewriting a handfull of scripts and then discovering that you need a runtime environment for the original scripts anyway. :rolleyes:

Thanks again.

Dark Shikari
20th March 2010, 09:52
I know Windows has to has have named pipes as it is called "POSIX compatible".<pengvado> that brings back the memory:
<pengvado> windows is posix compliant
<pengvado> every single posix function returns ENOTIMPLEMENTED, which is one complying implementation :)

buzzqw
20th March 2010, 10:48
or using ffmpeg

ffmpeg -i audio.ac3 -acodec pcm_s32le -ac 6 -ar 48000 -f wav - | neroAacEnc -if - -br 128000 -ignorelength -of audio.mp4

ffmpeg -i test-ac3-5.1.avi -vn -acodec pcm_s32le -ac 6 -ar 48000 -f wav - | neroAacEnc -if - -br 128000 -ignorelength -of audio2.mp4

BHH

TinTime
20th March 2010, 16:04
How about eac3to?

eac3to.exe input.ac3 output.m4a

fangorn
21st March 2010, 09:40
@DarkShikari
LOL

@buzzqw
I doubt that works with 6 channel audio with different channel mapping.

@TinTime
Would be an option for the windows part. If I don't get it running I will definately consider using this instead of an mplayer -> neroAacEnc chain.