Skip to content

Add support for media_resolution and processing Youtube URLs server-side#112

Merged
simonw merged 9 commits intosimonw:mainfrom
shuane:youtube
Nov 18, 2025
Merged

Add support for media_resolution and processing Youtube URLs server-side#112
simonw merged 9 commits intosimonw:mainfrom
shuane:youtube

Conversation

@shuane
Copy link
Contributor

@shuane shuane commented Oct 26, 2025

Adds mediaResolution option along with Youtube URL server-side support - would close #62 and #77

@simonw
Copy link
Owner

simonw commented Nov 18, 2025

I tried testing this with:

llm -m gemini-3-pro-preview -a 'https://www.youtube.com/watch?v=qgJ7x7R6gy0' 'Output a Markdown transcript of this meeting. Include speaker names and timestamps. Start with an outline of the key meeting sections, each with a title and summary and timestamp and list of participating names. Note in bold if anyone raised their voices, interrupted each other or had disagreements. Then follow with the full transcript.'

From https://simonwillison.net/2025/Nov/18/gemini-3/#analyzing-a-city-council-meeting

It said:

Error: Please use fewer than 10800 images in your request to this model

So I tried it with a shorter video instead:

llm -m gemini-3-pro-preview -a 'https://www.youtube.com/watch?v=9o1_DL9uNlM' 'Produce a summary with relevant URLs and code example snippets, then an accurate transcript with timestamps.'

This worked! https://gist.github.com/simonw/1b07aafb2bfc112b180ab68c864511cb

Weird that it logged it as text/html; charset=utf-8: https://www.youtube.com/watch?v=9o1_DL9uNlM though.

Unlike in the longer example the timestamps from the transcript appear to match the correct points in the video.

@simonw simonw merged commit 801c1eb into simonw:main Nov 18, 2025
simonw added a commit that referenced this pull request Nov 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

YouTube Attachement

2 participants