LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-13-2010, 08:42 AM   #1
puneeth bhat
Member
 
Registered: Jan 2010
Posts: 30

Rep: Reputation: 15
Rtp/Rtcp


Is there any good example programs for rtp/rtcp protocol implemented as per RFC 3550.....any link in google which will help me to understand easily..Please help me...Thanks in advance
 
Old 07-13-2010, 08:50 AM   #2
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,235

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
This looks like a perfect example:

ortp, a Real-time Transport Protocol (RTP,RFC3550) library

Last edited by dugan; 07-13-2010 at 09:18 AM.
 
Old 07-14-2010, 06:53 AM   #3
puneeth bhat
Member
 
Registered: Jan 2010
Posts: 30

Original Poster
Rep: Reputation: 15
rtp/rtcp

But how can i stream H.264 payload type in ortp....using NAL unit (header for h.264 payload type),i guess ortp library have not implemented for h.264 streaming...
 
Old 07-14-2010, 09:00 AM   #4
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,235

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
No offense, but that's not at all what you asked for in your first post. You asked for example code that demonstrates implementing a protocol, which means the simplest example possible. I gave that to you. You said nothing about H264 decoding, which is covered by a different RFC (RFC3984) entirely. Please read the following link. It will help you get more out of your time at LQ.

http://catb.org/esr/faqs/smart-questions.html

Anyway, this is how VLC does it:

http://wiki.videolan.org/RTP
http://wiki.videolan.org/LiveMedia
http://www.live555.com/liveMedia/

You know why I didn't post these links up front? Because oRTP was a better match for what you asked for in your first post.

Last edited by dugan; 07-14-2010 at 09:22 AM.
 
Old 07-15-2010, 02:05 AM   #5
puneeth bhat
Member
 
Registered: Jan 2010
Posts: 30

Original Poster
Rep: Reputation: 15
Rtp/Rtcp

I m really thankful to ur links and advice.....I m basically a C developer so it may take little time to understand and use the logic in C++ code....Is there any C program or library with H.264 streaming......Currently i m working in Ip surveillance solution...we have done the very basic rtp...but we r figuring out how to add NAL unit to it and finding out loss packets and also implementing RTCP packets..I have gone through ortp where they have implemented RTP/RTCP...but i didnt find the way how to add NAL units to the packet and decode it at the other end using ORTP...Thanks for ur kind support.
 
Old 07-15-2010, 08:38 AM   #6
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,235

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
Quote:
Originally Posted by puneeth bhat View Post
Is there any C program or library with H.264 streaming......
Actually, there is.

http://lscube.org/libnemesi

This is one of the two libraries that MPlayer can use for streaming (the other one being the aforementioned C++ LiveMedia library).

I shouldn't have to point this out, but both LiveMedia and libnemesi support H264 over RTP.

Last edited by dugan; 07-15-2010 at 09:38 AM.
 
1 members found this post helpful.
Old 07-16-2010, 07:12 AM   #7
puneeth bhat
Member
 
Registered: Jan 2010
Posts: 30

Original Poster
Rep: Reputation: 15
Smile Rtp/rtcp

Thank you Dugan I think this is interesting....libnemesi is in C,i hope this will work for me...i will go through this,i think it works for h.264 streaming and RTCP even,i wl check with ths for sure thank u once again...
 
Old 07-19-2010, 09:12 AM   #8
puneeth bhat
Member
 
Registered: Jan 2010
Posts: 30

Original Poster
Rep: Reputation: 15
Question Rtp/rtcp

HI Dugan i have gone through the library u specified...i have installed it,i have found some examples over there were i have to pass arguments like output file,port and URL,i didnt find anywhere what URL should i pass(its basically a server),i searched in README and INSTALL bt i didnt get any way....can u help in this if u have worked on this before...Thanks in advance
 
Old 07-19-2010, 09:30 AM   #9
puneeth bhat
Member
 
Registered: Jan 2010
Posts: 30

Original Poster
Rep: Reputation: 15
Rtp/rtcp/rtsp

Hi i tried some ways...i tried streaming captured frames to browser and i runned this executable with that browser URL but didnt work out i think something else is required for this which i m unable to findout...Please help me if u have any idea about this...
 
Old 07-19-2010, 10:32 AM   #10
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,235

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
Sorry, Puneeth, but I haven't worked with these libraries before. I only knew about them.

Can't you just look through the MPlayer source and see how they did it?

Last edited by dugan; 07-19-2010 at 10:34 AM.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
rtp puneeth bhat Programming 1 04-09-2010 12:11 PM
rtp streaming maldini1010 Programming 0 02-28-2005 12:14 PM
Rtp Any One? sibtay Linux - Networking 0 08-08-2004 01:32 PM
RTP/RTCP stack max_linuxquesti Linux - Networking 0 12-17-2002 11:57 PM
HTB QOS. udp rtp rtcp. GT-GEO Linux - General 0 03-02-2002 08:29 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration