HLS `#EXT-X-TARGETDURATION=3` written but segments are 3.84s, [specification talks about the EXTINF duration round to a nearest integer](https://datatracker.ietf.org/doc/html/rfc8216#section-4.3.3.1) must be less than or equal to a target duration. Should target duration be `4` if segments were `3.84s` ?

**Question:** Is it possible to override the target duration value without a post-process scripting?

**Side question:** Also would like to set `DEFAULT=YES | DEFAULT=NO` attribute per audio EXT-X-MEDIA lines, possible?

Main manifest
```
#EXTM3U
#EXT-X-VERSION:6
#EXT-X-INDEPENDENT-SEGMENTS

#EXT-X-STREAM-INF:BANDWIDTH=700000,CODECS="avc1.4D401F,mp4a.40.2",RESOLUTION=640x360,FRAME-RATE=25,AUDIO="audio"
manifest_v1.m3u8

#EXT-X-STREAM-INF:BANDWIDTH=1500000,CODECS="avc1.4D4028,mp4a.40.2",RESOLUTION=1280x720,FRAME-RATE=25,AUDIO="audio"
manifest_v2.m3u8

#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="audio",NAME="a1_eng",LANGUAGE="eng",AUTOSELECT=YES,URI="manifest_a1_eng.m3u8",CHANNELS="2"
#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="audio",NAME="a1_ger",LANGUAGE="ger",AUTOSELECT=YES,URI="manifest_a1_ger.m3u8",CHANNELS="2"
```

Video v1 playlist
```
#EXTM3U
#EXT-X-TARGETDURATION:3
#EXT-X-VERSION:6
#EXT-X-MEDIA-SEQUENCE:1
#EXT-X-INDEPENDENT-SEGMENTS
#EXT-X-MAP:URI="v1/i.mp4"
#EXTINF:3.84,
v1/1.m4s
#EXTINF:3.84,
v1/2.m4s
..continue..
```

Audio a1_eng playlist
```
#EXTM3U
#EXT-X-TARGETDURATION:3
#EXT-X-VERSION:6
#EXT-X-MEDIA-SEQUENCE:1
#EXT-X-INDEPENDENT-SEGMENTS
#EXT-X-MAP:URI="a1_eng/i.mp4"
#EXTINF:3.84,
a1_eng/1.m4s
#EXTINF:3.84,
a1_eng/2.m4s
#EXTINF:3.84,
a1_eng/3.m4s
..continue...
```

mp4box command line
```
MP4Box.exe ^
  -dash 184320 -frag 46080 -dash-scale 48000  -mem-frags -rap -profile dashavc264:live ^
  -profile-ext "urn:hbbtv:dash:profile:isoff-live:2012" -bs-switching no ^
  -sample-groups-traf -single-traf --tfdt64 --tfdt_traf --noroll=yes --btrt=no ^
  --truns_first=yes -subsegs-per-sidx 0 --cmaf=cmf2 ^
  -segment-name "$RepresentationID$/$Number$$Init=i$" -segment-timeline ^
  -out "manifest.mpd:dual" ^
  temp-v1.mp4#trackID=1:id=v1:period=p0:dur=38.4:role=main:bandwidth=700000:#HLSPL=manifest_v1.m3u8 ^
  temp-v2.mp4#trackID=1:id=v2:period=p0:dur=38.4:bandwidth=1500000:#HLSPL=manifest_v2.m3u8^
  temp-a1.mp4#trackID=1:id=a1_eng:period=p0:dur=38.4:role=main:bandwidth=128000:#HLSPL=manifest_a1_eng.m3u8:#HLSGroup=audio ^  
  temp-a1_ger.mp4#trackID=1:id=a1_ger:period=p0:dur=38.4:role=alternate:bandwidth=128000:#HLSPL=manifest_a1_ger.m3u8:#HLSGroup=audio
```

HLS playlist #EXT-X-TARGETDURATION=3 but segments are EXTINF:3.84 seconds
This is a GitHub Issue
repo:gpac
owner:gpac
Title : HLS playlist #EXT-X-TARGETDURATION=3 but segments are EXTINF:3.84 seconds
Issue date:

--- start body ---
HLS `#EXT-X-TARGETDURATION=3` written but segments are 3.84s, [specification talks about the EXTINF duration round to a nearest integer](https://datatracker.ietf.org/doc/html/rfc8216#section-4.3.3.1) must be less than or equal to a target duration. Should target duration be `4` if segments were `3.84s` ?

**Question:** Is it possible to override the target duration value without a post-process scripting?

**Side question:** Also would like to set `DEFAULT=YES | DEFAULT=NO` attribute per audio EXT-X-MEDIA lines, possible?

Main manifest
```
#EXTM3U
#EXT-X-VERSION:6
#EXT-X-INDEPENDENT-SEGMENTS

#EXT-X-STREAM-INF:BANDWIDTH=700000,CODECS="avc1.4D401F,mp4a.40.2",RESOLUTION=640x360,FRAME-RATE=25,AUDIO="audio"
manifest_v1.m3u8

#EXT-X-STREAM-INF:BANDWIDTH=1500000,CODECS="avc1.4D4028,mp4a.40.2",RESOLUTION=1280x720,FRAME-RATE=25,AUDIO="audio"
manifest_v2.m3u8

#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="audio",NAME="a1_eng",LANGUAGE="eng",AUTOSELECT=YES,URI="manifest_a1_eng.m3u8",CHANNELS="2"
#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="audio",NAME="a1_ger",LANGUAGE="ger",AUTOSELECT=YES,URI="manifest_a1_ger.m3u8",CHANNELS="2"
```

Video v1 playlist
```
#EXTM3U
#EXT-X-TARGETDURATION:3
#EXT-X-VERSION:6
#EXT-X-MEDIA-SEQUENCE:1
#EXT-X-INDEPENDENT-SEGMENTS
#EXT-X-MAP:URI="v1/i.mp4"
#EXTINF:3.84,
v1/1.m4s
#EXTINF:3.84,
v1/2.m4s
..continue..
```

Audio a1_eng playlist
```
#EXTM3U
#EXT-X-TARGETDURATION:3
#EXT-X-VERSION:6
#EXT-X-MEDIA-SEQUENCE:1
#EXT-X-INDEPENDENT-SEGMENTS
#EXT-X-MAP:URI="a1_eng/i.mp4"
#EXTINF:3.84,
a1_eng/1.m4s
#EXTINF:3.84,
a1_eng/2.m4s
#EXTINF:3.84,
a1_eng/3.m4s
..continue...
```

mp4box command line
```
MP4Box.exe ^
  -dash 184320 -frag 46080 -dash-scale 48000  -mem-frags -rap -profile dashavc264:live ^
  -profile-ext "urn:hbbtv:dash:profile:isoff-live:2012" -bs-switching no ^
  -sample-groups-traf -single-traf --tfdt64 --tfdt_traf --noroll=yes --btrt=no ^
  --truns_first=yes -subsegs-per-sidx 0 --cmaf=cmf2 ^
  -segment-name "$RepresentationID$/$Number$$Init=i$" -segment-timeline ^
  -out "manifest.mpd:dual" ^
  temp-v1.mp4#trackID=1:id=v1:period=p0:dur=38.4:role=main:bandwidth=700000:#HLSPL=manifest_v1.m3u8 ^
  temp-v2.mp4#trackID=1:id=v2:period=p0:dur=38.4:bandwidth=1500000:#HLSPL=manifest_v2.m3u8^
  temp-a1.mp4#trackID=1:id=a1_eng:period=p0:dur=38.4:role=main:bandwidth=128000:#HLSPL=manifest_a1_eng.m3u8:#HLSGroup=audio ^  
  temp-a1_ger.mp4#trackID=1:id=a1_ger:period=p0:dur=38.4:role=alternate:bandwidth=128000:#HLSPL=manifest_a1_ger.m3u8:#HLSGroup=audio
```

--- end body ---
