Changes

Jump to navigation Jump to search
52 bytes removed ,  22:13, 17 February 2023
Add information of additional header on SD storage
Line 115: Line 115:     
== SD storage ==
 
== SD storage ==
Downloaded videos are stored in the SD card [[Extdata]], from the decrypted [[SpotPass]] content payload. Country info is presumably stored in this metadata, region-lock is handled by the BOSS module via the programID in the [[SpotPass#Payload Content Header|payload header]]. At the end of the video file is a JPEG, which contains the video thumbnail, and various advertising metadata (interactive links) including the URL associated with the video. The text shown on the web browser button is also stored in the interactive links.
+
Downloaded videos are stored in the SD card [[Extdata]], from the decrypted [[SpotPass]] content payload, adding an additional header to them. Country info is presumably stored in this metadata, region-lock is handled by the BOSS module via the programID in the [[SpotPass#Payload Content Header|payload header]].
   −
Except for the Title ID, all the values are stored as little-endian.
+
While the SpotPass payload uses little-endian, the extra header added to the Extdata is stored in big-endian.
Structure of this SD data:
   
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
Line 127: Line 126:  
| 0x0
 
| 0x0
 
| 0x4
 
| 0x4
| Title ID address of Nintendo Video? (usually 0x18, 0x0 if none)
+
| Unknown, value is 0x18
 
|-
 
|-
 
| 0x4
 
| 0x4
 +
| 0x14
 +
| ?
 +
|-
 +
| 0x18
 +
| 0x8
 +
| TitleID of Nintendo Video
 +
|-
 +
| 0x20
 +
| 0x8
 +
| ?
 +
|-
 +
| 0x28
 
| 0x4
 
| 0x4
| Start address of unknown extra data? (0x2C)
+
| File size
 +
|-
 +
| 0x2C
 +
| 0x4
 +
| ?
 +
|-
 +
| 0x30
 +
| 0x4
 +
| Release date (integer, YYYYmmddhh)
 +
|-
 +
| 0x34
 +
|
 +
| SpotPass payload
 +
|}
 +
 
 +
== File format ==
 +
The SpotPass content downloaded for Nintendo Video uses the [[SpotPass]] content container format, see the SpotPass page for info on the container format. At the end of the video file is a JPEG, which contains the video thumbnail, and various advertising metadata (interactive links) including the URL associated with the video. The text shown on the web browser button is also stored in the interactive links.
 +
 
 +
Region info is stored in the decrypted SpotPass crypto layer, see above SD section.
 +
 
 +
The following entries use little-endian.
 +
{| class="wikitable"
 +
|-
 +
! Offset
 +
! Length
 +
! Notes
 +
|-
 +
| 0x0
 +
| 0x4
 +
| Start address of header? (0x0)
 +
|-
 +
| 0x4
 +
| 0x4
 +
| End address of header
 
|-
 
|-
 
| 0x8
 
| 0x8
 
| 0x4
 
| 0x4
| End address of unknown extra data? (same as 0x4 if none)
+
| Start address of metadata and video
 
|-
 
|-
 
| 0xC
 
| 0xC
 
| 0x4
 
| 0x4
| Start address of video thumbnail
+
| End address of metadata and video
 
|-
 
|-
 
| 0x10
 
| 0x10
Line 155: Line 199:  
| 0x2C
 
| 0x2C
 
| 0x4
 
| 0x4
| Header length (from this value until video description, both included)
+
| Metadata length
 
|-
 
|-
 
| 0x30
 
| 0x30
| 0x0 or 0x28?
  −
| Unknown? (keeping this as it was allocated on the wiki before)
  −
|-
  −
| 0x30 or 0x58
   
| 0x20
 
| 0x20
 
| Video ID (M<shortvidtitle>video ID)
 
| Video ID (M<shortvidtitle>video ID)
 
|-
 
|-
| 0x50 or 0x68
+
| 0x50
 
| 0x8
 
| 0x8
 
| [[#Timestamp|Release date]]
 
| [[#Timestamp|Release date]]
 
|-
 
|-
| 0x58 or 0x70
+
| 0x58
 
| 0x8
 
| 0x8
 
| [[#Timestamp|Expire date]]
 
| [[#Timestamp|Expire date]]
 
|-
 
|-
| 0x60 or 0x88
+
| 0x60
| 0x0 or 0x10?
  −
| Unknown? (keeping this as it was allocated on the wiki before)
  −
|-
  −
| 0x60 or 0x88
   
| 0x78
 
| 0x78
 
| UTF-16 video title
 
| UTF-16 video title
 
|-
 
|-
| 0xD8 or 0x100
+
| 0xD8
 
| 0x8
 
| 0x8
 
| ?
 
| ?
 
|-
 
|-
| 0xE0 or 0x108
+
| 0xE0
 
| 0x4
 
| 0x4
 
| Video length
 
| Video length
 
|-
 
|-
| 0xE4 or 0x10C
+
| 0xE4
 
| 0x190
 
| 0x190
 
| UTF-16 video description
 
| UTF-16 video description
 
|-
 
|-
| 0x274 or 0x29C
+
| 0x274
 
| 0x20 * number of links
 
| 0x20 * number of links
 
| Interactive link IDs (I<shortvidtitle>video ID)
 
| Interactive link IDs (I<shortvidtitle>video ID)
Line 312: Line 348:  
| Thumbnail image
 
| Thumbnail image
 
|}
 
|}
  −
== File format ==
  −
  −
The SpotPass content downloaded for Nintendo Video uses the [[SpotPass]] content container format, see the SpotPass page for info on the container format. See the above SD storage section for info on the cleartext payload.
  −
  −
Region info is stored in the decrypted SpotPass crypto layer, see above SD section.
      
== Server spoofing ==  
 
== Server spoofing ==  
127

edits

Navigation menu