<br><br><div class="gmail_quote">2011/5/8 Juha Jeronen <span dir="ltr"><<a href="mailto:juha.jeronen@jyu.fi">juha.jeronen@jyu.fi</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On 05/08/2011 01:24 AM, Jean-Baptiste Kempf wrote:<br>
> On Sat, May 07, 2011 at 08:23:54PM +0300, Juha Jeronen wrote :<br>
>> Alternative idea: require the user to open DVD image files as<br>
>> dvd:///path/to/file instead of file:///path/to/file. However, in this<br>
> This doesn't work if you open a .iso file.<br>
<br>
</div>True, not from the regular file open dialog.<br>
<br>
However, the URI seems to work. It would need another dialog, which is<br>
not ideal.<br>
<br>
(I tested by choosing Media > Open Disc, typing in (or pasting) a path<br>
to an ISO file as the disc device, and hitting play. What gets saved in<br>
recent media by doing this is "dvd:///path/to/file.ISO".)<br>
<div class="im"><br>
<br>
>> (I think the feature of playing DVD images is semi-important for "plays<br>
>> almost anything". Not absolutely critical, but nice to have...)<br>
> Playing .iso of DVDs (and maybe soon BDs) is a quite important feature<br>
> of VLC and VLC is often praised on reviews for this capability.<br>
<br>
</div>I see.<br>
<br>
It also makes filter testing much more convenient, but that's probably<br>
not of major importance for most users ;)<br>
<br>
<br>
About recognizing DVD ISO files, I did some testing. Judging by a small<br>
sample, they seem to have this in common:<br>
<br>
---8<---8<---8<---<br>
<br>
00000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00<br>
|................|<br>
*<br>
00008000 01 43 44 30 30 31 01 00 20 20 20 20 20 20 20 20<br>
|.CD001.. |<br>
<br>
---8<---8<---8<---<br>
<br>
That is, 32768 (0x8000) bytes of zeroes, and then the sequence 01 43 44<br>
30 30 31 01 00 (i.e. 0x01, "CD001", 0x01, 0x00).<br>
<br>
The "CD001" looks like a block identifier. At further offsets, I'm<br>
seeing blocks like "BEA01", "NSR02" and "TEA01" (Earl Grey? Hot?). Each<br>
identifier is exactly 5 ASCII-representable characters, enclosed as 0x01<br>
STRING 0x01 0x00. Some blocks seem to be terminated by 0xFF STRING 0x01<br>
0x00 (with matching string).<br>
<br>
For the curious: the DVD LBA length is 2048 (dvdnav.h), so 32768<br>
corresponds to LBA 16. The first 16 logical blocks are blank...<br>
<br>
I think that if we want to detect DVD ISO files in ProbeDVD(), we could<br>
check for 0x0000 at the start of the file, and then 0x01 x x x x x 0x01<br>
0x00 at offset 32768 (or LBA 16 to match the style of the existing<br>
code), and if these match, then check for the anchor. It's not perfect,<br>
but it should at least cut down on the amount of false positives.<br>
<br>
What about other disc image formats? Do we support them?<br></blockquote><div><br></div><div>Bin+Cue support is in VLC, but some people have complained earlier that it doesn't work correctly (mostly used for VCD and SVCD).</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<font color="#888888"><br>
-J<br>
</font><div><div></div><div class="h5"><br>
_______________________________________________<br>
vlc-devel mailing list<br>
To unsubscribe or modify your subscription options:<br>
<a href="http://mailman.videolan.org/listinfo/vlc-devel" target="_blank">http://mailman.videolan.org/listinfo/vlc-devel</a><br>
</div></div></blockquote></div><br>