# File attachment transcoding status

**URL:** <https://community.shotgridsoftware.com/t/file-attachment-transcoding-status/8072>\
**Category:** Pipeline Integrations\
**Created:** [April 8, 2020, 7:18am UTC](https://community.shotgridsoftware.com/t/file-attachment-transcoding-status/8072 "2020-04-08T07:18:55Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hendrik\_Proosa](https://sea1.discourse-cdn.com/shotgunsoftware/user_avatar/community.shotgridsoftware.com/hendrik_proosa/32/452_2.png) [@Hendrik\_Proosa](https://community.shotgridsoftware.com/u/Hendrik_Proosa)\
**Post date:** [April 8, 2020, 7:18am UTC](https://community.shotgridsoftware.com/t/file-attachment-transcoding-status/8072/1 "2020-04-08T07:18:55Z")

</div>

Hi,

I’m setting up my own transcoding server (concurrent with the default SG one) to get better quality from SG web player, but haven’t found any in-depth docs about checking the status of media files being transcoded.

I’m currently downloading original uploaded media, transcoding it myself with ffmpeg and then uploading it to ‘sg\_uploaded\_movie\_mp4’ field (webm doesn’t seem to be used in any os or browser my project partners use). Problem I’m facing is that I need to check what the status of default upload/transcode process is, because it seems that version is created and ‘sg\_uploaded\_movie’ field is filled even when file itself is not available yet, thus my process downloads a 0 KB sized file.

How can I check the status of media upload and/or transcoding? In api docs it says there is a data field ‘processing\_status’ but what the values are for video clips and how they are changed is not discussed.

---

<div class="post-metadata">

**Author:** ![Mason](https://sea1.discourse-cdn.com/shotgunsoftware/user_avatar/community.shotgridsoftware.com/mason/32/184_2.png) [@Mason](https://community.shotgridsoftware.com/u/Mason)\
**Post date:** [April 8, 2020, 7:49am UTC](https://community.shotgridsoftware.com/t/file-attachment-transcoding-status/8072/2 "2020-04-08T07:49:22Z")

</div>

Hey Hendrik!  
There’s a hidden field on the version called `sg_uploaded_movie_transcoding_status` that you can query via the API like any regular field.  
Statuses:  
0 == in progress  
1 == success  
2 == failure

If you want to see that field (as well as the other transcoding-related fields) in the UI, enter this into the browser console:

```auto
SG.schema.entity_fields.Version.sg_uploaded_movie_transcoding_status.grid_column = true;
SG.schema.entity_fields.Version.sg_uploaded_movie_mp4.grid_column = true;
SG.schema.entity_fields.Version.sg_uploaded_movie_webm.grid_column = true;
SG.schema.entity_fields.Version.sg_uploaded_movie_image.grid_column = true;

```

Hope that helps, but let me know if you need anything further.  
Cheers,

Mason.

---

<div class="post-metadata">

**Author:** ![mmoshev](https://sea1.discourse-cdn.com/shotgunsoftware/user_avatar/community.shotgridsoftware.com/mmoshev/32/476_2.png) [@mmoshev](https://community.shotgridsoftware.com/u/mmoshev)\
**Post date:** [April 8, 2020, 7:58am UTC](https://community.shotgridsoftware.com/t/file-attachment-transcoding-status/8072/3 "2020-04-08T07:58:09Z")

</div>

Dude, I didn’t realize there was a full-blown api for the website available in the browser… that’s awesome.  
Is this documented anywhere?  
The greasemonkey possibilities must be huge.

---

<div class="post-metadata">

**Author:** ![Mason](https://sea1.discourse-cdn.com/shotgunsoftware/user_avatar/community.shotgridsoftware.com/mason/32/184_2.png) [@Mason](https://community.shotgridsoftware.com/u/Mason)\
**Post date:** [April 8, 2020, 8:01am UTC](https://community.shotgridsoftware.com/t/file-attachment-transcoding-status/8072/4 "2020-04-08T08:01:40Z")

</div>

Ha! Sorry to disappoint @mmoshev but it’s not a full-blown API in the browser - far from it. It’s just those fields that we can show. Sorry about that 🙂

---

<div class="post-metadata">

**Author:** ![mmoshev](https://sea1.discourse-cdn.com/shotgunsoftware/user_avatar/community.shotgridsoftware.com/mmoshev/32/476_2.png) [@mmoshev](https://community.shotgridsoftware.com/u/mmoshev)\
**Post date:** [April 8, 2020, 8:11am UTC](https://community.shotgridsoftware.com/t/file-attachment-transcoding-status/8072/5 "2020-04-08T08:11:04Z")

</div>

No, what I mean is the ability to interact with the page, inspecting an entity’s schema, among other things.  
I had never thought about it, but some nice “local” customizations become viable.  
For instance, did the producer forget to enter a required field on the project? Just pop a dialog that reminds them each time they open the project. etc.  
Is there any guide I can find on the webpage api?

Anyway, I derailed the conversation, sorry about that 🙂

---

<div class="post-metadata">

**Author:** ![Mason](https://sea1.discourse-cdn.com/shotgunsoftware/user_avatar/community.shotgridsoftware.com/mason/32/184_2.png) [@Mason](https://community.shotgridsoftware.com/u/Mason)\
**Post date:** [April 8, 2020, 8:15am UTC](https://community.shotgridsoftware.com/t/file-attachment-transcoding-status/8072/6 "2020-04-08T08:15:03Z")

</div>

No worries. Just to be clear - all these commands do is make those fields visible for the users session. There’s no way to interact with the contained data, and as such, no API.

---

<div class="post-metadata">

**Author:** ![mmoshev](https://sea1.discourse-cdn.com/shotgunsoftware/user_avatar/community.shotgridsoftware.com/mmoshev/32/476_2.png) [@mmoshev](https://community.shotgridsoftware.com/u/mmoshev)\
**Post date:** [April 8, 2020, 8:17am UTC](https://community.shotgridsoftware.com/t/file-attachment-transcoding-status/8072/7 "2020-04-08T08:17:53Z")

</div>

Yeah yeah, I get that, my point is just customizing the interface for users. It seems at least _some_ of the data is available in structures (i.e. not rendered into the interface).  
It’s still an API of sorts.  
Edit: I’ve been a web guy most of my life, so now I see how that might come as incoherent, but looking at it from a pipeline perspective I see another api to be (ab)used 🙂

---

<div class="post-metadata">

**Author:** ![Hendrik\_Proosa](https://sea1.discourse-cdn.com/shotgunsoftware/user_avatar/community.shotgridsoftware.com/hendrik_proosa/32/452_2.png) [@Hendrik\_Proosa](https://community.shotgridsoftware.com/u/Hendrik_Proosa)\
**Post date:** [April 8, 2020, 8:25am UTC](https://community.shotgridsoftware.com/t/file-attachment-transcoding-status/8072/8 "2020-04-08T08:25:41Z")

</div>

Hi Mason,

Thank you, this is exactly what I need!

Showing hidden fields in browser is very interesting, are there any docs that outline what all the internal technical fields are that can be made visible?

---

<div class="post-metadata">

**Author:** ![Ricardo\_Musch](https://sea1.discourse-cdn.com/shotgunsoftware/user_avatar/community.shotgridsoftware.com/ricardo_musch/32/405_2.png) [@Ricardo\_Musch](https://community.shotgridsoftware.com/u/Ricardo_Musch)\
**Post date:** [April 8, 2020, 10:30am UTC](https://community.shotgridsoftware.com/t/file-attachment-transcoding-status/8072/9 "2020-04-08T10:30:15Z")

</div>

@Hendrik_Proosa  
Did you read my mind or something?

I was literally going to post exactly this question just now… 😮

---

<div class="post-metadata">

**Author:** ![Halil](https://sea1.discourse-cdn.com/shotgunsoftware/user_avatar/community.shotgridsoftware.com/halil/32/4697_2.png) [@Halil](https://community.shotgridsoftware.com/u/Halil)\
**Post date:** [September 23, 2020, 3:05am UTC](https://community.shotgridsoftware.com/t/file-attachment-transcoding-status/8072/11 "2020-09-23T03:05:27Z")

</div>

🙂

---

<div class="post-metadata">

**Author:** ![mmoshev](https://sea1.discourse-cdn.com/shotgunsoftware/user_avatar/community.shotgridsoftware.com/mmoshev/32/476_2.png) [@mmoshev](https://community.shotgridsoftware.com/u/mmoshev)\
**Post date:** [June 7, 2021, 8:29am UTC](https://community.shotgridsoftware.com/t/file-attachment-transcoding-status/8072/12 "2021-06-07T08:29:52Z")

</div>

Not only the hidden fields, I would be interested in a (generated) api doc of the entire ExtJS app. Not sure that’s permissible, though.
