View Full Version : Sourcing program streams
mantis2k
19th March 2006, 20:38
When creating a DGIndex project for an AviSynth source, the audio is demuxed, and only the video track is used. Can AviSynth source and frameserve an MPEG1 program stream? If so, what script could I use? Any help would be much appreciated!
Guest
19th March 2006, 21:34
Use the example in the quick start guide for serving both video and audio via an Avisynth script.
mantis2k
19th March 2006, 22:10
Use the example in the quick start guide for serving both video and audio via an Avisynth script.
Thanks for your reply! Are you referring to this example below?
LoadPlugin("...\DGDecode.dll")
video=MPEG2Source("myvob.d2v")
audio=WAVSource("myvob.wav")
AudioDub(video,audio)
This script sources the audio and video as 2 elementary streams, but I am concerned with the audio track extracted with DGIndex--particularly from MPEG1 video sources.
Is there a way of serving audio and video, directly, as a program stream, without first having to split them with DG Index and rejoin with the AudioDub function?
Guest
20th March 2006, 01:15
Is there a way of serving audio and video, directly, as a program stream, without first having to split them with DGIndex and rejoin with the AudioDub function?DGMPDec is an MPEG video *decoder*. A program stream is an encoded MPEG stream. What could be the point of having a *decoder* serve its input without decoding it?
Just open the source program stream with your application. There's no point to "serving" it.
but I am concerned with the audio track extracted with DGIndex--particularly from MPEG1 video sources What is your "concern", specifically?
mantis2k
20th March 2006, 02:47
Just open the source program stream with your application. There's no point to "serving" it.
My application (TMPGEnc) doesn't support multiple sources, but AviSynth can feed several sources--one after another--into the application during a single conversion.
What is your "concern", specifically?
When I indexed two MPEG1 sources, the demuxed audio was out of sync with the second half of the video. However, by joining the sources and extracting the audio with another software--also involved two re-encodings--the audio managed to stay in sync.
I've had other problems as well with audio streams extracted using DGIndex, involving incorrect timecodes and compatibility issues, but I cannot be too specific right now. I'll try and do some experimenting to determine exactly what the problem is.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.