vimeo / vimeo.py

Official Python library for the Vimeo API.
https://developer.vimeo.com
Apache License 2.0
210 stars 84 forks source link

How to add chapters to videos? #173

Open MelissaKR opened 3 years ago

MelissaKR commented 3 years ago

Hi,

I'm trying to add chapters to an uploaded video using the Python SDK. I don't get any errors but the chapters don't show up either. This is how I'm doing it:

client.upload_texttrack(uri, 'chapters', 'en-US', 'chapters_file.vtt')

and the vtt file looks something like this:

WEBVTT

00:20.000 --> 00:21.000
First Chapter

00:40.000 --> 00:41.000
Second Chapter

I'm wondering if I'm not doing it right or the functionality is not supported.

gringopachingo commented 3 years ago

According to the docs https://developer.vimeo.com/api/upload/texttracks, it is not supported.

NOTE: You can't currently add chapters to a video by uploading them through the API, but you can create them manually through our onsite tool. For more information, see our Help Center.

amrutadotorg commented 1 year ago

Hi it looks like there is an API for that https://developer.vimeo.com/api/reference/videos#create_chapter example: v.post('/videos/12345/chapters', data={"timecode": 0, "title":"test"})