Option 1 (FID/SID):

```
$ gpac -graph \
    -i avgen:dur=3.840:sr=48000:ch=2:FID=GEN2 \
    ffavf:FID=GEN2A:SID=GEN2#audio::f=aresample=sample_rate=48000 \
    reframer:raw:xs=9.6:#ClampDur=9.6:#PStart=9.6:#m=m2:SID=GEN2A,GEN2#video:#BUrl=http://romain \
    @ ffenc:c=aac:FID=P1A0 \
    @1 ffenc:c=avc:fintra=1.920:FID=P1V0 \
    -o tmp/dashif_ad_insertion_usecase1.mpd:segdur=1.920:cmaf=cmfc:stl:SID=P1A0,P1V0 --template='$m$_$Type$_$Number$'
[avgen] done playing, cts 96
[Reframer] All streams in end of stream for desired start range 9600000/1000000

Filters connected:
 "avgen" (js=/home/rbouqueau/works/gpac/gpac/share/scripts/jsf/avgen/init.js:dur=3.840:sr=48000:ch=2:FID=GEN2) (ID=GEN2)
-(PID audio) ffavf (FID=GEN2A:SID=GEN2#audio::f=aresample=sample_rate=48000) (ID=GEN2A)
--(PID audio) reframer (raw:xs=9.6:#ClampDur=9.6:#PStart=9.6:#m=m2:SID=GEN2A,GEN2#video:#BUrl=http://romain) (ID=_0x55d220b24a40_)
---(PID video) ffenc "ffenc:libx264" (c=avc:fintra=1.920:FID=P1V0) (ID=P1V0)
----(PID video) rfnalu (ptr=0x55d2231b8960)
-----(PID video) dasher (ptr=0x55d2231b95c0)
------(PID manifest_mpd) fout (dst=tmp/dashif_ad_insertion_usecase1.mpd:segdur=1.920:cmaf=cmfc:stl:SID=P1A0,P1V0) (ptr=0x55d220baf590)
---(PID audio) resample (ptr=0x55d2231c2cd0)
----(PID audio) ffenc "ffenc:aac" (c=aac:FID=P1A0) (ID=P1A0)
-----(PID audio) dasher (ptr=0x55d2231b95c0)
-(PID video) reframer (raw:xs=9.6:#ClampDur=9.6:#PStart=9.6:#m=m2:SID=GEN2A,GEN2#video:#BUrl=http://romain) (ID=_0x55d220b24a40_)
```

Option 2 (using @ @1):

```
$ gpac -graph    -i avgen:dur=3.840:sr=48000:ch=2:FID=GEN2 \ 
    @ ffavf::f=aresample=sample_rate=48000::FID=GEN2A \
    @ @1 reframer:raw:xs=9.6:#ClampDur=9.6:#PStart=9.6:#m=m2:#BUrl=http://romain @ ffenc:c=aac:FID=P1A0 \
    @1 ffenc:c=avc:fintra=1.920:FID=P1V0 \
    -o tmp/dashif_ad_insertion_usecase1.mpd:segdur=1.920:cmaf=cmfc:stl:SID=P1A0,P1V0 --template='$m$_$Type$_$Number$'
No filter chain found for PID audio in filter reframer to any loaded filters - NOT CONNECTED
[avgen] done playing, cts 96
[Reframer] All streams in end of stream for desired start range 9600000/1000000

Filters connected:
 "avgen" (js=/home/rbouqueau/works/gpac/gpac/share/scripts/jsf/avgen/init.js:dur=3.840:sr=48000:ch=2:FID=GEN2) (ID=GEN2)
-(PID audio) ffavf (:f=aresample=sample_rate=48000::FID=GEN2A) (ID=GEN2A)
--(PID audio) reframer (raw:xs=9.6:#ClampDur=9.6:#PStart=9.6:#m=m2:#BUrl=http://romain) (ID=_0x559d99721660_)
---(PID audio) resample (ptr=0x559d9bdb7d60)
----(PID audio) ffenc "ffenc:aac" (c=aac:FID=P1A0) (ID=P1A0)
-----(PID audio) dasher (ptr=0x559d997b8ab0)
------(PID manifest_mpd) fout (dst=tmp/dashif_ad_insertion_usecase1.mpd:segdur=1.920:cmaf=cmfc:stl:SID=P1A0,P1V0) (ptr=0x559d9975e9c0)
---(PID video) ffenc "ffenc:libx264" (c=avc:fintra=1.920:FID=P1V0) (ID=P1V0)
----(PID video) rfnalu (ptr=0x559d9bdb7160)
-----(PID video) dasher (ptr=0x559d997b8ab0)
-(PID audio) reframer (raw:xs=9.6:#ClampDur=9.6:#PStart=9.6:#m=m2:#BUrl=http://romain) (ID=_0x559d99721660_)
-(PID video) reframer (raw:xs=9.6:#ClampDur=9.6:#PStart=9.6:#m=m2:#BUrl=http://romain) (ID=_0x559d99721660_)
```

Same with ```resample:osr=48k```.
Issue building a graph with audio resampler located where requested
This is a GitHub Issue
repo:gpac
owner:gpac
Title : Issue building a graph with audio resampler located where requested
Issue date:

--- start body ---
Option 1 (FID/SID):

```
$ gpac -graph \
    -i avgen:dur=3.840:sr=48000:ch=2:FID=GEN2 \
    ffavf:FID=GEN2A:SID=GEN2#audio::f=aresample=sample_rate=48000 \
    reframer:raw:xs=9.6:#ClampDur=9.6:#PStart=9.6:#m=m2:SID=GEN2A,GEN2#video:#BUrl=http://romain \
    @ ffenc:c=aac:FID=P1A0 \
    @1 ffenc:c=avc:fintra=1.920:FID=P1V0 \
    -o tmp/dashif_ad_insertion_usecase1.mpd:segdur=1.920:cmaf=cmfc:stl:SID=P1A0,P1V0 --template='$m$_$Type$_$Number$'
[avgen] done playing, cts 96
[Reframer] All streams in end of stream for desired start range 9600000/1000000

Filters connected:
 "avgen" (js=/home/rbouqueau/works/gpac/gpac/share/scripts/jsf/avgen/init.js:dur=3.840:sr=48000:ch=2:FID=GEN2) (ID=GEN2)
-(PID audio) ffavf (FID=GEN2A:SID=GEN2#audio::f=aresample=sample_rate=48000) (ID=GEN2A)
--(PID audio) reframer (raw:xs=9.6:#ClampDur=9.6:#PStart=9.6:#m=m2:SID=GEN2A,GEN2#video:#BUrl=http://romain) (ID=_0x55d220b24a40_)
---(PID video) ffenc "ffenc:libx264" (c=avc:fintra=1.920:FID=P1V0) (ID=P1V0)
----(PID video) rfnalu (ptr=0x55d2231b8960)
-----(PID video) dasher (ptr=0x55d2231b95c0)
------(PID manifest_mpd) fout (dst=tmp/dashif_ad_insertion_usecase1.mpd:segdur=1.920:cmaf=cmfc:stl:SID=P1A0,P1V0) (ptr=0x55d220baf590)
---(PID audio) resample (ptr=0x55d2231c2cd0)
----(PID audio) ffenc "ffenc:aac" (c=aac:FID=P1A0) (ID=P1A0)
-----(PID audio) dasher (ptr=0x55d2231b95c0)
-(PID video) reframer (raw:xs=9.6:#ClampDur=9.6:#PStart=9.6:#m=m2:SID=GEN2A,GEN2#video:#BUrl=http://romain) (ID=_0x55d220b24a40_)
```

Option 2 (using @ @1):

```
$ gpac -graph    -i avgen:dur=3.840:sr=48000:ch=2:FID=GEN2 \ 
    @ ffavf::f=aresample=sample_rate=48000::FID=GEN2A \
    @ @1 reframer:raw:xs=9.6:#ClampDur=9.6:#PStart=9.6:#m=m2:#BUrl=http://romain @ ffenc:c=aac:FID=P1A0 \
    @1 ffenc:c=avc:fintra=1.920:FID=P1V0 \
    -o tmp/dashif_ad_insertion_usecase1.mpd:segdur=1.920:cmaf=cmfc:stl:SID=P1A0,P1V0 --template='$m$_$Type$_$Number$'
No filter chain found for PID audio in filter reframer to any loaded filters - NOT CONNECTED
[avgen] done playing, cts 96
[Reframer] All streams in end of stream for desired start range 9600000/1000000

Filters connected:
 "avgen" (js=/home/rbouqueau/works/gpac/gpac/share/scripts/jsf/avgen/init.js:dur=3.840:sr=48000:ch=2:FID=GEN2) (ID=GEN2)
-(PID audio) ffavf (:f=aresample=sample_rate=48000::FID=GEN2A) (ID=GEN2A)
--(PID audio) reframer (raw:xs=9.6:#ClampDur=9.6:#PStart=9.6:#m=m2:#BUrl=http://romain) (ID=_0x559d99721660_)
---(PID audio) resample (ptr=0x559d9bdb7d60)
----(PID audio) ffenc "ffenc:aac" (c=aac:FID=P1A0) (ID=P1A0)
-----(PID audio) dasher (ptr=0x559d997b8ab0)
------(PID manifest_mpd) fout (dst=tmp/dashif_ad_insertion_usecase1.mpd:segdur=1.920:cmaf=cmfc:stl:SID=P1A0,P1V0) (ptr=0x559d9975e9c0)
---(PID video) ffenc "ffenc:libx264" (c=avc:fintra=1.920:FID=P1V0) (ID=P1V0)
----(PID video) rfnalu (ptr=0x559d9bdb7160)
-----(PID video) dasher (ptr=0x559d997b8ab0)
-(PID audio) reframer (raw:xs=9.6:#ClampDur=9.6:#PStart=9.6:#m=m2:#BUrl=http://romain) (ID=_0x559d99721660_)
-(PID video) reframer (raw:xs=9.6:#ClampDur=9.6:#PStart=9.6:#m=m2:#BUrl=http://romain) (ID=_0x559d99721660_)
```

Same with ```resample:osr=48k```.
--- end body ---
