Log in

View Full Version : Problems converting from a directshow source


Slogra
10th October 2005, 12:25
I'm trying to convert a HD wmv video to xvid, but after converting i noticed a lot of frames are missing.

I used DirectShowSource("filename.wmv"), but i didn't add the fps. So i was wondering if adding the fps like DirectShowSource("filename.wmv", 24) would solve this problem.

Also i put my computer in hibernation (standby) a few times while encoding, do you think that could have caused the problem?

actionman133
10th October 2005, 13:32
There is a possibility that you're WMV video has a variable frame rate (I think that's what they call it). Basically, for moments where frames would be repeated (such as blackness), WMV just compresses one frame and plays it for however long it needs it. So, if there's a period of blackness, chances are it's just one frame.

This is important, because to my knowledge, AVISynth doesn't deal with this technique. It won't duplicate frames to make up for the changing framerate, and I don't know any way around it...

Wilbert
10th October 2005, 14:09
This is important, because to my knowledge, AVISynth doesn't deal with this technique.
Then it's time to update your knowledge :)

Slogra, try

DirectShowSource("filename.wmv", fps=24, convertfps=true)

actionman133
10th October 2005, 14:33
Knowledge update complete! ;)

Slogra
10th October 2005, 15:14
Thx, I updated my knowledge as well as my software.

I've started the encoding again with your script. I will have more news in about 11 hours ;)