# Custom libav options private version

**URL:** <https://community.info-beamer.com/t/custom-libav-options-private-version/1359>\
**Category:** Help\
**Created:** [June 26, 2025, 6:02pm UTC](https://community.info-beamer.com/t/custom-libav-options-private-version/1359 "2025-06-26T18:02:47Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![si458](https://community.info-beamer.com/letter_avatar_proxy/v3/letter/s/35a633/32.png) [@si458](https://community.info-beamer.com/u/si458)\
**Post date:** [June 26, 2025, 6:02pm UTC](https://community.info-beamer.com/t/custom-libav-options-private-version/1359/1 "2025-06-26T18:02:47Z")

</div>

Hi All,

we currently use the self-hosted and its amazing!  
it runs on a few Pi2 with 9 CCTV RTSP streams perfectly!  
only thing is i have to add ‘rtsp\_transport:tcp’ in for smoothness

I’m experimenting with the local version privately, but the RSTP streams keep using UDP and not TCP

the cctv units are dahua so they support TCP IF the libav/vlc/etc forces use of tcp, just not sadly by the url

so im just wondering if its possible to set ‘Custom libav options’ using the Private version of the info-beamer app?

ive tried all sorts but having no luck ☹

Kindest Regards

Simon

---

<div class="post-metadata">

**Author:** ![infobeamer-fw](https://community.info-beamer.com/user_avatar/community.info-beamer.com/infobeamer-fw/32/3_2.png) [@infobeamer-fw](https://community.info-beamer.com/u/infobeamer-fw)\
**Post date:** [June 26, 2025, 8:17pm UTC](https://community.info-beamer.com/t/custom-libav-options-private-version/1359/2 "2025-06-26T20:17:51Z")

</div>

You can set those option using

```auto
export INFOBEAMER_AV_OPTS=rtsp_transport:tcp

```

The code using that is:

```auto
AVDictionary *d = NULL;
const char *av_opts = getenv("INFOBEAMER_AV_OPTS");
if (av_opts)
    av_dict_parse_string(&d, av_opts, ":", ",", 0);
int ret = avformat_open_input(&format_context, ref->path, NULL, &d);

```

so you could provide multiple comma separated options. Does that help?

---

<div class="post-metadata">

**Author:** ![si458](https://community.info-beamer.com/letter_avatar_proxy/v3/letter/s/35a633/32.png) [@si458](https://community.info-beamer.com/u/si458)\
**Post date:** [June 26, 2025, 9:38pm UTC](https://community.info-beamer.com/t/custom-libav-options-private-version/1359/3 "2025-06-26T21:38:29Z")

</div>

OMG THATS AMAZING IT WORKS THANK YOU SO MUCH!!!  
i searched high and low on the whole of info-beamer website,  
even the forum, and docs - [info-beamer Lua API and introduction - info-beamer](https://info-beamer.com/doc/info-beamer)  
even the --help from info-beamer binary itself returned nothing  
the is no mension of `INFOBEAMER_AV_OPTS` ANYWHERE  
any chance it could be put somewhere pretty plz?

---

<div class="post-metadata">

**Author:** ![infobeamer-fw](https://community.info-beamer.com/user_avatar/community.info-beamer.com/infobeamer-fw/32/3_2.png) [@infobeamer-fw](https://community.info-beamer.com/u/infobeamer-fw)\
**Post date:** [June 27, 2025, 9:36am UTC](https://community.info-beamer.com/t/custom-libav-options-private-version/1359/4 "2025-06-27T09:36:12Z")

</div>

Absolutely. Sorry about that. I’ll have to walk through all the `INFOBEAMER_*` environment variables and update the included documentation.

---

<div class="post-metadata">

**Author:** ![si458](https://community.info-beamer.com/letter_avatar_proxy/v3/letter/s/35a633/32.png) [@si458](https://community.info-beamer.com/u/si458)\
**Post date:** [June 27, 2025, 9:52am UTC](https://community.info-beamer.com/t/custom-libav-options-private-version/1359/5 "2025-06-27T09:52:49Z")

</div>

OOO im intrigued now what other environment variables are missing and can be used haha

---

<div class="post-metadata">

**Author:** ![infobeamer-fw](https://community.info-beamer.com/user_avatar/community.info-beamer.com/infobeamer-fw/32/3_2.png) [@infobeamer-fw](https://community.info-beamer.com/u/infobeamer-fw)\
**Post date:** [June 27, 2025, 11:27am UTC](https://community.info-beamer.com/t/custom-libav-options-private-version/1359/6 "2025-06-27T11:27:07Z")

</div>

Nothing too exciting probably. The binary doesn’t make any real attempt at hiding them, so you can just run

```auto
strings info-beamer|grep INFOBEAMER_

```

and probably get most of them. Most of them are really not very useful and intended for development or debugging purposes.
