Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transcode status is 'complete' while upload status is 'in_progress' #170

Open
dumbeau opened this issue Mar 24, 2021 · 1 comment
Open

Comments

@dumbeau
Copy link

dumbeau commented Mar 24, 2021

Here is my python console and I'm refreshing the status immediately after upload:

>>> vimUpload = client.upload("testvideo.mp4", data={"name": "Test4"})
>>> vimID = vimUpload.split('/')[2]
>>> json.loads(client.get("https://api.vimeo.com/videos/" + vimID + "?fields=uri,upload.status,transcode.status").text)
{'uri': '/videos/528466234', 'upload': {'status': 'in_progress'}, 'transcode': {'status': 'complete'}}
>>> json.loads(client.get("https://api.vimeo.com/videos/" + vimID + "?fields=uri,upload.status,transcode.status").text)
{'uri': '/videos/528466234', 'upload': {'status': 'in_progress'}, 'transcode': {'status': 'complete'}}
>>> json.loads(client.get("https://api.vimeo.com/videos/" + vimID + "?fields=uri,upload.status,transcode.status").text)
{'uri': '/videos/528466234', 'upload': {'status': 'complete'}, 'transcode': {'status': 'in_progress'}}
>>> json.loads(client.get("https://api.vimeo.com/videos/" + vimID + "?fields=uri,upload.status,transcode.status").text)
{'uri': '/videos/528466234', 'upload': {'status': 'complete'}, 'transcode': {'status': 'in_progress'}}

Having the transcode status set to 'complete' while the video is uploading seems misleading. I would expect something like 'queued', 'waiting', or even 'in_progress' for the transcode status while the video is uploading.

@tommypenner
Copy link

Hi @dumbeau this is a known issue on the Vimeo backend, with transcode.status returning complete prematurely.

As a workaround, check the is_playable field from the response instead. This will return false if there are no playable video files yet created, and true when at least one transcode has completed.

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

No branches or pull requests

2 participants