Re: Script to conditionally find and compress files recursively

Liste des GroupesRevenir à col misc 
Sujet : Re: Script to conditionally find and compress files recursively
De : nospam (at) *nospam* example.net (D)
Groupes : comp.os.linux.misc
Date : 13. Jun 2024, 10:55:23
Autres entêtes
Organisation : i2pn2 (i2pn.org)
Message-ID : <647f0226-265e-2757-bd2a-3aa89de38107@example.net>
References : 1 2 3 4 5
On Thu, 13 Jun 2024, J Newman wrote:

On 12/06/2024 16:13, D wrote:
  On Wed, 12 Jun 2024, Richard Kettlewell wrote:
 
Grant Taylor <gtaylor@tnetconsulting.net> writes:
On 6/11/24 01:53, J Newman wrote:
Any suggestions on how to proceed?
 As others have said, it's very difficult to tell within the first five
seconds what the ultimate compression ratio will be.
 Not just difficult but impossible in general: the input file could
change character in its second half, switching the overall result from
that that is (for example) a gzip win to an xz win.
 
 This is true! The only thing I can imagine are parsing the file type, and from that file type, drawing conclusions about the compressability of the data, or doing a flawed statistical analysis, but as said, the end could be vastly different from the start.
>
OK good point...as mentioned elsewhere my experience is with compressing video files with lzma.
>
But if we accept that the script will make mistakes sometimes in choosing the right algorithm for compression, do you suggest parsing the file type, or trying to compress each file for the first 5 seconds, as the option with the least errors in choosing the right compression algorithm?
>
Hmm, I'd say parsing file types first, and perhaps have a little database that maps file type to compression algorithm, and if that doesn't yield anything, proceed with "brute force".

Date Sujet#  Auteur
11 Jun 24 * Script to conditionally find and compress files recursively16J Newman
11 Jun 24 +- Re: Script to conditionally find and compress files recursively1D
11 Jun 24 +- Re: Script to conditionally find and compress files recursively1Joe Beanfish
12 Jun 24 +* Re: Script to conditionally find and compress files recursively12Grant Taylor
12 Jun 24 i+* Re: Script to conditionally find and compress files recursively6Richard Kettlewell
12 Jun 24 ii`* Re: Script to conditionally find and compress files recursively5D
13 Jun 24 ii `* Re: Script to conditionally find and compress files recursively4J Newman
13 Jun 24 ii  `* Re: Script to conditionally find and compress files recursively3D
14 Jun 24 ii   `* Re: Script to conditionally find and compress files recursively2Grant Taylor
14 Jun 24 ii    `- Re: Script to conditionally find and compress files recursively1D
13 Jun 24 i`* Re: Script to conditionally find and compress files recursively5J Newman
13 Jun 24 i `* Re: Script to conditionally find and compress files recursively4Anssi Saari
13 Jun 24 i  +- Re: Script to conditionally find and compress files recursively1D
14 Jun 24 i  `* Re: Script to conditionally find and compress files recursively2Computer Nerd Kev
14 Jun 24 i   `- Re: Script to conditionally find and compress files recursively1Computer Nerd Kev
15 Jun 24 `- Re: Script to conditionally find and compress files recursively1J Newman

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal