1

Topic: DirectShow: the audio escapes forward

There is unpretentious video a player on DirectShow. Became on the basis of the found examples on the Internet. It is made elementarily. The graph on the basis of a file is under construction and is automatically lost in VMRWindowless. To it it is made  in the form of a pause, start-up, changes of speed of playback, etc. But here if video has not time to be read out, the audio escapes far forward. Synchronization is as a result lost. An example. Video should be lost with 50 fps, but  with 5 fps. As a result monstrous  - the audio plays without pauses, but video brakes. What it is necessary to make (better with examples and it is better on Delphi) that in case of such loss of synchronization, the audio would be braked while the necessary frame of video does not arrive in the graph? Let the sound will be  and to be interrupted, but not to escape forward. Video frames  is not desirable. It Is necessary for implementation of similarity of operation of video editors. There just such functional - audio is played back with jerks if is not in time for video frames. Rummaged all Internet, but and did not find, how it to make. PS. Video source is in the virtual file system (AviSynth), therefore such logs.

2

Re: DirectShow: the audio escapes forward

Hello, rean, you wrote:... skipped Within the limits of DirectShow, and similar API, something will be heavy to make any. All business in hours which in your case run strictly monotonically, without paying attention to brakes. The basic mechanism is calculated only for local setup of time, with calculation that average loading allows to lose a flow according to hours of the graph (i.e. if braked then we run faster real time). For video, there is regular means IQualityControl. The video-renderer uses this interface for the notification message of the video-decoder that it is necessary to pass a part of frames, in case of their strong delay. If to write additional components it is possible to try, in your case, to write a source about video and audio which has hours and the graph switches to them. Hours of a component already should consider brakes of media flows and are implemented so that to go synchronously with physical arrival of the data. If you plan to write similarity of the non-linear editor of video I advise to write completely the , it is possible even from usage DirectShow in separate nodes. In DirectShow, accelerated forward (more than the audio driver allows), playing accelerated/decelerated back, change of tracks of video, audio etc., it is heavy to implement playing, and much and is impossible or is not effective.

3

Re: DirectShow: the audio escapes forward

Hello, Videoman, you wrote: V> If you plan to write similarity of the non-linear editor of video I advise to write completely the , it is possible even from usage DirectShow in separate nodes. In DirectShow, accelerated forward (more than the audio driver allows), playing accelerated/decelerated back, change of tracks of video, audio etc., it is heavy to implement playing, and much and is impossible or is not effective. DirectShow Editing Services it is all allowed still 15 years ago. Then MS it  on the custom, as well as DirectShow as a whole later.

4

Re: DirectShow: the audio escapes forward

Hello, D. Mon, you wrote: DM> DirectShow Editing Services it is all allowed still 15 years ago. Then MS it  on the custom, as well as DirectShow as a whole later. We used Editing Services 15 years ago. Anything from enumerated, except compilation of the static playlist she did not allow, completely leaned on DMO objects. At plej-sheet change, it was necessary to rebuild anew all XML the description. All that could be made there, it to suppose fragments of clips on tracks and to set passages. As always at MS, it there was piece Internet Explorer, therefore it  and was cut. On how many I remember, it is engine MovieMaker-a. As Editing Services, below, all the graph would be all  artifacts, as at the author of a topic leaned on DirectShow.

5

Re: DirectShow: the audio escapes forward

Hello, Videoman, you wrote: V> We used Editing Services 15 years ago. Anything from enumerated, except compilation of the static playlist she did not allow, completely leaned on DMO objects. At plej-sheet change, it was necessary to rebuild anew all XML the description. All that could be made there, it to suppose fragments of clips on tracks and to set passages. As always at MS, it there was piece Internet Explorer, therefore it  and was cut. On how many I remember, it is engine MovieMaker-a. V> As Editing Services, below, all the graph would be all  artifacts, as at the author of a topic leaned on DirectShow. An engine movie maker'a, yes. IE there there is nothing absolutely. I on it did non-linear . Besides XML (it was the foolish scanty approach) there was normal COM API, it was possible to change  dynamic. And speed of playing too changed, how much I remember. And to save pieces of video without  was able even.

6

Re: DirectShow: the audio escapes forward

Hello, D. Mon, you wrote: And speed of playing too changed, how much I remember. And to save pieces of video without  was able even. Speed changed, but not arbitrarily and not back. In case of brakes as at the author of a topic, video and a sound will be also . Without  to us it was possible to do only Wmv as possibility was only with support from outside  and .