LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 02-06-2007, 11:10 PM   #1
sanjay417
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:192.168.1.225 & port 1220 & file I am trying to play is rtsp://192.168.3.225/sample_50kbit.3gp)

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://192.168.1.225/sample_50kbit.3gp /TrackID=3) and video (e.g. rtsp://192.168.1.225/ 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.
 
  


Reply


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


All times are GMT -5. The time now is 05:17 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration