Log in

View Full Version : Convert ASF files to AVI


PomeloWu
6th April 2006, 07:25
Hi all,

I met problems writing a small project that converts ASF files to AVI files using DirectShow. I chose "ffdshow video encoder" to encode the video to MPEG-4 format. Since the source ASF files' fps are not constant, around 10, while the AVI files are constantly set to 24, the playing time got changed after my program processed the conversion.

I guess some of the settings of the ffdshow filter (or, other filters?) should be changed. However, I do not know what properties should be adjusted, neither do I know how to change settings for the ffdshow filter.

Actually, I am writing a program intended to convert videos as possible to MPEG-4 encoded AVI files. My designing is, build up a filter graph that renders the video file, remove the render filters, and add encoder filters (ffdshow video encoder) as well as Mux filter, file write filter to the graph, reconnect the filter graph and run.

The program works well for conversion from uncompressed AVI, but meets problem as I referred above.
How can I resolve the problem? Or, do you have any suggestion to my program? Thanks in advance.

jggimi
6th April 2006, 15:12
Moved from the Capture forum to Development.

Dmitry Vergheles
7th April 2006, 11:10
take a look at the solution below
http://vlafy.iulabs.com/wmvdirect.htm