Thanks for reporting your issue. Please make sure these boxes are checked before submitting your issue - thank you!

- [x] I looked for a similar issue and couldn't find any.
- [x] I tried with the latest version of GPAC. Installers available at http://gpac.io/downloads/gpac-nightly-builds/
- [x] I give enough information for contributors to reproduce my issue (meaningful title, github labels, platform and compiler, command-line ...). I can share files anonymously with this dropbox: https://www.mediafire.com/filedrop/filedrop_hosted.php?drop=eec9e058a9486fe4e99c33021481d9e1826ca9dbc242a6cfaab0fe95da5e5d95

Detailed guidelines: http://gpac.io/2013/07/16/how-to-file-a-bug-properly/

Hi,

I'm trying to use GPAC with python.
The process is a little tidious as the `libasan.so.5` has to be preloaded, even though I'm using the sanitizer option upon configurating it:

### Configuration //  Compilation
I'm doing :
```sh
./configure --use-ffmpeg=local --enable-debug --prefix=/folder --bindir=/folder/bin --extra-cflags=-I/usr/local/cuda/include -I/folder/include --extra-ldflags=-L/usr/lib -L/usr/local/cuda/lib64 -L/folder/lib --enable-sanitizer
#compile
make -j$(nproc)
sudo make install
```

### Usage
1) Edit `/etc/ld.so.conf` and add `/folder/lib` , then `sudo ldconfig`
2.1) Find libasan : 
```sh
echo 'void foo() {}' | gcc -x c -fPIC -shared -fsanitize=address -
ldd a.out | grep libasan.so | awk '{print $3}'
```
gives me : `/lib/x86_64-linux-gnu/libasan.so.5`

2.2) Preload it :
```sh
LD_PRELOAD="/lib/x86_64-linux-gnu/libasan.so.5" python3 test.py
```

test.py :
```python
import sys
sys.path.append("/folder/share/gpac/python")
import libgpac as gpac

gpac.init()
fs = gpac.FilterSession()
f1 = fs.load_src("/home/pierre/Documents/test.mp4")
f2 = fs.load("vout")
f3 = fs.load("aout")
fs.run()

```
I'm on ubuntu 20.04, running GPAC `1.1.0-DEV-rev1165-gccba035a1-master` .
This seems rather convoluted to get it to work no?
If I'm removing the flag `--enable-sanitizer` then gpac throws the error about the sanitizer:
```sh
==20499==ASan runtime does not come first in initial library list; you should either link runtime to your application or manually preload it with LD_PRELOAD.
```
If I don't add 2), then the python command throws that same error, :/ .

Or am I missing something in my config?

Best, 

P
GPAC in Python usage steps
This is a GitHub Issue
repo:gpac
owner:gpac
Title : GPAC in Python usage steps
Issue date:

--- start body ---
Thanks for reporting your issue. Please make sure these boxes are checked before submitting your issue - thank you!

- [x] I looked for a similar issue and couldn't find any.
- [x] I tried with the latest version of GPAC. Installers available at http://gpac.io/downloads/gpac-nightly-builds/
- [x] I give enough information for contributors to reproduce my issue (meaningful title, github labels, platform and compiler, command-line ...). I can share files anonymously with this dropbox: https://www.mediafire.com/filedrop/filedrop_hosted.php?drop=eec9e058a9486fe4e99c33021481d9e1826ca9dbc242a6cfaab0fe95da5e5d95

Detailed guidelines: http://gpac.io/2013/07/16/how-to-file-a-bug-properly/

Hi,

I'm trying to use GPAC with python.
The process is a little tidious as the `libasan.so.5` has to be preloaded, even though I'm using the sanitizer option upon configurating it:

### Configuration //  Compilation
I'm doing :
```sh
./configure --use-ffmpeg=local --enable-debug --prefix=/folder --bindir=/folder/bin --extra-cflags=-I/usr/local/cuda/include -I/folder/include --extra-ldflags=-L/usr/lib -L/usr/local/cuda/lib64 -L/folder/lib --enable-sanitizer
#compile
make -j$(nproc)
sudo make install
```

### Usage
1) Edit `/etc/ld.so.conf` and add `/folder/lib` , then `sudo ldconfig`
2.1) Find libasan : 
```sh
echo 'void foo() {}' | gcc -x c -fPIC -shared -fsanitize=address -
ldd a.out | grep libasan.so | awk '{print $3}'
```
gives me : `/lib/x86_64-linux-gnu/libasan.so.5`

2.2) Preload it :
```sh
LD_PRELOAD="/lib/x86_64-linux-gnu/libasan.so.5" python3 test.py
```

test.py :
```python
import sys
sys.path.append("/folder/share/gpac/python")
import libgpac as gpac

gpac.init()
fs = gpac.FilterSession()
f1 = fs.load_src("/home/pierre/Documents/test.mp4")
f2 = fs.load("vout")
f3 = fs.load("aout")
fs.run()

```
I'm on ubuntu 20.04, running GPAC `1.1.0-DEV-rev1165-gccba035a1-master` .
This seems rather convoluted to get it to work no?
If I'm removing the flag `--enable-sanitizer` then gpac throws the error about the sanitizer:
```sh
==20499==ASan runtime does not come first in initial library list; you should either link runtime to your application or manually preload it with LD_PRELOAD.
```
If I don't add 2), then the python command throws that same error, :/ .

Or am I missing something in my config?

Best, 

P
--- end body ---
