473,324 Members | 2,567 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

want to use installed codecs for compression in C#

Can i use system codecs for compression and decompression using C#,
anyone have the idea.
also is there any sdk availble to decode or encode the streams to be
transfer to another pc using sockets.

PlZ help me

Regards
Sep 16 '08 #1
3 1499
On Tue, 16 Sep 2008 01:04:45 -0700, Khurram Shakoor
<kh*********@gmail.comwrote:
Can i use system codecs for compression and decompression using C#,
anyone have the idea.
also is there any sdk availble to decode or encode the streams to be
transfer to another pc using sockets.
Can you be more specific? What kind of data? Which codecs?

..NET has a Gzip implementation, and that can be used to compress arbitrary
data. Text data is especially compressible, but you can use the
GzipStream class for any data, and as long as the data's not already
compressed, you should see some significant improvement in size.

Note that most video, audio, and image formats are already compressed and
so running them through another compression is unlikely to help much, and
could in fact result in the data getting larger.

If you're trying to use video or audio codecs, no...I don't think that
..NET has any support for that. But you could use DirectShow, and there's
a managed wrapper for DirectShow. I think it's called DShow.NET or
DirectShow.NET or something like that. You can use Google to find out
more about that.

Pete
Sep 16 '08 #2

i am working on a project which will responsible for sending the
streams to another IP. for that i want codecs to be used to make them
compressed and uncompressed.
codecs may be MPEG4 etc.

we will handle all types of stream like text, audio and video streams
or any ECG Hardware machine streams

Sep 17 '08 #3
On Tue, 16 Sep 2008 20:46:41 -0700, Khurram Shakoor
<kh*********@gmail.comwrote:
i am working on a project which will responsible for sending the
streams to another IP. for that i want codecs to be used to make them
compressed and uncompressed.

codecs may be MPEG4 etc.

we will handle all types of stream like text, audio and video streams
or any ECG Hardware machine streams
You will need to constrain the problem more. The description of data
you've provided is far too broad for there to be one single solution. At
the same time, you'll need to be more specific about the problem
description before you can move to a solution. For example, saying "audio
and video streams" is too vague. Where do those streams come from? Are
they already compressed? What the heck is "any ECG Hardware machine
streams"?

As far as C#/.NET support goes, I believe my previous reply should be
enough to get you started, inasmuch as there's anything in .NET that would
be useful. But honestly, I hope you have a better, more comprehensive
specification for the problem than what you've described in this thread so
far. It's one thing to just move a bunch of bytes from one place to
another, but when you want to start actually processing them, your plan
needs to be able to take into account the wide range of data that might
wind up being moved.

Pete
Sep 17 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Your Name | last post by:
Hi, I have been trying to generate codecs for my language in Python using gencodec.py. The problem is the codec created does not work. Here is the process that I followed. I created a directory...
3
by: Eric Brunel | last post by:
Hi all, I just found a problem in the xreadlines method/module when used with codecs.open: the codec specified in the open does not seem to be taken into account by xreadlines which also returns...
3
by: Ivan Van Laningham | last post by:
Hi All-- As far as I can tell, after looking only at the documentation (and not searching peps etc.), you cannot query the codecs to give you a list of registered codecs, or a list of possible...
3
by: Paul Watson | last post by:
$ python Python 2.4.1 (#1, May 16 2005, 15:19:29) on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import codecs >>> codecs.lookup('ascii') (<built-in...
1
by: Zhongjian Lu | last post by:
Hi Guys, I was processing a UTF-16 coded file with BOM and was not aware of the codecs package at first. I wrote the following code: ===== Code 1============================ for i in...
6
by: Champika Nirosh | last post by:
Hi, I have two machine where I needed to have a extended TCP/IP protocol to make the link between the two machines Mean,I need to write a application that compress every data the machine send...
1
by: David Hughes | last post by:
I used this function successfully with Python 2.4 to alter the encoding of a set of database records from latin-1 to utf-8, but the same program raises an exception using Python 2.5. This small...
0
by: yrogirg | last post by:
Actually, I need utf-8 to utf-8 encoding which would change the text to another keyboard layout (e.g. from english to russian ghbdtn -> ÐÒÉ×ÅÔ) and would not affect other symbols. I`m totally...
2
by: George Sakkis | last post by:
I'm trying to use codecs.open() and I see two issues when I pass encoding='utf8': 1) Newlines are hardcoded to LINEFEED (ascii 10) instead of the platform-specific byte(s). import codecs f =...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.