# H246 Video encoding

**URL:** https://discourse.processing.org/t/h246-video-encoding/8638
**Category:** Processing for Pi
**Created:** [February 22, 2019, 5:32pm UTC](https://discourse.processing.org/t/h246-video-encoding/8638 "2019-02-22T17:32:12Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![f42ter](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/f42ter/32/16793_2.png) [@f42ter](https://discourse.processing.org/u/f42ter)
#### Post date: [February 22, 2019, 5:32pm UTC](https://discourse.processing.org/t/h246-video-encoding/8638/1 "2019-02-22T17:32:13Z")

</div>

Looking for a simple way to decode h246 encoded videos? The video is sent via udp from a dji Tello?

For sure I mean h264. Just a typo ;-\>

---

<div class="post-metadata">

### Author: ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)
#### Post date: [February 23, 2019, 6:53pm UTC](https://discourse.processing.org/t/h246-video-encoding/8638/2 "2019-02-23T18:53:48Z")

</div>

I think you mean **h264**? If you have been searching everywhere for h246 that will have caused you problems…

[https://www.google.com/search?q=h264+“processing.org”](https://www.google.com/search?q=h264+%22processing.org%22)

---

<div class="post-metadata">

### Author: ![f42ter](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/f42ter/32/16793_2.png) [@f42ter](https://discourse.processing.org/u/f42ter)
#### Post date: [December 29, 2019, 11:02pm UTC](https://discourse.processing.org/t/h246-video-encoding/8638/3 "2019-12-29T23:02:43Z")

</div>

Hi Jeremy,

indeed h264. But no progress so far.  
It work like a charm on Raspberry PI using GLVIDEO. But on Windows using the VIDEO library I don’t make any progress. I can read the stream, but I have no clue how to convert and showup.

jcodec may help, but again how to convert picture (jcodec) into a format that Processing can work with.

Any help/hint is much appreciated.  
And to make more complex I tried that on Raspberry X86 where according my information only Version 1.0.2 of the Video library is working.

Thanks  
Tom

---

<div class="post-metadata">

### Author: ![kfrajer](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kfrajer/32/196_2.png) [@kfrajer](https://discourse.processing.org/u/kfrajer)
#### Post date: [December 30, 2019, 8:36pm UTC](https://discourse.processing.org/t/h246-video-encoding/8638/4 "2019-12-30T20:36:34Z")

</div>

You want to expand your search in the JAVA realm as this is not unique to Processing. If you find a solution coded in Java, you should be able to use it in Processing. Unfortunately there is not much from previous posts:

- [https://forum.processing.org/two/discussion/25692/decoding-h264-frame-from-a-specific-streaming-protocol](https://forum.processing.org/two/discussion/25692/decoding-h264-frame-from-a-specific-streaming-protocol)
- [https://forum.processing.org/two/discussion/25546/how-to-connect-ip-camera-with-processing](https://forum.processing.org/two/discussion/25546/how-to-connect-ip-camera-with-processing)

Kf

---

<div class="post-metadata">

### Author: ![f42ter](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/f42ter/32/16793_2.png) [@f42ter](https://discourse.processing.org/u/f42ter)
#### Post date: [January 1, 2020, 12:46pm UTC](https://discourse.processing.org/t/h246-video-encoding/8638/5 "2020-01-01T12:46:54Z")

</div>

Happy New Year!

It is supported by GLVideo from Jörg Haider. But performance on Raspberry is slow.

```auto
  // we connect to Tello via this custom GStreamer pipeline
  video = new GLVideo(this, "udpsrc port=11111 ! decodebin", GLVideo.NO_SYNC);
  video.play();

```

But that didn’t work on other platforms like Apple or Windows.

No I’m able to receive the stream from Tello, but I have no idea how to decode and convert into PImage. My Plan is to implement this on a system with better performance.
