Repository: yt-dlp
Issue: Getting the needed info from a video in json format
Labels: question

### DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

- [x] I understand that I will be **blocked** if I *intentionally* remove or skip any mandatory\* field

### Checklist

- [x] I'm asking a question and **not** reporting a bug or requesting a feature
- [x] I've looked through the [README](https://github.com/yt-dlp/yt-dlp#readme)
- [x] I've verified that I have **updated yt-dlp to nightly or master** ([update instructions](https://github.com/yt-dlp/yt-dlp#update-channels))
- [x] I've searched [known issues](https://github.com/yt-dlp/yt-dlp/issues/3766) and the [bugtracker](https://github.com/yt-dlp/yt-dlp/issues?q=) for similar questions **including closed ones**. DO NOT post duplicates
- [x] I've read the [guidelines for opening an issue](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#opening-an-issue)

### Please make sure the question is worded well enough to be understood

I want to make a json file which has a few (twitch) vods and only 3 fields for each: title, url and image (thumbnail). Ideally it should follow this layout
`{"title": "vod_title", "url": "vod_url", "image": "vod_image"}`

The entry for the vod in the example below should look like this (jq was used to make it human readable).
```
$ cat test.json | jq .
{
"title": "Liquid vs. Heroic - Map 1 [Ancient] - IEM Chengdu 2024 - Group A",
"url": "https://dgeft87wbj63p.cloudfront.net/53796fb12af8b7e13676_eslcs_41137427548_3955492727/720p60/highlight-2114118194.m3u8",
"image": "https://static-cdn.jtvnw.net/cf_vods/d2nvs31859zcd8/53796fb12af8b7e13676_eslcs_41137427548_3955492727/thumb/custom-a24f6a98-c704-4ca9-b690-b948993a1d0d-0x0.jpeg"
}
```
How can I do that? The `--print-json` parameter pops all sorts of useless stuff that I have to filter out.

### Provide verbose output that clearly demonstrates the problem

- [x] Run **your** yt-dlp command with **-vU** flag added (`yt-dlp -vU <your command line>`)
- [ ] If using API, add `'verbose': True` to `YoutubeDL` params instead
- [x] Copy the WHOLE output (starting with `[debug] Command-line config`) and insert it below

### Complete Verbose Output

```shell
$ yt-dlp -vU -f 720p60 --get-url --get-title --get-thumbnail https://m.twitch.tv/videos/2114118194 
[debug] Command-line config: ['-vU', '-f', '720p60', '--get-url', '--get-title', '--get-thumbnail', 'https://m.twitch.tv/videos/2114118194']
[debug] User config "/home/user/.config/yt-dlp/config": ['--format-sort', 'vcodec:h264,res:720,acodec:m4a', '--no-cache-dir', '--force-ipv4', '--restrict-filenames']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version stable@2025.01.26 from yt-dlp/yt-dlp [3b4531934] (zip)
[debug] Python 3.13.1 (CPython x86_64 64bit) - Linux-6.12.10-amd64-x86_64-with-glibc2.40 (OpenSSL 3.4.0 22 Oct 2024, glibc 2.40)
[debug] exe versions: ffmpeg 7.1 (fdk,setts), ffprobe 7.1
[debug] Optional libraries: Cryptodome-3.20.0, brotli-1.1.0, certifi-2024.12.14, mutagen-1.47.0, requests-2.32.3, sqlite3-3.46.1, urllib3-2.3.0, websockets-14.1
[debug] Proxy map: {}
[debug] Request Handlers: urllib, requests, websockets
[debug] Loaded 1839 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Latest version: stable@2025.01.26 from yt-dlp/yt-dlp
yt-dlp is up to date (stable@2025.01.26 from yt-dlp/yt-dlp)
[twitch:vod] Extracting URL: https://m.twitch.tv/videos/2114118194
[twitch:vod] 2114118194: Downloading stream metadata GraphQL
[twitch:vod] 2114118194: Downloading video access token GraphQL
[twitch:vod] 2114118194: Downloading m3u8 information
[twitch:vod] 2114118194: Downloading storyboard metadata JSON
[debug] Sort order given by user: vcodec:h264, res:720, acodec:m4a
[debug] Formats sorted by: hasvid, ie_pref, vcodec:h264(7), res:720(720.0), acodec:m4a(9), lang, quality, fps, hdr:12(7), channels, size, br, asr, proto, vext, aext, hasaud, source, id
[info] v2114118194: Downloading 1 format(s): 720p60
Liquid vs. Heroic - Map 1 [Ancient] - IEM Chengdu 2024 - Group A
https://dgeft87wbj63p.cloudfront.net/53796fb12af8b7e13676_eslcs_41137427548_3955492727/720p60/highlight-2114118194.m3u8
https://static-cdn.jtvnw.net/cf_vods/d2nvs31859zcd8/53796fb12af8b7e13676_eslcs_41137427548_3955492727/thumb/custom-a24f6a98-c704-4ca9-b690-b948993a1d0d-0x0.jpeg
```