MKV/AVI ReSample | FAQ | Download | ReScene |
MKV/AVI ReSample is a companion to ReScene, and it does for samples what ReScene does for RARs. You can use MKV/AVI ReSample to build a blueprint of an MKV or AVI sample, and then use that blueprint with the full release to recreate that sample
Scene rules for x264 and xvid require that all releases be accompanied by a sample. That sample must be cut from the full release and not encoded separately. This rule leads us to conclude that the audio/video/subtitle data from the sample must exist somewhere in the full MKV or AVI file.
Now, if you ask me, keeping a copy of said sample is rather pointless if you already have the release. It's the same data, after all. But some people are sticklers for completeness, and to balance between their point of view and mine, i created MKV Resample.
The ReSample process is simple in principle (if not in practice). The principle is very similar to ReScene. We know the full release contains the bulk of the data for the sample; it's just missing the metadata. For example, time codes in the sample are different from those in the full MKV.
MKV files (both the samples and the full releases) are just containers that wrap up A/V tracks. There should be a track for video, one or more for audio, and zero or more for subtitles. ReSample identifies these tracks in the sample, and builds a signature for each track so that that portion of the track can be located in the full MKV. It then backs up the metadata from the sample MKV along with those track signatures into a SRS file.
With the SRS file and the full MKV, we can recreate the sample. ReSample scans the full MKV looking for those track signatures, and when it finds them, it extracts the correct amount of data for each track. Then, using that extracted track data and the metadata backed up in the SRS file, the sample is rebuilt. As a final step, a CRC check is done to verify that the rebuilt sample is bit-for-bit identical to the original.