[Reposted] How to modify Performance Test

2 posts / 0 new
Last post
Offline
Last seen: 10 years 12 months ago
Joined: 09/29/2013
Posts: 5
[Reposted] How to modify Performance Test

I build performance test example and I run it. Every thing is okay. 

 I want to simulat video streaming. Each frame has a diffrent size and of course each frame will be sent using multiple messages. 

What type of modification should I make for such test?

 

rose's picture
Offline
Last seen: 3 years 4 months ago
Joined: 08/22/2011
Posts: 148

Hello Alshaboti, 

This document might help you (and it has source code and XML configuration you can use):

http://www.rti.com/resources/usecases/streaming-video.html

The IDL used in this example is below.  It allocates large frames, but only sends the actual size of the frame. 

// 1024 * 1024 is the maximum frame size
// Data will be allocated at this size, but
// only the actual size of the frame will
// be sent.
const MAX_BUFFER_SIZE = 1048576;

struct VideoStream {
    // This allows a subscriber to differentiate between different video
    // publishers that are publishing the same data on the same Topic.
    long stream_id; //@key

    // Some video formats may require metadata to be sent with the binary
    // video data, such as flags or a frame sequence_number.
    unsigned long flags;
    unsigned long sequence_number;

    // This contains the video buffers
    sequence <octet, MAX_BUFFER_SIZE> frame; 
};

 

Thank you!

Rose