Log in

View Full Version : mono audio + ffmpeg + neroaacenc + hev2 problem,...


Selur
18th August 2009, 18:56
Got a small sample file (http://www.megaupload.com/?d=3HXWIN2H) from which I wanted to decode the audio through ffmpeg and encode the audio through neroaacenc.

So far so good:
D:\sx264>ffmpeg -i "D:\sx264\testclips\mp4v_640x480_uLaw-mono.MOV" -acodec pcm_s16le -ac 1 -ar 48000 -f wav - | neroAacEnc -if - -br 20000 -ignorelength -of "d:\audio.mp4"
works fine.

D:\sx264>ffmpeg -i "D:\sx264\testclips\mp4v_640x480_uLaw-mono.MOV" -acodec pcm_s16le -ac 1 -ar 48000 -f wav - | neroAacEnc -if - -br 20000 -lc -ignorelength -of "d:\audio.mp4"
works fine.

D:\sx264>ffmpeg -i "D:\sx264\testclips\mp4v_640x480_uLaw-mono.MOV" -acodec pcm_s16le -ac 1 -ar 48000 -f wav - | neroAacEnc -if - -br 20000 -he -ignorelength -of "d:\audio.mp4"
works fine.

D:\sx264>ffmpeg -i "D:\sx264\testclips\mp4v_640x480_uLaw-mono.MOV" -acodec pcm_s16le -ac 1 -ar 48000 -f wav - | neroAacEnc -if - -br 20000 -hev2 -ignorelength -of "d:\audio.mp4"
gives:
*************************************************************
* *
* Nero AAC Encoder *
* Copyright 2008 Nero AG *
* All Rights Reserved Worldwide *
* *
* Package build date: Sep 17 2008 *
* Package version: 1.3.3.0 *
* *
* See -help for a complete list of available parameters. *
* *
*************************************************************

FFmpeg version SVN-r19369, Copyright (c) 2000-2009 Fabrice Bellard, et al.
configuration: --enable-memalign-hack --prefix=/mingw --cross-prefix=i686-mingw32- --cc=ccache-i68
6-mingw32-gcc --target-os=mingw32 --arch=i686 --cpu=i686 --enable-avisynth --enable-gpl --enable-zli
b --enable-bzlib --enable-libgsm --enable-libfaad --enable-pthreads --enable-libvorbis --enable-libt
heora --enable-libspeex --enable-libmp3lame --enable-libopenjpeg --enable-libxvid --enable-libschroe
dinger --enable-libx264
libavutil 50. 3. 0 / 50. 3. 0
libavcodec 52.32. 0 / 52.32. 0
libavformat 52.36. 0 / 52.36. 0
libavdevice 52. 2. 0 / 52. 2. 0
libswscale 0. 7. 1 / 0. 7. 1
built on Jul 8 2009 04:02:13, gcc: 4.2.4
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'D:\sx264\testclips\mp4v_640x480_uLaw-mono.MOV':
Duration: 00:00:05.77, start: 0.000000, bitrate: 1478 kb/s
Stream #0.0(eng): Video: mpeg4, yuv420p, 640x480 [PAR 1:1 DAR 4:3], 100 tbr, 1056k tbn, 100 tbc
Stream #0.1(eng): Audio: pcm_mulaw, 16000 Hz, 1 channels, s16, 128 kb/s
Output #0, wav, to 'pipe:':
ERROR: Unsupported encoding configuration
Stream #0.0(eng): Audio: pcm_s16le, 48000 Hz, 1 channels, s16, 768 kb/s
Stream mapping:
Stream #0.1 -> #0.0
Press [q] to stop encoding
av_interleaved_write_frame(): Error while opening file

Anyone got a hint where the problem is?
(and how to fix it ?)

:thanks:

Cu Selur

Ps.: No, I don't want to use other tools. :)

Midzuki
18th August 2009, 19:40
It seems "HE-v2" requires _stereo input_ :

http://en.wikipedia.org/wiki/Parametric_Stereo

Selur
18th August 2009, 19:43
sounds resonable thanks (sometimes it really helps to remember what the v2 stands for ;))

Cu Selur