VideoHelp Forum




Poll: will this work or no?

Be advised that this is a public poll: other users can see the choice(s) you selected.

+ Reply to Thread
Results 1 to 4 of 4
  1. Hello I have a Baic idea for a new codec. I don't know if will compress or if my idea is really flawed and i'm just too dumb to notice it. I attached a really basic outline of how the finnal encoded information would be formatted. But the problem is i have limited knowledge of programming and no idea of where to start programming a codec so i am looking for help / suggestions on how to make it a plausible codec if it would actually work. Any sugestion or questions feel free to e-mail me. any help i would be very grateful for. If any one is wondering what i intended this codec to be i want it to be a totally lossless codec. thanks for the help in advance.
    ssj2_goha
    Quote Quote  
  2. Member SaSi's Avatar
    Join Date
    Jan 2003
    Location
    Hellas
    Search Comp PM
    If you feel that your programming skills are limited then I would suggest that you skip the effort.

    Writing a codec is a programming project of high complexity, and requires sound programming skills and experiennce.

    In addition, a codec by definition needs to be as efficient a program as possible. You want it to have a minimum overhead in processing. This requires experience and understanding of tricky programming feats that help increase the efficiency of the code.

    Finally, the type of data a codec will handle (binary) as well as the above efficiency considerations, dictate the use of high efficiency programming tools. As a baseline, you should consider C or C++ or C#. If, however, you would like to write a lossless codec for a purpose (i.e. make a better one compared to LZW or YUV) then you should highly consider assembly.

    If you are starving to do some programming, why don't you start by writing a decoder for a well documented encoding algorithm? It will be simpler, real time performance may not be crucial and it will help you understand both how to program as well as how the codec design works.
    The more I learn, the more I come to realize how little it is I know.
    Quote Quote  
  3. Member edDV's Avatar
    Join Date
    Mar 2004
    Location
    Northern California, USA
    Search Comp PM
    If public domain, just describe your algorithm in detail.
    Recommends: Kiva.org - Loans that change lives.
    http://www.kiva.org/about
    Quote Quote  
  4. here is what i thought of thus far for specifications. I'm intending it for 2D animated videos.
    [edit]
    Codec specification V. 0.01A

    1. Codec Header
    1.1 Formatbinary)
    1.1.1 Version (4 bits)
    0000 Version 0.01A

    1.1.2 Pallets (2 bits)

    1.1.3 Frame rate (2 bits)
    00 - 15 FPS
    01 - 29.97 FPS
    10 - 30 FPS
    11 - 25 FPS

    1.1.4 Height & Width (1 byte each)
    Must be divisible by 8

    1.1.5 Frame groups (2 bytes)
    Each frame group is worth 8 frames

    1.2 Color pallets of 256 colors (768 bytes per pallet 3KB max)
    3 bytes per color
    XXXX XXXX – Red value
    XXXX XXXX – Green value
    XXXX XXXX – Blue value

    1.3 Frame format Byte string
    1 Bit per Frame
    1 – Delta Frame
    0 – Alpha Frame

    2. Frame format
    2.1 Alpha frame (Height * Width * 2 Bytes)
    2 bytes per pixel describing color of pixel. First byte is pallet number. Second Byte is color number.

    2.2 Delta Frame
    2.2.1 pixel string 1 bit per pixel
    0 – same color
    1 – Color change

    2.2.2 2 Color bytes for each -1- in pixel string

    3. header examples
    version 0.01A file that has 4 pallets 30 FPS and 320 X 240 and 39600 frames (22 min)
    0000 1110 000 0001 0100 0000 0000 0000 1111 0000 0001 0011 0101 0110 – binary
    07 01 40 00 F0 13 56 – HEX

    i tried to attach this as a file but it didn't work so i just pased it into the message
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!