Go Back   FileForums > Game Backup > PC Games > PC Games - CD/DVD Conversions > Conversion Tutorials

Reply
 
Thread Tools Display Modes
  #151  
Old 23-05-2024, 04:46
brispuss brispuss is offline
Registered User
 
Join Date: Nov 2019
Location: Petone
Posts: 47
Thanks: 11
Thanked 2 Times in 2 Posts
brispuss is on a distinguished road
Attempting to Compress MP4 Files

As per the title, I'm trying to compress MP4 files, but I'm having difficulty in getting any compression of the files so far.

From searches here, it appears that SREP should be used first followed by LZMA for final compression. SREP settings as per posts at this forum could be -a2 -m5f -l512. Unknown what setting(s) used for the LZMA compression.

How to achieve best possible compression of MP4 files please?

Using SREP, LZMA, and/or other precompressors/compressors?

And what settings should be used (in general) for compressing MP4 files?

Process MP4 files via Freearc? 7zip? or what?

Thank you.

Sample MP4 video enclosed for testing.

Test Video
Reply With Quote
Sponsored Links
  #152  
Old 23-05-2024, 07:07
Masquerade's Avatar
Masquerade Masquerade is offline
Registered User
 
Join Date: Jan 2020
Location: Monte d'Or
Posts: 1,159
Thanks: 284
Thanked 1,350 Times in 612 Posts
Masquerade is on a distinguished road
^^
Videos don't compress well, so just use srep. Anything more is wasting time.

The only video type that compresses only kind of well is bink videos (bik, bk2) because there is a specialised tool for it (bink_pack).

Other video formats, mp4, webm, avi etc etc etc all just use srep.
Reply With Quote
  #153  
Old 23-05-2024, 07:13
KaktoR's Avatar
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: From outer space
Posts: 4,378
Thanks: 1,076
Thanked 6,977 Times in 2,641 Posts
KaktoR is on a distinguished road
Uhm, MP4 videos are already compressed, at least the video stream.
__________________
Haters gonna hate
Reply With Quote
  #154  
Old 23-05-2024, 08:01
brispuss brispuss is offline
Registered User
 
Join Date: Nov 2019
Location: Petone
Posts: 47
Thanks: 11
Thanked 2 Times in 2 Posts
brispuss is on a distinguished road
Thank you for the comments.

Until a specific compression tool for MP4 comes along, I'll have to use SREP.

Any particular or best options to set for SREP like -m3f or -m5f etc etc? Or do the options depend on the actual encoder used for the MP4 container?
Reply With Quote
  #155  
Old 23-05-2024, 14:11
Masquerade's Avatar
Masquerade Masquerade is offline
Registered User
 
Join Date: Jan 2020
Location: Monte d'Or
Posts: 1,159
Thanks: 284
Thanked 1,350 Times in 612 Posts
Masquerade is on a distinguished road
^^
There will never be a specific tool for mp4, as kaktor said the video is already compressed.
Reply With Quote
  #156  
Old 23-05-2024, 18:50
brispuss brispuss is offline
Registered User
 
Join Date: Nov 2019
Location: Petone
Posts: 47
Thanks: 11
Thanked 2 Times in 2 Posts
brispuss is on a distinguished road
OK.

Suggested SREP settings?
Reply With Quote
  #157  
Old 24-05-2024, 03:28
Masquerade's Avatar
Masquerade Masquerade is offline
Registered User
 
Join Date: Jan 2020
Location: Monte d'Or
Posts: 1,159
Thanks: 284
Thanked 1,350 Times in 612 Posts
Masquerade is on a distinguished road
^^
-m3f is fine.
Reply With Quote
The Following User Says Thank You to Masquerade For This Useful Post:
brispuss (24-05-2024)
  #158  
Old 24-05-2024, 03:40
kj911 kj911 is offline
Registered User
 
Join Date: Apr 2010
Location: world
Posts: 181
Thanks: 132
Thanked 63 Times in 44 Posts
kj911 is on a distinguished road
Try it find FAILSAFE methods? (ignored many srep errors during decompression.)

Trying use internal LZP compression faster than lzma and betterly compress, incompressibble data or use very strong compressors. Likely LOLZ or RAZOR. This two compressors very goodly compress hardly compressibble data than others. (avg. 0.5-1% to upto 2-3% or better.) Default srep settings = bigger results this sample file. Try l32-64 settings need more memory from biggest datasets and not guaranteed failsafe decompress, except minimally better ratio. MSC/BPK/OGGRE not enhance ratio/compress the data.

Few quick test results added in TXT-file. (zipped)
Attached Files
File Type: zip mp4.txt.zip (2.1 KB, 4 views)

Last edited by kj911; 24-05-2024 at 03:43. Reason: typo fix
Reply With Quote
The Following User Says Thank You to kj911 For This Useful Post:
brispuss (24-05-2024)
  #159  
Old 24-05-2024, 04:50
brispuss brispuss is offline
Registered User
 
Join Date: Nov 2019
Location: Petone
Posts: 47
Thanks: 11
Thanked 2 Times in 2 Posts
brispuss is on a distinguished road
Quote:
Originally Posted by kj911 View Post
Try it find FAILSAFE methods? (ignored many srep errors during decompression.)

Trying use internal LZP compression faster than lzma and betterly compress, incompressibble data or use very strong compressors. Likely LOLZ or RAZOR. This two compressors very goodly compress hardly compressibble data than others. (avg. 0.5-1% to upto 2-3% or better.) Default srep settings = bigger results this sample file. Try l32-64 settings need more memory from biggest datasets and not guaranteed failsafe decompress, except minimally better ratio. MSC/BPK/OGGRE not enhance ratio/compress the data.

Few quick test results added in TXT-file. (zipped)
Thanks for the detailed tests!

Yes, it seems at this time from doing some testing myself now, that Razor compressor seems to give the best compression result so far!
Reply With Quote
  #160  
Old 24-05-2024, 05:05
brispuss brispuss is offline
Registered User
 
Join Date: Nov 2019
Location: Petone
Posts: 47
Thanks: 11
Thanked 2 Times in 2 Posts
brispuss is on a distinguished road
FreeARC Command Line Usage

Partly in relation to compressing MP4 files, I'm experimenting with the command line version of FreeARC (Arc.exe) and using additional (pre)compressors in association with Arc.

For example I've tried this manually entered command -

Code:
Arc a -m=srep wigo.mp4 wigo.mp4.srep
but get error message -

"Arc: user error (Unsupported compression method or error in parameters: srep)"

Srep executable (srep.exe) is located next to arc.exe within the same directory.

And arc.ini (located within same directory as arc.exe and srep.exe) has an entry for srep as follows -

Code:
[External compressor:srep]
packcmd   = srep    {options} $$arcdatafile$$.tmp -         <stdout>
unpackcmd = srep -d {options} -                   - <stdin> <stdout>
So what is wrong with the command to run srep via freearc?
Reply With Quote
  #161  
Old 24-05-2024, 05:28
kj911 kj911 is offline
Registered User
 
Join Date: Apr 2010
Location: world
Posts: 181
Thanks: 132
Thanked 63 Times in 44 Posts
kj911 is on a distinguished road
Try it: -msrep or -msrep+lolz/razor or -msrep:m3f:l512(or smaller l# values):a0
This CMD window navigated to FreeArc\bin directory? Or use FreeArc GUI? Win7 x64 differentially resolve cmd/path related commands than XP.*

See the 'mp4.txt' file used commands...

*Very strong example:

WinXP: move data.bin data.7z --> equal to "ren" console commands.
Win7: move data.bin data.7z --> worser scenario, destroying the whole file! Better scenario, workly rename.
Reply With Quote
  #162  
Old 25-05-2024, 03:32
brispuss brispuss is offline
Registered User
 
Join Date: Nov 2019
Location: Petone
Posts: 47
Thanks: 11
Thanked 2 Times in 2 Posts
brispuss is on a distinguished road
Thanks for the comments.

I'm suspecting the issue of arc not working properly may be because I have several other programs that also have the arc.exe included. So when I attempt to run the arc command, the command may be selecting another location of arc.exe and not the arc.exe within the Freearc directory.

Presently trying to remove paths to the other programs containing arc.exe and see how things go. And trying to run arc.exe from the current working directory of Freearc\bin.

EDIT: I managed to get Arc.exe working with methods by copying Arc.exe and Arc.ini and srep to the current working directory which contained the test mp4 file.

The initial problem of Arc not working properly was most likely due to the presence of multiple copies of Arc.exe and Arc.ini within several other programs which were causing conflicts with each other.

EDIT2: Did some compression tests on 70 MP4 files ranging in size from 547 kB to 11,351 kB.

Code:
Compressor      Commands/Options      Compressed Size    Compression Time
Original 70 files - - - - - - >       171,978,453

srep            -m3f -a2              157,392,930              1.979
mcm             -x13                  156,938,895            296.611
nz              a -co -m4g            156,859,691             20.767
nz              a -cO -m4g            156,823,772             25.322
nz              a -cc -m4g            156,766,025            171.793
lolzslow        as per arc.ini        156,693,448            207.330
arc             a -m=razorx           156,681,739             87.046
fp8 v6          -8                    156,625,221           1038.185
lolz            per arc.ini + lm4     156,546,454            318.421
lolzslow        per arc.ini + lm4     154,768,632            320.855
NOTE: for compression options using lm4 for files, files fail to decompress! Do not use lm4 option!

There is not a great difference in final compressed file sizes regardless of compression method.

Not really the best ideal final compressed sizes, but MP4 files are difficult to compress.

Last edited by brispuss; 29-05-2024 at 19:23. Reason: Extra data in red added
Reply With Quote
The Following User Says Thank You to brispuss For This Useful Post:
kj911 (28-05-2024)
  #163  
Old 28-05-2024, 04:56
kj911 kj911 is offline
Registered User
 
Join Date: Apr 2010
Location: world
Posts: 181
Thanks: 132
Thanked 63 Times in 44 Posts
kj911 is on a distinguished road
brispuss: LOLZ is the right choice. (especially if x86 compatibility is also a consideration, when unpacking.)

Can someone share the very first LOLZ version? (2016.12. release.) Is this version "compressor" 32 or 64 bit? (cls-lolz.dll found only x86 version.)

brispuss: Don't use different configuration than lm0 compression settings! Other lm1-2-3-4 its used (not totally removed) any special/older methods from LOLZ code, its works only from compression, will create not decompresseable archives. Try it testing lm4 compressed archives, still crashing now! (Yes, this ratios better than lm0 mode only...)

Last edited by kj911; 29-05-2024 at 13:27. Reason: any reactions from previous post updated
Reply With Quote
The Following User Says Thank You to kj911 For This Useful Post:
brispuss (29-05-2024)
  #164  
Old 29-05-2024, 19:27
brispuss brispuss is offline
Registered User
 
Join Date: Nov 2019
Location: Petone
Posts: 47
Thanks: 11
Thanked 2 Times in 2 Posts
brispuss is on a distinguished road
Yes, thanks for this caution!

I was about to make a post as to why files compressed using the lm4 option failed to decompress!

It is now my understanding that the option lm is not fully/properly setup/coded, so that is why files fail to decompress with lm compression options lm1 ~ lm4. lm0 option seems to be fine though.
Reply With Quote
  #165  
Old 30-05-2024, 07:08
brispuss brispuss is offline
Registered User
 
Join Date: Nov 2019
Location: Petone
Posts: 47
Thanks: 11
Thanked 2 Times in 2 Posts
brispuss is on a distinguished road
File Types and/or (Pre)Compressors

I was reading a text document about a week ago that describes in some detail the file types, and/or the (pre)compressors used in compression. I didn't finish reading this document which I thought I had on my computer, but I can't seem to find the document now!? I think I originally downloaded this document from this forum, but on searching this forum, I can't seem to find this document (again)?

The document author was I think someone fairly well known on this forum (Razor?, Masquerade?, Panker?, Blackfire?, or ??), but I'm not sure.

Can anyone please locate this document?

Thank you.
Reply With Quote
Reply

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
newbie question bigorangekitty PS2 Games 5 15-05-2002 16:51
Total newbie...dumb question...patience please! xxxMikexxx PC Games 1 02-04-2002 23:19
newbie question troi22 PS2 Games 1 28-02-2002 03:18
newbie PAL patch question for Pro Evolution Purple Cowboy PS2 Games 2 19-02-2002 12:39
Newbie question...how do I know if the game I've downloaded is Autoboot or not? konichiwa DC Games 1 23-11-2000 20:35



All times are GMT -7. The time now is 16:12.


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