Log in

View Full Version : simple question: how load a mp4 audio


HieiYYH
5th June 2006, 09:45
i have a *.mp4 audio (nero aac he/lc SBR) i tried load in vdmod but it doesn't support the file, there is a way to load this audio via avisynth?

tried a lot of commands but no luck

my script

DirectShowSource("video.avi", Audio=true)
ConvertToYV12()
SelectEvery(5,0)

LoadPlugin("VSFilter.dll")
textsub("sub.ass")


is possible to load a mp4 audio file in avisynth?
if is, please, post here how ^^'
thx in advance

dimzon
5th June 2006, 10:24
are you able to play your file via Windows Media Player?
if not you need to install DirestShow splitters and decoders first

HieiYYH
5th June 2006, 10:34
are you able to play your file via Windows Media Player?
if not you need to install DirestShow splitters and decoders first

yeah, i can play via mp classic, and all other players... (if muxed in mkv or other container, if avi, there is no sound)

but i can't ADD it to stream list in virtual dub mod (unsupported format), so the only way is to add in avisynth i think, i only saw commands to add wav, but who in the hell will encode a video with wav file?

audio= wavsource this comand add wav, and how to add other audio files like OGG, AC3, MP4 etc... ?

foxyshadis
5th June 2006, 12:33
Avisynth can only return raw audio, it has no mechanism to pass through encoded audio. So unless you're looking to re-encode the audio Avisynth is not your answer.

A real muxer is. VDubMod is just too old at this point; use YAMB/Mp4box, Mmg/Mkvmerge, AviDeMux, or AviMuxGUI.

HieiYYH
5th June 2006, 21:21
So unless you're looking to re-encode the audio < What? i only want to add as a stream to encode a mkv with mp4 audio via virtualdub mod.

so, i can't load a simple audio like ogg in avisynth? well, there's no good thing in use this script then

ps: i'm using vd because i want to encode THE SUBTITLES to video like KARAOKE, if i don't encode, video become slow because the BIG EFFECTS IN ASS SUBTITLES, so mp4box or any other is not what i want, because i want a MKV file with mp4 audio and encoded subtitles

MrTroy
5th June 2006, 21:55
so, i can't load a simple audio like ogg in avisynth?You can load it in AviSynth, but it will be output as raw audio. AviSynth is not a muxxer, it's a video editing tool.

HieiYYH
6th June 2006, 02:34
ah, i found a way, i created a mkv file and opened on dub, vd can't reconigze but i can encode with the mp4 audio

thx anyway to everyone who answered ^^

foxyshadis
6th June 2006, 04:37
Still don't know why you don't want to use mkvmerge, which as I said was made for exactly what you're doing (whereas vdub was not) and is quite simple to use and powerful, but okay.