Found a tool implementing exactly this logic: https://github.com/mxmlnkn/ratarmount
Here is PoC in python using awesome indexed_gzip library: import indexed_gzip as igzip import tarfile import json import os import argparse import time # File extensions for our index files GZIP_INDEX_EXT = '.gzi' TAR_MANIFEST_EXT = '.json' def create_index(tar_gz_path, force=False): """ Creates a GZIP index (.gzi) and a TAR manifest (.json). This is a "slow" one-time operation per archive. This can be done simultaneously with listing of archive contents. """ gzip_index_path = tar_gz_path + GZIP_INDEX_EXT...
.tar.gz random access
See also: https://sourceforge.net/p/qmmp-dev/tickets/1173/
Possible solution: https://sourceforge.net/p/qmmp-dev/tickets/1191/
Select default ANSI charset based on system locale
For vice versa see https://sourceforge.net/p/sevenzip/support-requests/81/
Extracting several files from .tar.gzip without unpacking all archive