PDA

View Full Version : How can I frame serve a .mpg?


Zodiacal
14th February 2003, 06:22
are there any plug ins that can read a .mpg for audio and video? or if avisynth can't do this does anyone know of a tool to frame serv a mpg?

celtic_druid
14th February 2003, 06:51
directshowsource

Also maybe MPEGDecoder and MPASource although I think that would requires a seperate audio stream.

Zodiacal
14th February 2003, 07:08
directshowsource is only video i think. i don't really want to split my mpg into audio video streams.

Wilbert
14th February 2003, 10:45
You will have to separate the video and audio streams (with TMPGEnc for example). If MPEGDecoder works for you you should use that (with MPASource for the audio). However MPEGDecoder has some problems with mpeg1 files, in that case you should use Directshowsource.

Zodiacal
14th February 2003, 18:39
i have used tmpgenc to open my mpg as audio and sound and then i save the project as .tpr then i open that in VFAPIConv-EN.exe and frame server to CEE as an .avi that doesn't seem to split my video and audio but its slow i would rather use avisynth if posible. but i guess your saying its not..

killingspree
14th February 2003, 20:09
just a thought:
wouldn't it be possible to split the audio and video... then immediatellly remux it with the audiodub command for further processing...
i haven't tried this though, but i guess it would be worth a try anyway...
regards
steVe

Zodiacal
14th February 2003, 20:10
split it in the .avs and mux it in the same .avs? hrmm.. i could try. do you know how i could split it off hand?

killingspree
14th February 2003, 20:54
ok i think you misunderstood me. what i meant was that you demux audio and video in a seperate step, for example in DVD2AVI. i assume you are familiar with the program, if not here's how you do it: just load the mpg file into DVD2AVI. Go to Audio > MPEG Audio > Demux All Tracks . then go to File > Save project As this way you would get a .d2v file (DVD2AVI project file) and an audio file, most likely a .mpa file. now just load the normal video file with mpeg2dec, if this doesn't work with directshowsource.
then apply the killaudio() command to make sure that you get rid of any "old" audio that might be transported into the .avs file. not likely though, since afaik directshowsource does not support audio anyway.
then use the wavsource command to import the audio - yes i think you have to add a wave- header to your mpa file!

afterwards just use the audiodub command to mux it again and afterwards apply any filters, or trim the file if needed. especially when you are trimming it is important that you first mux the audio and video!

here's an example script:


directshowsource("yourmpgfile.mpg")
a=killaudio()
b=wavsource("yourmpawithwavheader.wav")
audiodub(a,b)
trim()
resize()


be aware: i haven't tested the script!!

regards
steVe

Wilbert
15th February 2003, 12:20
@killingspree,

1) as you know dvd2avi handles mpeg2, not mpeg1. Might be that Zodiacal means mpeg2.

2) the killaudio line is not necessary.