Help answer threads with 0 replies.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


  Search this Thread
Old 02-07-2007, 12:10 AM   #1
LQ Newbie
Registered: Feb 2007
Posts: 6

Rep: Reputation: 0
Help needed in writing streaming client on linux FC6

I want to write my own simple streaming client on Linux Fedora core 6..
Streaming server: Darwin streaming server is running on one system in LAN (IP address: & port 1220 & file I am trying to play is rtsp://

This is what I have done till now for streaming client:
1. First I have created a socket for sending the RTSP protocol commands like OPTIONS,DESCRIBE etc
2. sending the RTSP DESCRIBE command data to server using socket in step 1 and got the response with ' 200 OK'
From the result information, I parsed and prepared url for audio(e.g. rtsp:// /TrackID=3) and video (e.g. rtsp:// sample_50kbit.3gp/TrackID=4) to be used in SETUP command.
3. I send rtsp SETUP command for video only (later i will include for audio also) and got Response as '200 Ok'
Extracted the session ID and port information etc
4. created 2 UDP sockets one for RTP and other for RTCP.
5. send rtsp PLAY command to server and got the response '200 OK'. now server started streaming the data to client.
6. I started reading the data from UDP socket created for RTP in a buffer pointer pBuffer. As per RTP RFC 3550, actual media data will be at (pBuffer + 20) where 20 octet is fixed rtp header size as CC count is 0 here. Please correct if i am wrong.
I need help with respect to following:
1. I think, media data is in encoded form, how to decode this data? I think decoder is already available in system because I can play this file locally.
2. how to put this decoded video data to GUI (my own created window)?
I was trying to understand the existing players code but its extremely difficult to understand.
Please help me how to approach further. Any link, tutorial or existing sample program would be very helpful.
Thanks a lot in advance.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
help needed in writing streaming client sanjay417 Linux - Software 0 02-06-2007 12:58 PM
FC6 linux router / server with win XP client cannot connect to LimeWire (p2p) titel Linux - Networking 2 12-30-2006 09:28 AM
Streaming Web Server advice needed Tectron1 Linux - Software 1 06-15-2005 12:51 PM
How to create .dll in linux like in windows to support client access? samples needed heather27j Linux - Software 1 11-16-2004 05:06 PM
I need a streaming client sokar Linux - Software 5 03-01-2004 03:51 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:03 AM.

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