Bull-winkle
19th October 2005, 19:44
I am trying to us a simple script to look at audio/video sync issues with my analog captures. In my application there are a lot of electronic processing(scan converters mostly) that add delays to the video signal. This entails me adjusting the audio delay when I reprocess the video.
i built a script as follows:
====
#Load Plug-ins
LoadPlugin("D:\AVSProject\viewaudio.dll")
#Set Input AVI filename
clip1Name=("D:\AVSProject\07-14_0715_Discussion.avi")
clip1=AVISource(clip1name)
#select a small segment
clip1=trim(clip1,100,1870) #select a small segment
clip1=converttorgb(clip1)
clip1=audiograph(clip1)
return clip1
====
When I try to play this script in MediaPlayerClassic the first 1-2 seconds or so sound find, the audio then starts stuttering and repeating for a couple of seconds then mpc disapears.
If i try to encode with virtualdub 1.6.11 it starts encoding although quite slow (1-2 frames second) then disapears after 40 - 100 frames (about - it changes each attempt) then virtualdub disapears.
The resultant avi fragment is unplayable and generates the following error message
====
Stream 0
Media Type 0:
--------------------------
AM_MEDIA_TYPE:
majortype: MEDIATYPE_Stream {E436EB83-524F-11CE-9F53-0020AF0BA770}
subtype: MEDIASUBTYPE_Avi {E436EB88-524F-11CE-9F53-0020AF0BA770}
formattype: TIME_FORMAT_NONE {00000000-0000-0000-0000-000000000000}
bFixedSizeSamples: 1
bTemporalCompression: 0
lSampleSize: 1
cbFormat: 0
Media Type 1:
--------------------------
AM_MEDIA_TYPE:
majortype: MEDIATYPE_Stream {E436EB83-524F-11CE-9F53-0020AF0BA770}
subtype: TIME_FORMAT_NONE {00000000-0000-0000-0000-000000000000}
formattype: TIME_FORMAT_NONE {00000000-0000-0000-0000-000000000000}
bFixedSizeSamples: 1
bTemporalCompression: 0
lSampleSize: 1
cbFormat: 0
====
this unfortunately means nothing helpfule to me
I am using the AVIsynth 2.5.6 and tried it on a couple of other earlier versions.
I have tried this on both AMD & intel machines with the same result.
and it seems to me it was working fine last week
I do use the microsoft automatic update and am running Windows XP Pro SP2 on
several AMD Athlon 64 3700+
An Intel PIV 2.4ghz - prehyperthreading
a couple of Intel 765 based laptops
the script plays fine if I comment out the audiograph line
did I build the script wrong?
any ideas?
please help :confused:
i built a script as follows:
====
#Load Plug-ins
LoadPlugin("D:\AVSProject\viewaudio.dll")
#Set Input AVI filename
clip1Name=("D:\AVSProject\07-14_0715_Discussion.avi")
clip1=AVISource(clip1name)
#select a small segment
clip1=trim(clip1,100,1870) #select a small segment
clip1=converttorgb(clip1)
clip1=audiograph(clip1)
return clip1
====
When I try to play this script in MediaPlayerClassic the first 1-2 seconds or so sound find, the audio then starts stuttering and repeating for a couple of seconds then mpc disapears.
If i try to encode with virtualdub 1.6.11 it starts encoding although quite slow (1-2 frames second) then disapears after 40 - 100 frames (about - it changes each attempt) then virtualdub disapears.
The resultant avi fragment is unplayable and generates the following error message
====
Stream 0
Media Type 0:
--------------------------
AM_MEDIA_TYPE:
majortype: MEDIATYPE_Stream {E436EB83-524F-11CE-9F53-0020AF0BA770}
subtype: MEDIASUBTYPE_Avi {E436EB88-524F-11CE-9F53-0020AF0BA770}
formattype: TIME_FORMAT_NONE {00000000-0000-0000-0000-000000000000}
bFixedSizeSamples: 1
bTemporalCompression: 0
lSampleSize: 1
cbFormat: 0
Media Type 1:
--------------------------
AM_MEDIA_TYPE:
majortype: MEDIATYPE_Stream {E436EB83-524F-11CE-9F53-0020AF0BA770}
subtype: TIME_FORMAT_NONE {00000000-0000-0000-0000-000000000000}
formattype: TIME_FORMAT_NONE {00000000-0000-0000-0000-000000000000}
bFixedSizeSamples: 1
bTemporalCompression: 0
lSampleSize: 1
cbFormat: 0
====
this unfortunately means nothing helpfule to me
I am using the AVIsynth 2.5.6 and tried it on a couple of other earlier versions.
I have tried this on both AMD & intel machines with the same result.
and it seems to me it was working fine last week
I do use the microsoft automatic update and am running Windows XP Pro SP2 on
several AMD Athlon 64 3700+
An Intel PIV 2.4ghz - prehyperthreading
a couple of Intel 765 based laptops
the script plays fine if I comment out the audiograph line
did I build the script wrong?
any ideas?
please help :confused: