Update README with correct structure and size info
Browse files
README.md
CHANGED
|
@@ -60,14 +60,14 @@ Each video's specific license is recorded in the `licenseurl` and `license_type`
|
|
| 60 |
## Dataset Structure
|
| 61 |
|
| 62 |
The dataset uses VideoFolder format:
|
| 63 |
-
- `metadata.jsonl` -
|
| 64 |
-
- `data
|
| 65 |
|
| 66 |
### Metadata Fields
|
| 67 |
|
| 68 |
| Field | Description |
|
| 69 |
|-------|-------------|
|
| 70 |
-
| `file_name` |
|
| 71 |
| `identifier` | Internet Archive identifier |
|
| 72 |
| `title` | Video title |
|
| 73 |
| `description` | Full description |
|
|
@@ -93,13 +93,16 @@ The dataset uses VideoFolder format:
|
|
| 93 |
|
| 94 |
### Loading with Hugging Face Datasets
|
| 95 |
|
|
|
|
|
|
|
| 96 |
```python
|
| 97 |
from datasets import load_dataset
|
| 98 |
|
| 99 |
-
# Streaming mode (recommended
|
| 100 |
ds = load_dataset("davanstrien/prelinger-archives-open", split="train", streaming=True)
|
| 101 |
for sample in ds:
|
| 102 |
print(sample["title"])
|
|
|
|
| 103 |
break
|
| 104 |
```
|
| 105 |
|
|
|
|
| 60 |
## Dataset Structure
|
| 61 |
|
| 62 |
The dataset uses VideoFolder format:
|
| 63 |
+
- `data/metadata.jsonl` - Video metadata
|
| 64 |
+
- `data/*.mp4` - 1,902 video files (~143GB total)
|
| 65 |
|
| 66 |
### Metadata Fields
|
| 67 |
|
| 68 |
| Field | Description |
|
| 69 |
|-------|-------------|
|
| 70 |
+
| `file_name` | Video filename (e.g., `video.mp4`) |
|
| 71 |
| `identifier` | Internet Archive identifier |
|
| 72 |
| `title` | Video title |
|
| 73 |
| `description` | Full description |
|
|
|
|
| 93 |
|
| 94 |
### Loading with Hugging Face Datasets
|
| 95 |
|
| 96 |
+
> **Note:** Requires `torchcodec` to decode videos: `pip install torchcodec`
|
| 97 |
+
|
| 98 |
```python
|
| 99 |
from datasets import load_dataset
|
| 100 |
|
| 101 |
+
# Streaming mode (recommended due to 143GB size)
|
| 102 |
ds = load_dataset("davanstrien/prelinger-archives-open", split="train", streaming=True)
|
| 103 |
for sample in ds:
|
| 104 |
print(sample["title"])
|
| 105 |
+
print(sample["description"])
|
| 106 |
break
|
| 107 |
```
|
| 108 |
|