Log in

View Full Version : MeGUI - Problem with audio encoding for iPod Video


crosta
22nd January 2007, 20:18
Hi all,
I have an iPod 5.5G and I use MeGUI to encode videos in H264.
The video files I have to encode are AVI's (DivX or Xvid).
I use this avisynth script for MeGUI input:
# Video File
video = "C:\Path\of\AVI\videoFile.avi"
# open AVI video-only to get correct frame rate
AVISource(video, audio = false)
# save correct frame rate for DirectShowSource
framerate = Framerate()
# reopen in DirectShow for better audio compatibility
DirectShowSource(video, fps = framerate)
# Resize and Black borders
LanczosResize(320,192) # Lanczos (Sharp)
AddBorders(0,24,0,24)

I use this script both for video and audio input, and for audio I use ND AAC (I've configured the path of nero encoder in MeGUI Settings).
The problem seems to be the audio - after the whole encoding process (audio + video + muxing), I'm not able to hear any audio.
I'm able to have a working video & audio only following this long way:
1- extract audio with VirtualDub (Save As WAV) -> i obtain the MP3 audio file (why not wav?)
2- encode with NeroAACEncoder using "bepipe.exe --script "DirectShowSource(<input>)" | neroAacEnc.exe -q 0.3 -lc -if - -of <output>"
3- muxing the audio with the video using NicMP4Box

I'm not so expert in using these tools for video encoding, so I cannot understand why the audio encoding with MeGUI does not work... I hope someone could help me with this problem!


Bye!

Thanks,
Sam.

Adub
24th January 2007, 03:04
Wait wait.
Okay, what settings are you using to encode your audio? As in what bitrate, channel mode, etc.

If you want a full guide, see my sig and click the link.

crosta
24th January 2007, 23:13
Thanks for your answer!
I read that guide days ago...
I'm not encoding a DVD but an AVI file (divX or Xvid), so I haven't a separate audio file, I have only one audio/video AVI file.

I use the above AVS script for Video Input and I use codec: x264 and Video Profile: Ipod 5.5G.

In the Audio section in MeGUI, I choose for Input the same AVS script I use for Video input - Is it correct?
Then I choose ND AAC from the codec selectbox and NDAAC-LC-96Kbps as Audio Profile.
Audio Profile configuration is:
* Force decoding via DirectShow (selected)
* ABR @ 128 Kbps
* AAC - LC

Then AutoEncode.

At the end of the encoding process, I have an MP4 video, but I cannot hear any audio... I can't understand where's my fault...

Bye,
Samuele.

Adub
25th January 2007, 03:13
Have you tried listening to the audio before muxing? We could then narrow this down some more.

Also, I would separate the audio first, using for favorite demuxer or virtualdub, or whatever you choose.

The problem with using the above script with the audio import is that it will most likely only deal with the video, unless you specify otherwise.