• Post Reply Bookmark Topic Watch Topic
  • New Topic

Order: h.264 streaming on socket  RSS feed

 
Adam Gramowski
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We need class both on receiver and sender side that are going to be used for video streaming (only images) in h.264 protocol or if you know better one – than in another.

On sender side we need a class that, lets’ say, is called „Sender” with a constructor in which we will put height and width of sending images, time interval in ms with which we will send next frame and outputstream for streaming. This class should have also the putCapture(BufferedImage) method. In this method we send next images from the film and we are obliged to realize it with the frequency exactly the same like in the constructor. It means that after creating an object delivered class we will
call putCapure metod as often as we have declared in the constructor and your class (Sender) will send  h.264 data via given OutputStream.

“Receiver” class should be initiated similar to the senders’ one (width, height, targeted frames and expected time in long between the frames) with one difference – despite of OutputStream it should be given in InputStream constructor to streams receiver. In constructor there should be listener object given that has receiveCapture(BufferedImage capture) method that will be called always after receiving next frame. That way you will inform us about next frames. In other words, Recievier class reads data from given InputStream and call receivCapture(BufferedImage) when next frame of video streaming will be received.

Of course on described above InputStream and OutputStream we perform neither before starting streaming nor after any operations. Intentionally I am not showing who in this communication will be server and who the client, I am only showing InputStream and OutputStream streams. Eventually we want to bring two different architectures in which in one of them the Sender connects with server and promptly send the data to it, on the other it is the Receiver who connects with server and the server instantly after connection sends images using stream (as you can guess – it is resend from another client).

As I read the solution for the problem above could be h.264 compression but till now either using JMF or Xuggle I could not implement such solution. All examples are on the files downloaded from the disc and at all was not connected with rtp whatsoever.

For example lets’ use such naming of classes and methods:

public class Sender {

public Sender(int width,int height,long time_interval,OutputStream os) {

}

public void putCapture(BufferedImage capture) {

}
}

And:

public class Receiver {

public Receiver(int width,int height,long time_interval,InputStream os,ReveiverInterface listener) {

}

public static interface ReveiverInterface {
public void receiveCapture(BufferedImage capture);
}
}

Salary: 0,2 BTC
 
Paul Clapham
Sheriff
Posts: 22841
43
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Adam, welcome to the Ranch!

I see a lot of detailed information there, but I don't see a question. You aren't likely to get an answer unless you ask a question, so... Ask away!
 
Adam Gramowski
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Paul,

I am looking for a person who can resolve the problem above or propose a new solution. I am offering 0,2 BTC for this job. Maybe I will find such person here
 
Marco Behler
Author
Ranch Hand
Posts: 93
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Adam,
what exactly is it you are trying to do? I'm no expert at streaming h.264, by all means, but I don't think implementing this sort of stuff from scratch is feasible, not for 0,2BTC. There's probably a ton of software out there which could suit your needs?
 
Adam Gramowski
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Marco! We do not want it to be written from the scratch. We cannot imagine not to use one of existing libraries to resolve that problem. The problem is that we cannot use it to send images throught socket in clients architecture - server. You are asking what exactly do we want to achive - we want in real time send image client-server in two architectures - when the client is the receiver and when the client is the sender.
 
Paul Clapham
Sheriff
Posts: 22841
43
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Adam Gramowski wrote:I am looking for a person who can resolve the problem above or propose a new solution. I am offering 0,2 BTC for this job. Maybe I will find such person here


We have a "Jobs Offered" forum, so I have added your thread to that forum. Maybe you will find a helper there.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!