LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 04-15-2005, 04:30 PM   #1
Elec490
LQ Newbie
 
Registered: Apr 2005
Posts: 13

Rep: Reputation: 0
Transmit images between 2 Java applications


Hi guys,
I am trying to transmit a YUV image between two JMF applications via RTP using the JPEG/RTP format. I think my biggest problem is to understand how to create the DataSource of the transmitter in order to encapsulate the YUV image in it.
How do I do this since the DataSource is usually build using the manager and the CreatedataSource which receives a MediaLocator?

Thanks in advance,

CM
 
Old 04-16-2005, 09:10 AM   #2
sasho
Member
 
Registered: Jan 2005
Distribution: Arch
Posts: 120

Rep: Reputation: 16
I've done something similar (over a socket connection) by using a byte array:
Code:
Socket mySock = new Socket("127.0.0.1", 3000);
				    Image bi = this.createImage(this.getSize().width-180, this.getSize().height);
					printAll(bi.getGraphics());
					String done = "done";
					OutputStream out = mySock.getOutputStream();
           			      GifEncoder myGif = new GifEncoder (bi, out, true);
           			myGif.encode();
					out.write(done.getBytes());
I used "done" to indicate the end of the image. I used the ACME encoders, but back then I didn't know about JAI.

And how about moving this to the programming forum?
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Transmit YUV image between two JMF applications Elec490 Programming 0 04-18-2005 10:36 AM
java applications repository dukeinlondon Linux - Software 3 12-25-2004 11:14 AM
Java-related applications.. Cliekid Yoper 2 12-02-2004 08:29 AM
Images on Java poeta_boy Programming 3 03-03-2004 12:29 AM
best way of handling images in Java secprovider Programming 1 09-22-2003 04:22 PM


All times are GMT -5. The time now is 11:38 AM.

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
Open Source Consulting | Domain Registration