# Gestión de videos subidos

**URL:** https://meta.discourse.org/t/handling-uploaded-videos/79917
**Category:** Development
**Created:** [6 Febrero, 2018 15:39 UTC](https://meta.discourse.org/t/handling-uploaded-videos/79917 "2018-02-06T15:39:19Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![twbartlett](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/twbartlett/32/115831_2.png) [@twbartlett](https://meta.discourse.org/u/twbartlett)
#### Post date: [6 Febrero, 2018 15:39 UTC](https://meta.discourse.org/t/handling-uploaded-videos/79917/1 "2018-02-06T15:39:19Z")

</div>

We have a client who would like to upload video - but this could be any video and would need transcoding.

Discourse is clearly not a video hosting platform - so we were thinking about trying to involved a 3rd party transcoder, or possibly some sort of direct upload to Vimeo or similar after the user uploads the file.

Does this sound like a reasonable approach and any ideas on how this might be achieved?

I assume that a customised Onebox view may help somewhere?

---

<div class="post-metadata">

### Author: ![mikechristopher](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mikechristopher/32/89135_2.png) [@mikechristopher](https://meta.discourse.org/u/mikechristopher)
#### Post date: [6 Febrero, 2018 15:43 UTC](https://meta.discourse.org/t/handling-uploaded-videos/79917/2 "2018-02-06T15:43:17Z")

</div>

Onebox already handles Vimeo files - I don’t know if vimeo allows files to be uploaded remotely via some other means but if they uploaded directly to Vimeo and then linked to it - it would work ok.

As per the comment made by @zogstrip here:

> [@Embed Vimeo video](https://meta.discourse.org/t/embed-vimeo-video/70875/):
>
> This was covered in November 16: but when I try to do it here: [https://footprints.themarketingseminar.com/t/worldview-recorded-at-acumen/106](https://footprints.themarketingseminar.com/t/worldview-recorded-at-acumen/106) all I get is the link. The embed code I’m using is: \<iframe src="https://player.vimeo.com/video/105773034" width="640" height="360" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen\>\</iframe\> \<p\>\<a href="https://vimeo.com/105773034"\>Seth Godin - Trust &amp; Customer Worldview\</a\> from \<a href="https://vimeo.com/acumenfund"\>+Acu…

```plaintext
https://vimeo.com/232458407

```

Becomes

[![](https://global.discourse-cdn.com/meta/original/4X/5/0/b/50bf921c99f914943ab9ce1f2ba0bf1e2089f7ac.jpeg "Sarina Nihei - Rabbit's Blood") ](https://vimeo.com/232458407)

---

<div class="post-metadata">

### Author: ![twbartlett](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/twbartlett/32/115831_2.png) [@twbartlett](https://meta.discourse.org/u/twbartlett)
#### Post date: [15 Febrero, 2018 11:23 UTC](https://meta.discourse.org/t/handling-uploaded-videos/79917/3 "2018-02-15T11:23:20Z")

</div>

Thanks for this, I think our requirement was mainly to allow users to directly upload a video into discourse - which I understand is an edge-case at best.

We will attempt something a bit like this;

- User uploads video file
- Use post events / hooks to transfer the file to a video encoding service (vimeo, coconut or something)
- Use API / Webhooks to respond to external video ready event
- Re-write / Rebake the original post with a URL to the externally hosted, encoded video (e.g. `vimeo.com/12345`) which OneBox can handle nicely for us.

At least, that’s the theory. It’s a long way around, but it will fit the client’s requirements nicely.

---

<div class="post-metadata">

### Author: ![dadudster](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dadudster/32/128610_2.png) [@dadudster](https://meta.discourse.org/u/dadudster)
#### Post date: [9 Enero, 2019 19:03 UTC](https://meta.discourse.org/t/handling-uploaded-videos/79917/4 "2019-01-09T19:03:34Z")

</div>

@twbartlett: Did you guys ever end up implementing the solution you posted here and if so would you be willing to share what you did? I’m looking for a similar solution on my forum.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [14 Febrero, 2019 22:42 UTC](https://meta.discourse.org/t/handling-uploaded-videos/79917/7 "2019-02-14T22:42:53Z")

</div>

Discourse isn’t meant to be a video sharing solution – and there are dozens of very mature and free existing video sharing sites which _are_ video sharing solutions. So the rather complex engineering described above (which would also massively increase your CPU and RAM requirements on the server, by an order of magnitude or more) is unlikely to happen for the forseeable future.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [15 Febrero, 2019 00:23 UTC](https://meta.discourse.org/t/handling-uploaded-videos/79917/8 "2019-02-15T00:23:07Z")

</div>

Discourse does integrate with various video providers, notably: [brightcove via this plugin](https://github.com/discourse/discourse-brightcove) and youtube and vimeo.

So if video is your Jazz we recommend you store them on one of those providers and use oneboxes.

---

<div class="post-metadata">

### Author: ![ti0](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ti0/32/184402_2.png) [@ti0](https://meta.discourse.org/u/ti0)
#### Post date: [29 Octubre, 2020 21:35 UTC](https://meta.discourse.org/t/handling-uploaded-videos/79917/9 "2020-10-29T21:35:02Z")

</div>

@dadudster @twbartlett @mikechristopher quizás un poco tarde, aunque creo que vale la pena mencionarlo: ayer publiqué un plugin que permite a los usuarios de Discourse subir videos a Vimeo y YouTube:

> [@Discourse Video Upload Plugin with YouTube and Vimeo](https://meta.discourse.org/t/discourse-vimeo-upload-plugin/168569):
>
> Note: This plugin is available as a theme component which enables a much easier installation. The plugin in this post is not actively supported, it is recommended to use the theme component : [Video Upload to YouTube and Vimeo using Theme Component](https://meta.discourse.org/t/video-upload-to-youtube-and-vimeo-using-theme-component/170079) Summary: Allows users on a Discourse forum to upload videos to Vimeo and YouTube directly from the Discourse composer. link GitHub: [GitHub - xomads/discourse-video-upload](https://github.com/xomads/discourse-video-upload)arrow_right Install: Follow the [plugin installation guide](https://meta.discourse.org/t/install-a-plugin/19157). Features All…
