以存储模式压缩的 rar 文件的文件结构是什么

发布于 2024-08-17 13:41:39 字数 121 浏览 1 评论 0原文

我有很多以存储模式存储的 rar,这意味着它们没有被压缩。我想打开它们并读取“存储”在 rar 中的部分文件。我想如果我知道文件的偏移量我就可以打开它们。

C# 中的一些东西会做得很好。我在网上找不到任何东西。

I have many rars that a stored in store mode, that means they aren't compressed. I want to open them and read parts of the file that is "stored" in the rar. I think I can just open them if I knew the offset to the files.

Something in C# will do very well. I can't find anything on the web.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

萤火眠眠 2024-08-24 13:41:39

文件格式是公开的。直接来自马口:RarLabs

The file format is publicly available. Straight from the horse's mouth: RarLabs

泪是无色的血 2024-08-24 13:41:39

该文件格式是公开的,但我在他们的网站上找不到它的文本。

安装 WinRAR 时,包含技术信息的文本文件将放置在 Program Files WinRAR 目录中。
您还可以从 RAR 下载页面 和该 tar.gz 文件中下载“RAR for Linux”您也可以找到 technote.txt 文件:

 RAR 版本 4.00 - 技术信息
          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

下面描述的存档格式仅对 1.50 以后的版本有效

ReScene 是一个用于从提取的文件重新创建 rar 存档的项目。为此,您需要一个 .srr 文件。源代码可用。您可能想看看RarStream.cs。该文件用于 MKV/AVI ReSample:它可以重建几个视频样本文件使用 .srs 和原始视频文件的兆字节,仍然可以打包在分割的 rar 存档中。

如果您想要其他语言的类似内容,我建议您查看 RarLab 的 unrar 源代码或以下项目之一。它们是开源的,并且能够播放 RAR 存档中的视频文件。

其他有趣的项目:

  • RARFileSource(一个 DirectShow 过滤器,可让大多数视频播放器读取 RAR
    动态文件)
  • rarfs (用于挂载未压缩 RAR 存档的 Fuse 模块)

另一个想法是有一个查看一些支持.cbr 格式的漫画书阅读器。这只是一个 rar 存档,其中存储有图像。

The file format is publicly available, but I can't find it as text on their site.

When you install WinRAR, a text file with the technical information is put inside the Program Files WinRAR directory.
You can also download "RAR for Linux" from the RAR download page and in that tar.gz file you can find the technote.txt file too:

          RAR version 4.00 - Technical information
          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

THE ARCHIVE FORMAT DESCRIBED BELOW IS ONLY VALID FOR VERSIONS SINCE 1.50

ReScene is a project for recreating rar archives from the extracted files. You need a .srr file for this. The source code is available. You may want to take a look at RarStream.cs. That file is used in MKV/AVI ReSample: it can reconstruct a sample video file of a couple of megabytes using a .srs and the original video file, that can still be packed in split rar archives.

If you want something similar in other languages, I suggest you look at the unrar source from RarLab or at one of the following projects. They are open source and have the capabilities to play video files in RAR archives.

Other interesting projects:

  • RARFileSource (a DirectShow filter that lets most video players read RAR
    files on the fly)
  • rarfs (Fuse module to mount uncompressed RAR archives)

An other idea is to have a look at some comic book readers that support the .cbr format. This is just a rar archive with images stored in it.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文