• Post Reply Bookmark Topic Watch Topic
  • New Topic

byte array compression  RSS feed

 
John Smith
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am currently compressing a byte[] of a video to send over the internet. i have used the deflater.best compression, but haven't noticed any performance increases.

when no compression happens it takes a little longer over the internet to reach it's destination.

when doing compression it takes longer for the compression/decompression to happen that it adds to the overall time, making it equal in time to using no compression.

i am currently sending video and images from a client to server, and then back to the client when requested. i didn't know if some of the other deflater compression types would work better, such as huffman or best_speed. i haven't come across any other ideas, but am looking to speed up the transmission as it take roughly 1:30-2:00 minutes to transmit the videos I am sending. and to view the video that is much longer than wanted.

i also read about the CompressedBlockOutputStream and CompressedBlockInputStream and wasn't sure if they would work well either.

thanks
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Doesnt the Java Media Framework provide video compression? I found lots of interesting links by a google search for "video java compression"

Bill
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!