DirectShowSource problem

Foto2avi is an freeware photo to video converter based on avisynth . It can create cool effects and it is an free video editor. It can handle videos too ! Specially designed for small videos that you can put them on Youtube

Moderators: george, Excalibur!, skyheartblue, roger_rabbit, reburn

DirectShowSource problem

Postby bits » Thu Aug 30, 2007 2:24 am

I loaded a short mpeg2 clip (8000Kbs/s, 720x480, 29.97 fps, NTSC DVD compliant) set Foto2Avi to output mepg2 NTSC DVD compliant, fps=29.97, bitrate=8000, audio=mp3, 256. I get the following error: DirectShowSource: I can't determine the frame rate of the video, you must use the 'fps' parameters. (..\Functions\Functions.ShowVideo.avs, line 11) (C:\Program Files\Foto2Avi\Avs\Temp.avs, line 6)

- I have Foto2Avi installed on two other XP computers and both run the file without a hitch.
- The system that will not run it is also XP home
- Uninstalled and re-installed Foto2Avi several times
- Installed latest DirectX
- Gspot says that I do not have any broken codecs
- DFSMgr seems to like everything it detects in terms of DirectShow Filters]

Temp.avs
##########Generated By Foto2Avi##########
SetMemoryMax(256)
Import ("..\Functions\Function.ShowVideo.avs")
LoadPlugIn("..\Plugins\TransAll\TransAll.dll")
#####################VIDEO-PHOTOS#########################
s0=ShowVideo("C:\Downloads\Video\Ch01-Katie and Lauren(Freshman)-8-29-00 (02).mpg",0,5797,29.97,true,720,480,false,$000000)
#####################SOUNDS#########################
#####################TRANSITIONS#########################
#####################RETURN#########################
return s0.ConverttoYV12

Function.ShowVideo.avs
function ShowVideo (string video, int startframe, int finalframe, float fps, bool enableaudio , int x, int y, bool keepaspectratio, int BackgroundColor) {

#keepaspectratio=true
#BackgroundColor=$555555

keepaspectratio==true ? Eval("""
Import ("..\Functions\Function.ShowVideoWithCorrectAspectRatio.avs")
s1v = ShowVideoWithCorrectAspectRatio (video,fps,x,y,BackgroundColor)
""") : Eval("""
s1v = DirectShowSource(video,audio=false,video=true).BilinearResize(Round(x/4)*4 ,Round(y/4)*4).ConvertToRGB32().ConvertFPS(fps).killaudio
""")


enableaudio==true ? Eval("""
s1a = DirectShowSource(video,audio=true,video=false)
CountAudioChannels=(Audiochannels(s1a))
""") : Eval("""
audio=BlankClip(s1v, audio_rate=44100, stereo=true,sixteen_bit=true).ResampleAudio(44100).ConvertAudioToFloat
mix=AudioDub(s1v,audio)
s1=mix.trim(startframe,finalframe)
""")

enableaudio==true && CountAudioChannels==1 ? Eval("""
s1a = GetChannel(s1a, 1, 1).ResampleAudio(44100).ConvertAudioToFloat
s1=AudioDub(s1v,s1a).trim(startframe,finalframe)
""") : Eval("""
""")

enableaudio==true && CountAudioChannels>1 && CountAudioChannels<3 ? Eval("""
s1a = GetChannel(s1a, 1, 2).ResampleAudio(44100).ConvertAudioToFloat
s1=AudioDub(s1v,s1a).trim(startframe,finalframe)
""") : Eval("""
""")

enableaudio==true && CountAudioChannels>=3 ? Eval("""
s1a = GetChannel(s1a, 1, 3).ResampleAudio(44100).ConvertAudioToFloat
s1= AudioDub(s1v, s1a).trim(startframe,finalframe)
""") : Eval("""
""")

return s1

}

What should I try next?

Thanks!
bits
Junior Member
 
Posts: 2
Joined: Thu Aug 30, 2007 2:02 am

Postby trustfm » Thu Aug 30, 2007 8:39 am

a) if you load an avi and keep the same output settings what do you get ?
b) which version of Foto2avi do you use ?

If your answers are
a) I get this only with this mpeg
b) I use the 1.9 version

then please mail me that mpeg i have to see why it is not working ...
Anyway i think that the problem is related with the mpeg file ... :roll:
trustfm
Site Admin
 
Posts: 1649
Joined: Sun Feb 27, 2005 4:40 pm

Postby trustfm » Thu Aug 30, 2007 10:20 am

Take a look at this topic too but i do not think that this is your case ...
trustfm
Site Admin
 
Posts: 1649
Joined: Sun Feb 27, 2005 4:40 pm

Postby bits » Thu Aug 30, 2007 12:36 pm

trustfm wrote:a) if you load an avi and keep the same output settings what do you get ?
b) which version of Foto2avi do you use ?

If your answers are
a) I get this only with this mpeg
b) I use the 1.9 version

then please mail me that mpeg i have to see why it is not working ...
Anyway i think that the problem is related with the mpeg file ... :roll:

I installed ffdshow and the problem went away. Looking closer at GSpot I realized that there was codec issue so I installed ffdshow and now all works as it should.
Thank you for responding.

BTW is there anyway to have the audio output at 48kHz instead of 44?

This is a great little piece of software!
bits
Junior Member
 
Posts: 2
Joined: Thu Aug 30, 2007 2:02 am

Postby trustfm » Thu Aug 30, 2007 2:52 pm

If you Go to
"Settings" -> "Output" -> "Dvd Mode" , type ntsc you will get an pure ntsc dvd with sound : AC3 48 KHZ
You will get an authored dvd
:) :wink:
trustfm
Site Admin
 
Posts: 1649
Joined: Sun Feb 27, 2005 4:40 pm


Return to Foto2Avi

Who is online

Users browsing this forum: No registered users and 1 guest

cron