[Matroska-devel] Downloading only audio portion from a matroska file
Moritz Bunkus
moritz at bunkus.org
Fri Mar 12 15:47:10 CET 2010
Hey,
On Friday 12 March 2010 15:35:34 Shashank Tulsyan wrote:
> I am not well versed with EMBL and mkv, but I am assuming that it is
> possible to find exact location of audio tracks, and in mkv file audio
> and video occur AudioVideoVVVAVVVVV.... .
> Or am I wrong, and exact location is unpredictable, and cannot be found
> without reading/requests the video part as well.
In Matroska files you have an index containing the exact positions of
all Clusters. Each Cluster in turn contains roughly two seconds of media
data. Inside a cluster there are several Blocks from different tracks
interleaved by their timecodes.
So you're correct that on disc you have e.g. VVVAVVVAVVVASVVVAVVVA etc
But there's no way to get the exact position of all those blocks without
reading the whole cluster.
So what you're trying to achieve is probably not possible for Matroska
files.
Regards,
Mosu
--
If Darl McBride was in charge, he'd probably make marriage
unconstitutional too, since clearly it de-emphasizes the commercial
nature of normal human interaction, and probably is a major impediment
to the commercial growth of prostitution. - Linus Torvalds
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.matroska.org/pipermail/matroska-devel/attachments/20100312/77d1c139/attachment.pgp>
More information about the Matroska-devel
mailing list