My project is using GMFBridge to play back a series of captured files. This
series of files is continous and so I am sort of using the same technique as
in the GMFPlay example only the files are not known from the beginning. As the
program is still capturing, I am seeking through the already captured files
and can play from any position without problem. I now need to change the
playback rate, but things get really weird.
As I change the rate, I now "prime" the upcoming clips (only one at
a time) and setting this new rate every time a new clip is primed. This sort
of works, but only for two clips, then two clips play at 1x speed, then two
more at the correct rate again and so it goes on.
I am currently setting the rate on a IMediaSeeking interface on the graph
where the file reader and the GMF sink filter is. This also sort of screws up
the time reported by my render graph.
Does anyone have any experience setting a new rate on a GMFPlay-ish graph?
Please share your experiences.
/Carl
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Btw, I am not creating a new graph for the next clip. Would that make a
difference? I am currently just replacing the file reader filter with a new
one and loading the next file.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Eureka. Seems setting the rate to the same value has no effect. Since the
graphs are the same the ImediaSeeking believes it's still at the correct rate.
What I did was to change the rate two times. First to 1x then to what I want
:) Hope that makes sense
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi again.
My project is using GMFBridge to play back a series of captured files. This
series of files is continous and so I am sort of using the same technique as
in the GMFPlay example only the files are not known from the beginning. As the
program is still capturing, I am seeking through the already captured files
and can play from any position without problem. I now need to change the
playback rate, but things get really weird.
As I change the rate, I now "prime" the upcoming clips (only one at
a time) and setting this new rate every time a new clip is primed. This sort
of works, but only for two clips, then two clips play at 1x speed, then two
more at the correct rate again and so it goes on.
I am currently setting the rate on a IMediaSeeking interface on the graph
where the file reader and the GMF sink filter is. This also sort of screws up
the time reported by my render graph.
Does anyone have any experience setting a new rate on a GMFPlay-ish graph?
Please share your experiences.
/Carl
Btw, I am not creating a new graph for the next clip. Would that make a
difference? I am currently just replacing the file reader filter with a new
one and loading the next file.
Eureka. Seems setting the rate to the same value has no effect. Since the
graphs are the same the ImediaSeeking believes it's still at the correct rate.
What I did was to change the rate two times. First to 1x then to what I want
:) Hope that makes sense
Glad you got it working.