9 Replies - 26842 Views - Last Post: 09 November 2009 - 11:42 AM Rate Topic: -----

#1 EnigmaSAC  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 5
  • Joined: 11-October 09

Java Video Streaming using RTSP

Posted 11 October 2009 - 03:44 PM

Hi, here is my problem, no I don't want you people to do my homework :P.

I want to create an application that allows me to stream/send video using wifi and RTSP.

Here is an example: I'll have an application that sends the video thought wifi to a module that will receive it and decode it for a tv to play it.

Where can I find the information I need?

Thanks for your time!!

Is This A Good Question/Topic? 0
  • +

Replies To: Java Video Streaming using RTSP

#2 pbl  Icon User is offline

  • There is nothing you can't do with a JTable
  • member icon

Reputation: 8332
  • View blog
  • Posts: 31,857
  • Joined: 06-March 08

Re: Java Video Streaming using RTSP

Posted 11 October 2009 - 08:21 PM

Can somebody tell me why, beginners in Java programming, always start by trying to do a program with the most complicated scenario ? Playing with video is not easy. If you do not have Java expertise do not start with that
Was This Post Helpful? 0
  • +
  • -

#3 EnigmaSAC  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 5
  • Joined: 11-October 09

Re: Java Video Streaming using RTSP

Posted 12 October 2009 - 05:39 AM

View Postpbl, on 11 Oct, 2009 - 07:21 PM, said:

Can somebody tell me why, beginners in Java programming, always start by trying to do a program with the most complicated scenario ? Playing with video is not easy. If you do not have Java expertise do not start with that


jjajajaja I do have some experience programing, if you know where I can find the information please tell me. I'm not saying it is easy, if it were I would'n be asking for help.
Was This Post Helpful? 0
  • +
  • -

#4 pbl  Icon User is offline

  • There is nothing you can't do with a JTable
  • member icon

Reputation: 8332
  • View blog
  • Posts: 31,857
  • Joined: 06-March 08

Re: Java Video Streaming using RTSP

Posted 12 October 2009 - 05:46 PM

View PostEnigmaSAC, on 12 Oct, 2009 - 04:39 AM, said:

View Postpbl, on 11 Oct, 2009 - 07:21 PM, said:

Can somebody tell me why, beginners in Java programming, always start by trying to do a program with the most complicated scenario ? Playing with video is not easy. If you do not have Java expertise do not start with that


jjajajaja I do have some experience programing, if you know where I can find the information please tell me. I'm not saying it is easy, if it were I would'n be asking for help.

Excuse my ignorance
I have been programming in Java for the last 8 years... and I think I know a lot about Java
but I never heard of RTSP
Was This Post Helpful? 0
  • +
  • -

#5 macosxnerd101  Icon User is online

  • Self-Trained Economist
  • member icon




Reputation: 10567
  • View blog
  • Posts: 39,117
  • Joined: 27-December 08

Re: Java Video Streaming using RTSP

Posted 12 October 2009 - 05:50 PM

Here is a link to Sun documentation about Java and RTSP:
http://java.sun.com/...pport-rtsp.html

@Pbl: RTSP- Real Time Streaming Protocol. I've never heard of it before either.
Was This Post Helpful? 0
  • +
  • -

#6 giuseppe105  Icon User is offline

  • D.I.C Regular

Reputation: 9
  • View blog
  • Posts: 444
  • Joined: 15-May 08

Re: Java Video Streaming using RTSP

Posted 12 October 2009 - 07:41 PM

What dose the wifi part have to do with anything? We supposed to tell you how to make drivers for the wifi chips?

Wouldn't the java docs have information to how to use it?

This post has been edited by giuseppe105: 12 October 2009 - 07:42 PM

Was This Post Helpful? 0
  • +
  • -

#7 EnigmaSAC  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 5
  • Joined: 11-October 09

Re: Java Video Streaming using RTSP

Posted 12 October 2009 - 08:40 PM

Hi, first thanks for your help.

pbl, I would never call you or any of you guys ignorants, I'm coming to you because I know that you are real programmers, nothing like me :P

macosxnerd101, thanks for the link, I've seen it before actually. But what I need is a little bit different.

What I want to do, like I said before, is an application that will allow me to use my laptop's wifi to send a stream of video to a wifi module, that I already have, and then decode the wifi signal so that a TV can play it.

I know it might be difficult to understand... It is difficult to explain...

I'm talking about controlling what you see on a tv from a computer that is not necessarily on the same room.

macosxnerd101, I said I needed something different because what you send me is more like a internet server from which I'll be watching the files but using another computer. The project I'm talking about has only ONE computer, the server that controls everything.

Those it makes any sense now? :S

Again THANKS for your time and your help.
Was This Post Helpful? 0
  • +
  • -

#8 macosxnerd101  Icon User is online

  • Self-Trained Economist
  • member icon




Reputation: 10567
  • View blog
  • Posts: 39,117
  • Joined: 27-December 08

Re: Java Video Streaming using RTSP

Posted 12 October 2009 - 09:17 PM

So if I understand you correctly, your server is acting as the broadcasater and your TV as the reciever. If this is correct, I found another framework you may be able to use. It is an alternative to the JMF and is open source. Here is the link:

http://fmj-sf.net/roadmap.php
Was This Post Helpful? 0
  • +
  • -

#9 EnigmaSAC  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 5
  • Joined: 11-October 09

Re: Java Video Streaming using RTSP

Posted 25 October 2009 - 01:52 PM

I think that I've been giving the problem a wrong orientation. I've been trying to solve it as a whole and not in smaller parts.

Lets start from the beginning. How can I separate a file into many small packets to be send?

Is there a difference between, for example, text files and video files on this matter?
Was This Post Helpful? 0
  • +
  • -

#10 EnigmaSAC  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 5
  • Joined: 11-October 09

Re: Java Video Streaming using RTSP

Posted 09 November 2009 - 11:42 AM

Ok, I see nobody has respond lately but here's some code for you guys

		RTPManager rtpManager = RTPManager.newInstance();
		
		SessionAddress localAddress = new SessionAddress();
		
		rtpmanager.initialize(localAddress);
		
		InetAddress ipAddress = netAddress.getByName("192.168.1.33");
		
		SessionAddress remoteAddress = SessionAddress(ipAddress, 3000);
			  
		rtpManager.addTarget(remoteAddress);
		
		DataSource dataOutput = createDataSource();
		
		SenddStream sendStream = rtpSession.createSendStream(dataOutput,1);
		sendStream.start();

// Here


		rtpManager.removeTarget( remoteAddress, "client disconnected.");

		rtpManager.dispose();





Where you see the Here comment is where I'm supposed to do the sending... which I;m not sure how and about the dataOutput how can I use it?
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1