Go Back   FileForums > Off Topic > Software

Thread Tools Display Modes
Old 17-10-2018, 06:00
bieliqus bieliqus is offline
Registered User
Join Date: Oct 2018
Location: Poland
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
bieliqus is on a distinguished road
Compressing other files


I'm new to compression and i wonder if i can use game compression methods to compress other files like pdf or media (avi, jpg etc). If so can anybody give me a hint what should i look into first? There are so many methods and tutorials here that is hard to know from which i should start with.

Sorry for noob question but i'm just starting my adventure with archives.

Reply With Quote
Sponsored Links
Old 17-10-2018, 13:08
Joe Forster/STA's Avatar
Joe Forster/STA Joe Forster/STA is offline
Senior forum member
Join Date: Nov 2000
Location: Hungary
Posts: 9,768
Thanks: 13
Thanked 320 Times in 206 Posts
Joe Forster/STA is on a distinguished road
Originally Posted by bieliqus View Post
I'm new to compression and i wonder if i can use game compression methods to compress other files like pdf or media (avi, jpg etc).
In general, the answer is "no". In particular, PDF and JPEG are old standards so they have to rely on old algorithms to remain compatible with files created years or decades ago.

PDF compression methods are:
- RLE (run length encoding);
- LZW (Lempel-Ziv-Welch, modified from Lempel & Ziv's original LZ77 [from 1977!]);
- deflate (gzip, zip; mostly LZ77 plus Huffman encoding).

- DCT (discrete cosine transformation; not a compression method in itself, it rather "smooths" the picture so that it can be compressed better; it also results in "artifacts", the loss of original fine details and emergence of fine details that weren't originally there);
- RLE;
- Huffman encoding or arithmetic coding.

AVI is not a compression method but a container format. You can put into it video and audio compressed, in theory, with any compression algorithm ("codec" = encoding/decoding). The codec's code ("FourCC" = four character code) is stored in the AVI header; upon reading this information, the player will have to decide how to decompress the video and audio. Common (not all!) AVI video codecs are: MPEG-4 (DivX, XviD), H.264 (MPEG-4 AVC) and MJPEG (Motion JPEG); common audio codes: MP3, AC3 and DTS.

Games, on the other hand, don't have to be compatible with anything else as they contain their own decompression algorithms. This algorithm can be the very latest, sometimes with bugs. Established standards can't afford that.
Joe Forster/STA
For more information, see the FileForums forum rules and the PC Games forum FAQ!
Don't contact me via E-mail or PM to ask for help with anything other than patches (or software in general) done by me, otherwise your request may be deleted without any reply!
Homepage: http://sta.c64.org, E-mail: [email protected]; for attachments, send compressed (ZIP or RAR) files only, otherwise your E-mail will bounce back!

Last edited by Joe Forster/STA; 17-10-2018 at 13:15.
Reply With Quote
Old 10-10-2021, 04:23
kj911 kj911 is offline
Registered User
Join Date: Apr 2010
Location: world
Posts: 152
Thanks: 103
Thanked 54 Times in 36 Posts
kj911 is on a distinguished road
MJPEG video recompression

See testing now: https://encode.su/threads/3716-MJPEG...-recompression

Compression rate ~1/3 size than original. Really?? Very likely fast and XP SP3 compatible MJPEG lossless video recompression tools. (Like Ocarina's 0.6 MPEG-2 recompressor.)

small test from XP use AVI.exe and precomp. (scanmjpeg.exe and splitmjpg.exe don't work.)

Source: ANIM0346.AVI
Size: 82 770 846 byte

CMD command: AVI.exe ANIM0346.AVI
Generated RAW file: video.mp3
Size: 74 912 294 byte

Crunching by Precomp 0.48 32bit (KPS version)
CMD command: precomp048.32.exe -cn video.mp3
Output PCF file size: 62 115 776 byte

Precomp results:
Time: 50 second(s), 344 millisecond(s)

Recompressed streams: 2180/2180
JPG streams: 2180/2180
Reply With Quote
The Following User Says Thank You to kj911 For This Useful Post:
Gehrman (21-07-2022)

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Please: I need help on ripping PS2 Movie Files Cyber Akuma PS2 Games 24 09-03-2005 22:28
Isobuster (got all the files of a game) now how do i Burn all the files? m0LteK DC Games 0 29-04-2001 09:43

All times are GMT -7. The time now is 18:55.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2000-2020, FileForums @ https://fileforums.com