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/
- [ ] 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/bug-reporting/

The ASID option in the gstreamer command, works only for some of the inputs, if multiple inputs contain the same ASID they are not put together under that ASID

The gpac command I used
```bash
gpac 
      -i tcp://gstreamer_augmented:5021:gpac:#ASID=65 reframer:rt=on
      -i tcp://gstreamer_augmented:5020:gpac:#ASID=65 reframer:rt=on
      -i tcp://gstreamer_augmented:6021:gpac:#ASID=66 reframer:rt=on
      -i tcp://gstreamer_augmented:6020:gpac:#ASID=66 reframer:rt=on
      -i tcp://gstreamer_augmented:7021:gpac:#ASID=67 reframer:rt=on
      -i tcp://gstreamer_augmented:7020:gpac:#ASID=67 reframer:rt=on
      -o http://origin:8081/live/upload/playlist.mpd:template=segment_$$(openssl rand -hex 5):buf=-200:seg_sync=no:segdur=2.0:cdur=0.2:asto=1.8:dmode=dynamic:cmaf=cmf2:profile=dashif.ll:utcs=https://time.akamai.com/?iso:hmode=push
```

The resulting maniffest
```xml
<?xml version="1.0"?>
<!-- MPD file Generated with GPAC version 2.3-DEV-rev588-g7edc40fe-master at 2023-10-25T21:46:57.097Z -->
<MPD xmlns="urn:mpeg:dash:schema:mpd:2011" minBufferTime="PT4.000S" type="dynamic" availabilityStartTime="2023-10-25T21:45:57.001Z" publishTime="2023-10-25T21:46:57.097Z" minimumUpdatePeriod="PT0H0M2.000S" timeShiftBufferDepth="PT0H0M30.000S" maxSegmentDuration="PT0H0M2.637S" profiles="urn:mpeg:dash:profile:isoff-live:2011,http://www.dashif.org/guidelines/low-latency-live-v5,urn:mpeg:dash:profile:cmaf:2019">
 <ProgramInformation moreInformationURL="http://gpac.io">
  <Title>playlist.mpd generated by GPAC</Title>
 </ProgramInformation>

 <ServiceDescription id="0">
  <Latency max="6000" min="2000" referenceId="0" target="4000"/>
  <PlaybackRate max="1.04" min="0.96"/>
 </ServiceDescription>
 <Period id="DID1" start="PT0H0M0.000S">
  <AdaptationSet id="67" segmentAlignment="true" startWithSAP="1">
   <SegmentTemplate media="segment_6c622448fc$Number$.m4s" initialization="segment_6c622448fcinit.mp4" timescale="90000" presentationTimeOffset="324058869" availabilityTimeOffset="1.8" startNumber="1" duration="180000"/>
   <Representation id="1" mimeType="audio/mp4" codecs="mp4a.40.2" audioSamplingRate="48000" bandwidth="2279">
    <AudioChannelConfiguration schemeIdUri="urn:mpeg:dash:23003:3:audio_channel_configuration:2011" value="2"/>
   </Representation>
  </AdaptationSet>
  <AdaptationSet id="66" segmentAlignment="true" maxWidth="1280" maxHeight="720" par="16:9" startWithSAP="1">
   <SegmentTemplate media="segment_6c622448fc_r1_$Number$.m4s" initialization="segment_6c622448fc_r1_init.mp4" timescale="90000" presentationTimeOffset="324058869" availabilityTimeOffset="1.8" startNumber="1" duration="180000"/>
   <Representation id="2" mimeType="video/mp4" codecs="avc1.4D401F" width="1280" height="720" sar="1:1" bandwidth="2200000">
   </Representation>
  </AdaptationSet>
  <AdaptationSet segmentAlignment="true" startWithSAP="1">
   <SegmentTemplate media="segment_6c622448fc_r2_$Number$.m4s" initialization="segment_6c622448fc_r2_init.mp4" timescale="90000" presentationTimeOffset="324058869" availabilityTimeOffset="1.8" startNumber="1" duration="180000"/>
   <Representation id="3" mimeType="audio/mp4" codecs="mp4a.40.2" audioSamplingRate="48000" bandwidth="2282">
    <AudioChannelConfiguration schemeIdUri="urn:mpeg:dash:23003:3:audio_channel_configuration:2011" value="2"/>
   </Representation>
  </AdaptationSet>
  <AdaptationSet segmentAlignment="true" maxWidth="1280" maxHeight="720" par="16:9" startWithSAP="1">
   <SegmentTemplate media="segment_6c622448fc_r3_$Number$.m4s" initialization="segment_6c622448fc_r3_init.mp4" timescale="90000" presentationTimeOffset="324058869" availabilityTimeOffset="1.8" startNumber="1" duration="180000"/>
   <Representation id="4" mimeType="video/mp4" codecs="avc1.4D401F" width="1280" height="720" sar="1:1" bandwidth="2090000">
   </Representation>
  </AdaptationSet>
  <AdaptationSet id="65" segmentAlignment="true" maxWidth="1280" maxHeight="720" par="16:9" startWithSAP="1">
   <SegmentTemplate media="segment_6c622448fc_r4_$Number$.m4s" initialization="segment_6c622448fc_r4_init.mp4" timescale="90000" presentationTimeOffset="324058869" availabilityTimeOffset="1.8" startNumber="1" duration="180000"/>
   <Representation id="5" mimeType="video/mp4" codecs="avc1.4D401F" width="1280" height="720" sar="1:1" bandwidth="2090000">
   </Representation>
  </AdaptationSet>
  <AdaptationSet segmentAlignment="true" startWithSAP="1">
   <SegmentTemplate media="segment_6c622448fc_r5_$Number$.m4s" initialization="segment_6c622448fc_r5_init.mp4" timescale="90000" presentationTimeOffset="324058869" availabilityTimeOffset="1.8" startNumber="1" duration="180000"/>
   <Representation id="6" mimeType="audio/mp4" codecs="mp4a.40.2" audioSamplingRate="48000" bandwidth="2276">
    <AudioChannelConfiguration schemeIdUri="urn:mpeg:dash:23003:3:audio_channel_configuration:2011" value="2"/>
   </Representation>
  </AdaptationSet>
 </Period>
 <UTCTiming schemeIdUri="urn:mpeg:dash:utc:http-iso:2014" value="https://time.akamai.com/?iso"/>
</MPD>
```

Is possible to see that the ASIDs are not correctly assigned in the playlist and this issue prevents the player to correctly play the stream
ASID property do not apply correctly in multiple tracks
This is a GitHub Issue
repo:gpac
owner:gpac
Title : ASID property do not apply correctly in multiple tracks
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/
- [ ] 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/bug-reporting/

The ASID option in the gstreamer command, works only for some of the inputs, if multiple inputs contain the same ASID they are not put together under that ASID

The gpac command I used
```bash
gpac 
      -i tcp://gstreamer_augmented:5021:gpac:#ASID=65 reframer:rt=on
      -i tcp://gstreamer_augmented:5020:gpac:#ASID=65 reframer:rt=on
      -i tcp://gstreamer_augmented:6021:gpac:#ASID=66 reframer:rt=on
      -i tcp://gstreamer_augmented:6020:gpac:#ASID=66 reframer:rt=on
      -i tcp://gstreamer_augmented:7021:gpac:#ASID=67 reframer:rt=on
      -i tcp://gstreamer_augmented:7020:gpac:#ASID=67 reframer:rt=on
      -o http://origin:8081/live/upload/playlist.mpd:template=segment_$$(openssl rand -hex 5):buf=-200:seg_sync=no:segdur=2.0:cdur=0.2:asto=1.8:dmode=dynamic:cmaf=cmf2:profile=dashif.ll:utcs=https://time.akamai.com/?iso:hmode=push
```

The resulting maniffest
```xml
<?xml version="1.0"?>
<!-- MPD file Generated with GPAC version 2.3-DEV-rev588-g7edc40fe-master at 2023-10-25T21:46:57.097Z -->
<MPD xmlns="urn:mpeg:dash:schema:mpd:2011" minBufferTime="PT4.000S" type="dynamic" availabilityStartTime="2023-10-25T21:45:57.001Z" publishTime="2023-10-25T21:46:57.097Z" minimumUpdatePeriod="PT0H0M2.000S" timeShiftBufferDepth="PT0H0M30.000S" maxSegmentDuration="PT0H0M2.637S" profiles="urn:mpeg:dash:profile:isoff-live:2011,http://www.dashif.org/guidelines/low-latency-live-v5,urn:mpeg:dash:profile:cmaf:2019">
 <ProgramInformation moreInformationURL="http://gpac.io">
  <Title>playlist.mpd generated by GPAC</Title>
 </ProgramInformation>

 <ServiceDescription id="0">
  <Latency max="6000" min="2000" referenceId="0" target="4000"/>
  <PlaybackRate max="1.04" min="0.96"/>
 </ServiceDescription>
 <Period id="DID1" start="PT0H0M0.000S">
  <AdaptationSet id="67" segmentAlignment="true" startWithSAP="1">
   <SegmentTemplate media="segment_6c622448fc$Number$.m4s" initialization="segment_6c622448fcinit.mp4" timescale="90000" presentationTimeOffset="324058869" availabilityTimeOffset="1.8" startNumber="1" duration="180000"/>
   <Representation id="1" mimeType="audio/mp4" codecs="mp4a.40.2" audioSamplingRate="48000" bandwidth="2279">
    <AudioChannelConfiguration schemeIdUri="urn:mpeg:dash:23003:3:audio_channel_configuration:2011" value="2"/>
   </Representation>
  </AdaptationSet>
  <AdaptationSet id="66" segmentAlignment="true" maxWidth="1280" maxHeight="720" par="16:9" startWithSAP="1">
   <SegmentTemplate media="segment_6c622448fc_r1_$Number$.m4s" initialization="segment_6c622448fc_r1_init.mp4" timescale="90000" presentationTimeOffset="324058869" availabilityTimeOffset="1.8" startNumber="1" duration="180000"/>
   <Representation id="2" mimeType="video/mp4" codecs="avc1.4D401F" width="1280" height="720" sar="1:1" bandwidth="2200000">
   </Representation>
  </AdaptationSet>
  <AdaptationSet segmentAlignment="true" startWithSAP="1">
   <SegmentTemplate media="segment_6c622448fc_r2_$Number$.m4s" initialization="segment_6c622448fc_r2_init.mp4" timescale="90000" presentationTimeOffset="324058869" availabilityTimeOffset="1.8" startNumber="1" duration="180000"/>
   <Representation id="3" mimeType="audio/mp4" codecs="mp4a.40.2" audioSamplingRate="48000" bandwidth="2282">
    <AudioChannelConfiguration schemeIdUri="urn:mpeg:dash:23003:3:audio_channel_configuration:2011" value="2"/>
   </Representation>
  </AdaptationSet>
  <AdaptationSet segmentAlignment="true" maxWidth="1280" maxHeight="720" par="16:9" startWithSAP="1">
   <SegmentTemplate media="segment_6c622448fc_r3_$Number$.m4s" initialization="segment_6c622448fc_r3_init.mp4" timescale="90000" presentationTimeOffset="324058869" availabilityTimeOffset="1.8" startNumber="1" duration="180000"/>
   <Representation id="4" mimeType="video/mp4" codecs="avc1.4D401F" width="1280" height="720" sar="1:1" bandwidth="2090000">
   </Representation>
  </AdaptationSet>
  <AdaptationSet id="65" segmentAlignment="true" maxWidth="1280" maxHeight="720" par="16:9" startWithSAP="1">
   <SegmentTemplate media="segment_6c622448fc_r4_$Number$.m4s" initialization="segment_6c622448fc_r4_init.mp4" timescale="90000" presentationTimeOffset="324058869" availabilityTimeOffset="1.8" startNumber="1" duration="180000"/>
   <Representation id="5" mimeType="video/mp4" codecs="avc1.4D401F" width="1280" height="720" sar="1:1" bandwidth="2090000">
   </Representation>
  </AdaptationSet>
  <AdaptationSet segmentAlignment="true" startWithSAP="1">
   <SegmentTemplate media="segment_6c622448fc_r5_$Number$.m4s" initialization="segment_6c622448fc_r5_init.mp4" timescale="90000" presentationTimeOffset="324058869" availabilityTimeOffset="1.8" startNumber="1" duration="180000"/>
   <Representation id="6" mimeType="audio/mp4" codecs="mp4a.40.2" audioSamplingRate="48000" bandwidth="2276">
    <AudioChannelConfiguration schemeIdUri="urn:mpeg:dash:23003:3:audio_channel_configuration:2011" value="2"/>
   </Representation>
  </AdaptationSet>
 </Period>
 <UTCTiming schemeIdUri="urn:mpeg:dash:utc:http-iso:2014" value="https://time.akamai.com/?iso"/>
</MPD>
```

Is possible to see that the ASIDs are not correctly assigned in the playlist and this issue prevents the player to correctly play the stream
--- end body ---

The issue with the ASID property in GPAC indicates a potential bug in the handling of multiple tracks with the same ASID. This could lead to incorrect stream playback, but it does not represent a security vulnerability. The problem lies in the functionality of the software rather than a security flaw.