Line 112:
Line 112:
== SD storage ==
== SD storage ==
+
After downloading videos, Nintendo Video stores them on the SD card. Videos with the decrypted SpotPass payload are stored in [[Extdata]]. [https://gist.github.com/bef27e4a60cdb472c359 Metadata] is stored in cleartext in the decrypted extdata - the actual video might be encrypted(unknown), there's no magic number/fourcc in the decrypted extdata for the video. Region/country info is presumably stored in this metadata.
−
After downloading videos, Nintendo Video stores them on the SD card. Videos with the decrypted SpotPass payload are stored in [[Extdata]]. [https://gist.github.com/bef27e4a60cdb472c359 Metadata] is stored in cleartext in the decrypted extdata - the actual video is likely encrypted, there's no magic number/fourcc in the decrypted extdata for the video. Region info is presumably stored in this metadata somewhere.
+
Structure of the above metadata:(size is 0x1000-bytes)
+
{| class="wikitable"
+
|-
+
! Offset
+
! Length
+
! Notes
+
|-
+
| 0x0
+
| 4
+
| Unknown, value is 0x18
+
|-
+
| 0x4
+
| 0x14
+
| ?
+
|-
+
| 0x18
+
| 8
+
| Big-endian titleID of Nintendo Video
+
|-
+
| 0x20
+
| 0x38
+
| Unknown, some countries' videos has two extra words added here?
+
|-
+
| 0x58
+
| 0x20
+
| ASCII Video ID? M<shortvidtitle>someid
+
|-
+
| 0x68
+
| 0x20
+
| ?
+
|-
+
| 0x88
+
| 0x78
+
| UCS-2 video title
+
|-
+
| 0x100
+
| 0xc
+
| ?
+
|-
+
| 0x10c
+
| 0x190
+
| UCS-2 video description
+
|-
+
| 0x29c
+
| 0x20
+
| Another ASCII video ID? I<shortvidtitle>someid
+
|-
+
| 0x2bc
+
| 0xd44
+
| ?
+
|}
== File format ==
== File format ==