Home > Archive (Community help, from old helpdesk) > How to implement fast forward fast rewind with visioforge media player?

How to implement fast forward fast rewind with visioforge media player?

Avatar image
Aug 23, 2015
Archive Agent wrote
...
Completed
0
Vote
Reply
23 Answers
Aug 23, 2015
Archive Agent agent wrote
Roman Minyaylov

Hi

Please check Main Demo, Reverse Playback. FF available using SetSpeed() method of API, in Main Demo application Speed control.

on January 29, 2014 11:07
Aug 23, 2015
Archive Agent agent wrote
Luiz Correia

I need a continuous reverse Playback.

on January 29, 2014 14:39
Aug 23, 2015
Archive Agent agent wrote
Roman Minyaylov

You can use AVISynth script with reverse command in Media Player input but this way is not very fast. Backward seeking is always slow on formats with key-frames.

on January 29, 2014 14:51
Aug 23, 2015
Archive Agent agent wrote
Aug 23, 2015
Archive Agent agent wrote
Luiz Correia

This way the file play only in reverse mode? I need to play the video in both directions in 8 speeds.

on January 29, 2014 16:26
Aug 23, 2015
Archive Agent agent wrote
Roman Minyaylov

You can combine into one virtual file that includes both original and reverse part, using AVISynth.

on January 29, 2014 16:33
Aug 23, 2015
Archive Agent agent wrote
Luiz Correia

Sorry, I bought the library yesterday, and still not know all the functions, how do I create a virtual file using AviSynth could show me an example?

on January 29, 2014 17:01
Aug 23, 2015
Archive Agent agent wrote
Roman Minyaylov

AVISynth is 3rd-party tool...

Something like it:

a=DirectShowSource("your file name")

b=Reverse(a)

c = a + b

return c

on January 29, 2014 17:04
Aug 23, 2015
Archive Agent agent wrote
Luiz Correia

The mediaplayer doesn't open the .avs file.

on January 29, 2014 17:23
Aug 23, 2015
Archive Agent agent wrote
Luiz Correia

here a bit of my code:
camera1 and camera2 are MediaPlayer
...

camera1.Video_Renderer = VFVideoRendererWPF.WPF;
camera2.Video_Renderer = VFVideoRendererWPF.WPF;
camera1.Source_Mode = VisioForge.Types.VFMediaPlayerSource.File_DS;
camera2.Source_Mode = VisioForge.Types.VFMediaPlayerSource.File_DS;

...

public void OpenVideo(string fileName1, string fileName2)
{
camera1.FilenamesOrURL.Add(fileName1);
camera2.FilenamesOrURL.Add(fileName2);
camera2Enable = true;

}

...

on January 29, 2014 17:32
Aug 23, 2015
Archive Agent agent wrote
Luiz Correia

The content of my avs file:

a=DirectShowSource("G:\3_10_2013\262BES0210-1SE1\videos\camera1\262BES0210-1SE1.avi")

b=Reverse(a)

c = a + b

return c

on January 29, 2014 17:32
Aug 23, 2015
Archive Agent agent wrote
Roman Minyaylov

AVISynth installed? Can you open your avs file in Windows Media Player?

on January 29, 2014 18:01
Aug 23, 2015
Archive Agent agent wrote
Luiz Correia

AVISynth is installed and I can open avs file in Windows Media Player.

on January 29, 2014 18:17
Aug 23, 2015
Archive Agent agent wrote
Luiz Correia

I'm developing an analysis system of highways through video, the user needs to go forward and backward in the video to find the pathologies of the paviment, there is an easier way to get to do this with MediaPayer ? I bought the library thinking that it has a continuos Reverse playback.

on January 29, 2014 19:01
Aug 23, 2015
Archive Agent agent wrote
Roman Minyaylov

No existing libraries that have reverse playback, it can be implemented using caching like implemented in our SDK. Please check this way.

on January 30, 2014 12:40
Aug 23, 2015
Archive Agent agent wrote
Luiz Correia

Well, there is the revese playback feature in the feature list. That´s the main reason my company got this SDK. For acknowledgment, i just found another one that really does: http://www.medialooks.com/directshow/mfs/

on January 30, 2014 17:12
Aug 23, 2015
Archive Agent agent wrote
Roman Minyaylov

Reverse playback available using caching like you can see in Main Demo...

on January 30, 2014 17:21
Aug 23, 2015
Archive Agent agent wrote
Roman Minyaylov

We can add Medialooks Directshow filter support to our SDK if required.

on January 30, 2014 17:22
Aug 23, 2015
Archive Agent agent wrote
Luiz Correia

That would be nice.

on January 30, 2014 18:30
Aug 23, 2015
Archive Agent agent wrote
Luiz Correia

How long this will be possible?

on January 30, 2014 19:29
Aug 23, 2015
Archive Agent agent wrote
Roman Minyaylov

That's done.

Download latest SDK build - http://visioforge.com/files/regs/visioforge_sdks_installer_dotnet_setup_full2.zip

In WinForms Main Demo select:
Source Mode - Custom Source
Source Filter CLSID - 59088843-CCFF-4EE5-8440-82D903492749

on January 31, 2014 11:53
Aug 23, 2015
Archive Agent agent wrote
Roman Minyaylov

SDK API for WPF is the same as for WinForms for custom source filter usage.

on January 31, 2014 15:43
Aug 23, 2015
Archive Agent agent wrote
Luiz Correia

Thank you, the SDK worked perfectly...

on February 05, 2014 19:42