RTP/UDP/IP video streaming

219 views
Skip to first unread message

Mona Naghashi

unread,
Apr 5, 2019, 10:29:50 AM4/5/19
to OMNeT++ Users
Hello guys,
I am performing a UDP video streaming using OMNeT++ and INET framework.
In the .ini file, I have used "UDPVideoStreamSvr" and "UDPVideoStreamCli" as server and client udpApp. I am wondering how can I use RTP protocol in the application layer of my simulation to have RTP/UDP/IP video streaming? I know that there is RTPApplication.cc class in the applications folder of inet, but I am not sure how to add it in my .ini file.

Thanks in advance,
Mona

Jiri Vlasak

unread,
Apr 11, 2019, 4:25:51 AM4/11/19
to omn...@googlegroups.com
Dear Mona,
feel free to get inspired by INET examples, i.e. `inet/examples/rtp/unicast`.
In `unicast.ned` file you can see how to use the `RTPHost` module and in
`omnetpp.ini` how to set the parameters.

Have a nice day,
jiri

> Thanks in advance,
> Mona
>
> --
> You received this message because you are subscribed to the Google Groups "OMNeT++ Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to omnetpp+u...@googlegroups.com.
> Visit this group at https://groups.google.com/group/omnetpp.
> For more options, visit https://groups.google.com/d/optout.

Mona Naghashi

unread,
Apr 17, 2019, 11:57:24 AM4/17/19
to omn...@googlegroups.com
Dear Jiri, 
Thank you so much for your response.
Actually, my problem is not how to use a module. I am wondering how to use RTPHost while I am using  "UDPVideoStreamSvr" and "UDPVideoStreamCli" as server and client udpApp. In fact, we can have one module as a server or client app. So, my question is how to have UDPvideoStreamingCli app for client and RTP protocol together? I mean how to add the RTP protocol in the following configuration?
Here you can find my .ini configurations for the client and server:

**.client[*].numUdpApps = 1
**.client[*].udpApp[*].typename = "UDPVideoStreamCli"
**.client[*].udpApp[*].serverAddress = "server"
**.client[*].udpApp[*].serverPort = 1000
**.client[*].udpApp[*].startTime = 0s

**.server.numUdpApps = 1
**.server.udpApp[*].typename = "UDPVideoStreamSvr"
**.server.udpApp[*].localPort = 1000
**.server.udpApp[*].videoSize = 10MiB
**.server.udpApp[*].sendInterval = normal(10ms, 1ms)
**.server.udpApp[*].packetLen = 30B




Sincerely, Mona










On Thursday, April 11, 2019 at 4:25:51 AM UTC-4, Jiri Vlasak wrote:
Dear Mona,

On Fri, Apr 05, 2019 at 07:29:50AM -0700, Mona Naghashi wrote:
> Hello guys,
> I am performing a UDP video streaming using OMNeT++ and INET framework.
> In the .ini file, I have used "UDPVideoStreamSvr" and "UDPVideoStreamCli"
> as server and client udpApp. I am wondering how can I use RTP protocol in
> the application layer of my simulation to have RTP/UDP/IP video streaming?
> I know that there is RTPApplication.cc class in the applications folder of
> inet, but I am not sure how to add it in my .ini file.

feel free to get inspired by INET examples, i.e. `inet/examples/rtp/unicast`.
In `unicast.ned` file you can see how to use the `RTPHost` module and in
`omnetpp.ini` how to set the parameters.

Have a nice day,
jiri

> Thanks in advance,
> Mona
>
> --
> You received this message because you are subscribed to the Google Groups "OMNeT++ Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to omn...@googlegroups.com.

Sdn Mer

unread,
Apr 17, 2019, 1:07:24 PM4/17/19
to omn...@googlegroups.com
hello .
can you help me please by emample source code in WSN by omnet++ or ns3/ns2 (example of protocols).
thanks 

Le mer. 17 avr. 2019 à 17:57, Mona Naghashi <mona.n...@gmail.com> a écrit :
Dear Jiri, 
Thank you so much for your response.
Actually, my problem is not how to use a module. I am wondering how to use RTPHost while I am using  "UDPVideoStreamSvr" and "UDPVideoStreamCli" as server and client udpApp. In fact, we can have one module as a server or client app. So, my question is how to have UDPvideoStreamingCli app for client and RTP protocol together?

To unsubscribe from this group and stop receiving emails from it, send an email to omnetpp+u...@googlegroups.com.

Jiri Vlasak

unread,
Apr 23, 2019, 5:31:33 AM4/23/19
to omn...@googlegroups.com
Dear Mona,

On Wed, Apr 17, 2019 at 08:57:24AM -0700, Mona Naghashi wrote:
> Dear Jiri,
> Thank you so much for your response.
> Actually, my problem is not how to use a module. I am wondering how to use
> RTPHost while I am using "UDPVideoStreamSvr" and "UDPVideoStreamCli" as
> server and client udpApp. In fact, we can have one module as a server or
> client app. So, my question is how to have UDPvideoStreamingCli app for
> client and RTP protocol together?

I think that the easiest way is to create new compound module based on
`StandardHost` that will contain all the necessary simple modules, i.e.
`UDPVideoStreamSvr`, `RTPApplication`, `RTP`, and `RTCP` submodules.

Because of simple modules used, you will need to import
`inet.applications.udpapp.UDPVideoStreamSvr`,
`inet.applications.rtpapp.RTPApplication`, `inet.transportlayer.rtp.RTCP`, and
`inet.transportlayer.rtp.RTP`.

Feel free to let me know if you need some example.
> > an email to omn...@googlegroups.com <javascript:>.
> > > Visit this group at https://groups.google.com/group/omnetpp.
> > > For more options, visit https://groups.google.com/d/optout.
> >
> >
>
> --
> You received this message because you are subscribed to the Google Groups "OMNeT++ Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to omnetpp+u...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages