Results 1 to 26 of 26

Thread: How's too of making a compressed file, of some sorts

  1. #1

    Thread Starter
    PowerPoster ThEiMp's Avatar
    Join Date
    Dec 2007
    Location
    Take The PCI Bus Across To The CPU!!
    Posts
    3,948

    How's too of making a compressed file, of some sorts

    Dear VBFormers,

    I am looking for having my MKV files, to then be compressed and then embedded into a RES file, that runs into the VB6 project files. I am looking to have it made as a DCR file, after it has been finished being written in as source code. then looking to have the VB6 project, to then be compiled as a OCX and then built as a stand-alone file in Adobe Director, if that makes any sense, also then
    I have a huge free products range, of computer software in which you can download using any kind of 64-Bit Web Browser. Also there is coming a Social Networking section that I am making on my Website...

    |Ambra Productions Inc. | The Black Sun Society | The Black Shield | Ambra College | Church of the Black Sun | Ambra Productions Inc's Homepage | Boomtick Venues: Ambar Nightclub, Jack Rabbit Slim's, Villa Nightclub and Lucy's Love Shack | Pasta Ambra | Fish Feast Company | Wallet Wizard | Ambrose Liquor | Ambar Tavern | Ambra University | Ambra Cheese |

    Do you wish to do unpaid work for me??? If so, the PM me on this Forum, and then we can get to work, programming for the future of computers go by the name of ThEiMp. This is my ghost writers name. Also my nickname, means that I am: The Imperial of the Technology Industry, so then to make it really short, I just then wrote: The Imp, which is where I get the nickname from...

  2. #2
    PowerPoster Arnoutdv's Avatar
    Join Date
    Oct 2013
    Posts
    6,747

    Re: How's too of making a compressed file, of some sorts

    A MKV is already compressed. You can't compress it any further.

    And the rest makes no sense to me.

  3. #3
    PowerPoster Elroy's Avatar
    Join Date
    Jun 2014
    Location
    Near Nashville TN
    Posts
    10,915

    Re: How's too of making a compressed file, of some sorts

    Not much of it makes sense to me either, but yes, MKV files are already compressed. I've found that any further attempts to compress them typically results in a larger file because of the overhead needed for the compression.

    Regarding stuffing them in the resources, go for it. Just use VB6's Add-In, and put them in there, no problem. And getting them out as a byte array, and doing what you want with that byte array is also no problem, and this is true for running in IDE or compiled. It all works just fine.

    Regarding the rest, I really don't understand. I suppose I could say one thing: VB6 compiled OCX files can have resources just like an EXE can. In fact, regardless of how it's compiled, it can have a resources section.
    Any software I post in these forums written by me is provided "AS IS" without warranty of any kind, expressed or implied, and permission is hereby granted, free of charge and without restriction, to any person obtaining a copy. To all, peace and happiness.

  4. #4
    PowerPoster
    Join Date
    Feb 2012
    Location
    West Virginia
    Posts
    14,206

    Re: How's too of making a compressed file, of some sorts

    I would not recommend putting movie files in a res file. All you are really doing is hiding the movie while inflating the size of the exe and you will find that you have very little room in the res file to do this as compressed movie files are usually 100s of megs or more in size.

  5. #5
    PowerPoster Elroy's Avatar
    Join Date
    Jun 2014
    Location
    Near Nashville TN
    Posts
    10,915

    Re: How's too of making a compressed file, of some sorts

    Quote Originally Posted by DataMiser View Post
    I would not recommend putting movie files in a res file. All you are really doing is hiding the movie while inflating the size of the exe and you will find that you have very little room in the res file to do this as compressed movie files are usually 100s of megs or more in size.
    I've never understood people's reluctance to put things into resources. AFAIK, there's no limit to the size of files you can put in there (maybe 2GB or something), and they're not read into memory until you request them. So, it's just "data" that's sitting there on disk (in the EXE) until you need it for something.

    The only problem I've ever had with files in resources is that it would round the size of the file up to the nearest double-word for files over 65520 bytes. But, typically, that doesn't cause any problems (but it can in certain circumstances). But, beyond that, I've never understood all the negativity toward doing this.
    Any software I post in these forums written by me is provided "AS IS" without warranty of any kind, expressed or implied, and permission is hereby granted, free of charge and without restriction, to any person obtaining a copy. To all, peace and happiness.

  6. #6

    Thread Starter
    PowerPoster ThEiMp's Avatar
    Join Date
    Dec 2007
    Location
    Take The PCI Bus Across To The CPU!!
    Posts
    3,948

    Re: How's too of making a compressed file, of some sorts

    Quote Originally Posted by Elroy View Post
    Not much of it makes sense to me either, but yes, MKV files are already compressed. I've found that any further attempts to compress them typically results in a larger file because of the overhead needed for the compression.

    Regarding stuffing them in the resources, go for it. Just use VB6's Add-In, and put them in there, no problem. And getting them out as a byte array, and doing what you want with that byte array is also no problem, and this is true for running in IDE or compiled. It all works just fine.

    Regarding the rest, I really don't understand. I suppose I could say one thing: VB6 compiled OCX files can have resources just like an EXE can. In fact, regardless of how it's compiled, it can have a resources section.
    What is the name of the add-in that is able to compress files, i have never seen such an add-in, then so
    I have a huge free products range, of computer software in which you can download using any kind of 64-Bit Web Browser. Also there is coming a Social Networking section that I am making on my Website...

    |Ambra Productions Inc. | The Black Sun Society | The Black Shield | Ambra College | Church of the Black Sun | Ambra Productions Inc's Homepage | Boomtick Venues: Ambar Nightclub, Jack Rabbit Slim's, Villa Nightclub and Lucy's Love Shack | Pasta Ambra | Fish Feast Company | Wallet Wizard | Ambrose Liquor | Ambar Tavern | Ambra University | Ambra Cheese |

    Do you wish to do unpaid work for me??? If so, the PM me on this Forum, and then we can get to work, programming for the future of computers go by the name of ThEiMp. This is my ghost writers name. Also my nickname, means that I am: The Imperial of the Technology Industry, so then to make it really short, I just then wrote: The Imp, which is where I get the nickname from...

  7. #7
    PowerPoster
    Join Date
    Feb 2012
    Location
    West Virginia
    Posts
    14,206

    Re: How's too of making a compressed file, of some sorts

    The add in mentioned is for adding to the res file. It is not a compression utility and as mentioned a couple of times already in this thread those MKV and many other video format files are already compressed so you gain nothing by trying to compress them often they will get larger when you try.

  8. #8

    Thread Starter
    PowerPoster ThEiMp's Avatar
    Join Date
    Dec 2007
    Location
    Take The PCI Bus Across To The CPU!!
    Posts
    3,948

    Re: How's too of making a compressed file, of some sorts

    Man!!

    I was told that i could be able to compress them to about 100Bytes, then so. is this not true or totally false fiction, then so???
    I have a huge free products range, of computer software in which you can download using any kind of 64-Bit Web Browser. Also there is coming a Social Networking section that I am making on my Website...

    |Ambra Productions Inc. | The Black Sun Society | The Black Shield | Ambra College | Church of the Black Sun | Ambra Productions Inc's Homepage | Boomtick Venues: Ambar Nightclub, Jack Rabbit Slim's, Villa Nightclub and Lucy's Love Shack | Pasta Ambra | Fish Feast Company | Wallet Wizard | Ambrose Liquor | Ambar Tavern | Ambra University | Ambra Cheese |

    Do you wish to do unpaid work for me??? If so, the PM me on this Forum, and then we can get to work, programming for the future of computers go by the name of ThEiMp. This is my ghost writers name. Also my nickname, means that I am: The Imperial of the Technology Industry, so then to make it really short, I just then wrote: The Imp, which is where I get the nickname from...

  9. #9
    PowerPoster
    Join Date
    Aug 2010
    Location
    Canada
    Posts
    2,897

    Re: How's too of making a compressed file, of some sorts

    Anybody else ever get the sense that this is Dilettante's "Andy Kaufman" account?

  10. #10

    Thread Starter
    PowerPoster ThEiMp's Avatar
    Join Date
    Dec 2007
    Location
    Take The PCI Bus Across To The CPU!!
    Posts
    3,948

    Re: How's too of making a compressed file, of some sorts

    Quote Originally Posted by jpbro View Post
    Anybody else ever get the sense that this is Dilettante's "Andy Kaufman" account?
    who are you talking about, i am my own person, here so. my name is Richard Graeme Ambra and i work and live in Perth, WA also then so...

    Name:  Avatar.jpg
Views: 402
Size:  4.4 KB
    I have a huge free products range, of computer software in which you can download using any kind of 64-Bit Web Browser. Also there is coming a Social Networking section that I am making on my Website...

    |Ambra Productions Inc. | The Black Sun Society | The Black Shield | Ambra College | Church of the Black Sun | Ambra Productions Inc's Homepage | Boomtick Venues: Ambar Nightclub, Jack Rabbit Slim's, Villa Nightclub and Lucy's Love Shack | Pasta Ambra | Fish Feast Company | Wallet Wizard | Ambrose Liquor | Ambar Tavern | Ambra University | Ambra Cheese |

    Do you wish to do unpaid work for me??? If so, the PM me on this Forum, and then we can get to work, programming for the future of computers go by the name of ThEiMp. This is my ghost writers name. Also my nickname, means that I am: The Imperial of the Technology Industry, so then to make it really short, I just then wrote: The Imp, which is where I get the nickname from...

  11. #11
    PowerPoster
    Join Date
    Feb 2012
    Location
    West Virginia
    Posts
    14,206

    Re: How's too of making a compressed file, of some sorts

    Quote Originally Posted by ThEiMp View Post
    Man!!

    I was told that i could be able to compress them to about 100Bytes, then so. is this not true or totally false fiction, then so???
    Total fiction

  12. #12

    Thread Starter
    PowerPoster ThEiMp's Avatar
    Join Date
    Dec 2007
    Location
    Take The PCI Bus Across To The CPU!!
    Posts
    3,948

    Re: How's too of making a compressed file, of some sorts

    Crikey Moses!!
    I have a huge free products range, of computer software in which you can download using any kind of 64-Bit Web Browser. Also there is coming a Social Networking section that I am making on my Website...

    |Ambra Productions Inc. | The Black Sun Society | The Black Shield | Ambra College | Church of the Black Sun | Ambra Productions Inc's Homepage | Boomtick Venues: Ambar Nightclub, Jack Rabbit Slim's, Villa Nightclub and Lucy's Love Shack | Pasta Ambra | Fish Feast Company | Wallet Wizard | Ambrose Liquor | Ambar Tavern | Ambra University | Ambra Cheese |

    Do you wish to do unpaid work for me??? If so, the PM me on this Forum, and then we can get to work, programming for the future of computers go by the name of ThEiMp. This is my ghost writers name. Also my nickname, means that I am: The Imperial of the Technology Industry, so then to make it really short, I just then wrote: The Imp, which is where I get the nickname from...

  13. #13
    PowerPoster PlausiblyDamp's Avatar
    Join Date
    Dec 2016
    Location
    Pontypool, Wales
    Posts
    2,958

    Re: How's too of making a compressed file, of some sorts

    Quote Originally Posted by ThEiMp View Post
    Man!!

    I was told that i could be able to compress them to about 100Bytes, then so. is this not true or totally false fiction, then so???
    So if a multiple megabyte mkv film could be compressed to 100 bytes why would we not be using this format instead of mkv? mkv is already a compressed format, you aren't going to get one compressed to 100 bytes unless it started off slightly smaller than 100 bytes.

  14. #14
    PowerPoster
    Join Date
    Feb 2012
    Location
    West Virginia
    Posts
    14,206

    Re: How's too of making a compressed file, of some sorts

    You could not even get a decent quality screen shot compressed to 100 bytes.

  15. #15
    PowerPoster Arnoutdv's Avatar
    Join Date
    Oct 2013
    Posts
    6,747

    Re: How's too of making a compressed file, of some sorts

    Most of the ThEiMp posts are about his magical compression routines for movies, using his MovieDirector tool.
    Everytime he's confusing compression with hash values.

  16. #16
    PowerPoster wqweto's Avatar
    Join Date
    May 2011
    Location
    Sofia, Bulgaria
    Posts
    6,192

    Re: How's too of making a compressed file, of some sorts

    Quote Originally Posted by Arnoutdv View Post
    Everytime he's confusing compression with hash values.
    That would be too easy explanation. The waters here are way deeper.

    cheers,
    </wqw>

  17. #17
    PowerPoster Elroy's Avatar
    Join Date
    Jun 2014
    Location
    Near Nashville TN
    Posts
    10,915

    Re: How's too of making a compressed file, of some sorts

    Not to throw gas on the fire (but I'm bored, so I will) ... did you know that it actually might be possible to compress a movie to 100 bytes? It would probably take an inordinate amount of time to do it (or we may need to wait until quantum computers are a bit better), but it's possibly doable.

    For one, we'd have to decide if we're okay with some level of lossy (versus lossless). But here's the idea. First, make a massive 2D image of the movie. (Hopefully, that's imaginable by most.) And then, decide on some fractal algorithm. And then, start searching the fractal for a near (or exact match) of the pattern that represents your movie. Once found, you just take X,Y coordinates of the centroid of your massive 2D image, and that's your compression information. Basically, all you need is a code for the fractal algorithm, the size of the 2D image, and the fractal coordinates, and you've got what you need.

    It's very possible that your X,Y fractal coordinates won't fit into 100 bytes, but they may. In any event, they'd take far less than the original file size.

    But, it's not like we've currently got any such compression algorithm. So, this is all just theoretical. Under thoughts of generosity, maybe this is what someone suggested to ThEiMp.

    EDIT; ThEiMp, I must say though, the naïveté of some of your questions is a bit startling. But I suppose we all have our own levels of naïveté. However, aren't you someone who once suggested that you could knock out an alternative to the VB6 IDE in a relatively short amount of time?
    Last edited by Elroy; Jan 4th, 2022 at 12:03 PM.
    Any software I post in these forums written by me is provided "AS IS" without warranty of any kind, expressed or implied, and permission is hereby granted, free of charge and without restriction, to any person obtaining a copy. To all, peace and happiness.

  18. #18
    Frenzied Member
    Join Date
    Mar 2008
    Posts
    1,210

    Re: How's too of making a compressed file, of some sorts

    Blah

  19. #19
    New Member
    Join Date
    Jan 2022
    Posts
    2

    Re: How's too of making a compressed file, of some sorts

    3700+ posts in 15 years, is this an elaborate troll?

  20. #20
    Addicted Member jj2007's Avatar
    Join Date
    Dec 2015
    Posts
    206

    Question Re: How's too of making a compressed file, of some sorts

    Quote Originally Posted by ThEiMp View Post
    I was told that i could be able to compress them to about 100Bytes, then so. is this not true or totally false fiction, then so???
    Who told you that, Albert?
    Last edited by jj2007; Jan 30th, 2022 at 05:37 PM.

  21. #21
    The Idiot
    Join Date
    Dec 2014
    Posts
    3,014

    Re: How's too of making a compressed file, of some sorts

    mkv is just a container.
    its the video-codec inside that counts. and it can be anything really.
    theres high processing codecs that can be use that makes the files smaller.
    a lot of videos uses mp4 (that is also a container) and mostly the codec is h264.
    but using h265 will make it smaller. but it will also require more cpu/gpu when decoding it when u play it.

    theres also high-progressing sound methods.
    that can resize quite a bit, but again, will require more cpu when decoding it.

    I suggest that you do your homework better.
    this is not something you can ask people make for you,
    you need to start, have a plan (valid one, and possible one)
    and when you get stuck, you can ask , and usually with a small function or if you need assistance for some methods.

    usually you ask for the whole thing. and that means weeks if not months of work.
    nobody will do that for you.
    Last edited by baka; Jan 31st, 2022 at 03:29 PM.

  22. #22
    Angel of Code Niya's Avatar
    Join Date
    Nov 2011
    Posts
    9,017

    Re: How's too of making a compressed file, of some sorts

    Quote Originally Posted by EmmaPortwood View Post
    3700+ posts in 15 years, is this an elaborate troll?
    No one is this determined to troll. Even if this were they case, there are far better places that VBForums to troll like this.

    The impression I get is that he is a non-English speaker using Google Translate.
    Treeview with NodeAdded/NodesRemoved events | BlinkLabel control | Calculate Permutations | Object Enums | ComboBox with centered items | .Net Internals article(not mine) | Wizard Control | Understanding Multi-Threading | Simple file compression | Demon Arena

    Copy/move files using Windows Shell | I'm not wanted

    C++ programmers will dismiss you as a cretinous simpleton for your inability to keep track of pointers chained 6 levels deep and Java programmers will pillory you for buying into the evils of Microsoft. Meanwhile C# programmers will get paid just a little bit more than you for writing exactly the same code and VB6 programmers will continue to whitter on about "footprints". - FunkyDexter

    There's just no reason to use garbage like InputBox. - jmcilhinney

    The threads I start are Niya and Olaf free zones. No arguing about the benefits of VB6 over .NET here please. Happiness must reign. - yereverluvinuncleber

  23. #23
    Addicted Member jj2007's Avatar
    Join Date
    Dec 2015
    Posts
    206

    Re: How's too of making a compressed file, of some sorts

    Quote Originally Posted by EmmaPortwood View Post
    3700+ posts in 15 years, is this an elaborate troll?
    Kind of. Albert Redditt is well-known in the FreeBasic forum for his endless attempts to find the magic formula for compression.

  24. #24
    PowerPoster Arnoutdv's Avatar
    Join Date
    Oct 2013
    Posts
    6,747

    Re: How's too of making a compressed file, of some sorts

    But there is a magic compression method
    Sort the the data on a byte level then use a mix of delta and run length encoding. And repeat these steps in a loop.

  25. #25
    PowerPoster wqweto's Avatar
    Join Date
    May 2011
    Location
    Sofia, Bulgaria
    Posts
    6,192

    Re: How's too of making a compressed file, of some sorts

    Quote Originally Posted by Albert
    I'm making some headway on compressing random data...I'm getting 0.98% , less than 1.0% first run..
    The second run turns 1,000 bytes to 987.. but then it starts to expand it , after that.
    How come?! LOL

    Reality train hits hard :-))

    cheers,
    </wqw>

  26. #26
    PowerPoster Elroy's Avatar
    Join Date
    Jun 2014
    Location
    Near Nashville TN
    Posts
    10,915

    Re: How's too of making a compressed file, of some sorts

    Just wait on quantum computers. They'll do it.
    Any software I post in these forums written by me is provided "AS IS" without warranty of any kind, expressed or implied, and permission is hereby granted, free of charge and without restriction, to any person obtaining a copy. To all, peace and happiness.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width