HD Encoding and a new videocard.

Hello all!
I've got a question about HD encoding. My can't even encode Youtube HD, and that is pretty awfull. I know that replacing the processor helps alot, but as I cannot change my processor I want to find other ways to have a better HD encoding.
What might help?
- Extra RAM?
- Better Videocard (Now GeForce FX5200 64MB)
- Something else?
As I do not really like my GeForce FX5200, I want to replace it with an ATI Radeon 9600 128MB. But now I come to the problem that PC cards are most times not supported in a Mac. But I suppose Mac cards a way too expensive for what I actually get. So I thought, maybe the PC version of 9600 wil just work without any flash, but I don't know that, so that's the 2nd question: Are PC version of Radeon 9600 supported in a PowerMac without flashing?
Regards,
Sjors

Hee!
I've got some good news for people who wanna watch HD-movie's in Youtube with a PW G5 (Maybe even a G4). I was reading some articles because I couldn't believe it was true. And it seems Flash is coded well enough:
http://exposureroom.com/members/dannocera.aspx/assets/896fe5598847424caec45cc7fb e43d3b/ and press the HD button, on my PM G5 1.8 GHZ SP I can run this movie well, even though it is flash...
Now the good news: There is a program out called Click4 Flash, which is quite impressive. It automatically blocks Flash content (you first got to click on it before it loads) which spare ALOT of CPU usage (at last, that being said by them). Click4 Flash also support Quick-Time in Youtube, which means you can run HD movie's in quick-time (even streaming)! http://rentzsch.github.com/clicktoflash/
It for now it work pretty nice
Message was edited by: Holograph
Message was edited by: Holograph

Similar Messages

  • Since new update - Adobe Media Encoder and CUDA not working

    CUDA not launching - Premier CC says that only software will work. Media encoder crashes on launch. Re-installed both.
    Nvidia 670 GTX

    What version of Premiere Pro? Include the minor version number (e.g., Premiere Pro CS5.5 with the 5.5.2 update).
    Premier Version 7.2.2 (33)
    Have you installed the recent updates? (If not, you should. They fix a lot of problems.)
    Problem started after I installed the software updated
    What operating system? This should include specific minor version numbers, like "Mac OSX v10.6.8"---not just "Mac".
    Windows 7 Ultimate - SP1
    What kind(s) of source footage? When telling about your source footage, tell us about the codecs, not just the container types. For example, "H.264 in a .mov container", not just "QuickTime".
    REDCODE .r3d from R1 - RedCode 28
    If you are getting error message(s), what is the full text of the error message(s)?
    Adobe Media Encoder Has Crashed - please contact your system administrator. This graphics card is not supported, CUDA disabled.
    What were you doing when the problem occurred?
    Booting premier pro, opening a new project, when trying to render using the encoder
    Has this ever worked before?
    Yes worked fine before 7.2.2 update
    What other software are you running?
    Chrome, Media Player
    Do you have any third-party effects or codecs installed?
    RED Giant Universe is installed
    Tell us about your computer hardware. Be especially certain to tell us about third-party I/O hardware (e.g., AJA, Matrox, Blackmagic, MOTU).
    i7 3930k 12 Core, Nvidia 670 GTX 4GB, 32GB Corsair 1866 RAM, RAID HDD
    Are you using Mercury Playback Engine GPU Acceleration?
    YES - Nvidia 670GTX video card
    Does the problem only happen with your final output, with previews, or both?
    Problem Occurs when rendering the final output for the Medi Encoder and the GPU issue when I open a new project that used to use Mercury
    I also cannot seem to find the file within Premier Pro for "supported Cards" - I had this issue before and I just added my card to this list, this list seems to be missing.
    Thank you.

  • We have an issue when we send a film to the media encoder it crashes about half of the time for no particular reason. Anyone else got that too with Premiere Pro CC and the new Media encoder? Thanks! bedrijfsfilm Companyfilms

    We have an issue when we send a film to the media encoder it crashes about half of the time for no particular reason. Anyone else got that too with Premiere Pro CC and the new Media encoder?

    We have an issue when we send a film to the media encoder it crashes about half of the time for no particular reason
    Anyone else got that too with Premiere Pro CC and the new Media encoder?
    Lack of detailed info makes your question impossible for anyone to answer you!
    eg. ...."Doctor it hurts...anyone else got something that hurts?" 

  • Best practice for encoding and decoding DUT/UUT registers? Class? Cluster? Strings? Bitbanging?

    I am architectecting a LabVIEW system to charactarize silicon devices.  I am trying to decide the best way to enqueue, encode, and decode device commands executed by my test system.
    For example, a ADC or DAC device might come in both I2C and SPI flavors (same part, different interface) and have a large register map which can be represented as register names or the actual binrary value of it's address. 
    I would like my data structure to
    *) be protocol agnostic
    *) have the flexibility to program using either the memonics or hard coded addresses
    *) be agnostic to the hardware which executes the command. (
    *) I would like to enqueue mulitple commands in a row.
    I am thinking a detailed class is my best bet, but are there are examples or best practices already established?

    I agree on the detailed class inherited from a general DUT-class. Especially if you want to mix interfaces you need to keep those as far away from your top vi as possible.
    As to the 4th point i'd implement command-vi's as enque and have a in-class command-queue (or possibly just an array of commands).
    /Y
    LabVIEW 8.2 - 2014
    "Only dead fish swim downstream" - "My life for Kudos!" - "Dumb people repeat old mistakes - smart ones create new ones."
    G# - Free award winning reference based OOP for LV

  • Exporting to Media Encoder and file locating issue

    Ok, Now I've read a LOT of threads trying to find a solution to this but none of them have answered my problem exactly, so here's what I have:
    Running a New computer with a clean install of Windows 7 64 bit and Adobe CS4 Master Suite
    Hardware:
    Dell Precision M6400
    Intel(R) Core(TM)2 Duo CPU  T9900 @ 3.06 Ghz, 3.07 Ghz
    12.0 GB Ram
    Premiere ran fine for a while, but soon I've run into a problem where I try to export to the Media Encoder and I keep getting the error:
    "Could not read from the source. Please check if it has moved or been deleted"  over and over
    I have deleted recently imported media one at a time to try and locate what's causing it since it wasn't doing this before, but no luck.  So I restarted the program but now the Premiere project won't open.  The task bar loads until about 2/3 in and stops there indefinitely, I've left and came back to it 2 hours later and it hadn't moved.  I back tracked and found a previous save that will open, but it still will not export, it still says "Could not read from the source. Please check if it has moved or been deleted".  And as soon as I update anything and save a new file that one will not open either.
    I've tried recompressing each video file into a format I know works well with Premiere but still no difference. 
    This problem has plagued my workflow for a while now and I can't take it anymore.  I've had to restart clean project files to try to work around it but I lose so much progress, and the work around by rendering the premiere file through After effects hasn't worked either.  The error I get there says "Dynamic link server is busy".
    Here's what the problem is not:  It is not because I uninstalled CS3 or any other previous version, I've never had it on this computer.  It's not a plugin problem, I don't have any plugins on this install except for the default ones that Came with Adobe Master Suite for Premiere Pro. 
    Someone please help me, this is ridiculous that I have had to trouble shoot the program this much.  Both CS4 and Windows 7 have been around for over a year now and neither are in Beta Editions

    Wow, sorry, forgive me if I've seen most forums work with a lot less, and your dismissiveness led me to assume you hadn't read my post.
    All of this is new and up do date as far as Adobe and Windows updates go, that's Version 4.2.1.
    My projects for this are all in NTSC Widescreen DV 24P, the particular sequence that I render from is in that format as well, although regardless of which one I use the problem keeps occurring. 
    My renders for my recent purposes have been compressed in .h264, IPOD video Large.  The codec I'm rendering in also doesn't seem to matter, because I've tried this in .avi., .mov, .h264, .wav, etc. and all with various settings that I thought might help, but the encoder quits encoding 4 seconds in and gives me the error that it can't find the media.
    And I didn't mention the media type and what not because it seems irrelevent of what I use this problem keeps happening.  I'm pretty sure it's a problem with the project file or perhaps the media encoder or both.
    And I don't know what you mean by "disks"
    Do I have a Raid set up on my hard disk?  No, I have two 0.5 TB hard drives, Programs on one (C:\) Projects on the other (D:\). 
    What address am I saving the scratch disks to?  I use the default of "same as Project".  Have I tried Clearing it?  Yes.
    I don't think I'm getting at what you're asking.
    And I don't think I've ever used an .xlsm (which is excel?) file and I've definitely never used a Power point project (PPS?) file in my projects.  And they open in their respective programs, although I'm not sure why you asked about that.  Again I'm not sure I know what you mean.
    The Premiere Project (.prproj) file is what I'm trying to open when the progress bar stops at 2/3 the way through and forces me to terminate the process with the task manager to close it.
    It would help to mention that all my projects are animated and I use premiere to cobble them together, so no problems that relate to transferring media from a camera to the computer would apply here.  Most of the files I get out of Maya are in Default .avi or .mov files, and I also use a handful of .wav files for the dialogue and .jpgs for cards and placeholders. 
    I believe that this problem began when I updated a few of the files in my project, but I've been doing that for weeks without incident.  I've been updating them by saving over the old media file with the updated one of the same name, length, and type. 
    I don't work exclusively with Premiere, in fact it's not what I usually use, that would be Final Cut Pro.

  • Encode and Decode 16 bit grayscale image to jpeg2000

    i am trying to convert 10 bit grayscale raw image to jpeg 2000 using J2KImageWriter and i want it to convert back to grayscale raw image but when i am converting it it gives NULL.
    Here is my code
    public class Main {
    public static void main(String[] args) {
    if(args.length!=4)
    System.out.println("\nEnter imagefile height width header\n");
    System.exit(0);
    String filename=args[0];
    int height=Integer.parseInt(args[1]);
    int width=Integer.parseInt(args[2]);
    int header=Integer.parseInt(args[3]);
    try
    //reading the image data
    FileInputStream imagefile=new FileInputStream(filename);
    System.out.println("\nSize of image file:"+imagefile.available());
    System.out.println("\nHeader:"+String.valueOf(header)+" bytes\n");
    imagefile.skip(header);
    short pixels[]=new short[height*width];
    int i,j,k;
    k=0;
    for(i=0;i<height;i++)
    for(j=0;j<width;j++)
    int lsb=imagefile.read();
    int msb=imagefile.read();
    pixels[k]=(short)(msb<<8 | lsb);
    k++;
    //System.out.println(String.valueOf(pixels[i][j]));
    imagefile.close();
    DataBuffer buffer=new DataBufferUShort(pixels,width*height);
    SampleModel sm=RasterFactory.createBandedSampleModel(DataBuffer.TYPE_USHORT,height,width,1);
    Raster raster=RasterFactory.createWritableRaster(sm, buffer,new Point(0,0));
    //imagedata reading complete
    //conversion to jpeg 2000
    String outfile=args[0].substring(0,args[0].lastIndexOf('.'))+".jp2";
    File outimage=new File(outfile);
    ImageOutputStream imout=ImageIO.createImageOutputStream(outimage);
    J2KImageWriteParam j2kparam=new J2KImageWriteParam();
    J2KImageWriterSpi spi=new J2KImageWriterSpi();
    J2KImageWriter j2kwriter=new J2KImageWriter(spi);
    j2kparam.setLossless(true);
    j2kparam.setComponentTransformation(false);
    j2kparam.setEncodingRate(0.5f);
    j2kparam.setFilter(J2KImageWriteParam.FILTER_53);
    j2kparam.setNumDecompositionLevels(3);
    j2kparam.setWriteCodeStreamOnly(true);
    j2kwriter.setOutput(imout);
    j2kwriter.write(null,new IIOImage(raster,null,null),j2kparam);
    imout.close();
    J2KImageReaderSpi j2kspi=new J2KImageReaderSpi();
    J2KImageReader j2kreader=new J2KImageReader(j2kspi);
    ImageInputStream imin=ImageIO.createImageInputStream(outfile);
    j2kreader.setInput(imin, true, false);
    Raster decomp_raster=j2kreader.readRaster(1, null);
    int outputdata[]=new int[width*height];
    decomp_raster.getPixels(0,0,width,height,outputdata);
    FileOutputStream fileout=new FileOutputStream("decomp");
    for(i=0;i<height*width;i++)
    short temp=(short)outputdata;
    fileout.write(Short.valueOf(temp).byteValue());
    Short a=new Short(Short.reverseBytes(temp));
    fileout.write(a.byteValue());
    fileout.close();
    catch(Exception e)
    System.out.println(e.getMessage());
    Can anybody help me with this. Actually i need to study the performance of jpeg2000 compression using different setting of parameters.
    Thanks in advance.......

    Hi,
    I am able to encode and decode the image using J2Kwriter and J2Kreader classes. But now some other issue has came up.
    When compressed losslessly, the new jpeg2000 filesize is 415245 bytes. (My original file is of size 2000000 bytes)
    But when i am doing lossy compression, it results in following file sizes.
    Below 0.5 (encoding rate) - 535 bytes.
    Greater than or equal to 0.5 - 541 bytes.
    I tried with the following values of encoding rate - 0.1, 0.3, 0.5, 0.8, 1, 1000, 100000000, 500000000.
    I m not able to understand why i am getting the same filesize even with different encoding rate.
    How should i set the encoding rate parameter to achieve my target compression ratio.
    Kindly guide me. I will be very thankful to you.
    Preeti

  • URL Encoding and Decoding in OSB

    Hi,
    Do we have out-of-box solution in OSB to decode XML which is URL encoded and encode XML to URL encoding. If so how can I do it.
    This might be basic question. I am unable to figure out. new to OSB.
    Thanks
    Sham.

    Hi Sham,
    Probably these are what you looking for...
    fn-bea:inlinedXML()
    fn-bea:serialize()
    fn-bea:serialize() to represent an XML document as a string
    fn-bea:inlinedXML() to parses textual XML and returns an instance of the XQuery 1.0 Data Model.
    Supported Function Extensions from Oracle
    http://docs.oracle.com/cd/E23943_01/admin.1111/e15867/xquery.htm#i1101407
    Oracle’s XQuery Implementation
    http://docs.oracle.com/cd/E13162_01/odsi/docs10gr3/xquery/extensions.html
    Cheers,
    Vlad
    It is considered good etiquette to reward answerers with points (as "helpful" - 5 pts - or "correct" - 10pts)
    https://forums.oracle.com/forums/ann.jspa?annID=893

  • Premiere Pro CC and the new Mac Pro - are all upgrades necessary?

    Monday I'm ordering the new Mac Pro because my Mid 2012 Mac Pro tower is simply too slow and crashy no matter how much money I sink into it. Thing is, every little upgrade I add onto this new Mac Pro is very expensive, so I want to make sure I don't add anything that won't make a difference in edit performance.
    My ultimate goal is to be able to work with 4k, and even 5k footage in 2014. More and more clients are giving me Red media, and my system right now can't handle it (I have to render proxy files for everything).
    Attached are my hardware upgrade options for my processor and graphics card. These options can only be offered when I order the computer. Neither the processor or the GFX card can be changed by me later. Note that these options alone almost double the computers's price (3600). As of now I assume that getting the fastest everything is the way to go, but is there any reason I should not go this high?
    jesse

    We have an issue when we send a film to the media encoder it crashes about half of the time for no particular reason
    Anyone else got that too with Premiere Pro CC and the new Media encoder?
    Lack of detailed info makes your question impossible for anyone to answer you!
    eg. ...."Doctor it hurts...anyone else got something that hurts?" 

  • DVD Burner keeps encoding and won't burn my file.

    Trying to burn a home made video onto a DVD and when I attempt to do it, it won't go any farther than encoding the video.  I have left it on for 2+ hours letting it encode and it won't get any higher than 60%.  I'm using Windows Movie Maker software and Windows DVD burning software.  There is no way it should be taking this long.  I am using a Toshiba Satellite L355-S7902.  Do I just need to change my DVD burning software or what?  Any help on this matter would be greatly appreciated.  

    I don't think so. I bought new disks yesterday to be sure and the result is the same. Also, when in the drives, none of the disks (old or new) make any kind of not-normal noise. Everything seems normal, except neither computer can burn. Weird!

  • Encode and Decode

    Hai,
    Can i encode the URL rewriting and decode in next page.
    example,
    Qutation.jsp?atdmin_status=y";
    in qutation.jsp can i decode that url for re using the request
    But i want to show some text in URL .is it possible?plz give sample code
    Regards,
    john jayaraj

    Hi,
    I am able to encode and decode the image using J2Kwriter and J2Kreader classes. But now some other issue has came up.
    When compressed losslessly, the new jpeg2000 filesize is 415245 bytes. (My original file is of size 2000000 bytes)
    But when i am doing lossy compression, it results in following file sizes.
    Below 0.5 (encoding rate) - 535 bytes.
    Greater than or equal to 0.5 - 541 bytes.
    I tried with the following values of encoding rate - 0.1, 0.3, 0.5, 0.8, 1, 1000, 100000000, 500000000.
    I m not able to understand why i am getting the same filesize even with different encoding rate.
    How should i set the encoding rate parameter to achieve my target compression ratio.
    Kindly guide me. I will be very thankful to you.
    Preeti

  • Need a new videocard

    Want to buy a new videocard to get the advantages with the Mercury engine.
    But several of the  geforce video cards in the supported list is no longer available:
    http://www.adobe.com/products/premiere/mercury-playback-engine.html
    Do any of the newer Geforce cards work?

    It is very interesting that nVidia does not list a GT 230 in their product list.  There is a laptop GT 230 M.  so I looked at a GT 240 and that antique is so underpowered that it should never be considered for any practical MPE hardware acceleration.
    Take a lok at the GTX 660 if money is a problem.

  • XML Encoder and 1.3

    Has anyone managed to get the new XML Encoder or XML decoder working under 1.3.
    I may not be able to use 1.4 / Merlin for at least a year in my development cycle but would love to use the xml encoder and decoder stuff. Does anyone know if this is possible????

    Using JDK1.3.1 U can use XML parser to parse any XML file, U can still work on JDK1.3 for XML parsing but U should be good at DTD for using DOM.

  • MimeUtility.encode and a custom DataSource

    I have created a custom DataSource, in which I wrap the OutputStream (returned by getOutputStream()) in a MimeUtility.encode call. When I do this, I seem to be getting an encoded MimeBodyPart, but the 'Content-Transfer-Encoding' is wrong. My DataSource code is:
    public class MyDataSource implements DataSource {
        private String _mimeType; // content-type
        private String _encoding;
        private ByteArrayOutputStream _bao;
        /* Create a DataSource from an input stream */
        public MyDataSource(String mimeType, String encoding){
            _mimeType = mimeType;
            _encoding = encoding;
            _bao = new ByteArrayOutputStream();
        * Return an InputStream for the data.
        * Note - a new stream must be returned each time.
        public InputStream getInputStream()
        throws IOException {
            return new
                ByteArrayInputStream(_bao.toByteArray());
        public OutputStream getOutputStream()
        throws IOException {
            OutputStream out = null;
            try {
                out = MimeUtility.encode(_bao, _encoding);
            } catch (MessagingException e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
            return out;
        public String getContentType() {
            return _mimeType;
        public String getName() {
            return "MyDataSource";
    }Now, when I invoke the datasource, I call (shortened):
    _dataSource = new MyDataSource(mimeType, "base64");
    _outStream = _dataSource.getOutputStream();
    /* write some data to the output stream here */
    DataHandler dh = new DataHandler(_dataSource);
    mbp.setDataHandler(dh);
    _multiPart.addBodyPart(mbp);
    _message.setContent(_multiPart);
    _message.setHeader("X-Mailer", "HPDS");
    _message.setSentDate(new Date());
    _message.writeTo(System.out);
    Transport.send(_message);This code was obviously cut down and won't compile, but you get the general idea. When I do this, and I look at the output from the 'writeTo', the data is base64 encoded, but the 'Content-Transfer-Encoding' is set to '7bit'. Now, here's the really wierd thing -- if I change the MyDataSource above to use "7bit" instead of "base64", I get encoded data (I believe that it's base64 encoded, but I'm not positive), and the 'Content-Transfer-Encoding' is set to 'base64'. It looks like the two cases are being swapped?
    Has anyone seen something like this? If I set the 'Content-Transfer-Encoding' explicity by calling:
    mbp.setHeader("Content-Transfer-Encoding", "base64");it works fine. Is this a bug? Or am I just misunderstanding where the 'Content-Transfer-Encoding' comes from.
    TIA,
    - Bill

    OK, I figured it out. This isn't explicitly spelled out in the FAQ, but it turns out that Javamail performs the encoding for you, based on the "Content-Transfer-Encoding" header. I was trying to encode the data inside my datasource, and was getting twice-encoded data. I set the 'getOutputStream' in MyDataSource to not call MimeUtility.encode(), and set the C-T-E header before calling Transport.send(). Now everything is working fine.
    - Bill

  • Base40 encode and decode

    Hi
    I'm looking to compress (and decompress) some already short strings (think about the same amount of text as a search engine might show for a result).
    One of the most effective ways of compressing short strings seems to be base 40 encoding as found in the accepted answer here: http://stackoverflow.com/questions/7389252/shorten-an-already-short-string-in-java
    At least against my data, it seems to outperform LZF and Smaz.
    However, I can't for the life of me figure out how to decode it. I've even found encode and decode implementations in C, but my C is woefully inadequate to derive the Java: http://www.drdobbs.com/embedded-systems/slimming-strings-with-custom-base-40-pac/229400732
    To show willing, here's one of many attempts at writing a method to decode it:
         public String unpack(byte[] input) { //FIXME: No workie.
              ByteArrayInputStream bois = new ByteArrayInputStream(input);
              DataInputStream dis = new DataInputStream(bois);
              StringBuilder sb = new StringBuilder();
              char a,b,c;
              try {
                   while ((a = dis.readChar()) != '\0' && (b = dis.readChar()) != '\0' && (c = dis.readChar()) != '\0') {
                        sb.append(chars.charAt(a % 40));
                        sb.append(chars.charAt(b / 40 % 40));
                        sb.append(chars.charAt(c / 40 / 40));
              } catch (IOException e) {
                   throw new AssertionError(e);
              return sb.toString();
    Could anyone help me out? Thanks in advance.

    Welcome to the forum!
    >
    Could anyone help me out? Thanks in advance.
    >
    Thanks for posting the code that you tried.
    Problem #1 in your code is that you are not following the instructions from the author for decoding
    >
    Read each pair of bytes as a char ch. The first index is ch % 40, the second is ch / 40 % 40 and the last is ch / 40 / 40. Use chars to turn the index into a char. Note; I have swap the order in the code to make it simpler to decode. A 0 means you have reached the end.
    >
    You are reading three characters. Each pair of bytes represents THREE characters. You need to reach ONE character (one pair of bytes) and then break it up into three characters.
    Problem #2 is in the author's code. There is no '0' at the end. The author's code does not add a zero at the end to indicate the end of the string. The author's code also shows that some byte arrays are an odd number of characters long. That means you CANNOT read each pair as there may be a single remaining byte.
    Since you posted the code you were trying I was able to create code that works.
    I created a decode method and call it from the main method and print out the decoded results.
    import java.util.Arrays;
    import java.io.ByteArrayInputStream;
    import java.io.ByteArrayOutputStream;
    import java.io.DataInputStream;
    import java.io.DataOutputStream;
    import java.io.IOException;
    class Encoder {
        public static final int BASE = 40;
        StringBuilder chars = new StringBuilder(BASE);
        byte[] index = new byte[256];
        {     chars.append('\0');
          for (char ch = 'a'; ch <= 'z'; ch++) chars.append(ch);
          for (char ch = '0'; ch <= '9'; ch++) chars.append(ch);
          chars.append("-:.");
          Arrays.fill(index, (byte) -1);
          for (byte i = 0; i < chars.length(); i++)
            index[chars.charAt(i)] = i;
        public byte[] encode(String address) {
            try {
                ByteArrayOutputStream baos = new ByteArrayOutputStream();
                DataOutputStream dos = new DataOutputStream(baos);
                for (int i = 0; i < address.length(); i += 3) {
                    switch (Math.min(3, address.length() - i)) {
                        case 1: // last one.
                            byte b = index[address.charAt(i)];
                            dos.writeByte(b);
                            break;
                        case 2:
                            char ch = (char) ((index[address.charAt(i+1)]) * 40 + index[address.charAt(i)]);
                            dos.writeChar(ch);
                            break;
                        case 3:
                            char ch2 = (char) ((index[address.charAt(i+2)] * 40 + index[address.charAt(i + 1)]) * 40 + index[address.charAt(i)]);
                            dos.writeChar(ch2);
                            break;
                  return baos.toByteArray();
            } catch (IOException e) {
                throw new AssertionError(e);
        public static void main(String[] args) {
            Encoder encoder = new Encoder();
            byte [] encodedBytes;
            String decodedString;
            for (String s : "twitter.com:2122,123.211.80.4:2122,my-domain.se:2121,www.stackoverflow.com:80".split(",")) {
                encodedBytes = encoder.encode(s);
                System.out.println(s + " (" + s.length() + " chars) encoded is " + encodedBytes.length + " bytes.");
                decodedString = encoder.decode(encodedBytes);
                System.out.println("Decoded String is [" + decodedString + "].");
        public String decode(byte[] input) { //FIXME: No workie.
            ByteArrayInputStream bois = new ByteArrayInputStream(input);
            DataInputStream dis = new DataInputStream(bois);
            StringBuilder sb = new StringBuilder();
            char a,b,c;
            int index;
                try {
            for (int i = 0; i < input.length / 2; i++) {
                    a = dis.readChar();
                    index = a % 40;
                    if (index == 0) break;
                    sb.append(chars.charAt(index));
                    index = a / 40 % 40;
                    if (index == 0) break;
                    sb.append(chars.charAt(index));
                    index = a / 40 / 40;
                    if (index == 0) break;
                    sb.append(chars.charAt(index));
            if ((input.length % 2) != 0) {
                index = dis.readByte();
                if (index != 0) sb.append(chars.charAt(index));
                } catch (IOException e) {
                    throw new AssertionError(e);
            return sb.toString();
    twitter.com:2122 (16 chars) encoded is 11 bytes.
    Decoded String is [twitter.com:2122].
    123.211.80.4:2122 (17 chars) encoded is 12 bytes.
    Decoded String is [123.211.80.4:2122].
    my-domain.se:2121 (17 chars) encoded is 12 bytes.
    Decoded String is [my-domain.se:2121].
    www.stackoverflow.com:80 (24 chars) encoded is 16 bytes.
    Decoded String is [www.stackoverflow.com:80].

  • IPad2 and a new MacBook running Lion, Both Devices use the same Apple ID which is a Hotmail eMail id. Can I create a new iCloud eMail Id and use iCloud eMail and continue to use my Hotmail Id for my Apple Id and use it for iTunes, iCloud

    I have an iPad2 and a new MacBook running Mountain Lion. Both Devices use the same Apple ID which is a Hotmail eMail id. Can I create a new iCloud eMail Id and use iCloud eMail and continue to use my current Hotmail Id for my Apple Id for iTunes, iCloud.
    Note, I will use both Hotmail and iCloud eMail.

    Welcome to the Apple Community.
    In order to change your Apple ID or password for your iCloud account on your iOS device, you need to delete the account from your iOS device first, then add it back using your updated details. (Settings > iCloud, scroll down and hit "Delete Account")

Maybe you are looking for