View Full Version : megui - mpeg-4 encoders filters


msureshkr
1st July 2008, 20:27
hi,
I am trying to create a mp4 video clip from a full mp4 video. I tried megui, but when I select the input file in create avisynth script creator, it says I do not have any filters installed.
Can anyone point me whether what I am doing is correct, if so what filters do I need?
thanks for your help
Suresh M

rack04
1st July 2008, 20:31
Search ffdshow tryouts.

Sharktooth
1st July 2008, 20:53
and haali media splitter.

msureshkr
1st July 2008, 21:16
Thanks. It worked sorta. I created a video clip but there isnt any audio. Can you help me? This is the avisynth script

DirectShowSource("C:\test2.mp4",fps=29.97000002997,audio=false)
#deinterlace
#crop
LanczosResize(320,240) # Lanczos (Sharp)
#denoise
#denoise
Trim(0, 900)
# TemporalSoften is one of many noise-reducing filters
TemporalSoften(4, 4, 8, scenechange=15, mode=2)

Sharktooth
1st July 2008, 21:22
DirectShowSource("C:\test2.mp4",fps=29.97000002997,audio=false)
.....

rack04
1st July 2008, 21:28
Thanks. It worked sorta. I created a video clip but there isnt any audio. Can you help me? This is the avisynth script

Did you mux the audio with video?

Sharktooth
1st July 2008, 21:33
your avs doesnt include audio. that's the default megui behaviour.
you have to demux it or just change audio=false in audio= true and feed the AVS to the audio part too.

msureshkr
1st July 2008, 21:34
Thanks for the quick response. Thats what I thought but DirectShowSource("C:\test2.mp4",fps=29.97000002997,audio=true) did not fix either?

Sharktooth
1st July 2008, 21:37
you must feed the avs to the audio input too. you better :readguid:

rack04
1st July 2008, 21:53
Thanks for the quick response. Thats what I thought but DirectShowSource("C:\test2.mp4",fps=29.97000002997,audio=true) did not fix either?

Why are you wanting to include the audio in your avs? What are you trying to accomplish by creating this script?

Sharktooth
1st July 2008, 21:55
feed the avs to the audio input. it works in megui.
that's usefull if you dont want to demux the audio from the original source...

msureshkr
1st July 2008, 22:17
Thanks rack04 and Sharktooth. I am sorry, I dont know much MPEG-4 video encoding. The requirement is to create 30 second mp4 video clips from the mp4 full video. The D2VCreator did not work either. It failed to demux.

~bT~
1st July 2008, 22:46
reading the wiki would help..

Sharktooth
2nd July 2008, 03:13
d2v creator is for DVD structure only.

msureshkr
2nd July 2008, 04:41
Thanks Sharktooth. If the feed the avs to the audio input, the megui erros out on job 2 (audio) saying
Error:
Can't find audio stream
------------------------------------------------------
Can you help?

Sharktooth
2nd July 2008, 12:09
it works here.
are you sure you have an appropriate directshow audio decoder installed?

msureshkr
2nd July 2008, 15:31
I have the neroaacenc.exe installed. Do I have to install any other decoder?
thanks

Sharktooth
3rd July 2008, 03:13
neroaacenc is the commandline ENCODER. if your source audio is in AAC format, then you need a directshow DECODER for AAC (ffdshow for example).

Atak_Snajpera
3rd July 2008, 13:54
Wouldn't be better to use BassAudio for all audio files in next versions? Experience tells me that we should avoid DirectShow filters whenever is possible.

Sharktooth
3rd July 2008, 14:06
we have 2 paths for decoding audio. the directshow path is selected only if the users set the "Force decoding via directshow" in the audio preset config dialog.
however if you feed the audio input with an avs based on directshowsource(), we have no control over it...

Atak_Snajpera
3rd July 2008, 14:27
Raw AAC cannot be opened via DirectShowSource (MeGUI chose that method automatically) but BassAudioSource will open it without problems. Also I'm not sure if DirectShowSource would open .flac as well?

Kurtnoise
3rd July 2008, 14:30
raw aac should be forbidden...

Atak_Snajpera
3rd July 2008, 14:36
I would say DirectShowSource should be forbidden :) BassAudio will decode every popular format and you don't have to worry about conflicts in filters settings (for example Mixer ON in ffdshow)

Sharktooth
3rd July 2008, 15:06
atak is partially right. expecially if we want to make megui compatible with linux.
directshow is becoming less and less attractive every day i think of it.
just think about 1 thing: mplayer has a lot of source filters, audio and video decoders, video filters (denoisers, deinterlacers, etc) and audio and video output modules (including xvid, x264, libavcodec)...
now, if we rewrite the entire input part of megui we could manage all file formats for input or even have direct DVD input thru mplayer, we would be extremely more linux friendly for the eventual port, packages dependecies would be much less complicated (no more dgindex, no more avisynth, etc...) and more...
we can still keep x264CLI and xvid_encraw for encoding.

Kurtnoise
3rd July 2008, 16:07
@Atak_Snajpera:

raw aac should be forbidden...
by that, I meant that users should keep audio streams within the container. I can't see a good reason to extract raw streams to do transcoding or something like that...


atak is partially right. expecially if we want to make megui compatible with linux.
directshow is becoming less and less attractive every day i think of it.
just think about 1 thing: mplayer has a lot of source filters, audio and video decoders, video filters (denoisers, deinterlacers, etc) and audio and video output modules (including xvid, x264, libavcodec)...
now, if we rewrite the entire input part of megui we could manage all file formats for input or even have direct DVD input thru mplayer, we would be extremely more linux friendly for the eventual port, packages dependecies would be much less complicated (no more dgindex, no more avisynth, etc...) and more...
we can still keep x264CLI and xvid_encraw for encoding.
shouldn't we talk about that in the appropriate SF forum ? :p

well...mplayer basically relies on FFmpeg. And, yes, that's the way to go if we want to have linux compatibility. It was already on my todo list. FFmpeg-Sharp code might help us btw...

Atak_Snajpera
3rd July 2008, 16:08
by that, I meant that users should keep audio streams within the container. I can't see a good reason to extract raw streams to do transcoding or something like that...
CT-AAC (enc_aacPlus.exe) encodes to raw .aac

Kurtnoise
3rd July 2008, 16:11
you can embed the raw stream into mp4 within the appropriate tool using the cli...

Moreover, this doesn't rely to the decoding part...:p

Atak_Snajpera
3rd July 2008, 16:12
You can also add support for raw .aac and .flac via BassAudio :)

Sharktooth
3rd July 2008, 16:19
flac is not necessary. megui's target is not converting music files... also CT encoder will probably be dropped due to the inferior quality (compared to the nero encoder). it's also not available for linux so... it's doomed...
however, we already have ffmpeg and mplayer. bassaudio would be redundant (that's why i said you're "partially" right) or even useless if we drop avisynth.

Atak_Snajpera
3rd July 2008, 17:02
flac is not necessary. megui's target is not converting music files...
Yes it is necessary. If you convert audio from Blu-Ray/HD-DVD using eac3to some audio streams must be converted to flac (pcm , TrueHD , E-AC3)

Sharktooth
3rd July 2008, 17:16
why? the decoder output can be piped to the encoder input and no intermediate wav or flac or whatever will be needed.
however, assuming we would need flac (but i seriously doubt it) mplayer already supports it.