Media Reader
The Media Reader module allows you to process an image
sequence without having a live camera feed. The module play
accept AVI, WMV, WMA, MPG files and ASF streams. This is useful for processing the same
image sequence over and over in order to test out new modules or experiment with other modules
over the same sequence of images.
Note that with the addition of the ASF stream you can also hook into image streams broadcasts
over the Internet in ASF format. This is similar to the Http Read component
but can accept a different streaming format.
If you have issues playing videos due to missing codecs we recommend that you install the K-Lite Codec pack
which includes many codecs needed for most videos. You can download the codec from here.
Interface
Instructions
1. Filename/Url - Specify the file or url to read in the "Filename/URL" textbox. The media reader can accommodate .avi, .wmv, .mpg, and .asf files.
2. Loop Playback - If you want to loop the playback (only valid for files) then check the "Loop Playback" checkbox.
3. Timeout - On playing videos being streamed over the network a delay is needed in order to allow for network speed fluctuations.
If you are playing videos that are stored locally you can reduce the timeout delay which will also be noticed when the video loops. If you
are playing files over the network and the timeout is too small the video may accidentally restart as a result of a timeout.
Increasing the timeout tells the Media Reader module to wait longer until a new frame arrives over the network before resetting.
3. Playback Speed - To change the playback rate of the video select the appropriate playback speed. Numbers lower than
1 reduce the speed while numbers greater than one increase it. This reduces or increases the time delay between frames.
4. Frame Increment - If you want to skip over the video and only process every other frame set the increment to 2. This will
cause every other frame to be skipped.
5. FPS - Displays the current Frames Per Second that the video is recorded in. This number is needed when using the
Write_AVI module to ensure consistent timing for reading and writing.
6. Skip - To Skip the first or last part of the video configure the "Skip First" and "Skip Last" accordingly. When
the video loops the first X seconds, milliseconds, etc. will be jumped over. Similarly the video will
end X seconds before the actual end of the video. Note that this is not cropping or modifying the
video in any way. There are read only parameters.
7. Time - Displays the current frame time of the video. Changing this value will move the video to that time point.
8. Frames - Displays the current frame number of the video. Changing this value will move the video to that time point.
9. Start - You MUST press the "Start" button to begin playing. Once pressed you can also manually stop
the playback by pressing "Stop" (the "Start" button will change to "Stop" once playing starts). You can also Pause the video
and use the Time, Frames or Slider controls to move the video to a point of interest.
Note that you must press Start for the playback to start streaming. Simply pressing OK
will NOT begin playback. Also be aware that for Internet based streams you need to wait
about 20-30 seconds after pressing the start button for playback to actually start.
Note that if RoboRealm appears to freeze the connection may be down. Wait for about 20 seconds and you will regain control
after the network connection times out.
Variables
VIDEO_FRAME - specifies the frame number of the current video image.
VIDEO_SECONDS - specifies in seconds where the current video frame is within
the video.
VIDEO_TIME - specifies the HH:MM:SS (hours:minutes:seconds) where the current
video frame is within the video.
See Also
Read AVI
HTTP Read
| Media_Reader Related Forum Posts | Last post | Posts | Views |
Media Reader does not open videos in the supported formats
Hi,
I am trying to open videos (320x240) using the media reader module. However, they do not run. I... |
4 months |
8 |
601 |
Media Reader
Hi, I tried to run the Shape Matching tutorial.
I downloaded conveyor.avi from the tutorial but wasn’t able to sta... |
4 months |
4 |
423 |
|