Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > General > Audio encoding
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
Old 7th October 2008, 09:28   #1  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 7,277
decode 5.1 audio with ffmpeg and pipe to neroaacenc ?

Is there a way to decode 5.1 audio with ffmpeg and pipe to neroaacenc such that the output will still be 5.1?
(aiming to use this on linux and windows systems)

for stereo the following works fine:
Code:
ffmpeg -i "path to audio input" -acodec pcm_s16le -ac 2 -ar 48000 -f wav - | neroAacEnc -if - -br 128000 -ignorelength -of "path to audio output"
But I somehow can't find a way to get this working if the source is 5.1. (small 5.1 sample http://www.selur.info/Test-AC3-5.1.zip)

Cu Selur
__________________
Hybrid here in the forum, homepage
Selur is offline   Reply With Quote
Old 7th October 2008, 09:46   #2  |  Link
Kurtnoise
Swallowed in the Sea
 
Kurtnoise's Avatar
 
Join Date: Oct 2002
Location: Aix-en-Provence, France
Posts: 5,191
try this:

Code:
ffmpeg -i input.avi -vn -acodec pcm_s16le -ac 6 -f wav - | neroAacEnc -ignorelength -br 128000 -if - -of audio.m4a
Kurtnoise is offline   Reply With Quote
Old 7th October 2008, 10:01   #3  |  Link
buzzqw
HDConvertToX author
 
Join Date: Nov 2003
Location: Cesena,Italy
Posts: 6,552
ffmpeg -i audio.ac3 -acodec pcm_s32le -ac 6 -ar 48000 -f wav - | neroAacEnc -if - -br 128000 -ignorelength -of audio.mp4

the same for this
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

is working with ffmpeg 14277 and neroaacenc 1.3.3.0

BHH
__________________
HDConvertToX: your tool for BD backup
MultiX264: The quick gui for x264
AutoMen: The Mencoder GUI
AutoWebM: supporting WebM/VP8
buzzqw is offline   Reply With Quote
Old 7th October 2008, 16:21   #4  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,915
Quote:
Originally Posted by buzzqw View Post
...

is working with ffmpeg 14277 and neroaacenc 1.3.3.0
Is working?

With:
Code:
FFmpeg version Sherpya-r14277, Copyright (c) 2000-2008 Fabrice Bellard, et al.
  libavutil version: 49.7.0
  libavcodec version: 51.60.0
  libavformat version: 52.17.0
  libavdevice version: 52.0.0
  built on Jul 18 2008 11:12:48, gcc: 4.2.4 [Sherpya]
Seems still have wrong channel mapping, DialNorm attenuation (here -4dB) and apply DRC.
tebasuna51 is offline   Reply With Quote
Old 7th October 2008, 16:38   #5  |  Link
buzzqw
HDConvertToX author
 
Join Date: Nov 2003
Location: Cesena,Italy
Posts: 6,552
... well ..is encoding
my setup is unable to detect wrong channel maps

BHH
__________________
HDConvertToX: your tool for BD backup
MultiX264: The quick gui for x264
AutoMen: The Mencoder GUI
AutoWebM: supporting WebM/VP8
buzzqw is offline   Reply With Quote
Old 7th October 2008, 18:28   #6  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 7,277
Okay, found my problem: Installed PowerDVD some days ago and it didn't like the streams and I thought ffdshow was decoding the stream.
So general encoding works with ffmpeg and neroaacEnc
-> Now looking for a way to fix the channel mapping.
__________________
Hybrid here in the forum, homepage
Selur is offline   Reply With Quote
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 On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 17:00.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.