Custom libav options private version

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 :frowning:

Kindest Regards

Simon

You can set those option using

export INFOBEAMER_AV_OPTS=rtsp_transport:tcp

The code using that is:

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?

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
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?

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

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

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

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.