Log in

View Full Version : how to load mp4 file in avs?


yami
6th September 2005, 15:18
i m newbie, dont know how to load mp4's video and audio(multichannal) and subtitle in avs.

its possible ?

Boulder
6th September 2005, 16:08
If it is at all possible, DirectShowSource should be the way.

Wilbert
6th September 2005, 16:24
Yes, see DirectShowSource docs. Btw, importing subs this way is not possible.

Inc
6th September 2005, 17:34
IIRC MugFunky a time ago got I nice Idea if its possible to create a filter for Avisynth called "LibavDecoding.dll" or so similair. This could be easely used for decoding mp4 (incl.Subs), movs etc etc etc.

Or wait .... would it be possible to build a mplayer wrapper-dll for avisynth? Mplayer.exe would have to be in the same folder where the MplayerDec.dll would be (or the core has to be included in such an mplayerDec.dll.
Then a syntax could be

MplayerDec("Here_my_Source.mp4", ini="myIniFile.ini")

The Ini File would have a Commandline known parameters which could be set like related to subs or whatever, even the mencoder internal Video/AudioFilters maybe by this can be accessed?

Ini.ini
Codec: LavCodec
ForceVideoFormat = mpeg4 (for instance, ... or if mp4 is the input then its not necessary)
VF= xx:yy, xxxyyy, xxxyyy, xxxxyyy
AF= xxyyxx, yxy, xxyy, xxyy

But anyhow, related to subs, these would be rendered into the outgoing bitstream (ough), so a separate demuxing of subs at the very beginning is obligatory imho.

That above is maybe nice way but a c++ programmer would maybe pull his hairs off if thinking of how much work that would take. :eek:

yami
7th September 2005, 09:51
im try to use DirectShowSource, but i got this message :(

why ???


http://www.veryniub.cn/snap.jpg
:confused: :confused: :confused: :confused:

Boulder
7th September 2005, 10:26
Have you installed the latest Avisynth 2.5 package?

yami
7th September 2005, 10:38
sure , other function no problem :(

dont know why :(

Boulder
7th September 2005, 10:40
Do you have directshowsource.dll in the plugins folder (or was it supposed to be elsewhere now, don't remember) ?

yami
7th September 2005, 10:49
no, plugin folder is empty

Boulder
7th September 2005, 10:54
Download and install : http://prdownloads.sourceforge.net/avisynth2/AviSynth_040905.exe?download
You should have directshowsource.dll in the plugins folder then I think.

yami
8th September 2005, 06:06
thx u very much boulder. its ok now :):):)