issue_owner_repo listlengths 2 2 | issue_body stringlengths 0 261k ⌀ | issue_title stringlengths 1 925 | issue_comments_url stringlengths 56 81 | issue_comments_count int64 0 2.5k | issue_created_at stringlengths 20 20 | issue_updated_at stringlengths 20 20 | issue_html_url stringlengths 37 62 | issue_github_id int64 387k 2.46B | issue_number int64 1 127k |
|---|---|---|---|---|---|---|---|---|---|
[
"gpac",
"gpac"
] | I've noticed that when I try to multiplex multiple tracks in a fragmented MP4 file, only one moof is created. If I remove the second track then moof's are created as usual. Is this a bug or I'm doing something wrong in multiplexing multiple tracks?
GPAC version: 2.5-DEV-rev403-g56c7c3ccc-master
OS: Ubuntu 22.04
**Command line used:**
```bash
gpac --g=30 \
avgen:v:fps=30 \
@@0 ffsws:osize=1280x720:RSID @ c=avc:b=3000000:minrate=3000000:maxrate=3000000:bufsize=6M:FID=e1 \
@@0 ffsws:osize=640x360:RSID @ c=avc:b=360000:minrate=360000:maxrate=360000:bufsize=720K:FID=e2 \
-o test.mp4:cmfc:frag:cdur=1:straf:strun:fragdur:SID=e1,e2
``` | mux_isom: Fragments not created when multiple tracks are present | https://api.github.com/repos/gpac/gpac/issues/2904/comments | 4 | 2024-07-03T17:07:30Z | 2024-07-04T14:59:44Z | https://github.com/gpac/gpac/issues/2904 | 2,389,089,305 | 2,904 |
[
"gpac",
"gpac"
] | Greetings.
Making stream with two qualities:
```
MP4Box -dash 10000 -dash-ctx context.txt -profile dashavc264:live --utcs="https://time.akamai.com/?iso&ms" -mpd-refresh 2 -dynamic -bs-switching merge -segment-timeline -url-template -insert-utc -min-buffer 15 -mpd-title "Test" --force_flush -time-shift 30 \
input.mp4#video:dur=10:#Representation=norm input.mp4#video:dur=10:@ffsws:osize=640x360:osar=16/9:scale=bilinear@enc:c=avc:fintra=2#Representation=shit
```
Makes second representation with resolution 360x360 instead of ordered 640x360.
```
<AdaptationSet segmentAlignment="true" maxWidth="1920" maxHeight="1080" maxFrameRate="25" par="16:9" mimeType="video/mp4" startWithSAP="1">
<SegmentTemplate timescale="12800">
...
</SegmentTemplate>
<Representation id="norm" mimeType="video/mp4" codecs="avc1.640028" width="1920" height="1080" frameRate="25" sar="1:1" bandwidth="2319474">
<SegmentTemplate media="input_dash_track1_$Time$_rep1.m4s?nimblesessionid=7787" initialization="input_dash_track1_init_rep1.mp4?nimblesessionid=7787" timescale="12800" startNumber="1"/>
</Representation>
<Representation id="4" mimeType="video/mp4" codecs="avc1.640015" **width="360" height="360"** frameRate="25" sar="16:9" bandwidth="100000">
<SegmentTemplate media="input_dash_track1_$Time$_rep2.m4s?nimblesessionid=7787" initialization="input_dash_track1_init_rep2.mp4?nimblesessionid=7787" timescale="12800" startNumber="1"/>
</Representation>
</AdaptationSet>
```
| MP4Box calling @ffsws osize:640x360 makes scale 360x360 instead of 640x360. | https://api.github.com/repos/gpac/gpac/issues/2902/comments | 1 | 2024-07-02T14:02:17Z | 2024-07-03T10:40:27Z | https://github.com/gpac/gpac/issues/2902 | 2,386,355,385 | 2,902 |
[
"gpac",
"gpac"
] | Hello. I have encountered a weird issue.
What I'm doing:
- Generating .ts file with `gpac -i input.mp4 -o output.ts:temi="#N#url"`, gpac 2.5-DEV-rev360-ge3fdb474-master (Windows 10)
- Modulating in DVB-T with DekTec modulator.
- Receiving in another computer with an app that depends on GStreamer.
- Playing video in the GStreamer app and retreiving url in TEMILocation.
I also have the Windows binaries of gpac 0.8.0, and I have also generated another .ts file with mp42ts, because that's what the people that started the project I'm working on did back then.
The command they used (and the same I used to generate the .ts file) is the following:
`MP42TS -real-time -rate 30000 -src=input.mp4:ID=103 -pcr-init=750 -insert-ntp -temi http://192.168.0.37/index.xml -dst-file=output.ts`
Ok now with the issue. The video generated with mp42ts (gpac 0.8.0) plays perfectly from the GStreamer app, while the video generated with gpac 2.5 doesn't. They both play perfectly in VLC.
Differences between both files:
**video generated with mp42ts (gpac 0.8.0)**
- Has a size of approximately 10 times the size of the .mp4 source.
- `gpac -i video.ts inspect` shows a bunch of errors like this: `[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome`
- In the GStreamer app, with GST_DEBUG=3, I see a lot of messages like this `<autoaudiosink-actual-sink-pulse> [00m correct clock skew -0:00:00.024353613 < -+0:00:00.020000000` but the video plays perfectly fine and there are no more warnings.
**video generated with gpac 2.5**
- Has approximately the same size as the .mp4 source.
- `gpac -i video.ts inspect` shows correct info on the file.
- In the GStreamer app, video playback works but it stops a lot. With GST_DEBUG=3, I see the same "correct clock skew" messages that I get with the other .ts file, but there is also this (I removed the debugging timestamps to make it a bit more readable):
```
pulse pulsesink.c:704:gst_pulsering_stream_underflow_cb:<autoaudiosink-actual-sink-pulse>[00m Got underflow
audiobasesink gstaudiobasesink.c:1794:gst_audio_base_sink_get_alignment:<autoaudiosink-actual-sink-pulse>[00m Unexpected discontinuity in audio timestamps of +0:00:00.001587301, resyncing
pulse pulsesink.c:704:gst_pulsering_stream_underflow_cb:<autoaudiosink-actual-sink-pulse>[00m Got underflow
audiobasesink gstaudiobasesink.c:1794:gst_audio_base_sink_get_alignment:<autoaudiosink-actual-sink-pulse>[00m Unexpected discontinuity in audio timestamps of +0:00:00.001904761, resyncing
videodecoder gstvideodecoder.c:3665:gst_video_decoder_clip_and_push_buf:<h264dec>[00m Dropping frame due to QoS. start:1091360:02:55.842671781 deadline:1091360:02:55.882671781 earliest_time:1091360:02:55.917182179
audiobasesink gstaudiobasesink.c:1794:gst_audio_base_sink_get_alignment:<autoaudiosink-actual-sink-pulse>[00m Unexpected discontinuity in audio timestamps of +0:00:00.000997732, resyncing
pulse pulsesink.c:704:gst_pulsering_stream_underflow_cb:<autoaudiosink-actual-sink-pulse>[00m Got underflow
audiobasesink gstaudiobasesink.c:1794:gst_audio_base_sink_get_alignment:<autoaudiosink-actual-sink-pulse>[00m Unexpected discontinuity in audio timestamps of +0:00:00.003424036, resyncing
audiobasesink gstaudiobasesink.c:1794:gst_audio_base_sink_get_alignment:<autoaudiosink-actual-sink-pulse>[00m Unexpected discontinuity in audio timestamps of +0:00:00.001111111, resyncing
videodecoder gstvideodecoder.c:3665:gst_video_decoder_clip_and_push_buf:<h264dec>[00m Dropping frame due to QoS. start:1091360:02:55.964954946 deadline:1091360:02:56.004954946 earliest_time:1091360:02:56.033076798
audiobasesink gstaudiobasesink.c:1794:gst_audio_base_sink_get_alignment:<autoaudiosink-actual-sink-pulse>[00m Unexpected discontinuity in audio timestamps of +0:00:00.001179138, resyncing
audiobasesink gstaudiobasesink.c:1794:gst_audio_base_sink_get_alignment:<autoaudiosink-actual-sink-pulse>[00m Unexpected discontinuity in audio timestamps of +0:00:00.001201814, resyncing
audiobasesink gstaudiobasesink.c:1794:gst_audio_base_sink_get_alignment:<autoaudiosink-actual-sink-pulse>[00m Unexpected discontinuity in audio timestamps of +0:00:00.004172335, resyncing
audiobasesink gstaudiobasesink.c:1794:gst_audio_base_sink_get_alignment:<autoaudiosink-actual-sink-pulse>[00m Unexpected discontinuity in audio timestamps of +0:00:00.001360544, resyncing
audiobasesink gstaudiobasesink.c:1794:gst_audio_base_sink_get_alignment:<autoaudiosink-actual-sink-pulse>[00m Unexpected discontinuity in audio timestamps of +0:00:00.001451247, resyncing
audiobasesink gstaudiobasesink.c:1491:gst_audio_base_sink_skew_slaving:<autoaudiosink-actual-sink-pulse>[00m correct clock skew -0:00:00.020182884 < -+0:00:00.020000000
mpegtspacketizer mpegtspacketizer.c:1662:calculate_skew:[00m delta - skew: +0:00:01.007427892 too big, reset skew
audiobasesink gstaudiobasesink.c:1794:gst_audio_base_sink_get_alignment:<autoaudiosink-actual-sink-pulse>[00m Unexpected discontinuity in audio timestamps of +0:00:01.009387755, resyncing
basesink gstbasesink.c:3146:gst_base_sink_is_too_late:<sink>[00m warning: Se están desechando muchos búferes.
basesink gstbasesink.c:3146:gst_base_sink_is_too_late:<sink>[00m warning: There may be a timestamping problem, or this computer is too slow.
basesink gstbasesink.c:3146:gst_base_sink_is_too_late:<sink>[00m warning: Se están desechando muchos búferes.
basesink gstbasesink.c:3146:gst_base_sink_is_too_late:<sink>[00m warning: There may be a timestamping problem, or this computer is too slow.
pulse pulsesink.c:704:gst_pulsering_stream_underflow_cb:<autoaudiosink-actual-sink-pulse>[00m Got underflow
pulse pulsesink.c:704:gst_pulsering_stream_underflow_cb:<autoaudiosink-actual-sink-pulse>[00m Got underflow
videodecoder gstvideodecoder.c:3665:gst_video_decoder_clip_and_push_buf:<h264dec>[00m Dropping frame due to QoS. start:1091360:02:59.486143201 deadline:1091360:02:59.526143201 earliest_time:1091360:02:59.532479287
videodecoder gstvideodecoder.c:3665:gst_video_decoder_clip_and_push_buf:<h264dec>[00m Dropping frame due to QoS. start:1091360:02:59.566143201 deadline:1091360:02:59.606143201 earliest_time:1091360:02:59.633657631
audiobasesink gstaudiobasesink.c:1794:gst_audio_base_sink_get_alignment:<autoaudiosink-actual-sink-pulse>[00m Unexpected discontinuity in audio timestamps of +0:00:00.000090702, resyncing
audiobasesink gstaudiobasesink.c:1794:gst_audio_base_sink_get_alignment:<autoaudiosink-actual-sink-pulse>[00m Unexpected discontinuity in audio timestamps of +0:00:00.000068027, resyncing
audiobasesink gstaudiobasesink.c:1794:gst_audio_base_sink_get_alignment:<autoaudiosink-actual-sink-pulse>[00m Unexpected discontinuity in audio timestamps of +0:00:00.000068027, resyncing
mpegtspacketizer mpegtspacketizer.c:1662:calculate_skew:[00m delta - skew: +0:00:01.019824186 too big, reset skew
audiobasesink gstaudiobasesink.c:1794:gst_audio_base_sink_get_alignment:<autoaudiosink-actual-sink-pulse>[00m Unexpected discontinuity in audio timestamps of +0:00:00.000226757, resyncing
audiobasesink gstaudiobasesink.c:1794:gst_audio_base_sink_get_alignment:<autoaudiosink-actual-sink-pulse>[00m Unexpected discontinuity in audio timestamps of +0:00:01.020589569, resyncing
audiobasesink gstaudiobasesink.c:1491:gst_audio_base_sink_skew_slaving:<autoaudiosink-actual-sink-pulse>[00m correct clock skew -0:00:00.020080725 < -+0:00:00.020000000
```
Do you think I should post this in the GStreamer Discourse?
Also, please tell me if there's a better name for this issue. | m2tsmux discontinuities in audio timestamps | https://api.github.com/repos/gpac/gpac/issues/2901/comments | 2 | 2024-07-02T08:35:46Z | 2024-07-03T11:20:59Z | https://github.com/gpac/gpac/issues/2901 | 2,385,612,281 | 2,901 |
[
"gpac",
"gpac"
] | - [x] I looked for a similar issue and couldn't find any.
- [x] I tried with the latest version of GPAC. Installers available at https://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 ...).
Hello.
I made my stream with two different resolutions. First is 1920x1080, second is 320x240
```
MP4Box -dash 10000 -dash-ctx context.txt -profile dashavc264:live \
--utcs="https://time.akamai.com/?iso&ms" \
-mpd-refresh 2 -dynamic -bs-switching multi -segment-timeline -url-template \
-insert-utc -min-buffer 15 -mpd-title "Test" --force_flush -time-shift 30 \
input.mp4#video:#Bitrate=5M:#Representation=norm:dur=10 \
input.mp4#video:#Bitrate=1M:dur=10:@ffsws:osize=320x240@enc:c=avc:b=200k:#Representation=shit \
input.mp4#audio
input.mp4#trackID=3:id=eng:#Bitrate=48k:#Role=subtitle:#Language=eng \
-out /dev/shm/broadcast/b4PB34n1Ym/manifest.mpd
```
It works, but by some reason, I can not switch bitrates through "Bitrates" control of dash.js ([reference dash.js](https://reference.dashif.org/dash.js/latest/samples/dash-if-reference-player/index.html))
But I can do it through "Tracks" control.
Still 1 bitrate

But 2 tracks. I can change the quality here.

What I have to change in MP4Box command, to switch bitrates via "Bitrate" control instead of "Tracks"?
Sample manifest:
```
<?xml version="1.0"?>
<!-- MPD file Generated with GPAC version 2.5-DEV-rev351-g0b6b7b46e-master at 2024-07-01T13:45:43.298Z -->
<MPD xmlns="urn:mpeg:dash:schema:mpd:2011" minBufferTime="PT1.500S" type="dynamic" availabilityStartTime="2024-07-01T12:38:13.074Z" publishTime="2024-07-01T13:45:43.298Z" minimumUpdatePeriod="PT0H0M2.000S" timeShiftBufferDepth="PT0H0M30.000S" maxSegmentDuration="PT0H0M12.160S" profiles="urn:mpeg:dash:profile:isoff-live:2011,http://dashif.org/guidelines/dash264">
<ProgramInformation moreInformationURL="https://gpac.io">
<Title>Test</Title>
</ProgramInformation>
<Location>...manifest.mpd?nimblesessionid=7366</Location><Period id="DID1" start="PT0H0M0.000S">
<AdaptationSet segmentAlignment="true" maxWidth="1920" maxHeight="1080" maxFrameRate="25" par="168:95" mimeType="video/mp4" startWithSAP="1">
<SegmentTemplate media="input_dash_track1_$Time$.m4s?nimblesessionid=7366" initialization="input_dash_track1_init.mp4?nimblesessionid=7366" timescale="12800" startNumber="1">
<SegmentTimeline>
<S t="51553894" d="128000"/>
<S t="51683328" d="128000" r="1"/>
</SegmentTimeline>
</SegmentTemplate>
<Representation id="norm" mimeType="video/mp4" codecs="avc1.640028" width="1920" height="1080" frameRate="25" sar="189:190" bandwidth="5000000">
</Representation>
</AdaptationSet>
<AdaptationSet segmentAlignment="true" mimeType="audio/mp4" startWithSAP="1">
<SegmentTemplate media="input_dash_track2_$Time$.m4s?nimblesessionid=7366" initialization="input_dash_track2_init.mp4?nimblesessionid=7366" timescale="8000" startNumber="1">
<SegmentTimeline>
<S t="32220544" d="80896"/>
<S t="32302080" d="79872"/>
<S t="32382080" d="79872"/>
</SegmentTimeline>
</SegmentTemplate>
<Representation id="2" mimeType="audio/mp4" codecs="mp4a.40.2" audioSamplingRate="8000" bandwidth="27278">
<AudioChannelConfiguration schemeIdUri="urn:mpeg:dash:23003:3:audio_channel_configuration:2011" value="1"/>
</Representation>
</AdaptationSet>
<AdaptationSet segmentAlignment="true" lang="en" mimeType="application/mp4" startWithSAP="1">
<Role schemeIdUri="urn:mpeg:dash:role:2011" value="subtitle"/>
<SegmentTemplate media="input_dash_track3_$Time$.m4s?nimblesessionid=7366" initialization="input_dash_track3_init.mp4?nimblesessionid=7366" timescale="1000" startNumber="1">
<SegmentTimeline>
<S t="4027648" d="10000"/>
<S t="4037760" d="10000" r="1"/>
</SegmentTimeline>
</SegmentTemplate>
<Representation id="3" mimeType="application/mp4" codecs="wvtt" bandwidth="48000">
</Representation>
</AdaptationSet>
<AdaptationSet segmentAlignment="true" maxWidth="320" maxHeight="240" maxFrameRate="25" par="126:95" mimeType="video/mp4" startWithSAP="1">
<SegmentTemplate media="input_dash_track4_$Time$.m4s?nimblesessionid=7366" initialization="input_dash_track4_init.mp4?nimblesessionid=7366" timescale="12800" startNumber="1">
<SegmentTimeline>
<S t="51553894" d="128000"/>
<S t="51683328" d="128000" r="1"/>
</SegmentTimeline>
</SegmentTemplate>
<Representation id="shit" mimeType="video/mp4" codecs="avc1.64000D" width="320" height="240" frameRate="25" sar="189:190" bandwidth="200000">
</Representation>
</AdaptationSet>
</Period>
<UTCTiming schemeIdUri="urn:mpeg:dash:utc:http-iso:2014" value="https://time.akamai.com/?iso&ms"/>
</MPD>
``` | Question. I did two bitrates. How I can set them in "Bitrate" section instead of "Tracks" in dash.js | https://api.github.com/repos/gpac/gpac/issues/2900/comments | 1 | 2024-07-01T16:09:46Z | 2024-07-02T11:46:06Z | https://github.com/gpac/gpac/issues/2900 | 2,384,223,259 | 2,900 |
[
"gpac",
"gpac"
] | Greetings.
Thank you for an outstanding and powerful toolset.
I make a stream from consequently running `MP4Box`, from mp4 files with subtitle track.
VTT subtitles are embedded with MP4Box.
```
MP4Box \
-dash 10000 -dash-ctx context.txt -profile dashavc264:live \
--utcs="https://time.akamai.com/?iso&ms" -mpd-refresh 2 -dynamic -bs-switching no \
-segment-timeline -url-template -insert-utc -min-buffer 15 --force_flush \
-time-shift 30 \
input.mp4#video:#Bitrate=5M:#Representation=norm:dur=10 \
input.mp4#audio \
input.mp4#trackID=3:id=eng:dur=10:#Role=subtitles:#Language=eng \
-out /dev/shm/broadcast/egqn3zw1o9/manifest.mpd
```
I have been adding subtitles before:
```
MP4Box -add subtitles.vtt:FMT=VTT:lang=en segment.mp4
```
The first run says, that there's problem with subtitle bitrate.
```
[Dasher] No template assigned, using $File$_dash$FS$$Time$
**[Dasher] No bitrate property assigned to PID T3, computing from bitstream**
[Dasher] Synchronized clock to remote https://time.akamai.com/?iso&ms - UTC diff (local - remote) 2 ms
[Dasher] MPD Availability start time initialized to 1719612468645 ms
[Dasher] Unrecognized role subtitles - using GPAC urn for schemaID
[Dasher] AS-1 Rep 2 segment 1 done 9992 ms before UTC due time1 8.83s (88.32 %) AS#3.1(T) seg #1 0.00s (0.00 %) / MPD 8.83s 38 %
[Dasher] updated period DID1 duration 9968 MPD time 9968 done (2 segs) AS#3.1(T) seg #1 0.00s (0.00 %) / MPD 3.12s 43 %
[Dasher] Couldn't compute bitrate of PID T3 in time for manifest generation, please specify #Bitrate property
[MPD] Generating MPD at time 2024-06-28T22:07:48.653Z
[Dasher] AS-1 Rep 1 segment 1 done 9909 ms before UTC due time(2 segs) AS#3.1(T) seg #1 0.00s (0.00 %) / MPD 9.52s 65 %
[Dasher] AS-1 Rep eng segment 1 done 9989 ms before UTC due time
[Dasher] Adaptation sets in period are of unequal duration min 0 max 10 seconds segs)
[Dasher] updated period DID1 duration 10000 MPD time 10000
[Dasher] Couldn't compute bitrate of PID T3 in time for manifest generation, please specify #Bitrate property
[MPD] Generating MPD at time 2024-06-28T22:07:48.656Z
[Dasher] Couldn't compute bitrate of PID T3 in time for manifest generation, please specify #Bitrate property
[Dasher] Adaptation sets in period are of unequal duration min 0 max 10 seconds
[Dasher] updated period DID1 duration 10000 MPD time 10000
[Dasher] Couldn't compute bitrate of PID T3 in time for manifest generation, please specify #Bitrate property
[MPD] Generating MPD at time 2024-06-28T22:07:48.657Z
```
The stream runs normally at some extent. But few minutes after of stable work, the `MP4Box` start producing dozens of warnings on each run. The length of these "delays" and count of lines increases on each run.
Example of 42th run:
```
[Dasher] AS-1 Rep 2 segment 42 done 9297 ms before UTC due time
[Dasher] removing segment input_dash_track1_4743161.m4s
[Dasher] removing segment input_dash_track3_380000.m4s
[Dasher] removing segment input_dash_track3_0.m4s
[Dasher] removing segment input_dash_track3_10000.m4s
[Dasher] removing segment input_dash_track3_20000.m4s
[Dasher] removing segment input_dash_track3_30000.m4s
[Dasher] removing segment input_dash_track3_40000.m4s
[Dasher] removing segment input_dash_track3_50000.m4s
[Dasher] removing segment input_dash_track3_60000.m4s
[Dasher] removing segment input_dash_track3_70000.m4s
[Dasher] removing segment input_dash_track3_80000.m4s
...
[Dasher] removing segment input_dash_track3_330000.m4s
[Dasher] removing segment input_dash_track3_340000.m4s
[Dasher] removing segment input_dash_track3_380000.m4s
```
And then it updates the Period D1D1 (in this example it is 42th run)
```
[Dasher] updated period DID1 duration 420511 MPD time 420511
[Dasher] Couldn't compute bitrate of PID T3 in time for manifest generation, please specify #Bitrate property
[MPD] Generating MPD at time 2024-06-28T22:14:39.348Z
[Dasher] AS-1 Rep eng segment 656 done 6189358 ms before UTC due time
[Dasher] AS-1 Rep eng segment 657 done 6199358 ms before UTC due time
[Dasher] AS-1 Rep eng segment 658 done 6209358 ms before UTC due time
[Dasher] AS-1 Rep eng segment 659 done 6219358 ms before UTC due time
[Dasher] AS-1 Rep eng segment 660 done 6229357 ms before UTC due time
[Dasher] AS-1 Rep eng segment 661 done 6239357 ms before UTC due time
... dozens ...
[Dasher] AS-1 Rep eng segment 672 done 6349357 ms before UTC due time
[Dasher] AS-1 Rep eng segment 673 done 6359357 ms before UTC due time
[Dasher] AS-1 Rep eng segment 692 done 6549357 ms before UTC due time
````
This behaviour gives a feeling that there's some overflow is possible, that could cause stream crash.
Example file info:
```
MP4Box -info s_1719613467.mp4
# Movie Info - 3 tracks - TimeScale 600
Duration 00:00:10.000
Fragmented: no
Major Brand isom - version 512 - compatible brands: isom iso2 avc1 mp41
Created: UNKNOWN DATE
File has root IOD (9 bytes)
Scene PL 0xff - Graphics PL 0xff - OD PL 0xff
Visual PL: ISO Reserved Profile (0x15)
Audio PL: AAC Profile @ Level 1 (0x28)
No streams included in root OD
Meta-Data Tags:
title: Media Presentation
tool: GPAC-2.5-DEV-rev337-g9674ae8d6-HEAD
# Track 1 Info - ID 1 - TimeScale 12800
Media Duration 00:00:10.080
Track has 1 edits: track duration is 00:00:10.000
Track flags: Enabled In Movie
Media Samples: 250 - CFR 25/sec
Visual Track layout: x=0 y=0 width=1909 height=1080
Media Type: vide:avc1
Visual Sample Entry Info: width=1920 height=1080 (depth=24 bits)
AVC/H264 Video - Visual Size 1920 x 1080
AVC Info: 1 SPS - 1 PPS - Profile High @ Level 4
NAL Unit length bits: 32
Pixel Aspect Ratio 189:190 - Indicated track size 1909 x 1080
Chroma format YUV 4:2:0 - Luma bit depth 8 - chroma bit depth 8
SPS#1 hash: 3238D6627A272B8D6F62F8E86C13EC18F2A7F19C
PPS#1 hash: A3EE4CDCBCFE65012A7D3860B430E3AC70377532
RFC6381 Codec Parameters: avc1.640028
Average GOP length: 62 samples
Max sample duration: 512 / 12800
# Track 2 Info - ID 2 - TimeScale 8000
Media Duration 00:00:09.984
Track has 1 edits: track duration is 00:00:09.966
Track flags: Enabled In Movie
Media Samples: 78 - CFR 7.812500/sec
Alternate Group ID 1
Media Type: soun:mp4a
MPEG-4 Audio AAC LC (AOT=2 implicit) - 1 Channel(s) - SampleRate 8000
RFC6381 Codec Parameters: mp4a.40.2
All samples are sync
Max sample duration: 1024 / 8000
# Track 3 Info - ID 3 - TimeScale 1000
Media Duration 00:00:00.000
Track flags: Enabled In Movie In Preview
Media Language: English (en)
Media Samples: 0
Media Type: text:wvtt
QT/3GPP text
Size 1920 x 1080 - Translation X=0 Y=0 - Layer 0
RFC6381 Codec Parameters: wvtt
All samples are sync
Max sample duration: 0 / 1000
```
Please tell, how to get rid of these repeating warnings? What is needed to insert subtitles properly?
| MP4Box throws numerous repetitive warnings, when dashing with subtitles | https://api.github.com/repos/gpac/gpac/issues/2899/comments | 1 | 2024-06-28T22:32:56Z | 2024-07-01T13:29:12Z | https://github.com/gpac/gpac/issues/2899 | 2,381,279,398 | 2,899 |
[
"gpac",
"gpac"
] | I'm rescuing an old project from my department and I need to generate a transport stream file with an URL in the TEMI Location descriptor and with timestamps. The transport stream will be modulated in DVB-T, received and played by a GStreamer app in another computer. The colleagues that started the project used MP42TS utility to transform an mp4 file to .ts with the following command:
`MP42TS -real-time -rate 30000 -src=input.mp4:ID=103 -pcr-init=750 -insert-ntp -temi http://192.168.0.37/index.xml -dst-file=output.ts`
What they did was run this command, wait for the duration of the file (if the video lasted 5min they waited exactly 5min) and then they stopped execution. I don't think this is the way to go, but before fixing their mistakes I would like to be able to reproduce their workflow with modern GPAC. With the generated .ts file from the command above, I am able to play it back in the receiving computer and I'm also able to retrieve the URL.
I have tried the following two commands:
`gpac -i input.mp4 -o output.ts:pcr_init=750:temi="#N#http://192.168.0.37/index.xml"`
`gpac -i input.mp4 -o output.ts:pcr_init=750:temi="http://192.168.0.37/index.xml"`
The first one plays, and that seems to indicate that the NTP timestamps are placed correctly. The second one doesn't play. I cannot retrieve the URL from any of these.
I have also tried adding the -real-time and -rate options, but the resulting file didn't even play in VLC.
Thanks in advance for any guidance, and thanks for such a good tool like GPAC. | m2tsmux usage question | https://api.github.com/repos/gpac/gpac/issues/2897/comments | 2 | 2024-06-28T09:51:24Z | 2024-07-02T07:50:35Z | https://github.com/gpac/gpac/issues/2897 | 2,380,039,848 | 2,897 |
[
"gpac",
"gpac"
] | New heif converter features. Heif is moving to the new generation of vvif files
https://forum.doom9.org/showpost.php?p=2003531&postcount=325
```
[VVC] Invalid NALU type 2 in vvcC - ignoring
[VVC] Wrong param set size 48422
[isom] not enough bytes in box vvcC: 2 left, reading 86238 (file ..\..\src\isomedia\avc_ext.c, line 3096) - try specifying -no-check (might crash)
[iso file] Read Box "vvcC" (start 204) failed (Invalid IsoMedia File) - skipping
[iso file] Read Box "ipco" (start 196) failed (Invalid IsoMedia File) - skipping
[iso file] Read Box "iprp" (start 188) failed (Invalid IsoMedia File) - skipping
[iso file] Read Box type 000000! (0x00000021) at position 36 has size 0 but is not at root/file level. Forbidden, skipping end of parent box !
[iso file] Box "meta" (start 28) has 293 extra bytes
[iso file] Missing handler in META!
Error opening file vvc.vvif: Invalid IsoMedia File
```
https://github.com/strukturag/libheif/issues/519 | New heif converter features. Heif is moving to the new generation of vvif files | https://api.github.com/repos/gpac/gpac/issues/2896/comments | 7 | 2024-06-28T09:15:58Z | 2024-07-01T09:30:07Z | https://github.com/gpac/gpac/issues/2896 | 2,379,972,645 | 2,896 |
[
"gpac",
"gpac"
] | - [x] I looked for a similar issue and couldn't find any.
- [x] I tried with the latest version of GPAC. Installers available at https://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
We came across a problem when muxing multiple VVC bitstreams separately and then concatenating them using MP4Box: The parameter sets are dropped from all but the first source file. Specifically this problem pops up, when the individual bitstreams are encoded with different rates. The encoder stets the base QP in the PPSs differently, so the PPS from the later bitstreams also need to be present.
This is how to reproduce the problem:
```
MP4Box -add out1.266 -new out1.mp4
MP4Box -add out2.266 -new out2.mp4
MP4Box -new cat.mp4 -add out1.mp4 -cat out2.mp4
```
If you try to play the resulting cat.mp4 file, the decoder exits with an error, because it can not decode the second part of the file due to the wrong PPS. A workaround is to specify `--xps_inband=all`, when creating the individual files, but I think the concatenation should detect that the parameter sets are incompatible and also keep those of the later bitstreams. If that is not possible or wanted, at least a warning should be issued, that the file might not be playable.
Note: the PPSs all have the same parameter set ids, since the files were encoded separately, so the content of the raw NAL units needs to be compared.
Also, two more things I noticed when using --xps-inband:
- `--forcesync` is required to ensure `-add` does not drop the in-band parameter sets for CRA-frames, even if they were present in the source file.
- `--xps_inband=all` doesn't work when using `-cat` with MP4 files, I don't know if this is intentional.
I uploaded the raw bitstreams to the provided filedrop, as issue_2892.tar.gz | VVC parameter sets dropped on concatenation | https://api.github.com/repos/gpac/gpac/issues/2892/comments | 7 | 2024-06-26T10:39:09Z | 2024-06-28T07:41:17Z | https://github.com/gpac/gpac/issues/2892 | 2,374,988,041 | 2,892 |
[
"gpac",
"gpac"
] | 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 https://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 ...).
We have some Rust bindings for `libgpac` that can be used to create filters and applications in Rust. We would like to start a conversation on how they can be integrated into GPAC's main project.
https://github.com/geniussportsgroup/gpac_rs | Rust bindings for libgpac | https://api.github.com/repos/gpac/gpac/issues/2890/comments | 2 | 2024-06-24T21:49:16Z | 2024-06-27T13:49:05Z | https://github.com/gpac/gpac/issues/2890 | 2,371,165,530 | 2,890 |
[
"gpac",
"gpac"
] | I tried encrypting video using selective encryption type RAP, I used the sample DRM RAP XML file given in [Common Encryption](https://wiki.gpac.io/xmlformats/Common-Encryption/#drm_file_2_drmsxml). Afterwards I extracted all the I-frames/keyframes from the encrypted video using FFMPEG, I found that only first keyframe is entirely encrypted and later keyframes are not entirely encrypted or not encrypted at all. Is this how its supposed to work or am I doing something wrong? Also, I'm interested in knowing how GPAC implements this selective encryption of RAP. Does GPAC identify the particular bytes occupied by the keyframe in the video and then encrypt only that much? I tried looking at the source code but couldn't understand much. I'm a little new to this work so apologize if I'm asking something trivial, I would really appreciate some help.
| using Selective Encryption type RAP, all key frames are not encrypted. | https://api.github.com/repos/gpac/gpac/issues/2889/comments | 3 | 2024-06-20T16:10:42Z | 2024-06-20T20:15:20Z | https://github.com/gpac/gpac/issues/2889 | 2,364,806,539 | 2,889 |
[
"gpac",
"gpac"
] | - [x] I looked for a similar issue and couldn't find any.
- [x] I tried with the latest version of GPAC. Installers available at https://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 ...etc).
Greetings.
Trying to make MPEG-DASH without segment-timeline.
Command
```
MP4Box -dash 10000 \
-dash-ctx /dev/shm/broadcast/ozDBQ3NVL7/context.txt \
-profile dashavc264:live \
--utcs="https://time.akamai.com/?iso&ms" \
-mpd-refresh 5 \
-dynamic \
-bs-switching no \
-insert-utc \
-min-buffer 15 \
-mpd-title "ABR test" \
--force_flush \
-time-shift 30 \
/dev/shm/broadcast/ozDBQ3NVL7/input.mp4#video:sreg:#Bitrate=500k:#Representation=norm:dur=10 \
/dev/shm/broadcast/ozDBQ3NVL7/input.mp4#audio:sreg:#Bitrate=48k:dur=10 -out \
/dev/shm/broadcast/ozDBQ3NVL7/manifest.mpd
```
The player doesn't play, it can not find segments, because they're not generating, except initial segments and 2 first:

Actually, they are absent in the out dir:

First run is succesfull. Second and further runs give an error.
Output of the MP4box:
```
[Dasher] No template assigned, using $File$_dash$FS$$Number$
[Dasher] Synchronized clock to remote https://time.akamai.com/?iso&ms - UTC diff (local - remote) 89 ms
[Dasher] Input /dev/shm/broadcast/ozDBQ3NVL7/input.mp4: max audio duration 9929/1000 in the period is less than duration 10000/1000, clamping will happen
No filter chain found for PID V1 in filter dasher to any loaded filters - NOT CONNECTED
No filter chain found for PID A2 in filter dasher to any loaded filters - NOT CONNECTED
Filters not connected:
fout (dst=/dev/shm/broadcast/ozDBQ3NVL7/input_dash_track1_init.mp4:gfopt:segdur=10000/1000:dynamic:reschedule:ntp=yes:bs_switch=off:profile=dashavc264.live:buf=1500:!check_dur:tsb=30:refresh=2:state=/dev/shm/broadcast/ozDBQ3NVL7/context.txt:loop:_p_gentime=0x59706cc58338:_p_mpdtime=0x59706cc58340:pssh=v:subs_sidx=0:noinit:frag:xps_inband=no:nofragdef:psshs=moov:mime=(null)::title=ABR Test) (idx=7)
fout (dst=/dev/shm/broadcast/ozDBQ3NVL7/input_dash_track2_init.mp4:gfopt:segdur=10000/1000:dynamic:reschedule:ntp=yes:bs_switch=off:profile=dashavc264.live:buf=1500:!check_dur:tsb=30:refresh=2:state=/dev/shm/broadcast/ozDBQ3NVL7/context.txt:loop:_p_gentime=0x59706cc58338:_p_mpdtime=0x59706cc58340:pssh=v:subs_sidx=0:noinit:frag:xps_inband=no:nofragdef:psshs=moov:mime=(null)::title=ABR Test) (idx=8)
```
Looks like in the revison 268 it somehow worked. Now its version 2.5-DEV-rev298-g2e71a1ec9-master.
Reminded issue #2875, but setting/unsetting "#Bitrate" does not change anything.
**UPD**
Creating stream _with_ segment-timeline also get broken! It happened with latest updates of repository, it seems.
@jeanlf | MP4Box doesn't generate chunks when called without "-segment-timeline -url-template" | https://api.github.com/repos/gpac/gpac/issues/2887/comments | 3 | 2024-06-20T09:02:10Z | 2024-06-27T12:11:08Z | https://github.com/gpac/gpac/issues/2887 | 2,363,918,825 | 2,887 |
[
"gpac",
"gpac"
] | - [x] I looked for a similar issue and couldn't find any.
- [x] I tried with the latest version of GPAC. Installers available at https://gpac.io/downloads/gpac-nightly-builds/
- [x] I give enough information for contributors to reproduce my issue
Greetings.
I'm trying to add rescaler to my MPEG-DASH stream.
I have two installations of GPAC: local and in the remote Docker container.
Both installations were made from master branch of GPAC (version 2.5-DEV-rev268 in local computer, version 2.5-DEV-rev278-gd594d3f2c-master in container).
When I run it in my local computer, it works just fine.
When I run it inside docker container in remote server, it failed with error:
```
Failed to load filter ffsws:osize=320x240: Filter not found
Arg utcs set but not used
Arg force_flush set but not used
Arg segdur set but not used
```
I checked
```
gpac -h filters | grep ffsws
```
and there's no such filter in Docker installation. While in local computer it present.
Should I install some library in the container and reinstall GPAC? Or maybe there's some installation flag ? | Filter ffsws not loaded when using GPAC from Docker container | https://api.github.com/repos/gpac/gpac/issues/2886/comments | 5 | 2024-06-19T17:06:20Z | 2024-07-01T13:38:55Z | https://github.com/gpac/gpac/issues/2886 | 2,362,818,055 | 2,886 |
[
"gpac",
"gpac"
] | 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.
- [ -] I tried with the latest version of GPAC. Installers available at https://gpac.io/downloads/gpac-nightly-builds/
- [ x] I give enough information for contributors to reproduce my issue
When trying to build the docker image from the master branch, the gpac runtime container fails to build and crashes with:
```
#0 37.81 make[2]: Entering directory '/gpac/gpac_public/applications/gpac'
#0 37.81 CC gpac.c
#0 37.81 CC gpac_help.c
#0 37.81 CC compositor_tools.c
#0 38.68 /usr/bin/ld: cannot find -lfaad: No such file or directory
#0 38.68 collect2: error: ld returned 1 exit status
#0 38.68 make[2]: *** [Makefile:88: gpac] Error 1
#0 38.68 make[2]: Leaving directory '/gpac/gpac_public/applications/gpac'
#0 38.68 make[1]: *** [Makefile:15: apps] Error 2
#0 38.68 make[1]: Leaving directory '/gpac/gpac_public/applications'
#0 38.68 make: *** [Makefile:14: all] Error 2
------
ubuntu.Dockerfile:17
--------------------
15 |
16 | # static build
17 | >>> RUN make distclean && ./configure --static-bin && make -j
18 | RUN rm -rf /gpac/binaries && mkdir -p /gpac/binaries && cp -vf bin/gcc/* /gpac/binaries/ || true
19 |
--------------------
ERROR: failed to solve: process "/bin/sh -c make distclean && ./configure --static-bin && make -j" did not complete successfully: exit code: 2
```
This can be resolved by requesting `ubuntu:jammy` in the ubuntu-deps.Dockerfile instead of `ubuntu:latest`.
Result:
```
ubuntu@ffmpeg-dut:~/gpac.git$ docker run --rm gpac:190624
[core] Creating default credential key in /root/.gpac/creds.key, use -cred=PATH/TO_FILE to overwrite
Refreshing all options registry, this may take some time ... done
Nothing to do, check usage "gpac -h"
gpac - GPAC command line filter engine - version 2.5-DEV-rev294-ga6701f828-master
(c) 2000-2024 Telecom Paris distributed under LGPL v2.1+ - https://gpac.io
Please cite our work in your research:
GPAC Filters: https://doi.org/10.1145/3339825.3394929
GPAC: https://doi.org/10.1145/1291233.1291452
``` | Docker build fails due to an unresolved dependency | https://api.github.com/repos/gpac/gpac/issues/2885/comments | 1 | 2024-06-19T07:39:12Z | 2024-06-19T12:04:19Z | https://github.com/gpac/gpac/issues/2885 | 2,361,590,229 | 2,885 |
[
"gpac",
"gpac"
] | 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.
- [ -] I tried with the latest version of GPAC. Installers available at https://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 ...).
The web [documentation](https://wiki.gpac.io/Build/build/GPAC-Build-with-Docker/?h=docker) says:
```
## clone gpac repo
git clone https://github.com/gpac/gpac.git
cd gpac
## make changes or checkout a specific branch or commit you want
...
## doubly optional: you can change and rebuild the base system containing the dependencies for gpac with
docker build -t gpac/ubuntu-deps -f build/docker/ubuntu-deps.DockerFile .
## build the docker image
docker build -t myimages/gpac -f build/docker/ubuntu.DockerFile .
```
The file names of the Dockerfiles do not match with the ones in the filetree.
It should be named as "xx.Dockerfile" instead of "xx.DockerFile" (with lowercase F).
| Docker build examples in web doc is not up to date | https://api.github.com/repos/gpac/gpac/issues/2884/comments | 1 | 2024-06-19T07:01:14Z | 2024-06-19T09:32:33Z | https://github.com/gpac/gpac/issues/2884 | 2,361,499,502 | 2,884 |
[
"gpac",
"gpac"
] | Sometimes I need to use MP4Box to remux ProRes (e.g. to change frame rate etc).
Usually this works fine. I demux to an elementary stream first, then write a new MOV:
```
MP4Box -raw 1:output=demux.prores input.mov
MP4Box -add demux.prores output.mov
```
But with this sample I get
`[ProRes] Invalid frame identifier, expected "icpf" got "00000000"`
If I go direct from MOV to MOV it works fine.
I tried to upload to the mediafire but it says it's full...
- [x] I looked for a similar issue and couldn't find any.
- [x] I tried with the latest version of GPAC. Installers available at https://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: https://gpac.io/bug-reporting/
| [ProRes] Invalid frame identifier, expected "icpf" got "00000000" | https://api.github.com/repos/gpac/gpac/issues/2883/comments | 2 | 2024-06-18T21:28:13Z | 2024-07-03T10:48:59Z | https://github.com/gpac/gpac/issues/2883 | 2,360,751,910 | 2,883 |
[
"gpac",
"gpac"
] | As noted in https://github.com/Dash-Industry-Forum/livesim2/issues/197#issuecomment-2167666933, MP4Box generates MPD that does not have contentType (or mimeType) on adaptation set layer, but it is required by livesim2. MPD has only mediaType on representation layer.
It would be handy to add either mimeType, contentType or both to the AdaptationSet. The command line I use to generated MPD is following: `MP4Box -dash 2000 -rap -frag-rap -dash-profile live -out dash/napoli_3 -segment-name \$RepresentationID\$\/segment_\$Time\$ -segment-timeline -url-template napoli-v.mp4#video napoli-a.mp4#audio`
The MPD portion that makes livesim2 unhappy is following:
```
<AdaptationSet segmentAlignment="true" maxWidth="1280" maxHeight="720" maxFrameRate="11988/400" par="16:9" startWithSAP="1">
...
<Representation id="1" mimeType="video/mp4" codecs="avc1.64001F" width="1280" height="720" frameRate="11988/400" sar="1:1" bandwidth="249110">
</Representation>
``` | Add contentType or mediaType to MPD's adaptation set | https://api.github.com/repos/gpac/gpac/issues/2877/comments | 5 | 2024-06-14T10:53:58Z | 2024-06-19T17:48:29Z | https://github.com/gpac/gpac/issues/2877 | 2,353,107,945 | 2,877 |
[
"gpac",
"gpac"
] | - [x] I looked for a similar issue and couldn't find any.
- [x] I tried with the latest version of GPAC. Installers available at https://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 ...).
Greetings.
I continue my attempts to make Mpeg-dash stream with adaptive bitrate. It is related with issue [2868](https://github.com/gpac/gpac/issues/2868).
In order to achieve this, I'm trying to rescale with MP4Box on the fly.
```
MP4Box -dash 2000 \
-dash-ctx /dev/shm/broadcast/context.txt -profile dashavc264:live \
--utcs="https://time.akamai.com/?iso&ms" \
-mpd-refresh 2 \
-dynamic \
-bs-switching merge \
-segment-timeline -url-template \
-insert-utc \
-min-buffer 15 \
-mpd-title "Test ABR" \
-time-shift 30 \
/dev/shm/broadcast/input.mp4#video:dur=10:@ffsws:osize=160x120@enc:c=avc:b=100k:#Representation=Rep1@@ffsws:osize=320x240@enc:c=avc:b=200k:#Representation=Rep2 \
/dev/shm/broadcast/input.mp4#audio:dur=10 \
-out /dev/shm/broadcast/manifest.mpd
```
First run is successfull
Second run brings errors and stream doesn't play after first segment.
```
Command /usr/local/bin/MP4Box -dash 2000 -dash-ctx /dev/shm/broadcast/context.txt -profile dashavc264:live --utcs="https://time.akamai.com/?iso&ms" -mpd-refresh 2 -dynamic -bs-switching merge -segment-timeline -url-template -insert-utc -min-buffer 15 -mpd-title "Luuv" -time-shift 30 /dev/shm/broadcast/input.mp4#video:dur=10:@ffsws:osize=160x120@enc:c=avc:b=100k:#Representation=Rep1@@ffsws:osize=320x240@enc:c=avc:b=200k:#Representation=Rep2 /dev/shm/broadcast/input.mp4#audio:dur=10 -out /dev/shm/broadcast/manifest.mpd
[2024-06-13 10:33:16] local.DEBUG: 5: [Dasher] No template assigned, using $File$_dash$FS$$Time$
[FFSWS] Converting from 640x480@yuv420 to 160x120@yuv420
[FFSWS] Setup rescaler from 640x480 fmt yuv420 to 160x120 fmt yuv420
[FFSWS] Converting from 640x480@yuv420 to 320x240@yuv420
[FFSWS] Setup rescaler from 640x480 fmt yuv420 to 320x240 fmt yuv420
[FFSWS] Converting from 640x480@yuv420 to 160x120@yuv420
[FFSWS] Setup rescaler from 640x480 fmt yuv420 to 160x120 fmt yuv420
[FFSWS] Converting from 640x480@yuv420 to 320x240@yuv420
[FFSWS] Setup rescaler from 640x480 fmt yuv420 to 320x240 fmt yuv420
[Dasher] Synchronized clock to remote https://time.akamai.com/?iso&ms - UTC diff (local - remote) 7 ms
[AVC|H264] Possible Variable Frame Rate: VUI "fixed_frame_rate_flag" absent
[AVC|H264] Possible Variable Frame Rate: VUI "fixed_frame_rate_flag" absent
[Dasher] Input /dev/shm/broadcast/input.mp4: max audio duration 9928/1000 in the period is less than duration 10000/1000, clamping will happen
[Dasher] Input /dev/shm/broadcast/input.mp4: max audio duration 9928/1000 in the period is less than duration 10000/1000, clamping will happen
[Dasher] AS-1 Rep 1 segment 6 done 1325 ms before UTC due time
[Dasher] updated period DID1 duration 11981 MPD time 11981
[MPD] Generating MPD at time 2024-06-13T10:33:15.688Z
[Dasher] AS-1 Rep 1 segment 7 done 3319 ms before UTC due time
[Dasher] updated period DID1 duration 13978 MPD time 13978
[MPD] Generating MPD at time 2024-06-13T10:33:15.691Z
[Dasher] AS-1 Rep 1 segment 8 done 5318 ms before UTC due time
[Dasher] updated period DID1 duration 15980 MPD time 15980
[MPD] Generating MPD at time 2024-06-13T10:33:15.694Z
[Dasher] AS-1 Rep 1 segment 9 done 7312 ms before UTC due time
[Dasher] updated period DID1 duration 17977 MPD time 17977
[MPD] Generating MPD at time 2024-06-13T10:33:15.697Z
[Dasher] AS-1 Rep 1 segment 10 done 9332 ms before UTC due time
[Dasher] updated period DID1 duration 19927 MPD time 1992700s (100.00 %) AS#2.2(V) done (6 segs)
[MPD] Generating MPD at time 2024-06-13T10:33:15.701Z
[Dasher] updated period DID1 duration 19927 MPD time 1992700s (100.00 %) AS#2.2(V) done (6 segs) / MPD 10.80s 102 %
[MPD] Generating MPD at time 2024-06-13T10:33:15.708Z
[Filter] dasher (idx 11) not responding properly: 100000 consecutive process with no packet discarded or sent, but 3 packets pending
discarding all inputs and notifying end of stream on all outputs
[MP4Mux] PID has no input packet and configuration not known after 10 retries, aborting initial timing sync
[MP4Mux] Unable to setup fragmentation for track ID 0: Bad Parameter
Error DASHing file: Bad Parameter
```
How I can make multiple bitrate versions another way? | Multibitrate MPEG-DASH failed to create | https://api.github.com/repos/gpac/gpac/issues/2876/comments | 6 | 2024-06-13T10:43:33Z | 2024-07-03T10:51:40Z | https://github.com/gpac/gpac/issues/2876 | 2,350,811,640 | 2,876 |
[
"gpac",
"gpac"
] | - [x] I looked for a similar issue and couldn't find any.
- [x] I tried with the latest version of GPAC. Installers available at https://gpac.io/downloads/gpac-nightly-builds/
- [x] I give enough information for contributors to reproduce my issue.
Greetings again.
I have tested GPAC as webserver, and I have no luck with this. (
I have a refreshing playlist which is reloading each 10 mcsec, and I try to make a stream from files in playlist.
Each file has 10 seconds duration. I start with this command:
```
gpac -i /var/www/streamer/storage/app/video_chunks/playlist_1.m3u:ka=10 --segdur=10 --cdur=10 --profile=live --dmode=dynamic --sreg --rdirs=/tmp/broadcast -o http://localhost:8085/live.mpd
```
And trying to play it in dash.js, which is running on local web server. It plays sample streams from different domains, i have tested.
The stream doesn't play, because it doesn't find appropriate video chunks.

When I checked output dir, I really didn't see requested files, like `GPAC` is not refreshing them at all:

The manifest is being okay, but stream doesn't play, the screen of player just flickering..
```
<?xml version="1.0"?>
<!-- MPD file Generated with GPAC version 2.5-DEV-rev224-ge73ccd0d1-master at 2024-06-12T16:13:47.367Z -->
<MPD xmlns="urn:mpeg:dash:schema:mpd:2011" minBufferTime="PT10.000S" type="dynamic" availabilityStartTime="2024-06-12T16:13:17.395Z" publishTime="2024-06-12T16:13:47.367Z" minimumUpdatePeriod="PT0H0M10.000S" timeShiftBufferDepth="PT0H0M30.000S" maxSegmentDuration="PT0H0M10.001S" profiles="urn:mpeg:dash:profile:isoff-live:2011">
<ProgramInformation moreInformationURL="https://gpac.io">
<Title>live.mpd generated by GPAC</Title>
</ProgramInformation>
<Period id="DID1" start="PT0H0M0.000S">
<AdaptationSet segmentAlignment="true" maxWidth="640" maxHeight="480" maxFrameRate="25" par="4:3" startWithSAP="1">
<SegmentTemplate media="s_1718208168_dash_track1_$Number$.m4s" initialization="s_1718208168_dash_track1_init.mp4" timescale="12800" startNumber="1" duration="128000"/>
<Representation id="1" mimeType="video/mp4" codecs="avc1.64001E" width="640" height="480" frameRate="25" sar="1:1" bandwidth="810654">
</Representation>
</AdaptationSet>
<AdaptationSet segmentAlignment="true" startWithSAP="1">
<SegmentTemplate media="s_1718208168_dash_track2_$Number$.m4s" initialization="s_1718208168_dash_track2_init.mp4" timescale="44100" startNumber="1" duration="441000"/>
<Representation id="2" mimeType="audio/mp4" codecs="mp4a.40.2" audioSamplingRate="44100" bandwidth="2097">
<AudioChannelConfiguration schemeIdUri="urn:mpeg:dash:23003:3:audio_channel_configuration:2011" value="2"/>
</Representation>
</AdaptationSet>
</Period>
</MPD>
```
In command output there's no errors:
```
$ gpac -i /var/www/streamer/storage/app/video_chunks/playlist_1.m3u:ka=10 --segdur=10 --cdur=10 --profile=live --dmode=dynamic --sreg --rdirs=/tmp/broadcast -o http://localhost:8085/live.mpd
[Dasher] AS-1 Rep 2 segment 1 done TOO LATE by 35 ms
[Dasher] AS-1 Rep 2 segment 2 done TOO LATE by 14 ms
[Dasher] PID V1 config changed during active period, forcing period switch
[HTTPOut] Timeout for peer 127.0.0.1 after 31 sec, closing connection (last request (null))
[HTTPOut] Timeout for peer 127.0.0.1 after 31 sec, closing connection (last request (null)
```
Playlist looks like this:
```
$ cat storage/app/video_chunks/playlist_1.m3u
/var/www/streamer/storage/app/video_chunks/1/s_1718210143.mp4 @ reframer:rt=on
/var/www/streamer/storage/app/video_chunks/1/s_1718210153.mp4 @ reframer:rt=on
/var/www/streamer/storage/app/video_chunks/1/s_1718210163.mp4 @ reframer:rt=on
/var/www/streamer/storage/app/video_chunks/1/s_1718210173.mp4 @ reframer:rt=on
/var/www/streamer/storage/app/video_chunks/1/s_1718210183.mp4 @ reframer:rt=on
/var/www/streamer/storage/app/video_chunks/1/s_1718210193.mp4 @ reframer:rt=on
/var/www/streamer/storage/app/video_chunks/1/s_1718210203.mp4 @ reframer:rt=on
/var/www/streamer/storage/app/video_chunks/1/s_1718210213.mp4 @ reframer:rt=on
/var/www/streamer/storage/app/video_chunks/1/s_1718210223.mp4 @ reframer:rt=on
/var/www/streamer/storage/app/video_chunks/1/s_1718210233.mp4 @ reframer:rt=on
```
Thank you! | Using GPAC as web server, does not create chunks. | https://api.github.com/repos/gpac/gpac/issues/2875/comments | 2 | 2024-06-12T16:27:30Z | 2024-06-13T13:35:39Z | https://github.com/gpac/gpac/issues/2875 | 2,349,188,437 | 2,875 |
[
"gpac",
"gpac"
] | ## version
```shell
./MP4Box -version
MP4Box - GPAC version 2.5-DEV-rev228-g11067ea92-master
(c) 2000-2024 Telecom Paris distributed under LGPL v2.1+ - https://gpac.io
Please cite our work in your research:
GPAC Filters: https://doi.org/10.1145/3339825.3394929
GPAC: https://doi.org/10.1145/1291233.1291452
GPAC Configuration: --enable-sanitizer
Features: GPAC_CONFIG_LINUX GPAC_64_BITS GPAC_HAS_IPV6 GPAC_HAS_SSL GPAC_HAS_SOCK_UN GPAC_MINIMAL_ODF GPAC_HAS_QJS GPAC_HAS_LINUX_DVB GPAC_DISABLE_3D
```
## reproduce
Complie and run
```
./configure --enable-sanitizer
make
./MP4Box -info poc4
```
Information
```shell
XMT: MPEG-4 (XMT) Scene Parsing
[XMT Parsing] Warning: descriptor InitialObjectDescriptor defined outside scene scope - skipping (line 10)
=================================================================
==18912==ERROR: AddressSanitizer: heap-use-after-free on address 0x607000032052 at pc 0x7f54fc2647ed bp 0x7ffce79c0f30 sp 0x7ffce79c0f20
READ of size 2 at 0x607000032052 thread T0
#0 0x7f54fc2647ec in xmt_resolve_od_links scene_manager/loader_xmt.c:531
#1 0x7f54fc2666f0 in load_xmt_run scene_manager/loader_xmt.c:3148
#2 0x7f54fc93db85 in ctxload_process filters/load_bt_xmt.c:522
#3 0x7f54fc67ed9d in gf_filter_process_task filter_core/filter.c:3164
#4 0x7f54fc64a599 in gf_fs_thread_proc filter_core/filter_session.c:2145
#5 0x7f54fc64e903 in gf_fs_run filter_core/filter_session.c:2452
#6 0x7f54fc0cc145 in gf_media_import media_tools/media_import.c:1239
#7 0x5647e6b54da4 in convert_file_info /home/ubuntu/gpac_testt/gpac/applications/mp4box/fileimport.c:130
#8 0x5647e6b2212d in mp4box_main /home/ubuntu/gpac_testt/gpac/applications/mp4box/mp4box.c:6398
#9 0x7f54f989fc86 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21c86)
#10 0x5647e6b01579 in _start (/home/ubuntu/gpac_testt/gpac/bin/gcc/MP4Box+0x87579)
0x607000032052 is located 2 bytes inside of 80-byte region [0x607000032050,0x6070000320a0)
freed by thread T0 here:
#0 0x7f54fe7b17a8 in __interceptor_free (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xde7a8)
#1 0x7f54fbfbab49 in gf_odf_del_iod odf/odf_code.c:442
#2 0x7f54fb94c1ff in xml_sax_node_end utils/xml_parser.c:265
#3 0x7f54fb94f965 in xml_sax_parse utils/xml_parser.c:867
#4 0x7f54fb951cce in gf_xml_sax_parse_intern utils/xml_parser.c:1104
#5 0x7f54fb952507 in gf_xml_sax_parse utils/xml_parser.c:1132
#6 0x7f54fb952818 in xml_sax_read_file utils/xml_parser.c:1219
#7 0x7f54fb9539aa in gf_xml_sax_parse_file utils/xml_parser.c:1331
#8 0x7f54fc2666ba in load_xmt_run scene_manager/loader_xmt.c:3144
#9 0x7f54fc93db85 in ctxload_process filters/load_bt_xmt.c:522
#10 0x7f54fc67ed9d in gf_filter_process_task filter_core/filter.c:3164
#11 0x7f54fc64a599 in gf_fs_thread_proc filter_core/filter_session.c:2145
#12 0x7f54fc64e903 in gf_fs_run filter_core/filter_session.c:2452
#13 0x7f54fc0cc145 in gf_media_import media_tools/media_import.c:1239
#14 0x5647e6b54da4 in convert_file_info /home/ubuntu/gpac_testt/gpac/applications/mp4box/fileimport.c:130
#15 0x5647e6b2212d in mp4box_main /home/ubuntu/gpac_testt/gpac/applications/mp4box/mp4box.c:6398
#16 0x7f54f989fc86 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21c86)
previously allocated by thread T0 here:
#0 0x7f54fe7b1b40 in __interceptor_malloc (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xdeb40)
#1 0x7f54fbfba932 in gf_odf_new_iod odf/odf_code.c:415
#2 0x7f54fbfc3fe3 in gf_odf_desc_new odf/odf_codec.c:244
#3 0x7f54fc278e6f in xmt_parse_descriptor scene_manager/loader_xmt.c:1951
#4 0x7f54fc27bf5d in xmt_node_start scene_manager/loader_xmt.c:2578
#5 0x7f54fb94cd55 in xml_sax_node_start utils/xml_parser.c:308
#6 0x7f54fb94fe5d in xml_sax_parse_attribute utils/xml_parser.c:397
#7 0x7f54fb94fe5d in xml_sax_parse utils/xml_parser.c:940
#8 0x7f54fb951cce in gf_xml_sax_parse_intern utils/xml_parser.c:1104
#9 0x7f54fb952507 in gf_xml_sax_parse utils/xml_parser.c:1132
#10 0x7f54fb952818 in xml_sax_read_file utils/xml_parser.c:1219
#11 0x7f54fb9539aa in gf_xml_sax_parse_file utils/xml_parser.c:1331
#12 0x7f54fc2666ba in load_xmt_run scene_manager/loader_xmt.c:3144
#13 0x7f54fc93db85 in ctxload_process filters/load_bt_xmt.c:522
#14 0x7f54fc67ed9d in gf_filter_process_task filter_core/filter.c:3164
#15 0x7f54fc64a599 in gf_fs_thread_proc filter_core/filter_session.c:2145
#16 0x7f54fc64e903 in gf_fs_run filter_core/filter_session.c:2452
#17 0x7f54fc0cc145 in gf_media_import media_tools/media_import.c:1239
#18 0x5647e6b54da4 in convert_file_info /home/ubuntu/gpac_testt/gpac/applications/mp4box/fileimport.c:130
#19 0x5647e6b2212d in mp4box_main /home/ubuntu/gpac_testt/gpac/applications/mp4box/mp4box.c:6398
#20 0x7f54f989fc86 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21c86)
SUMMARY: AddressSanitizer: heap-use-after-free scene_manager/loader_xmt.c:531 in xmt_resolve_od_links
Shadow bytes around the buggy address:
0x0c0e7fffe3b0: 00 00 fa fa fa fa 00 00 00 00 00 00 00 00 00 00
0x0c0e7fffe3c0: fa fa fa fa 00 00 00 00 00 00 00 00 00 00 fa fa
0x0c0e7fffe3d0: fa fa 00 00 00 00 00 00 00 00 00 00 fa fa fa fa
0x0c0e7fffe3e0: 00 00 00 00 00 00 00 00 00 00 fa fa fa fa 00 00
0x0c0e7fffe3f0: 00 00 00 00 00 00 00 00 fa fa fa fa fd fd fd fd
=>0x0c0e7fffe400: fd fd fd fd fd fd fa fa fa fa[fd]fd fd fd fd fd
0x0c0e7fffe410: fd fd fd fd fa fa fa fa 00 00 00 00 00 00 00 00
0x0c0e7fffe420: 00 00 fa fa fa fa 00 00 00 00 00 00 00 00 00 00
0x0c0e7fffe430: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c0e7fffe440: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c0e7fffe450: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
Shadow byte legend (one shadow byte represents 8 application bytes):
Addressable: 00
Partially addressable: 01 02 03 04 05 06 07
Heap left redzone: fa
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack after return: f5
Stack use after scope: f8
Global redzone: f9
Global init order: f6
Poisoned by user: f7
Container overflow: fc
Array cookie: ac
Intra object redzone: bb
ASan internal: fe
Left alloca redzone: ca
Right alloca redzone: cb
==18912==ABORTING
```
## poc
[poc.zip](https://github.com/user-attachments/files/15801189/poc.zip) | Heap-use-after-free scene_manager/loader_xmt.c:531 in xmt_resolve_od_links | https://api.github.com/repos/gpac/gpac/issues/2874/comments | 2 | 2024-06-12T08:34:24Z | 2024-06-18T07:43:59Z | https://github.com/gpac/gpac/issues/2874 | 2,348,161,533 | 2,874 |
[
"gpac",
"gpac"
] | ## version
```shell
./MP4Box -version
MP4Box - GPAC version 2.5-DEV-rev228-g11067ea92-master
(c) 2000-2024 Telecom Paris distributed under LGPL v2.1+ - https://gpac.io
Please cite our work in your research:
GPAC Filters: https://doi.org/10.1145/3339825.3394929
GPAC: https://doi.org/10.1145/1291233.1291452
GPAC Configuration: --enable-sanitizer
Features: GPAC_CONFIG_LINUX GPAC_64_BITS GPAC_HAS_IPV6 GPAC_HAS_SSL GPAC_HAS_SOCK_UN GPAC_MINIMAL_ODF GPAC_HAS_QJS GPAC_HAS_LINUX_DVB GPAC_DISABLE_3D
```
## reproduce
Complie and run
```
./configure --enable-sanitizer
make
./MP4Box -dash 1000 -out /dev/null poc3
```
Information
```shell
[MPEG-2 TS] PID 1024: Bad Adaptation Extension found
[MPEG-2 TS] PID 1024: Bad Adaptation Extension found
[MPEG-2 TS] TS Packet 3 is scrambled - not supported
[MPEG-2 TS] PID 1863: Bad Adaptation Extension found
[MPEG-2 TS] TS Packet 5 is scrambled - not supported
[MPEG-2 TS] TS Packet 6 is scrambled - not supported
[MPEG-2 TS] TS Packet 7 is scrambled - not supported
[MPEG-2 TS] TS Packet 8 is scrambled - not supported
[MPEG-2 TS] TS Packet 9 is scrambled - not supported
[MPEG-2 TS] TS Packet 10 is scrambled - not supported
[MPEG-2 TS] TS Packet 11 is scrambled - not supported
[MPEG-2 TS] TS Packet 12 is scrambled - not supported
[MPEG-2 TS] TS Packet 13 is scrambled - not supported
[MPEG-2 TS] TS Packet 14 is scrambled - not supported
[MPEG-2 TS] TS Packet 15 is scrambled - not supported
[MPEG-2 TS] TS Packet 16 is scrambled - not supported
[MPEG-2 TS] TS Packet 17 is scrambled - not supported
[MPEG-2 TS] TS Packet 18 is scrambled - not supported
[MPEG-2 TS] TS Packet 19 is scrambled - not supported
[MPEG-2 TS] TS Packet 20 is scrambled - not supported
[MPEG-2 TS] TS Packet 21 is scrambled - not supported
[MPEG-2 TS] TS Packet 22 is scrambled - not supported
[MPEG-2 TS] TS Packet 23 is scrambled - not supported
[MPEG-2 TS] TS Packet 24 does not start with sync marker
[MPEG-2 TS] TS Packet 25 AF size is 71 when it must be 183 for AF type 2
[MPEG-2 TS] TS Packet 26 does not start with sync marker
[MPEG-2 TS] TS Packet 27 does not start with sync marker
[MPEG-2 TS] PID 1863: Bad Adaptation Extension found
[MPEG-2 TS] PID 18 AF Location descriptor found - URL TR▒
[MPEG-2 TS] PID 18: Bad Adaptation Descriptor found (tag 0) size is 0 but only 1 bytes available
[MPEG-2 TS] TS Packet 30 does not start with sync marker
[MPEG-2 TS] TS Packet 31 does not start with sync marker
[MPEG-2 TS] TS Packet 32 does not start with sync marker
[MPEG-2 TS] TS Packet 33 does not start with sync marker
[MPEG-2 TS] TS Packet 34 does not start with sync marker
[MPEG-2 TS] TS Packet 35 does not start with sync marker
[MPEG-2 TS] TS Packet 36 is scrambled - not supported
[MPEG-2 TS] TS Packet 37 is scrambled - not supported
[MPEG-2 TS] TS Packet 38 does not start with sync marker
[MPEG-2 TS] TS Packet 39 does not start with sync marker
[MPEG-2 TS] TS Packet 40 does not start with sync marker
[MPEG-2 TS] TS Packet 41 does not start with sync marker
[MPEG-2 TS] TS Packet 42 does not start with sync marker
[MPEG-2 TS] TS Packet 43 does not start with sync marker
[MPEG-2 TS] TS Packet 44 does not start with sync marker
[MPEG-2 TS] TS Packet 45 does not start with sync marker
[MPEG-2 TS] PID 1024: Bad Adaptation Extension found
[MPEG-2 TS] PID 1024: Bad Adaptation Extension found
[MPEG-2 TS] TS Packet 48 is scrambled - not supported
[MPEG-2 TS] TS Packet 49 is scrambled - not supported
[MPEG-2 TS] TS Packet 50 is scrambled - not supported
[MPEG-2 TS] TS Packet 51 does not start with sync marker
[MPEG-2 TS] TS Packet 52 does not start with sync marker
[MPEG-2 TS] TS Packet 53 does not start with sync marker
[MPEG-2 TS] TS Packet 54 does not start with sync marker
[MPEG-2 TS] TS Packet 55 does not start with sync marker
[MPEG-2 TS] TS Packet 56 does not start with sync marker
[MPEG-2 TS] TS Packet 57 is scrambled - not supported
[MPEG-2 TS] TS Packet 58 does not start with sync marker
[MPEG-2 TS] TS Packet 59 is scrambled - not supported
[MPEG-2 TS] TS Packet 60 is scrambled - not supported
[MPEG-2 TS] TS Packet 61 does not start with sync marker
[MPEG-2 TS] TS Packet 62 does not start with sync marker
[MPEG-2 TS] TS Packet 63 does not start with sync marker
[MPEG-2 TS] TS Packet 64 does not start with sync marker
[MPEG-2 TS] TS Packet 65 does not start with sync marker
[MPEG-2 TS] TS Packet 66 does not start with sync marker
[MPEG-2 TS] TS Packet 67 does not start with sync marker
[MPEG-2 TS] TS Packet 68 does not start with sync marker
[MPEG-2 TS] PID 1863: Bad Adaptation Extension found
[MPEG-2 TS] TS Packet 70 does not start with sync marker
[MPEG-2 TS] TS Packet 71 does not start with sync marker
[MPEG-2 TS] TS Packet 72 does not start with sync marker
[MPEG-2 TS] TS Packet 73 does not start with sync marker
[MPEG-2 TS] TS Packet 74 does not start with sync marker
[MPEG-2 TS] TS Packet 75 does not start with sync marker
[MPEG-2 TS] TS Packet 76 is scrambled - not supported
[MPEG-2 TS] TS Packet 77 is scrambled - not supported
[MPEG-2 TS] TS Packet 78 does not start with sync marker
[MPEG-2 TS] TS Packet 79 does not start with sync marker
[MPEG-2 TS] TS Packet 80 does not start with sync marker
[MPEG-2 TS] TS Packet 81 does not start with sync marker
[MPEG-2 TS] TS Packet 82 does not start with sync marker
[MPEG-2 TS] TS Packet 83 does not start with sync marker
[MPEG-2 TS] TS Packet 84 does not start with sync marker
[MPEG-2 TS] TS Packet 85 is scrambled - not supported
[MPEG-2 TS] TS Packet 86 does not start with sync marker
[MPEG-2 TS] TS Packet 87 does not start with sync marker
[MPEG-2 TS] TS Packet 88 does not start with sync marker
[MPEG-2 TS] TS Packet 89 is scrambled - not supported
[MPEG-2 TS] TS Packet 90 is scrambled - not supported
[MPEG-2 TS] PID 1863: Bad Adaptation Extension found
[MPEG-2 TS] TS Packet 93 is scrambled - not supported
[MPEG-2 TS] TS Packet 94 is scrambled - not supported
[MPEG-2 TS] TS Packet 95 does not start with sync marker
[MPEG-2 TS] TS Packet 96 does not start with sync marker
[MPEG-2 TS] TS Packet 97 does not start with sync marker
[MPEG-2 TS] TS Packet 98 does not start with sync marker
[MPEG-2 TS] TS Packet 99 does not start with sync marker
[MPEG-2 TS] PID 1024: Bad Adaptation Extension found
[MPEG-2 TS] TS Packet 101 does not start with sync marker
[MPEG-2 TS] TS Packet 102 is scrambled - not supported
[MPEG-2 TS] TS Packet 103 is scrambled - not supported
[MPEG-2 TS] TS Packet 104 is scrambled - not supported
[MPEG-2 TS] TS Packet 105 does not start with sync marker
[MPEG-2 TS] TS Packet 106 does not start with sync marker
[MPEG-2 TS] TS Packet 107 does not start with sync marker
[MPEG-2 TS] TS Packet 108 does not start with sync marker
[MPEG-2 TS] TS Packet 109 does not start with sync marker
[MPEG-2 TS] TS Packet 110 is scrambled - not supported
[MPEG-2 TS] TS Packet 112 does not start with sync marker
[MPEG-2 TS] TS Packet 113 does not start with sync marker
[MPEG-2 TS] TS Packet 114 does not start with sync marker
[MPEG-2 TS] TS Packet 116 does not start with sync marker
[MPEG-2 TS] TS Packet 117 does not start with sync marker
[MPEG-2 TS] TS Packet 118 does not start with sync marker
[MPEG-2 TS] TS Packet 119 does not start with sync marker
[MPEG-2 TS] TS Packet 120 does not start with sync marker
[MPEG-2 TS] PID 1024: Bad Adaptation Extension found
[MPEG-2 TS] TS Packet 122 is scrambled - not supported
[MPEG-2 TS] TS Packet 123 is scrambled - not supported
[MPEG-2 TS] TS Packet 124 is scrambled - not supported
[MPEG-2 TS] TS Packet 125 is scrambled - not supported
[MPEG-2 TS] TS Packet 126 is scrambled - not supported
[MPEG-2 TS] TS Packet 127 is scrambled - not supported
[MPEG-2 TS] TS Packet 128 is scrambled - not supported
[MPEG-2 TS] TS Packet 129 is scrambled - not supported
[MPEG-2 TS] TS Packet 130 is scrambled - not supported
[MPEG-2 TS] TS Packet 131 is scrambled - not supported
[MPEG-2 TS] TS Packet 132 is scrambled - not supported
[MPEG-2 TS] TS Packet 133 is scrambled - not supported
[MPEG-2 TS] TS Packet 134 is scrambled - not supported
[MPEG-2 TS] TS Packet 135 is scrambled - not supported
[MPEG-2 TS] TS Packet 136 is scrambled - not supported
[MPEG-2 TS] TS Packet 137 is scrambled - not supported
[MPEG-2 TS] TS Packet 138 is scrambled - not supported
[MPEG-2 TS] TS Packet 139 is scrambled - not supported
[MPEG-2 TS] TS Packet 140 is scrambled - not supported
[MPEG-2 TS] TS Packet 141 is scrambled - not supported
[MPEG-2 TS] PID 1863: Bad Adaptation Extension found
[MPEG-2 TS] TS Packet 143 does not start with sync marker
[MPEG-2 TS] TS Packet 144 does not start with sync marker
[MPEG-2 TS] PID 1863: Bad Adaptation Extension found
[MPEG-2 TS] TS Packet 146 does not start with sync marker
[MPEG-2 TS] TS Packet 147 is scrambled - not supported
[MPEG-2 TS] TS Packet 148 is scrambled - not supported
[MPEG-2 TS] TS Packet 149 does not start with sync marker
[MPEG-2 TS] PID 1024: Bad Adaptation Extension found
[MPEG-2 TS] TS Packet 151 does not start with sync marker
[MPEG-2 TS] TS Packet 152 is scrambled - not supported
[MPEG-2 TS] TS Packet 153 is scrambled - not supported
[MPEG-2 TS] TS Packet 154 is scrambled - not supported
[MPEG-2 TS] TS Packet 155 does not start with sync marker
[MPEG-2 TS] TS Packet 156 does not start with sync marker
[MPEG-2 TS] TS Packet 157 does not start with sync marker
[MPEG-2 TS] TS Packet 158 is scrambled - not supported
[MPEG-2 TS] TS Packet 159 is scrambled - not supported
[MPEG-2 TS] TS Packet 160 is scrambled - not supported
[MPEG-2 TS] TS Packet 161 has error (PID could be 5120)
[MPEG-2 TS] TS Packet 162 does not start with sync marker
[MPEG-2 TS] TS Packet 163 does not start with sync marker
[MPEG-2 TS] TS Packet 164 does not start with sync marker
[MPEG-2 TS] TS Packet 165 does not start with sync marker
[MPEG-2 TS] PID 1863: Bad Adaptation Extension found
[MPEG-2 TS] TS Packet 167 does not start with sync marker
[MPEG-2 TS] TS Packet 168 is scrambled - not supported
[MPEG-2 TS] TS Packet 169 is scrambled - not supported
[MPEG-2 TS] TS Packet 170 does not start with sync marker
[MPEG-2 TS] TS Packet 171 does not start with sync marker
[MPEG-2 TS] TS Packet 172 is scrambled - not supported
[MPEG-2 TS] PID 1024: Bad Adaptation Extension found
[MPEG-2 TS] TS Packet 174 does not start with sync marker
[MPEG-2 TS] TS Packet 175 does not start with sync marker
[MPEG-2 TS] TS Packet 176 does not start with sync marker
[MPEG-2 TS] TS Packet 177 does not start with sync marker
[MPEG-2 TS] TS Packet 178 does not start with sync marker
[MPEG-2 TS] TS Packet 179 does not start with sync marker
[MPEG-2 TS] PID 1863: Bad Adaptation Extension found
[MPEG-2 TS] TS Packet 181 does not start with sync marker
[MPEG-2 TS] TS Packet 182 is scrambled - not supported
[MPEG-2 TS] TS Packet 183 is scrambled - not supported
[MPEG-2 TS] TS Packet 184 is scrambled - not supported
[MPEG-2 TS] TS Packet 185 is scrambled - not supported
[MPEG-2 TS] TS Packet 186 is scrambled - not supported
[MPEG-2 TS] TS Packet 187 is scrambled - not supported
[MPEG-2 TS] TS Packet 189 does not start with sync marker
[MPEG-2 TS] TS Packet 190 does not start with sync marker
[MPEG-2 TS] TS Packet 191 is scrambled - not supported
[MPEG-2 TS] TS Packet 192 is scrambled - not supported
[MPEG-2 TS] TS Packet 193 is scrambled - not supported
[MPEG-2 TS] TS Packet 194 does not start with sync marker
[MPEG-2 TS] TS Packet 195 does not start with sync marker
[MPEG-2 TS] TS Packet 196 does not start with sync marker
[MPEG-2 TS] PID 1024: Bad Adaptation Extension found
[MPEG-2 TS] PID 1024: Bad Adaptation Extension found
[MPEG-2 TS] TS Packet 3 is scrambled - not supported
[MPEG-2 TS] PID 1863: Bad Adaptation Extension found
[MPEG-2 TS] TS Packet 5 is scrambled - not supported
[MPEG-2 TS] TS Packet 6 is scrambled - not supported
[MPEG-2 TS] TS Packet 7 is scrambled - not supported
[MPEG-2 TS] TS Packet 8 is scrambled - not supported
[MPEG-2 TS] TS Packet 9 is scrambled - not supported
[MPEG-2 TS] TS Packet 10 is scrambled - not supported
[MPEG-2 TS] TS Packet 11 is scrambled - not supported
[MPEG-2 TS] TS Packet 12 is scrambled - not supported
[MPEG-2 TS] TS Packet 13 is scrambled - not supported
[MPEG-2 TS] TS Packet 14 is scrambled - not supported
[MPEG-2 TS] TS Packet 15 is scrambled - not supported
[MPEG-2 TS] TS Packet 16 is scrambled - not supported
[MPEG-2 TS] TS Packet 17 is scrambled - not supported
[MPEG-2 TS] TS Packet 18 is scrambled - not supported
[MPEG-2 TS] TS Packet 19 is scrambled - not supported
[MPEG-2 TS] TS Packet 20 is scrambled - not supported
[MPEG-2 TS] TS Packet 21 is scrambled - not supported
[MPEG-2 TS] TS Packet 22 is scrambled - not supported
[MPEG-2 TS] TS Packet 23 is scrambled - not supported
[MPEG-2 TS] TS Packet 24 does not start with sync marker
[MPEG-2 TS] TS Packet 25 AF size is 71 when it must be 183 for AF type 2
[MPEG-2 TS] PID 1863: Bad Adaptation Extension found
[MPEG-2 TS] PID 18 AF Location descriptor found - URL TR▒
[MPEG-2 TS] PID 18: Bad Adaptation Descriptor found (tag 0) size is 0 but only 1 bytes available
filters/dmx_m2ts.c:1215:40: runtime error: member access within null pointer of type 'struct GF_M2TS_ES'
```
## poc
[poc.zip](https://github.com/user-attachments/files/15801157/poc.zip)
| Null pointer deference in filters/dmx_m2ts.c:1215 | https://api.github.com/repos/gpac/gpac/issues/2873/comments | 0 | 2024-06-12T08:32:57Z | 2024-06-12T13:35:29Z | https://github.com/gpac/gpac/issues/2873 | 2,348,158,622 | 2,873 |
[
"gpac",
"gpac"
] | ## version
```shell
./MP4Box -version
MP4Box - GPAC version 2.5-DEV-rev228-g11067ea92-master
(c) 2000-2024 Telecom Paris distributed under LGPL v2.1+ - https://gpac.io
Please cite our work in your research:
GPAC Filters: https://doi.org/10.1145/3339825.3394929
GPAC: https://doi.org/10.1145/1291233.1291452
GPAC Configuration: --enable-sanitizer
Features: GPAC_CONFIG_LINUX GPAC_64_BITS GPAC_HAS_IPV6 GPAC_HAS_SSL GPAC_HAS_SOCK_UN GPAC_MINIMAL_ODF GPAC_HAS_QJS GPAC_HAS_LINUX_DVB GPAC_DISABLE_3D
```
## reproduce
Complie and run
```
./configure --enable-sanitizer
make
./MP4Box -dash 1000 -out /dev/null poc2
```
Information
```shell
SWF Import - Scene Size 320x240 - 139 frames @ 25 FPS
[TXTIn] swf -> svg not fully migrated, using SWF flags 0 and no flatten angle. Patch welcome
[Dasher] No template assigned, using $File$_dash$FS$$Number$
[Dasher] No bitrate property assigned to PID poc2, computing from bitstream
[SWF Parsing] Tag MX1 (0x3c) not implemented - skipping (frame 1)
[SWF Parsing] Placing unfound object (ID 0) (frame 1)
[SWF Parsing] Tag MX2 (0x3d) not implemented - skipping (frame 1)
[SWF Parsing] Accessing empty depth level 1 (frame 2)
[SWF Parsing] Moving unfound object (ID 0) (frame 2)
[SWF Parsing] Tag MX2 (0x3d) not implemented - skipping (frame 2)
filters/load_text.c:2534:3: runtime error: null pointer passed as argument 2, which is declared to never be null
```
## poc
[poc2.zip](https://github.com/user-attachments/files/15801126/poc2.zip)
| Null pointer deference in filters/load_text.c:2534 | https://api.github.com/repos/gpac/gpac/issues/2872/comments | 0 | 2024-06-12T08:31:34Z | 2024-06-12T13:31:34Z | https://github.com/gpac/gpac/issues/2872 | 2,348,155,759 | 2,872 |
[
"gpac",
"gpac"
] | ## version
```shell
./MP4Box -version
MP4Box - GPAC version 2.5-DEV-rev228-g11067ea92-master
(c) 2000-2024 Telecom Paris distributed under LGPL v2.1+ - https://gpac.io
Please cite our work in your research:
GPAC Filters: https://doi.org/10.1145/3339825.3394929
GPAC: https://doi.org/10.1145/1291233.1291452
GPAC Configuration: --enable-sanitizer
Features: GPAC_CONFIG_LINUX GPAC_64_BITS GPAC_HAS_IPV6 GPAC_HAS_SSL GPAC_HAS_SOCK_UN GPAC_MINIMAL_ODF GPAC_HAS_QJS GPAC_HAS_LINUX_DVB GPAC_DISABLE_3D
```
## reproduce
Complie and run
```
./configure --enable-sanitizer
make
./MP4Box -dash 1000 -out /dev/null poc1
```
Information
```
···
[IsoMedia] Failed to fetch initial sample 1 for track 3
[IsoMedia] Failed to fetch initial sample 1 for track 3
[IsoMedia] Failed to fetch initial sample 1 for track 3
[IsoMedia] Failed to fetch initial sample 1 for track 3
[IsoMedia] Failed to fetch initial sample 1 for track 3
[IsoMedia] Failed to fetch initial sample 1 for track 3
[IsoMedia] Failed to fetch initial sample 1 for track 3
[IsoMedia] Failed to fetch initial sample 1 for track 3
[IsoMedia] Failed to fetch initial sample 1 for track 3
[IsoMedia] Failed to fetch initial sample 1 for track 3
[IsoMedia] Failed to fetch initial sample 1 for track 3
[IsoMedia] Failed to fetch initial sample 1 for track 3
[IsoMedia] Failed to fetch initial sample 1 for track 3
[IsoMedia] Failed to fetch initial sample 1 for track 3
[IsoMedia] Failed to fetch initial sample 1 for track 3
[IsoMedia] Failed to fetch initial sample 1 for track 3
[IsoMedia] Failed to fetch initial sample 1 for track 3
[IsoMedia] Failed to fetch initial sample 1 for track 3
[IsoMedia] Failed to fetch initial sample 1 for track 3
[IsoMedia] Failed to fetch initial sample 1 for track 3
[IsoMedia] Failed to fetch initial sample 1 for track 3
[IsoMedia] Failed to fetch initial sample 1 for track 3
[IsoMedia] Failed to fetch initial sample 1 for track 3
[IsoMedia] Failed to fetch initial sample 1 for track 3
[IsoMedia] Failed to fetch initial sample 1 for track 3
[IsoMedia] Failed to fetch initial sample 1 for track 3
···
```
## poc
[poc1.zip](https://github.com/user-attachments/files/15801058/poc1.zip)
| Infinite loop in MP4Box | https://api.github.com/repos/gpac/gpac/issues/2871/comments | 0 | 2024-06-12T08:30:30Z | 2024-06-12T13:25:17Z | https://github.com/gpac/gpac/issues/2871 | 2,348,153,606 | 2,871 |
[
"gpac",
"gpac"
] | 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 https://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 ...).
Running GPAC for generating an HLS/DASH stream with CMAF from a live TS stream containing ID3 tags, sometimes duplicates tags in the CMAF segments. It's hard to diagnose, but I managed to find a test file that can be used to reproduce the problem. I will share it privately.
```bash
gpac/bin/gcc/gpac \
-i example.ts \
-o gpac_local/playlist.mpd:gpac:dual:gpac:buf=-150:ll_part_hb=-1:seg_sync=no:segdur=1.0:cdur=0.2:llhls=sf:hlsc=true:cmaf=cmf2:dmode=dynamic:pssh=mv:template=segment:keep_segs=true
```
With the sample file, segment 1270 has 2 ID3 tags with the same content.
Adding some log lines here https://github.com/gpac/gpac/blob/master/src/filters/mux_isom.c#L6425 I don't see the logic for deduplicating emsg boxes being activated. The `moof` box always arrives with zero `emsg` boxes here.
Related to: https://github.com/gpac/gpac/pull/2865 | mux_isom sometimes repeates ID3 emsg boxes in fragment files | https://api.github.com/repos/gpac/gpac/issues/2870/comments | 2 | 2024-06-12T03:39:54Z | 2024-06-13T09:57:50Z | https://github.com/gpac/gpac/issues/2870 | 2,347,732,904 | 2,870 |
[
"gpac",
"gpac"
] | "When multiplexing 2 mp4 files containing mhm1 sample entries, the output contains an IODS box. Since the IODS box does not make sense for MPEG-H this should not be contained in the output"
"When using fin -> rfmhas -> fout, the output has a SYNC MHAS package before every sample. These should not be there."
Opinion? | Misc MPEG-H audio remarks | https://api.github.com/repos/gpac/gpac/issues/2869/comments | 1 | 2024-06-11T19:13:02Z | 2024-06-12T14:44:31Z | https://github.com/gpac/gpac/issues/2869 | 2,347,110,507 | 2,869 |
[
"gpac",
"gpac"
] | [x] I looked for a similar issue and couldn't find any.
[x] I tried with the latest version of GPAC.
[x] I give enough information for contributors to reproduce my issue (meaningful title, github labels, platform and compiler, command-line ... etc).
Greetings.
My goal now is, to add different representations with different bitrate to live mpeg-dash.
I'm feeding chunks one by one, calling MP4Box for each, making live stream.
To achieve this I'm trying:
```
MP4Box -dash 10000 \
-dash-ctx /dev/shm/broadcast/context.txt \
-profile dashavc264:live \
--utcs="https://time.akamai.com/?iso&ms" \
-mpd-refresh 2 -dynamic -bs-switching no \
-segment-timeline \
-url-template \
-insert-utc \
-min-buffer 15 \
-time-shift 30 \
/dev/shm/broadcast/input.mp4#video:@ffsws:osize=160x120@enc:c=avc:b=100k:#Representation=1@@ffsws:osize=320x240@enc:c=avc:b=200k:#Representation=2 \
/dev/shm/broadcast/input.mp4#audio \
-out /dev/shm/broadcast/manifest.mpd
```
The first run of MP4Box is successfull, but the next run of MPEG_DASH with same command line fails
```
[2024-06-11 16:43:46] local.DEBUG: 4011: [Dasher] No template assigned, using $File$_dash$FS$$Time$
[FFSWS] Converting from 640x480@yuv420 to 160x120@yuv420
[FFSWS] Setup rescaler from 640x480 fmt yuv420 to 160x120 fmt yuv420
[FFSWS] Converting from 640x480@yuv420 to 320x240@yuv420
[FFSWS] Setup rescaler from 640x480 fmt yuv420 to 320x240 fmt yuv420
[FFSWS] Converting from 640x480@yuv420 to 160x120@yuv420
[FFSWS] Setup rescaler from 640x480 fmt yuv420 to 160x120 fmt yuv420
[FFSWS] Converting from 640x480@yuv420 to 320x240@yuv420
[FFSWS] Setup rescaler from 640x480 fmt yuv420 to 320x240 fmt yuv420
[AVC|H264] Possible Variable Frame Rate: VUI "fixed_frame_rate_flag" absent
[AVC|H264] Possible Variable Frame Rate: VUI "fixed_frame_rate_flag" absent
[Dasher] Synchronized clock to remote https://time.akamai.com/?iso&ms - UTC diff (local - remote) 6 ms
[Dasher] Input /dev/shm/broadcast/input.mp4: max audio duration 9935/1000 in the period is less than duration 10000/1000, clamping will happen
[Dasher] Input /dev/shm/broadcast/input.mp4: max audio duration 9935/1000 in the period is less than duration 10000/1000, clamping will happen
No filter chain found for PID V1 in filter dasher to any loaded filters - NOT CONNECTED
No filter chain found for PID A2 in filter dasher to any loaded filters - NOT CONNECTED
Filters not connected:
fout (dst=/dev/shm/broadcast/input_dashinit_rep2.mp4:gfopt:segdur=10000/1000:tpl:stl:dynamic:reschedule:ntp=yes:bs_switch=off:profile=dashavc264.live:buf=1500:!check_dur:tsb=30:
refresh=2:state=/dev/shm/broadcast/context.txt:loop:_p_gentime=0x580a7557d388:_p_mpdtime=0x580a7557d390:pssh=v:subs_sidx=0:noinit:frag:xps_inband=no:nofragdef:psshs=moov:mime=�,~�X::title=Test) (idx=14)
double free or corruption (!prev)
Aborted (core dumped)
``` | MP4Box throws error when attempting to add rescaler to live stream. | https://api.github.com/repos/gpac/gpac/issues/2868/comments | 2 | 2024-06-11T18:15:43Z | 2024-06-12T16:40:58Z | https://github.com/gpac/gpac/issues/2868 | 2,347,017,867 | 2,868 |
[
"gpac",
"gpac"
] | Command:
docker run -it gpac/ubuntu:latest gpac -rescan-fonts avgen:sizes=1280x720:rates=1300k:dyn=false c=aac:b=128k c=avc:b=1300k reframer:rt=on -o out.ts
[avgen] Error processing
[avgen] Error: Fonts not found (first was SANS) and no default font available!
Check your GPAC configuration, or use `-rescan-fonts` to refresh font directory.
at draw_view (/usr/share/gpac/scripts/jsf/avgen/init.js:709)
at process_video (/usr/share/gpac/scripts/jsf/avgen/init.js:550)
at <anonymous> (/usr/share/gpac/scripts/jsf/avgen/init.js:404)
It seem there is incompatible fonts.
Installing package fonts-dejavu ( apt install fonts-dejavu ) solved the problem.
| AVGEN : Font error | https://api.github.com/repos/gpac/gpac/issues/2867/comments | 2 | 2024-06-10T04:17:14Z | 2024-06-10T23:57:26Z | https://github.com/gpac/gpac/issues/2867 | 2,342,802,502 | 2,867 |
[
"gpac",
"gpac"
] | Steps to reproduce:
1. Download and unpack [sample file](https://www.upload.ee/files/16730075/Passacaglia.zip.html).
2. Execute
`MP4Box.exe -raw audio:output="Passacaglia G.F. Händel J. Halvorsen Relaxing Piano Music Al" "Passacaglia G.F. Händel J. Halvorsen Relaxing Piano Music Al.mp4"`
This will create file `Passacaglia G.F. Händel J. Halvorsen Relaxing Piano Music Al` instead of expected `Passacaglia G.F. Händel J. Halvorsen Relaxing Piano Music Al.aac`.
Win81 x64, GPAC 2.5-DEV-rev252-g8e99b3cc-master x64. | -raw creates output file without extension | https://api.github.com/repos/gpac/gpac/issues/2866/comments | 1 | 2024-06-09T22:00:44Z | 2024-06-12T13:16:11Z | https://github.com/gpac/gpac/issues/2866 | 2,342,510,598 | 2,866 |
[
"gpac",
"gpac"
] | - [x] I looked for a similar issue and couldn't find any.
- [x] I tried with the latest version of GPAC.
- [x] I give enough information for contributors to reproduce my issue
Hello again, excuse me for annoying questions, but I really didn't find any information anywhere.
The problem is, that our MPEG-DASH stream suffers from large download time. 1.2 Mb chunks are downloading for 0.7-1s.
Maybe I'm on wrong way totally..but, I decided to try out `node-gpac-server`.
I read the [article](http://biblio.telecom-paristech.fr/cgi-bin/download.cgi?id=14719), and as I understood, I need to mark each segment with `eods` marker.
How I can achieve it with `MP4Box`?
Thank you.
| Embed eods in MP4Box, to stream it with node-gpac-server | https://api.github.com/repos/gpac/gpac/issues/2863/comments | 1 | 2024-06-06T16:24:24Z | 2024-06-07T10:07:09Z | https://github.com/gpac/gpac/issues/2863 | 2,338,674,061 | 2,863 |
[
"gpac",
"gpac"
] | - [x] I looked for a similar issue and couldn't find any.
- [x] I tried with the latest version of GPAC.
- [x] I give enough information for contributors to reproduce my issue.
Greetings,
I'm really grateful to contrubutors for this package, at first.
Second, I have a question.
When i make my manifest with `MP4Box` ( version GPAC 2.5-dev), and play it in [DASH reference player](https://reference.dashif.org/dash.js/latest/samples/dash-if-reference-player/index.html), I got a warning:
"Warning : No UTCTiming element is present in the manifest. You may experience playback failures. "
I checked the manifest and didn't find [mentioned element.](https://github.com/Dash-Industry-Forum/dash.js/wiki/UTCTiming---Clock-synchronization).
manifest command :
```
MP4Box -dash 5000 \
-dash-ctx context.txt \
-profile dashavc264:live \
mpd-refresh 2 \
-dynamic \
-bs-switching no \
-segment-timeline \
-url-template \
-insert-utc \
-min-buffer 30 \
-time-shift 30 \
input.mp4#video \
input.mp4#audio \
-out manifest.mpd
```
Manifest example:
```
<!-- MPD file Generated with GPAC version 2.5-DEV-rev225-gb779331e5-master at 2024-06-06T16:11:45.346Z -->
<MPD xmlns="urn:mpeg:dash:schema:mpd:2011" minBufferTime="PT1.500S" type="dynamic" availabilityStartTime="2024-06-06T16:06:23.058Z" publishTime="2024-06-06T16:11:45.346Z" minimumUpdatePeriod="PT0H0M2.000S" timeShiftBufferDepth="PT0H0M30.000S" maxSegmentDuration="PT0H0M9.984S" profiles="urn:mpeg:dash:profile:isoff-live:2011,http://dashif.org/guidelines/dash264">
<ProgramInformation moreInformationURL="https://gpac.io">
<Title>Test</Title>
</ProgramInformation>
<Period id="DID1" start="PT0H0M0.000S">
<AdaptationSet segmentAlignment="true" maxWidth="1280" maxHeight="720" maxFrameRate="25" par="168:95" startWithSAP="1">
<SegmentTemplate media="input_dash_track1_$Time$.m4s" initialization="input_dash_track1_init.mp4" timescale="12800" startNumber="1">
<SegmentTimeline>
<S t="3842041" d="76800"/>
<S d="49664"/>
<S t="3969836" d="76800"/>
<S d="48640"/>
<S t="4097632" d="76800"/>
<S d="51200"/>
</SegmentTimeline>
</SegmentTemplate>
<Representation id="1" mimeType="video/mp4" codecs="avc1.64001F" width="1280" height="720" frameRate="25" sar="189:190" bandwidth="2121488">
</Representation>
</AdaptationSet>
<AdaptationSet segmentAlignment="true" startWithSAP="1">
<SegmentTemplate media="input_dash_track2_$Time$.m4s" initialization="input_dash_track2_init.mp4" timescale="8000" startNumber="1">
<SegmentTimeline>
<S t="2400892" d="78848"/>
<S d="1024"/>
<S t="2480636" d="78848"/>
<S d="1024"/>
<S t="2560380" d="78848"/>
<S d="2048"/>
</SegmentTimeline>
</SegmentTemplate>
<Representation id="2" mimeType="audio/mp4" codecs="mp4a.40.2" audioSamplingRate="8000" bandwidth="31968">
<AudioChannelConfiguration schemeIdUri="urn:mpeg:dash:23003:3:audio_channel_configuration:2011" value="2"/>
</Representation>
</AdaptationSet>
</Period>
```
I know that in `gpac` there is an option to embed that element
`--utcs='https://time.akamai.com/?iso&ms' `
But how I can achieve the same in `MP4Box`?
Thank you.
| UTCTiming element is absent, how to embed it in MP4Box? | https://api.github.com/repos/gpac/gpac/issues/2862/comments | 4 | 2024-06-06T16:12:58Z | 2024-06-11T07:29:23Z | https://github.com/gpac/gpac/issues/2862 | 2,338,646,749 | 2,862 |
[
"gpac",
"gpac"
] | Command:
gpac -i http://server/m13.m3u8 dashin:forward=file -o mabr://225.1.1.0:6000
gpac -i mabr://225.1.1.0:6000:odir=output
The manifest file in dump output is not refreshed and the tcpdump capture showing that the manifest (ch13.m3u8) checksum is not updated ( Content-MD5="3jimN8iItmifPkGWdbuYzA==" ) .
[mabr.log](https://github.com/user-attachments/files/15613536/mabr.log)
| MABR manifest file is not updated | https://api.github.com/repos/gpac/gpac/issues/2861/comments | 1 | 2024-06-06T10:30:40Z | 2024-06-11T15:49:39Z | https://github.com/gpac/gpac/issues/2861 | 2,337,916,047 | 2,861 |
[
"gpac",
"gpac"
] | We had tried mpeg dash output with input udp and encryption single key, it's can be play on dash.js player.
How to make encryption key rotation/rolling for live input (udp) ?
using option keyRoll made the manifest missing key & value of "cenc:default_KID " and not playable.
In [Issue 2043](https://github.com/gpac/gpac/issues/2043#issuecomment-1022958868) mentioned about "trigger reconfig of the crypto filter", is there other approach?
| Q : Encryption key rotation/rolling for live input (udp) | https://api.github.com/repos/gpac/gpac/issues/2859/comments | 3 | 2024-06-04T03:43:24Z | 2024-06-05T10:54:22Z | https://github.com/gpac/gpac/issues/2859 | 2,332,474,692 | 2,859 |
[
"gpac",
"gpac"
] | `imp -d` in the wasm cmd line throws exception
| Import directory in WASM demo is broken | https://api.github.com/repos/gpac/gpac/issues/2856/comments | 6 | 2024-06-03T13:23:51Z | 2024-06-20T14:24:03Z | https://github.com/gpac/gpac/issues/2856 | 2,331,153,817 | 2,856 |
[
"gpac",
"gpac"
] | I am using Python on Windows 11 with Stable version of GPAC. I am having these warning continuously through out the code.:
> [Dasher] First CTS 61560 in segment 12 drifting by -4.44 (more than half a segment duration) from segment time, consider reencoding or using segment timeline
> [Dasher] First CTS 32048 in segment 7 drifting by -3.952 (more than half a segment duration) from segment time, consider reencoding or using segment timeline
> [Dasher] First CTS 38533 in segment 8 drifting by -3.467 (more than half a segment duration) from segment time, consider reencoding or using segment timeline
If I use "-segment-timeline" I can't use "-segment-name" with custom name format. Using "-segment-name", makes the above error gone. Also when I play it via VLC Player I see this error at beginning of start of the video:
> mp4 warning: elst box found
> mp4 warning: no chunk defined
> mp4 warning: STTS table of 0 entries
> mp4 warning: STTS table of 24 entries
> mp4 warning: that media doesn't look interleaved, will need to seek
> mp4 info: Fragment sequence discontinuity detected 1 != 0
> mp4 warning: no chunk defined
> mp4 warning: STTS table of 0 entries
> mp4 warning: STTS table of 24 entries
> mp4 warning: that media doesn't look interleaved, will need to seek
> mp4 info: Fragment sequence discontinuity detected 1 != 0
> mp4 warning: elst box found
> mp4 warning: no chunk defined
> mp4 warning: STTS table of 0 entries
> mp4 warning: STTS table of 24 entries
> mp4 warning: that media doesn't look interleaved, will need to seek
> mp4 info: Fragment sequence discontinuity detected 1 != 0
> avcodec info: Using D3D11VA (Intel(R) HD Graphics 620, vendor 8086(Intel), device 5916, revision 2) for hardware decoding
> faad warning: decoded zero sample
**_#Update_**
**Now I am trying to ReEncode every video:**
Will below config would be best for Mp4Box dash
video_bitrate = {480: "350k", 720: "900k", 1080: "1800k"}
audio_bitrate = {480: "96k", 720: "128k", 1080: "192k"}
key_int = int(self.video_avg_frame_rate * 3) # Calculate keyint for 6-second segments
**Video Command:**
```
[
os.path.join(BIN_DIR, "ffmpeg"),
"-i", self.original_file_location,
"-c:v", "libx264",
"-preset", "slow",
"-crf", "23",
"-b:v", video_bitrate.get(res, "500k"),
"-an", # No Audio
"-sn", # No Subtitle
"-movflags", "faststart",
"-x264opts", f"keyint={key_int}:min-keyint={key_int}:no-scenecut",
"-vf", f"scale=-2:{res}",
"-f", "mp4",
"-y",
output_video
]
```
**Audio:**
```
[
os.path.join(BIN_DIR, "ffmpeg"),
"-i", self.original_file_location,
"-map", f"0:{track['id']}",
"-c:a", "aac",
"-b:a", audio_bitrate.get(res, '96k'),
"-ac", "2",
"-t", str(video_duration_TEMP),
"-shortest",
"-ar", "48000",
"-movflags", "faststart",
"-profile:a", "aac_low",
"-strict", "experimental",
"-y",
output_audio
]
```
**Subtitles:**
```
[
os.path.join(BIN_DIR, "ffmpeg"),
"-i", self.original_file_location,
"-map", f"0:{track['id']}",
"-c:s", "srt",
"-t", str(video_duration_TEMP),
"-y",
output_subtitle
]
```
**I am having another issue that:, while inspecting chunks, I get this warning:**
> mp4box -info .\vid0_1.m4s
> [iso file] Movie fragment but no moov (yet) - possibly broken parsing!
> File is a segment - 1 movie fragments - Brand msdh (version 0):
> Fragment #1 size 1549569 (moof 2088) {TKID 1 TFDT 608560}
I tried everything but I am unable to add this moov details into segments. Is it okay that segment not to have moov info?
Here is the config that i am using. Please guide me if anything wrong and what improvement i can do. I tried to use onDemand but it won't create chunks so I currently stick to main profile as using chunks is mainly needed.
split_command:
[
'C:/Program Files/GPAC/mp4box.exe',
'-dash', '6000',
'-frag', '6000',
'-rap',
'-bound',
'-profile', 'main',
'-segment-ext', 'm4s',
'-segment-name', '$RepresentationID$_$Number$',
'-out', '/manifest.mpd',
'-url-template',
'c9757e84318e.mkv#video:id=vid0:lang=und',
'c9757e84318e.mkv#1:id=aud0:lang=hin',
'c9757e84318e.mkv#2:id=sub0:lang=eng',
'c9757e84318e.mkv#3:id=sub1:lang=eng'
]
Any kind of help is greatly appreciated.
Thank You. 😊
| Anyway to set custom-name using "-segment-timeline" | https://api.github.com/repos/gpac/gpac/issues/2855/comments | 6 | 2024-06-02T11:05:03Z | 2024-07-04T07:57:10Z | https://github.com/gpac/gpac/issues/2855 | 2,329,596,429 | 2,855 |
[
"gpac",
"gpac"
] | I am new to GPAC and DASH encoding, so I might be missing something. I am using Python with latest Nightly Builds.
What I currently do is first encode the mkv/mp4 videos to my base format using ffmpeg.
**Command:**
```
encode_command = [
os.path.join(BIN_DIR, "ffmpeg"),
"-i", raw_file_location,
"-c:v", "libx264",
"-preset", "slow",
"-crf", "23",
"-c:a", "aac",
"-b:a", "96k",
"-c:s", "mov_text",
"-movflags", "faststart",
"-f", "mp4",
"-y",
"-map", "0",
encoded_file_location
]
```
This gets encoded successfully.
Now, mp4box processing with the encoded file:
```
split_command = [
MP4BOX_PATH,
"-dash", "5000",
"-frag", "5000",
"-profile", "dashavc264:live",
"-segment-name", segment_path_template,
"-segment-ext", "null",
"-segment-timeline",
"-out", manifest_name,
"-init-seg", init_segment_path,
"-url-template",
"7cd2d8fe0b0a:fmt=video/x-matroska#trackID=0:id=vid0:role=main",
"7cd2d8fe0b0a:fmt=video/x-matroska#trackID=1:id=aud0:role=main",
"7cd2d8fe0b0a:fmt=video/x-matroska#trackID=2:id=sub0",
"7cd2d8fe0b0a:fmt=video/x-matroska#trackID=3:id=sub1",
]
```
Now after processing size of the folder gets 4x times. Even if I don't encode the video and directly process mp4box, 3-4x size increase is visible. For example :
last file encoded size was 520MB. and after MP4BOX processing it reached 2GB of the size.
nonEncoded file: 443MB after process is become 1.73GB.
| Size gets 4x times of original size after splitting? | https://api.github.com/repos/gpac/gpac/issues/2852/comments | 1 | 2024-05-30T17:11:46Z | 2024-05-31T07:56:50Z | https://github.com/gpac/gpac/issues/2852 | 2,326,162,484 | 2,852 |
[
"gpac",
"gpac"
] | I'm using the following flags to build a filter graph iteratively. I've observed that compared to normal operations fanout doesn't happen at the correct place. I feel like this is highly dependant on my implementation with gpac but if I could get an insight on it, that would be perfect.
|flag|
|---|
|GF_FS_FLAG_NON_BLOCKING|
|GF_FS_FLAG_NO_REASSIGN|
|GF_FS_FLAG_REQUIRE_SOURCE_ID|
|GF_FS_FLAG_FORCE_DEFER_LINK|
|GF_FS_FLAG_PREVENT_PLAY|
Basically I'm loading `fin` then two `reframer` consecutively. I then explicitly define the connections. The resulting graph has two `mp4dmx` going to reframers. I was expecting this fanout to happen after `mp4dmx`. I know I haven't given any implementation details but I just want to know if this is expected given the flags list above.
> After every API call to libgpac I'm running the session
| Question about deferred linking | https://api.github.com/repos/gpac/gpac/issues/2851/comments | 4 | 2024-05-30T00:54:45Z | 2024-06-05T16:06:03Z | https://github.com/gpac/gpac/issues/2851 | 2,324,456,638 | 2,851 |
[
"gpac",
"gpac"
] | Hi, I am using the following command to send dash files over ROUTE protocol to a multicast IP::
gpac -i index.mpd dashin:forward=file -o route://239.255.24.1:8000
Also I am able to play it using this on different machines::
gpac -play route://239.255.24.1:8000
But I have a software wherein I need to feed the PCAP file.
So I captured the packets, filtered them for the IP and port. But all the packets show the following error with regards to checksum.
What can be done about this

| ROUTE PACKETS CHECKSUM ERROR | https://api.github.com/repos/gpac/gpac/issues/2850/comments | 2 | 2024-05-28T08:40:46Z | 2024-05-29T08:22:54Z | https://github.com/gpac/gpac/issues/2850 | 2,320,475,205 | 2,850 |
[
"gpac",
"gpac"
] | Some inputs requires to attach properties to virtually all output PIDs. If we need to mux these packets again the properties may be duplicated (because the same data comes on the muxer input PIDs).
We discussed about using a "namespace". How would that work?
The easy solution would be to attach the packet property only to one PID (or one stream type). | Identifying duplicated packet properties | https://api.github.com/repos/gpac/gpac/issues/2849/comments | 0 | 2024-05-27T12:39:16Z | 2024-05-27T12:39:16Z | https://github.com/gpac/gpac/issues/2849 | 2,319,064,620 | 2,849 |
[
"gpac",
"gpac"
] | I have encountered three cases where argument parsing is different than what I expected. Let me know if I wrote the arguments incorrectly.
> Note that RSID and indexes were intentionally removed from the resulting graph output
## Example 1
**Command Line**
```
gpac -np fin:src=video.mp4:RSID @ vcrop:wnd=0x0 vflip:RSID @@0 vcrop:wnd=0x0 vflip:RSID @@2#V1 @#V1 mp4mx fout:dst=output.mp4 @@4#V1 probe @@4#V1 vout -graph
```
**Resulting graph output**
```
Filters connected:
fin (src=video.mp4)
-(PID video.mp4) mp4dmx
--(PID V1) wcdec
---(PID V1) vcrop (wnd=0x0)
----(PID V1) vflip
-----(PID V1) mp4mx
------(PID V1) fout (dst=output.mp4)
---(PID V1) vcrop (wnd=0x0)
----(PID V1) vflip (wnd=0x0)
-----(PID V1) mp4mx
Filters not connected:
vflip
probe
Filters in unknown connection state:
vout
```
**Expected graph output**
```
Filters connected:
fin (src=video.mp4)
-(PID video.mp4) mp4dmx
--(PID V1) wcdec
---(PID V1) vcrop (wnd=0x0)
----(PID V1) vflip
-----(PID V1) mp4mx
------(PID V1) fout (dst=output.mp4)
-(PID video.mp4) mp4dmx
--(PID V1) wcdec
---(PID V1) vcrop (wnd=0x0)
----(PID V1) vflip
-----(PID V1) probe
-----(PID V1) mp4mx
-----(PID V1) vout
```
## Example 2
**Command Line**
```
gpac -np fin:src=video.mp4:RSID @ vflip fout:dst=output.mp4 -graph
```
**Resulting graph output**
```
Filters connected:
fin (src=video.mp4)
-(PID video.mp4) mp4dmx
--(PID V1) wcdec
---(PID V1) vflip
----(PID V1) mp4mx
Filters not connected:
fout (dst=output.mp4)
```
**Expected graph output**
```
Filters connected:
fin (src=video.mp4)
-(PID video.mp4) mp4dmx
--(PID V1) wcdec
---(PID V1) vflip
----(PID V1) mp4mx
-----(PID V1) fout (dst=output.mp4)
```
## Example 3
**Command Line**
```
gpac -np fin:src=video.mp4:RSID fin:src=audio.wav @@0 @ mp4mx fout:dst=output.mp4 -graph
```
**Resulting graph output**
```
Filters connected:
fin (src=video.mp4)
-(PID video.mp4) mp4dmx
--(PID V1)\
--(PID A2)-> mp4mx
---(PID isobmf_mux) fout (dst=output.mp4)
fin (src=audio.wav)
-(PID audio.wav) rfpcm
--(PID audio.wav) mp4mx
-(PID audio.wav) rfpcm
--(PID audio.wav) mp4mx
Filters not connected:
mp4mx
```
**Expected graph output**
```
Filters connected:
fin (src=audio.wav)
-(PID audio.wav) rfpcm
--(PID audio.wav) mp4mx
---(PID isobmf_mux) fout (dst=output.mp4)
fin (src=video.mp4)
-(PID video.mp4) mp4dmx
--(PID V1)\
--(PID A2)-> mp4mx
``` | Argument parsing is incorrect on some cases | https://api.github.com/repos/gpac/gpac/issues/2847/comments | 4 | 2024-05-25T20:43:26Z | 2024-05-28T16:12:13Z | https://github.com/gpac/gpac/issues/2847 | 2,317,225,508 | 2,847 |
[
"gpac",
"gpac"
] | Hello, I have tried searching the issues for a potential solution.
I am recording individual JPEG frames saved to a folder in order. They are denoted img_1.jpg to img_x.jpg. I wanted to "containerize" the jpeg frames into an MJPEG formatted video (like .AVI format), and I attempted to use the following command to do so, but it did not work.
```
gpac -i img_%d.jpg compositor:fps=30 vout:ext=avi:fps=30
```
Error: `Failed to load filter for "img_%d.jpg": Requested URL is not valid or cannot be found`
Is this a supported use case? I know I could use img_1.jpg+img_2.jpg+... as stated in the docs, but if I have an arbitrary number of images, this would not be ideal.
I am avoiding using FFmpeg/Gstreamer due to integration constraints for my project, and I already have gpac integrated quite well, so this would be very convenient. Thank you in advance for your consideration and help.
---
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 https://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: https://gpac.io/bug-reporting/
| Unable to use a sequence of JPEG images/frames to convert to .AVI or similar | https://api.github.com/repos/gpac/gpac/issues/2846/comments | 2 | 2024-05-25T01:07:16Z | 2024-05-27T08:59:06Z | https://github.com/gpac/gpac/issues/2846 | 2,316,527,045 | 2,846 |
[
"gpac",
"gpac"
] | Although gpac handled well heic images, and gives extensive documentation on image extraction, no information is given to reconstruct a multi-pid images in heic into a single image. Example of these images can be found
[here](https://github.com/tigranbs/test-heic-images/tree/master), e.g. [image1.heic](https://github.com/tigranbs/test-heic-images/raw/master/image1.heic).
It seems from the documentation that only extraction of single items can be currently done.
| Transcoding or decoding multi-PID heic images | https://api.github.com/repos/gpac/gpac/issues/2845/comments | 1 | 2024-05-24T11:24:18Z | 2024-05-27T11:18:41Z | https://github.com/gpac/gpac/issues/2845 | 2,315,157,218 | 2,845 |
[
"gpac",
"gpac"
] | As described in https://github.com/shaka-project/shaka-player/issues/5782
If we don't add the CLOSED-CAPTIONS to none in the m3u8s, whenever we turn on a UI for choosing subtitles (that we add later on through add text track), apple thinks there is an "Undetermined" subtitle track because the M3U8 does not have the CLOSED-CAPTIONS set to none.
Shall we implement this as a default in GPAC? | Not setting CLOSED-CAPTIONS to none brings problems with subtitles in Apple HLS | https://api.github.com/repos/gpac/gpac/issues/2844/comments | 3 | 2024-05-23T22:31:05Z | 2024-05-27T15:26:38Z | https://github.com/gpac/gpac/issues/2844 | 2,313,964,433 | 2,844 |
[
"gpac",
"gpac"
] | 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 https://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: https://gpac.io/bug-reporting/
I'm trying to transmit live subtitles from our transcoder to GPAC using Transport Stream. Our transcoder does not support MP4 Text Stream, and from what I have read of GPAC's code, it does not support demuxing it either.
Instead of implementing the whole spec, which at the moment is overkill for my use case, I tried to mux SRT subtitles as private data in PES packets.
* The Elementary Stream uses PES packets private data with a `registration_descriptor` for the `SRT ` format.


* Each PES packet contains one SRT event (aligned with PES start):
```
0
00:00:00,000 --> 00:00:01,000
This is the event zero
```
In GPAC, I managed to demux the stream in this branch: https://github.com/gpac/gpac/compare/master...jadarve:gpac:NS_ts_subtitles
running a command like:
```
./bin/gcc/gpac \
-i test_data/out_subtitle_only.ts \
txtin \
-o test_data/subtitles.vtt \
-graph
```
prints the following graph:
```
Filters connected:
fin (src=test_data/out_subtitle_only.ts) (idx=1)
-(PID out_subtitle_only.ts) m2tsdmx (dyn_idx=4)
--(PID P1T2) writeuf (dyn_idx=5)
---(PID P1T2) writegen (dyn_idx=6)
----(PID P1T2) txtin (idx=2)
-----(PID P1T2) tx3g2vtt (dyn_idx=7)
------(PID P1T2) writegen (dyn_idx=8)
-------(PID P1T2) fout (dst=test_data/subtitles.vtt) (idx=3)
```
However, the generated WebVTT is not what I expected, it looks as:
```
WEBVTT
90:15:36.023 --> 90:15:39.623
1
01:00:00,000 --> 01:00:00,000
0
00:00:00,000 --> 00:00:00,040
current counter: 00000000000000000000000000000000000000000000000000
```
where I expected lots of subtitles lines.
This is just an example. My final goal is to be able to mux the TS subtitles into a CMAF track as WebVTT for live streaming. I would like to know if something is already done in that direction (live subtitle muxing), or if the approach I'm taking makes sense, and if you could advise me on how to proceed. | Support live subtitles stream from transport stream | https://api.github.com/repos/gpac/gpac/issues/2843/comments | 0 | 2024-05-23T15:51:17Z | 2024-05-23T15:51:17Z | https://github.com/gpac/gpac/issues/2843 | 2,313,269,517 | 2,843 |
[
"gpac",
"gpac"
] | **Force ttml 123.m4s segments to use just one sample(TRUN.samplecount=1)?**
Mp4box writes 1..N samples to a ttml subtitle file (segdur=8s), sometimes it may have just one sometimes `MOOF/TRAF/TRUN.samplecount=3 (dur=1000, dur=4000, dur=3000)` items.
Is it possible to force ttml text lines go to a single sample within a segment file?
```
MP4Box.exe -add sub_eng_gap1.xml:ext=ttml:lang=eng -new temp-sub_eng.mp4
MP4Box.exe -splitx 0:384 temp-sub_eng.mp4 -out temp-sub_eng.mp4
MP4Box.exe -dash 8000 -mem-frags -profile dashavc264:live -bs-switching no -sample-groups-traf -single-traf -subsegs-per-sidx -1 --tfdt64 --tfdt_traf --noroll=yes --btrt=no --truns_first=yes --cmaf=no -segment-name "$RepresentationID$/sub_$Number$$Init=i$" -out "temp-sub_eng.mpd" "temp-sub_eng.mp4:id=sub_eng"
```
See also: https://github.com/gpac/gpac/issues/866 and https://github.com/gpac/gpac/issues/57#issuecomment-78271907
Or is it [NHNTStream](https://concolato.wp.imt.fr/2014/01/27/first-attempt-at-storing-ttml-in-mp4/) only option, I need to preprocess ttml.xml files to NHNT inputs (one per segment splitted by segment timeline + text line times)?
I believe LiveSim2 supports only `one sample per subtitle_123.m4s segment file` at the moment if using my own vod2live test material. | Force ttml 123.m4s segments to use just one sample(TRUN.samplecount=1)? | https://api.github.com/repos/gpac/gpac/issues/2842/comments | 4 | 2024-05-23T08:21:44Z | 2024-06-13T10:02:44Z | https://github.com/gpac/gpac/issues/2842 | 2,312,275,432 | 2,842 |
[
"gpac",
"gpac"
] | Thanks for reporting your issue. Please make sure these boxes are checked before submitting your issue - thank you!
- [ ] I looked for a similar issue and couldn't find any.
- [ ] I tried with the latest version of GPAC. Installers available at https://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
System: macOS Sonoma 14.5
Hello!
I've tried injecting multiple channels to mv-hevc mov prores file using the Mp4box, but the number of channels is always reduced down to 3.
Is it possible, and how, to inject multiple channels (like ambisonics or dolby 5.1)?
This is the command I used:
```shell
mp4box -new -add /path/video.mov -add /path/audio.aac /path/finalvideo.mov
```
| Injecting multichannel to mv-hevc with mp4box | https://api.github.com/repos/gpac/gpac/issues/2841/comments | 1 | 2024-05-23T05:24:22Z | 2024-05-23T10:32:38Z | https://github.com/gpac/gpac/issues/2841 | 2,311,971,002 | 2,841 |
[
"gpac",
"gpac"
] | Hello !
I play a bit with the new interesting `ghidmx` filter, and i can't get it to generate segment on the 2nd representation in the index.
Here is what i am doing:
1 - Generate the index from 2 fmp4 files
```bash
gpac -i /videos/video_1080p.mp4 -i /videos/audio_128k.mp4 -o /videos/result/index.ghi:segdur=4
```
It generate the following index:
```xml
<?xml version="1.0"?>
<!-- MPD file Generated with GPAC version 2.5-DEV-rev66-ge60a64160-master at 2024-05-16T12:07:38.302Z -->
<GHIX xmlns="urn:gpac:dash:index:2023" segmentDuration="PT0H0M4.000S" template="$RepresentationID$-$Number$$Init=init$" maxSegmentDuration="PT0H0M4.011S" mediaPresentationDuration="PT0H0M30.166S">
<Period duration="PT0H0M30.166S">
<AdaptationSet segmentAlignment="true" maxWidth="1920" maxHeight="1080" maxFrameRate="30" par="16:9" startWithSAP="1">
<Representation id="1" mimeType="video/mp4" codecs="avc1.640028" width="1920" height="1080" frameRate="30" sar="1:1" bandwidth="2994647" src="/videos/video_1080p.mp4" trackID="1">
<SegmentList timescale="15360" sampleDuration="512" srcTimescale="15360">
<I t="0" n="1" d="61440"/>
<I t="61440" n="121" d="61440"/>
<I t="122880" n="241" d="61440"/>
<I t="184320" n="361" d="61440"/>
<I t="245760" n="481" d="61440"/>
<I t="307200" n="601" d="61440"/>
<I t="368640" n="721" d="61440"/>
<I t="430080" n="841" d="33280"/>
</SegmentList>
<prop type="MIMEType" value="video/mp4" />
<prop type="ClockID" value="1" />
<prop type="StreamType" value="Visual" />
<prop type="Timescale" value="15360" />
<prop type="HasSync" value="true" />
<prop type="Duration" value="463360/15360" />
<prop type="NumFrames" value="905" />
<prop type="FPS" value="15360/512" />
<prop type="StreamSubtype" value="vide" />
<prop type="IsoAltBrands" value="iso6,cmfc,mp41" />
<prop type="IsoBrand" value="iso6" />
<prop type="MaxCTSOffset" value="1536" />
<prop type="TrackTemplate" value="AAAA/3RyYWsAAABcdGtoZAAAAAMAAAAA4munigAAAAEAAAAAAAB11gAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAEAAAAAHgAAABDgAAAAAAJttZGlhAAAAIG1kaGQAAAAAAAAAAAAAAAAAADwAAAcSAFXEAAAAAAA3aGRscgAAAAAAAAAAdmlkZQAAAAAAAAAAAAAAAEdQQUMgSVNPIFZpZGVvIEhhbmRsZXIAAAAAPG1pbmYAAAAUdm1oZAAAAAEAAAAAAAAAAAAAAAhkaW5mAAAAGHN0YmwAAAAQc3RzZAAAAAAAAAAA" />
<prop type="TrexTemplate" value="AAAAIHRyZXgAAAAAAAAAAQAAAAEAAAAAAAAAAAAAAAA=" />
<prop type="MovieTime" value="30166/1000" />
<prop type="Width" value="1920" />
<prop type="Height" value="1080" />
<prop type="TransX" value="0" />
<prop type="TransY" value="0" />
<prop type="ZOrder" value="0" />
<prop name="title" ptype="str" value="Big Buck Bunny, Sunflower version" />
<prop name="artist" ptype="str" value="Blender Foundation 2008, Janus Bager Kristensen 2013" />
<prop name="writer" ptype="str" value="Sacha Goedegebure" />
<prop name="comment" ptype="str" value="Creative Commons Attribution 3.0 - http://bbb3d.renderfarming.net" />
<prop name="genre" ptype="str" value="Animation" />
<prop type="HandlerName" value="GPAC ISO Video Handler" />
<prop type="TrackFlags" value="3" />
<prop type="TrackMatrix" value="65536,0,0,0,65536,0,0,0,1073741824" />
<prop name="isom:creation_date" ptype="luint" value="0" />
<prop name="isom:modification_date" ptype="luint" value="0" />
<prop type="CodecID" value="MPEG-4 AVC|H264 Video" />
<prop type="DecoderConfig" value="AWQAKP/hABtnZAAorNlAeAIn5cBEAAADAAQAAAMA8DxgxlgBAAZo6+LLIsD9+PgA" />
<prop type="DecoderConfigIndex" value="1" />
<prop type="Bitrate" value="2994647" />
<prop type="ISOMSubtype" value="avc1" />
<prop type="STSDTemplate" value="AAAAnmF2YzEAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAHgAQ4AEgAAABIAAAAAAAAAAEVTGF2YzYwLjMxLjEwMiBsaWJ4MjY0AAAAAAAAAAAAAAAY//8AAAA4YXZjQwFkACj/4QAbZ2QAKKzZQHgCJ+XARAAAAwAEAAADAPA8YMZYAQAGaOviyyLA/fj4AAAAABBwYXNwAAAAAQAAAAE=" />
</Representation>
</AdaptationSet>
<AdaptationSet segmentAlignment="true" startWithSAP="1">
<Representation id="2" mimeType="audio/mp4" codecs="mp4a.40.2" audioSamplingRate="48000" bandwidth="128000" src="/videos/audio_128k.mp4" trackID="1">
<AudioChannelConfiguration schemeIdUri="urn:mpeg:dash:23003:3:audio_channel_configuration:2011" value="2"/>
<SegmentList timescale="48000" sampleDuration="1024" srcTimescale="48000">
<I t="0" n="1" d="191488"/>
<I t="191488" n="188" d="192512"/>
<I t="384000" n="376" d="191488"/>
<I t="575488" n="563" d="192512"/>
<I t="768000" n="751" d="191488"/>
<I t="959488" n="938" d="192512"/>
<I t="1152000" n="1126" d="191488"/>
<I t="1343488" n="1313" d="98304"/>
</SegmentList>
<prop type="MIMEType" value="video/mp4" />
<prop type="ClockID" value="1" />
<prop type="StreamType" value="Audio" />
<prop type="Timescale" value="48000" />
<prop type="HasSync" value="false" />
<prop type="Duration" value="1441792/48000" />
<prop type="NumFrames" value="1408" />
<prop type="StreamSubtype" value="soun" />
<prop type="IsoAltBrands" value="iso6,cmfc,mp41" />
<prop type="IsoBrand" value="iso6" />
<prop type="TrackTemplate" value="AAAA+3RyYWsAAABcdGtoZAAAAAMAAAAA4munigAAAAEAAAAAAAB1VQAAAAAAAAAAAAAAAQEAAAAAAQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAJdtZGlhAAAAIG1kaGQAAAAAAAAAAAAAAAAAALuAABYAAFXEAAAAAAA3aGRscgAAAAAAAAAAc291bgAAAAAAAAAAAAAAAEdQQUMgSVNPIEF1ZGlvIEhhbmRsZXIAAAAAOG1pbmYAAAAQc21oZAAAAAAAAAAAAAAACGRpbmYAAAAYc3RibAAAABBzdHNkAAAAAAAAAAA=" />
<prop type="TrexTemplate" value="AAAAIHRyZXgAAAAAAAAAAQAAAAEAAAAAAAAAAAAAAAA=" />
<prop type="MovieTime" value="30037/1000" />
<prop name="title" ptype="str" value="Big Buck Bunny, Sunflower version" />
<prop name="artist" ptype="str" value="Blender Foundation 2008, Janus Bager Kristensen 2013" />
<prop name="writer" ptype="str" value="Sacha Goedegebure" />
<prop name="comment" ptype="str" value="Creative Commons Attribution 3.0 - http://bbb3d.renderfarming.net" />
<prop name="genre" ptype="str" value="Animation" />
<prop type="HandlerName" value="GPAC ISO Audio Handler" />
<prop type="TrackFlags" value="3" />
<prop type="AltGroup" value="1" />
<prop name="isom:creation_date" ptype="luint" value="0" />
<prop name="isom:modification_date" ptype="luint" value="0" />
<prop type="CodecID" value="MPEG-4 AAC Audio" />
<prop type="DecoderConfig" value="EZBW5QA=" />
<prop type="DecoderConfigIndex" value="1" />
<prop type="SampleRate" value="48000" />
<prop type="NumChannels" value="2" />
<prop type="BPS" value="16" />
<prop type="SamplesPerFrame" value="1024" />
<prop type="Bitrate" value="128000" />
<prop type="Maxrate" value="128000" />
<prop type="DBSize" value="0" />
<prop type="ISOMSubtype" value="mp4a" />
<prop type="STSDTemplate" value="AAAAYm1wNGEAAAAAAAAAAQAAAAAAAAAAAAIAEAAAAAC7gAAAAAAAKmVzZHMAAAAAAxwAAAAEFEAVAAAAAAH0AAAB9AAFBRGQVuUABgECAAAAFGJ0cnQAAAAAAAH0AAAB9AA=" />
</Representation>
</AdaptationSet>
</Period>
</GHIX>
```
2 - Generating init files like this is working
```bash
gpac -i /videos/result/index.ghi:gm=init:rep=1 -o /videos/result/master.mpd
gpac -i /videos/result/index.ghi:gm=init:rep=2 -o /videos/result/master.mpd
```
Generating playlist for hls and dash also works
3 - However when generating segments it works for represention 1 but not for 2
```bash
# works
gpac -i /videos/result/index.ghi:rep=1:sn=1 -o /videos/result/master.mpd
# not working
gpac -i /videos/result/index.ghi:rep=2:sn=1 -o /videos/result/master.mpd
```
It gives the following error:
```
Filters not connected:
fout (dst=/videos/result/master.mpd) (idx=2)
```
I notice also in the index on representation 2 the mimeType is `audio/mp4` which is correct, and in the props its `<prop type="MIMEType" value="video/mp4" />`
Don't know if it can make the filters fail ?
Thanks for your help.
Regard,
Romain | ghidmx: can't generate segments when multiple representation in the index | https://api.github.com/repos/gpac/gpac/issues/2840/comments | 3 | 2024-05-16T12:30:17Z | 2024-05-23T10:30:06Z | https://github.com/gpac/gpac/issues/2840 | 2,300,276,867 | 2,840 |
[
"gpac",
"gpac"
] | ```
$ gpac -logs=network@debug -i https://livesim2.dashif.org/livesim2/testpic_2s/Manifest.mpd dashin:forward=file -o mabr://225.1.1.0:6000:gpac:NCID=ID1
-netcap=dst=id=ID1,flute.gpc
[Sock_IPV6] Solving livesim2.dashif.org address
[Sock_IPV6] Host livesim2.dashif.org found
[TLSv1.0] TLS header Certificate Status (22)
[TLSv1.3] TLS handshake Client hello (1)
���Y�ୱ�o.\�__�ݜ�jb��[q� �q��B�E��9G#�k�v�<z�1��h��nķ>�,�0�̨̩̪�+�/��$�(k�#�'g�
�9� �3��=<5/�ulivesim2.dashif.org
*(
+-3&$ G�g��တ-aչQ��_�������u�Gz�^C
```
Switching the source to HTTP removes the garbage.
PS: can't make netcap work with FLUTE | netcap with https displays garbage | https://api.github.com/repos/gpac/gpac/issues/2838/comments | 3 | 2024-05-15T11:44:41Z | 2024-05-15T15:58:15Z | https://github.com/gpac/gpac/issues/2838 | 2,297,680,442 | 2,838 |
[
"gpac",
"gpac"
] | - [X] I looked for a similar issue and couldn't find any.
- [X] I tried with the latest version of GPAC. Installers available at https://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 ...)
Platform: linux/amd64 (Ubuntu 22.04) or macOS Sonoma 14.4.1
Hello,
Subtitles provided using stdin pipes or http/https does not work correctly - the output is either empty or corrupted.
`gpac -i "https://download.blender.org/demo/movies/ToS/subtitles/TOS-en.srt" -o stdout:ext=vtt`
```
[TXTIn] Corrupted SRT frame 12 after frame 1
WEBVTT
00:23.000 --> 00:24.500
etty freaky.
```
`cat TOS-en.srt|gpac -no-block=all -i stdin -o stdout:ext=vtt` produces nothing
There is a workaround to make it work (hope this helps someone) - adding the `-no-block=all` parameter helps in both cases, but this is hardly obvious. See the full command below:
`cat TOS-en.srt|gpac -no-block=all -i stdin -o stdout:ext=vtt`
`gpac -no-block=all -i "https://download.blender.org/demo/movies/ToS/subtitles/TOS-en.srt" -o stdout:ext=vtt`
| Subtitles provided using stdin pipes or http/https does not work correctly | https://api.github.com/repos/gpac/gpac/issues/2835/comments | 2 | 2024-05-10T22:56:08Z | 2024-05-30T20:24:59Z | https://github.com/gpac/gpac/issues/2835 | 2,290,503,258 | 2,835 |
[
"gpac",
"gpac"
] | Dear maintainers of `gpac`:
The `HttpOut` filter seems to include querystrings when serving files, it's not documented anywhere and I'm not sure if it's intended or not.
Repro case:
- `gpac` command to produce a live manifest from a pipe input
```sh
gpac \
-log-utc \
-logs=all@info \
-i "pipe:///usr/src/app/video_pipe:block_size=1024" \
-o http://localhost:8080/public.mpd:dmode=dynamic:rdirs=.:reqlog=GET
```
- Normal request for the file
```sh
$ curl -i "localhost:8080/public.mpd"
HTTP/1.1 200 OK
Server: GPAC 2.3-DEV
Date: Fri, 10 May 2024 06:33:47 GMT
Connection: keep-alive
Keep-Alive: timeout=30
ETag: 1715322826952040
Content-Length: 2615
Content-Type: application/dash+xml
... (content follows)
```
- Request for the same file with querystring
```sh
$ curl "localhost:8080/public.mpd?qweqweq"
HTTP/1.1 404 Not Found
Server: GPAC 2.3-DEV
Date: Fri, 10 May 2024 06:33:41 GMT
Content-Type: text/plain
Content-Length: 47
Resource /public.mpd?qweqweq cannot be resolved⏎
```
As of now, I'm not sure if this behavior is intended. I would think that the querystrings, unless noted otherwise, doesn't make a difference for `HttpOut`.
---
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 https://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: https://gpac.io/bug-reporting/
| [HttpOut] Querystrings are included when finding files to serve. | https://api.github.com/repos/gpac/gpac/issues/2834/comments | 3 | 2024-05-10T06:40:24Z | 2024-05-17T09:33:59Z | https://github.com/gpac/gpac/issues/2834 | 2,289,050,637 | 2,834 |
[
"gpac",
"gpac"
] | i tried using mp4box to split a 16 gb video into 8 gb segments, but it ended up giving me this error. and only one of the two resulting segments seems to be complete. the other one doesn't contain the rest of the video.
it's strange, bc prior to this video, i wasn't having any trouble splitting up videos. i'm not sure why this one is giving me trouble all of a sudden
for the record, i'm running the "2024-4-17" release of gpac on windows 11 | [MP4Mux] Session aborted before writing to file, use fragmented storage mode to record session | https://api.github.com/repos/gpac/gpac/issues/2833/comments | 1 | 2024-05-09T02:50:06Z | 2024-05-23T11:01:34Z | https://github.com/gpac/gpac/issues/2833 | 2,286,792,325 | 2,833 |
[
"gpac",
"gpac"
] | Hello,
I need to extract some additional data (GoPro GPS data) from a MP4 file and add them to another MP4 file.
I'm able to extract them with the command
`mp4box.exe -raw 3 ..\video.mp4`
But when I try to import them again with this command
`mp4box.exe -add ..\GoproVideo.mp4 -set-meta meta:tk=3 -add-item ..\video_track3.gpmd:tk=3 -new output.mp4`
I got the following error
`Trying to add item, but missing meta box`
Am I missing something? Looking at the documentation, command line seems ok because I set the meta type and then add the item to it. Should I create first the track3? Or is automatically created with the set-meta command?
This is what I get if I run a -info on the original file
```
# Track 3 Info - ID 3 - TimeScale 1000
Media Duration 00:14:41.526
Track has 2 edits: track duration is 00:14:41.628
Track flags: Enabled In Movie In Preview
Media Samples: 8801
1 UDTA types:
meta:
Media Type: meta:gpmd
Unknown Metadata Stream
RFC6381 Codec Parameters: gpmd
All samples are sync
Max sample duration: 104 / 1000
```
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 https://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: https://gpac.io/bug-reporting/
| "Trying to add item, but missing meta box" error | https://api.github.com/repos/gpac/gpac/issues/2832/comments | 1 | 2024-05-07T21:12:15Z | 2024-05-23T10:49:17Z | https://github.com/gpac/gpac/issues/2832 | 2,284,241,780 | 2,832 |
[
"gpac",
"gpac"
] | Regarding #2478 we should be able to forward markers precisely. At the moment we put them in audio or video tracks. We should map the TS PID from the input to a specific CMAF track ID. How can I achieve this when using the dasher? | Make configurable which TS metadata track goes into which CMAF track | https://api.github.com/repos/gpac/gpac/issues/2831/comments | 0 | 2024-05-06T19:11:39Z | 2024-05-06T19:11:39Z | https://github.com/gpac/gpac/issues/2831 | 2,281,559,522 | 2,831 |
[
"gpac",
"gpac"
] | GPAC offers the possibility to create unregistered properties using a string identifier. This opens great possibilities but GPAC doesn't handle collisions at all.
There is only one property with a given name per packet. This is an issue for example when a stream of packet carry the property and the packet rate is diminished: some of these properties are lost.
Another example (related to https://github.com/gpac/gpac/pull/2748) is id3 metadata. When carried in MPEG-TS PES streams they may not have any PTS. We then assign them to the next (audio) packet. However if we get several of them at once they are not merged but silently lost ; the mpeg2-ts demuxer could merge them but the current API doesn't allow it.
Just triggering the discussion at this point on what to do. | Question about unregistered packet properties | https://api.github.com/repos/gpac/gpac/issues/2830/comments | 1 | 2024-05-06T16:17:08Z | 2024-05-23T11:00:21Z | https://github.com/gpac/gpac/issues/2830 | 2,281,249,835 | 2,830 |
[
"gpac",
"gpac"
] | null | rfadts: props from the first packet are not forwarded | https://api.github.com/repos/gpac/gpac/issues/2829/comments | 4 | 2024-05-06T15:38:18Z | 2024-05-28T22:06:06Z | https://github.com/gpac/gpac/issues/2829 | 2,281,176,802 | 2,829 |
[
"gpac",
"gpac"
] | Meant to be executed after https://github.com/gpac/gpac/pull/2748 is merged.
We still need to add the manifest manipulation:
- [ ] DASH: SCTE-35: add ```<InbandEventStream schemeIdUri="urn:scte:scte35:2013:bin"></InbandEventStream>``` => DASH-IF recommends xml+bin
- [ ] HLS: Add ```#EXT-X-CUE-IN``` and ```#EXT-X-CUE-OUT```.
Some documents found on the Web:
- [emsg URNs](https://dashif-documents.azurewebsites.net/Ingest/master/DASH-IF-Ingest.html)
- [SCTE-35 2022b](https://wagtail-prod-storage.s3.amazonaws.com/documents/SCTE_35_2022b.pdf)
- [ANSI SCTE 67 2017](https://wagtail-prod-storage.s3.amazonaws.com/documents/ANSI_SCTE-67-2017-1576856953355.pdf)
- [SCTE 214-3 2015](https://wagtail-prod-storage.s3.amazonaws.com/documents/ANSI_SCTE20214-3202015.pdf)
- [Stream generator](https://demo.unified-streaming.com/k8s/avod-scte35-aip/stable/dash.html)
- HLS: https://docs.aws.amazon.com/medialive/latest/ug/sample-manifests-hls.html
- https://bitmovin.com/scte-35-guide
- https://developers.broadpeak.io/docs/dai-scte35
- https://docs.unified-streaming.com/documentation/live/scte-35.html | SCTE-35 manifest support | https://api.github.com/repos/gpac/gpac/issues/2828/comments | 0 | 2024-05-06T15:37:33Z | 2024-07-19T15:32:46Z | https://github.com/gpac/gpac/issues/2828 | 2,281,175,422 | 2,828 |
[
"gpac",
"gpac"
] | I received this feedback (in French):
```
par contre, je ne comprends pas ce qui se passe avec certains exemples
Running gpac gpac -stats -i https://wasm.gpac.io/data/dash/bbb_30fps.mpd dashin:forward=file -o dump/$File$:dynext
ne donne rien
```
```
l'exemple "gpac -logs=all@info -i https://wasm.gpac.io/data/video_180.mp4 @#Video reframer:saps=1 @ -o trick_play.mp4" ne donne rien non plus
```
```
Ah je crois avoir compris
Ce serait bien d'améliorer la doc de "File import / export"
Par exemple ajouter:
"In order to load your own files, this page uses the "imp" command"
"Once you have run gpac or MP4Box to produce a new file, you can download it by running "exp FILENAME" where "FILENAME" is the output you gave in the MP4Box or gpac command line
```
```
typo:
"to design a file not on Emscripten's file system" -> "to designate a file not on Emscripten's file system"
```
```
"Otherwise, NAME designs a file to be picked on the user's file system" -> "Otherwise, NAME designates a file to be picked on the user's file system"
```
```
"This syntax CANNOT work when editing files (MP4Box, dasher context, etc...)."
Je comprends pas ce que ça veut dire
```
```
Je comprends pas vraiment comment utiliser "imp"
ce serait bien d'avoir des exemples
je viens d'essayer "imp" tout court, ça ouvre un file picker, ce serait bien de commencer par dire ça
Ce serait bien de clarifier que les fichiers ne sont pas uploadés sur un serveur GPAC, que tout reste en local
je pense que certains utilisateurs voudraient bien tester mais ne veulent pas que leurs fichiers soient uploadés sur un serveur GPAC
```
```
cette phrase est bizarre:
"If writable stream failure, the file will be stored in memory until final write or canceled."
je comprends pas vraiment ce que ça veut dire
```
```
je viens de comprendre ce que fait l'exemple "download remote DASH content" c'est pas immédiat. Si je comprends bien ça download dans le repertoire "dump" mais l'utilisateur doit ensuite executer "exp dump/" ?
Ah non, "exp" ne marche que pour un fichier
donc en gros, l'utilisateur doit se taper tous les "exp" 1 par 1
l'utilité de l'exemple est limitée
```
```
l'exemple d'extraction n'affiche rien, c'est normal? la ligne de commande a disparu ...
par contre "exp xs0-xe02.mp4" fonctionne
```
```
c'est une super idée cette page, mais je pense qu'il faudrait la mettre entre les mains d'un utilisateur novice et observer comment il l'utilise, et corriger/améliorer
"threaded" on, ça ne change rien:
```
```
Je rajouterais une phrase en intro qui dit:
"If you want to process your own files, you must first import them into the environment (see "imp" command below). Note that the files are only imported locally into your browser memory, they are not uploaded to any server. Similarly, if your command line produces any output, the output is only present in the environment. If you want to download them, you have to export them (see the "exp" command below)"
Je réorganiserais/corrigerais aussi:
"Usage
This page allows running the MP4Box and GPAC applications in web browsers.
Select an example and make edits, or type in your own command. Finally press Enter key or click the Run button.
The environment does not contain any source media file. You can use remote URLs (e.g. http URLs) or, if you want to process your own files, you must first import them into the environment (see "imp" command below). Note that the files are only imported locally into your browser memory, they are not uploaded to any server.
Similarly, if your command line produces an output, the output is only present in the environment. If you want to download them, you have to export them (see the "exp" command below).
Remote DASH and HLS playlists can be used as input, provided that they are hosted with proper CORS configurations.
The environment also provides basic shell file system and support advanced gpac configuration (see below).
NOTE: The webassembly build is experimental. It tries to uses webcodecs whenever decoding or encoding is involved. If webcodecs can't be used, it falls back to software implementation running in wasm.
"
```
Other points:
1. Add a warning stating this is experimental with the list of opened issues with label "wasm".
2. Ask for feedback by proposing to open a github issue with label "wasm". | feedback on wasm.gpac.io | https://api.github.com/repos/gpac/gpac/issues/2827/comments | 0 | 2024-05-06T00:43:13Z | 2024-05-06T00:43:13Z | https://github.com/gpac/gpac/issues/2827 | 2,279,824,714 | 2,827 |
[
"gpac",
"gpac"
] | When trying to DASH 6.1 channel E-AC-3 with mp4box, it gives this error `Unknown CICP mapping for channel config 4/2.1` and outputs a null channel configuration in the manifest: `<AudioChannelConfiguration schemeIdUri="urn:mpeg:mpegB:cicp:ChannelConfiguration" value="0"/>`
I have not tried it with 6.1 AAC, but I've generally had bad luck with most web browsers and **any** AAC channel configuration that isn't 5.1, stereo, or mono.
I _believe_ it should be writing either or both of those channel configurations:
```
<AudioChannelConfiguration schemeIdUri="urn:mpeg:mpegB:cicp:ChannelConfiguration" value="11"/>
<AudioChannelConfiguration schemeIdUri="tag:dolby.com,2014:dash:audio_channel_configuration:2011" value="F901"/>
```
The first value is from [page 237 of ETSI TS 106 366](https://www.etsi.org/deliver/etsi_ts/102300_102399/102366/01.04.01_60/ts_102366v010401p.pdf).
The second was derived using:
```
**Dolby XXXX hex bitmask**
MSB->LSB 16bit
Left/Center/Right/LeftSurround/RightSurround/LeftCent_RightCentpair/LeftRearSur_RightRearSurpair/CenterSur/TopCenterSur/Lsurdirect_Rsdpair/Lwide_Rwpair/LVertHeight_Rvhpair/CentVertHeight/Lts_Rtspair/LFE2/LFE
e.g. 5.1 = 1111100000000001 = F801
```
I flipped an extra bit to indicate the presence of `CenterSur`, giving me `1111100100000001` or F901.
If you need a short sample, I have attached one. https://github.com/gpac/gpac/assets/81622808/d85e240d-a06f-49cb-9809-ebf805406af8
- [ ✅ ] I looked for a similar issue and couldn't find any.
- [ ✅ ] I tried with the latest version of GPAC. Installers available at https://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: https://gpac.io/bug-reporting/
| 6.1ch audio gives a channel map error with DASH | https://api.github.com/repos/gpac/gpac/issues/2826/comments | 2 | 2024-05-04T14:01:57Z | 2024-05-23T13:06:40Z | https://github.com/gpac/gpac/issues/2826 | 2,279,011,106 | 2,826 |
[
"gpac",
"gpac"
] | I am trying to use GPAC for transferring DASH files over ROUTE protocol as per ATSC 3.0 standard. Following documentation from the GPAC wiki shows a basic howto guide.
https://wiki.gpac.io/Howtos/route/
On that basis of above howto I am doing the following::
1. I have a directory with correct dash manifest and audio/video segment files. There i am issuing the following command:
` gpac -i index.mpd dashin:forward=file -o route://225.1.1.0:6000`
2. and then I am trying to play it using the following command:
` gpac -play route://225.1.1.0:6000`
Error:
`[Socket] Asked to set socket receive buffer size to 524288 but system used 425984
[AudioOut] No audio output modules found, cannot load audio output
Filter aout failed to setup: I/O Error
Failed to load filter "aout": I/O Error
session error: I/O Error
Filters not connected:
routein (src=route://225.1.1.0:6000) (idx=1)
No filter chain found for PID PID1 in filter routein to any loaded filters - NOT CONNECTED`
3. Also I tried to do the following and then play udp stream in VLC:
`gpac -i route://225.1.1.0:6000/ -o udp://225.1.1.10:1234/:ext=ts`
But none of them seem to be playing anything at all. | ATSC 3.0 DASH with ROUTE | https://api.github.com/repos/gpac/gpac/issues/2825/comments | 6 | 2024-05-03T06:38:54Z | 2024-05-07T10:10:46Z | https://github.com/gpac/gpac/issues/2825 | 2,277,025,942 | 2,825 |
[
"gpac",
"gpac"
] | Thanks for reporting your issue. Please make sure these boxes are checked before submitting your issue - thank you!
- [O] I looked for a similar issue and couldn't find any.
- [O] I tried with the latest version of GPAC. Installers available at https://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: https://gpac.io/bug-reporting/
Hi, I was wondering how dash works inside gpac when I play videos on gpac-gui through DASH.
Is the workflow I drew the right flow?

| Dash player workflow | https://api.github.com/repos/gpac/gpac/issues/2824/comments | 3 | 2024-05-01T11:01:29Z | 2024-05-23T13:08:55Z | https://github.com/gpac/gpac/issues/2824 | 2,273,329,092 | 2,824 |
[
"gpac",
"gpac"
] | I run this command.
```bash
gpac -i rtmp://localhost:1935/live @ c=avc:b=4m @@ c=avc:b=2m @@ ffsws:osize=1280x720 @ c=avc:b=1m @1 c=avc:b=500k @ @1 @3 @4 -o live/index.m3u8:segdur=2:dmode=dynamic:profile=live:muxtype=ts
```
I get output this like.
<img width="1142" alt="image" src="https://github.com/gpac/gpac/assets/40440531/841fc742-fe21-4548-a44a-64f950d37b54">
I want to output look likes
<img width="1128" alt="image" src="https://github.com/gpac/gpac/assets/40440531/ceb509fe-a49b-4354-8511-67e0b7a7544c">
can you anyone help build command
| How to transcoding livestream multiple resulation | https://api.github.com/repos/gpac/gpac/issues/2823/comments | 2 | 2024-05-01T09:20:54Z | 2024-05-03T12:47:02Z | https://github.com/gpac/gpac/issues/2823 | 2,273,208,059 | 2,823 |
[
"gpac",
"gpac"
] | When I try to mux a TTML XML file with base64 images, `mp4box` gives the following error:
Command:
```bash
mp4box -v -add ./en.ttml -new ./en.mp4
```
Output:
```
[TXTIn] Error parsing TTML file: Line 394 - . Abort.
[Filter] txtin (idx 3) in error / not responding properly: 3359372 consecutive errors in 1000000 us with no packet discarded or sent
discarding all inputs and notifying end of stream on all outputs
Filters not connected:
mp4mx (importer:file=0x7f7e6b706800) (idx=1)
[Importer] Error importing ./subtitles/en/en.ttml
Failure while importing media: Feature Not Supported
Error importing ./subtitles/en/en.ttml: Feature Not Supported
```
[en.ttml.zip](https://github.com/gpac/gpac/files/15169844/en.ttml.zip) | Error while muxing TTML XML with base64 images | https://api.github.com/repos/gpac/gpac/issues/2821/comments | 1 | 2024-04-30T19:24:08Z | 2024-05-24T07:41:45Z | https://github.com/gpac/gpac/issues/2821 | 2,272,298,673 | 2,821 |
[
"gpac",
"gpac"
] | Using the file attached below, I've tried the following steps in the [wasm demo page](wasmth.gpac.io) but at the end I get `Failed -11`.
- fs
- a src=beepbop.mp4
- r
- a ffdec
- r
- p inspect
I was expecting it to be possible for `ffdec` to connect to `inspect` as it can do so in the native build using the following command: `gpac -dl -np -i beepbop.mp4 mp4dmx -rl @#audio ffdec -rl -g inspect -rl -se -g` | [WASM] Interactive graph builder cannot probe to `inspect` filter | https://api.github.com/repos/gpac/gpac/issues/2820/comments | 1 | 2024-04-29T21:41:14Z | 2024-05-29T15:15:41Z | https://github.com/gpac/gpac/issues/2820 | 2,270,038,011 | 2,820 |
[
"gpac",
"gpac"
] | @dsilhavy reported on the video-dev slack a use-case where:
1. He wants to remove the 'uuid' box from a segment.
2. The 'uuid' box is reported by GPAC as an error anyway (the segment looks like some smooth streaming):
```
[iso file isomedia/box_code_base.c:6529] extra box uuid found in traf, deleting
[iso file] Movie fragment but no moov (yet) - possibly broken parsing!
[iso file] Error: moov not received before merging fragment
Error opening file video-2800000-42835577159.m4s: Invalid IsoMedia File
```
Is boxpatch supposed to work in this case? | Is it possible to patch a segment with no init? | https://api.github.com/repos/gpac/gpac/issues/2819/comments | 2 | 2024-04-29T20:01:24Z | 2024-05-29T17:38:45Z | https://github.com/gpac/gpac/issues/2819 | 2,269,861,672 | 2,819 |
[
"gpac",
"gpac"
] | I have encountered an issue with MP4Box where it fails to generate initialization segments for all audio profiles when multiple audio tracks with the same sample rate but different bit rates are used.
Steps to Reproduce:
Created video and audio MP4 files with required resolutions and sample rates using the following FFmpeg commands:
For video
`ffmpeg -y -i video30.mp4 -c:v libx264 -r 24 -x264opts 'keyint=48:min-keyint=48:no-scenecut' -vf scale=-2:1080 -b:v 5000000 -maxrate 5000000 -movflags faststart -bufsize 5000000 -profile:v main -preset fast -an "1080.mp4"`
`ffmpeg -y -i video30.mp4 -c:v libx264 -r 24 -x264opts 'keyint=48:min-keyint=48:no-scenecut' -vf scale=-2:720 -b:v 3000000 -maxrate 3000000 -movflags faststart -bufsize 3000000 -profile:v main -preset fast -an "720.mp4"`
`ffmpeg -y -i video30.mp4 -c:v libx264 -r 24 -x264opts 'keyint=48:min-keyint=48:no-scenecut' -vf scale=-2:540 -b:v 1499968 -maxrate 1499968 -movflags faststart -bufsize 1499968 -profile:v main -preset fast -an "540.mp4"`
`ffmpeg -y -i video30.mp4 -c:v libx264 -r 24 -x264opts 'keyint=48:min-keyint=48:no-scenecut' -vf scale=-2:360 -b:v 699968 -maxrate 699968 -movflags faststart -bufsize 699968 -profile:v main -preset fast -an "360.mp4"`
For audio
`ffmpeg -y -i video30.mp4 -map 0:1 -vn -c:a aac -b:a 130828 -ar 48000 -ac 2 audio0.m4a
``ffmpeg -y -i video30.mp4 -map 0:1 -vn -c:a aac -b:a 137500 -ar 48000 -ac 2 audio1.m4a
``ffmpeg -y -i video30.mp4 -map 0:1 -vn -c:a aac -b:a 135812 -ar 48000 -ac 2 audio2.m4a
``ffmpeg -y -i video30.mp4 -map 0:1 -vn -c:a aac -b:a 130911 -ar 48000 -ac 2 audio3.m4a
`
Used MP4Box with the following command to create a DASH manifest:
`MP4Box -dash 4000 -frag 4000 -rap -segment-name 'segment_$RepresentationID$_' -fps 24 1080.mp4#video:id=1080p 720.mp4#video:id=720p 540.mp4#video:id=540p 360.mp4#video:id=360p audio0.m4a#audio:id=0:role=main audio1.m4a#audio:id=1:role=main audio2.m4a#audio:id=2:role=main audio3.m4a#audio:id=3:role=main -out master.mpd
`
After executing the above commands, only the initialization segment for the first audio profile (audio0.m4a) is generated as segment_0_.mp4, but no initialization files are created for the other audio profiles (audio1.m4a, audio2.m4a, audio3.m4a). However, segment files are present for all audio profiles; only the initialization files are missing.
Additional Information:
1. The issue seems to occur specifically when multiple audio tracks with the same sample rate but different bit rates are used.
2. This problem does not occur with the video streams; they are generated correctly as expected.
| MP4Box Not Generating Initialization Segments for All Audio Profiles with Same Sample Rate but Different Bit Rates | https://api.github.com/repos/gpac/gpac/issues/2818/comments | 2 | 2024-04-29T14:39:43Z | 2024-05-02T09:35:06Z | https://github.com/gpac/gpac/issues/2818 | 2,269,227,924 | 2,818 |
[
"gpac",
"gpac"
] | I am using mac package to install
macOS 14.4.1 Sonoma / M1
I have just downloaded GPAC 2.5-dev a few days ago and tried to install.
After installation, I double click to start the application.
The application does not open.
I have tried version back to 2.4. Still the same.
Before install 2.4 and 2.5-dev, there was an older one, I have forgotten the version number but it did open.
See what else information you need to know for troubleshooting.
Tried but of no positive effect:
2.4, 2.5-dev version
reinstalled the Rosetta 2 | GPAC 2.4 and 2.5-dev does not open in Mac Sonoma | https://api.github.com/repos/gpac/gpac/issues/2816/comments | 4 | 2024-04-29T10:07:24Z | 2024-05-13T10:27:57Z | https://github.com/gpac/gpac/issues/2816 | 2,268,625,078 | 2,816 |
[
"gpac",
"gpac"
] | - [++ ] I looked for a similar issue and couldn't find any.
- [ +] I tried with the latest version of GPAC. Installers available at https://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
Given: video fragments of equal length, prepared from some source stream by segmenting into 10s chunks.
Example command of preparation:
```
ffmpeg -loglevel verbose -i <SOURCE_URL> -c:v libx264 -c:a aac -preset veryfast -force_key_frames 'expr:gte(t,n_forced*2)'
-f segment -segment_time 10 -reset_timestamps 1 -map 0 "/chunks/seg_%03d.mp4"
```
So we have seg_0001.mp4, seg_0002.mp4 etc.
You can download prepared files from here: [link](https://www.dropbox.com/scl/fo/024n472bairtmuz2e1lzi/AHn5Gj0sVwcTGfMn4l1_oBA?rlkey=6d063m5gy01un4at2mx0eocmx&st=ukdpih91&dl=0
)
Goal:
Dash these segments sequentially, as the next segment becomes fully written and ready.
Example commands:
````
# First copy seg_000[1,2,3...].mp4 to input mp4
# Then:
MP4Box -dash 10000
-dash-ctx ./stream/context.xml
-profile dashavc264:live
-mpd-refresh 20
-dynamic
-bs-switching no
-segment-timeline
-url-template
-time-shift -1
input.mp4#video
input.mp4#audio
-out ./stream/stream.mpd
````
Estimated result: the dash manifest plays in dash.js player or[ reference dash-if player](https://reference.dashif.org/dash.js/latest/samples/dash-if-reference-player/index.html). When the next segment is adding to manifest, it is playing next.
Obtained result: dash.js plays only first 10s fragment, and then hangs.
I tried:
* changing mpd-refresh
* changing time-shift
* changing profile to live and back to dashavc264 live
* adding/replacing segment-timeline and url-template
* adding :sreg for mpd
* adding -subdur
* adding -frag
* changing dash length
* adding min-buffer
* adding :ddur for sources
* adding ..everything i found
* removing `input.mp4#audio` source *--- WHOA! it's helped*! But I don't hear sound )
Addendum: when I remove -dash-ctx, it plays with sound, but loops around the initial fragment, as expected. I have a vague feeling that there is a problem somewhere in keeping sound in dash-context. It is surely my musings and no more.
What helped else?
When I substitute to source the actual filename, instead of renaming it to "input.mp4", then, everything works.
*But*, the `stream.mpd` and `context.xml` are constantly growing, because there are emerging new `Period` xml-entities. I've posted about it in the issue #2801
So, it would be cool if you fix that problem with live streaming with sound.
Cheers!
| MPEG_DASH manifest with audio track doesn't play in dash.js | https://api.github.com/repos/gpac/gpac/issues/2815/comments | 5 | 2024-04-28T09:14:22Z | 2024-06-02T20:34:42Z | https://github.com/gpac/gpac/issues/2815 | 2,267,447,789 | 2,815 |
[
"gpac",
"gpac"
] | I downloaded the latest nightly build of the `.deb` package and installed in a fresh Linux machine. When trying to list all available filters I get an JS stacktrace error.
```
gpac -h filters
Listing 127 supported filters:
inspect: Inspect packets
probe: Probe source
compositor: Compositor
mp4dmx: ISOBMFF/QT demultiplexer
bifsdec: MPEG-4 BIFS decoder
odfdec: MPEG-4 OD decoder
fin: File input
btplay: BT/XMT/X3D loader
httpin: HTTP input
svgplay: SVG loader
rfimg: JPG/J2K/PNG/BMP reframer
imgdec: PNG/JPG decoder
rfadts: ADTS reframer
rflatm: LATM reframer
rfmp3: MP3 reframer
faad: FAAD decoder
maddec: MAD decoder
j2kdec: OpenJPEG2000 decoder
rfac3: AC3 reframer
a52dec: A52 decoder
rfamr: AMR/EVRC reframer
oggdmx: OGG demultiplexer
vorbisdec: Vorbis decoder
theoradec: Theora decoder
m2tsdmx: MPEG-2 TS demultiplexer
sockin: UDP/TCP input
osvcdec: OpenSVC decoder
lsrdec: MPEG-4 LASeR decoder
safdmx: SAF demultiplexer
dashin: MPEG-DASH and HLS client
cdcrypt: CENC decryptor
cecrypt: CENC encryptor
mp4mx: ISOBMFF/QT multiplexer
rfqcp: QCP reframer
rfh263: H263 reframer
rfmpgvid: M1V/M2V/M4V reframer
nhntr: NHNT reader
nhmlr: NHML reader
rfnalu: AVC/HEVC reframer
m2psdmx: MPEG PS demultiplexer
avidmx: AVI demultiplexer
txtin: Subtitle loader
ttxtdec: TTXT/TX3G decoder
vttdec: WebVTT decoder
ttmldec: TTML decoder
rtpin: RTP/RTSP/SDP input
fout: File output
uflatm: Raw AAC to LATM writer
ufadts: ADTS writer
ufmhas: MHAS writer
reframer: Media Reframer
writegen: Stream to file
ufnalu: AVC/HEVC to AnnexB writer
writeqcp: QCP writer
ufvtt: WebVTT unframer
nhntw: NHNT writer
nhmlw: NHML writer
vobsubdmx: VobSub parser
avimx: AVI multiplexer
aout: Audio output
ufm4v: M4V writer
ufvc1: VC1 writer
resample: Audio resampler
vout: Video output
vcrop: Video crop
vflip: Video flip
rfrawvid: RAW video reframer
rfpcm: PCM reframer
jpgenc: JPG encoder
pngenc: PNG encoder
rewind: Audio/Video rewinder
flist: Sources concatenator
m2tsmx: MPEG-2 TS multiplexer
dasher: DASH and HLS segmenter
tileagg: HEVC tile aggregator
tilesplit: HEVC tile bitstream splitter
pin: pipe input
pout: pipe output
gsfmx: GSF Multiplexer
gsfdmx: GSF demultiplexer
sockout: UDP/TCP output
rfav1: AV1/IVF/VP9 reframer
ufobu: IVF/OBU/annexB writer
routein: ROUTE input
rtpout: RTP Streamer
rtspout: RTSP Server
httpout: HTTP Server
hevcsplit: HEVC tile splitter
hevcmerge: HEVC Tile merger
rfflac: FLAC reframer
rfmhas: MPEH-H Audio Stream reframer
rfprores: ProRes reframer
tssplit: MPEG Transport Stream splitter
bsrw: Compressed bitstream rewriter
bssplit: Compressed layered bitstream splitter
bsagg: Compressed layered bitstream aggregator
ufttxt: TX3G unframer
tx3g2srt: TX3G to SRT
tx3g2vtt: TX3G to WebVTT
tx3g2ttml: TX3G to TTML
vtt2tx3g: WebVTT to TX3G
rfsrt: SRT reframer
ttml2vtt: TTML to WebVTT
ttml2srt: TTML to SRT
mpeghdec: MPEG-H Audio decoder
ffdmx: FFMPEG demultiplexer
ffdmxpid: FFMPEG demultiplexer
ffdec: FFMPEG decoder
ffavin: FFMPEG AV Capture
ffsws: FFMPEG video rescaler
ffenc: FFMPEG encoder
ffmx: FFMPEG multiplexer
ffavf: FFMPEG AVFilter
jsf: JavaScript filter
routeout: ROUTE output
rftruehd: TrueHD reframer
cryptin: CryptFile input
cryptout: CryptFile output
restamp: Packet timestamp rewriter
oggmx: OGG multiplexer
unframer: Stream unframer
writeuf: Stream to unframed format
uncvdec: UNCV decoder
ghidmx: GHI demultiplexer
evgs: EVG video rescaler
ccdec: Closed-Caption decoder
ohevcdec: OpenHEVC decoder
glpush: GPU texture uploader
uncvg: Uncompressed Video File Format Generator Utility
avmix: Audio Video Mixer
thumbs: Thumbnail collection generator
[FreeType] Default fonts not valid, rescanning font directories /usr/share/fonts/
[avgen] Error initializing filter
[avgen] Error: Fonts not found (first was SANS) and no default font available!
Check your GPAC configuration, or use `-rescan-fonts` to refresh font directory.
at put_image (/usr/share/gpac/scripts/jsf/avgen/init.js:358)
at <anonymous> (/usr/share/gpac/scripts/jsf/avgen/init.js:247)
Filter avgen failed to setup: Bad Parameter
```
Version: `2.5-DEV-rev17-g8d7cac0b-master` | Fresh Ubuntu/Linux install nightly fails | https://api.github.com/repos/gpac/gpac/issues/2814/comments | 16 | 2024-04-26T19:33:10Z | 2024-06-10T15:18:22Z | https://github.com/gpac/gpac/issues/2814 | 2,266,393,420 | 2,814 |
[
"gpac",
"gpac"
] | GPAC leverages FFmpeg libraries. However there is:
- No documentation (e.g. HOWTO) page explaining how to leverage FFmpeg's capabilities from GPAC.
- The option parsing with ```:gpac:``` or ```::``` (to force options to be parsed all at once) or finding custom names (e.g. ``avfoundation``` or ```ffmt=```) need to be documented. | Better documentation (HOWTO?) of ff* wrappers in GPAC | https://api.github.com/repos/gpac/gpac/issues/2813/comments | 4 | 2024-04-26T18:47:31Z | 2024-05-29T17:50:20Z | https://github.com/gpac/gpac/issues/2813 | 2,266,328,994 | 2,813 |
[
"gpac",
"gpac"
] | For example I can start and playback an srt:// stream, but these errors are confusion:
```
$ gpac avgen c=avc c=aac -o srt://127.0.0.1:9000::ffmt=mpegts:mode=listener -graph
[FFMux] Fail to write packet to srt://127.0.0.1:9000: error Input/output error - aborting <= HERE
session last process error I/O Error <= HERE
Unknown argument ":9000" set but not used by any filter - no matching argument found <= HERE
Filters connected:
"avgen" (js=/home/rbouqueau/works/gpac/gpac/share/scripts/jsf/avgen/init.js) (idx=1)
-(PID audio) resample (dyn_idx=6)
--(PID audio) ffenc "ffenc:aac" (c=aac) (idx=3)
---(PID audio) ffmx (dst=srt://127.0.0.1:9000::ffmt=mpegts:mode=listener) (idx=4)
-(PID video) ffenc "ffenc:libx264" (c=avc) (idx=2)
--(PID video) rfnalu (dyn_idx=5)
---(PID video) ffmx (dst=srt://127.0.0.1:9000::ffmt=mpegts:mode=listener) (idx=4)
[aac] 2 frames left in the queue on closin
```
and (playback):
```
$ gpac -play srt://127.0.0.1:9000
Type 'h' in window for command list
Filter ffdec:9000 option set but not use <= HERE
```
| Weird error messages when using ff* wrappers | https://api.github.com/repos/gpac/gpac/issues/2812/comments | 3 | 2024-04-26T18:44:49Z | 2024-05-28T15:35:15Z | https://github.com/gpac/gpac/issues/2812 | 2,266,325,410 | 2,812 |
[
"gpac",
"gpac"
] | https://developer.apple.com/av-foundation/Stereo-Video-ISOBMFF-Extensions.pdf | Apple MV-HEVC ISOBMFF extensions | https://api.github.com/repos/gpac/gpac/issues/2811/comments | 0 | 2024-04-26T16:48:02Z | 2024-04-26T16:48:02Z | https://github.com/gpac/gpac/issues/2811 | 2,266,150,900 | 2,811 |
[
"gpac",
"gpac"
] | The check in f2f5130fefbe24488e2a303d2d029e81e1e06198 needs to be adjusted to include FFmpeg 6 (see [here](https://github.com/FFmpeg/FFmpeg/blob/n6.1.1/libavformat/version_major.h#L48)).
Error:
```c
filters/ff_mx.c:298:26: error: incompatible function pointer types passing 'int (*)(void *, const uint8_t *, int)' (aka 'int (*)(void *, const unsigned char *, int)') to parameter of type 'int (*)(void *, uint8_t *, int)' (aka 'int (*)(void *, unsigned char *, int)') [-Wincompatible-function-pointer-types]
1, ctx, NULL, &ffavio_write_packet, &ffavio_seek);
``` | Fails to build with FFmpeg 6 | https://api.github.com/repos/gpac/gpac/issues/2810/comments | 1 | 2024-04-25T13:17:02Z | 2024-04-25T14:11:01Z | https://github.com/gpac/gpac/issues/2810 | 2,263,563,734 | 2,810 |
[
"gpac",
"gpac"
] | **Description**
Function [gf_gz_decompress_payload_ex()](https://github.com/gpac/gpac/blob/205bfe3196764b61b19b63494a2b4708ac774b71/src/utils/base_encoding.c#L252) passes uninitialized buffer `data` to the function `inflate()` (through `d_stream.next_in`)
**Details**
In [box_funcs.c:118](https://github.com/gpac/gpac/blob/205bfe3196764b61b19b63494a2b4708ac774b71/src/isomedia/box_funcs.c#L118) `size` is read from the input. This value is then used to allocate memory ( in [box_funcs.c:198](https://github.com/gpac/gpac/blob/205bfe3196764b61b19b63494a2b4708ac774b71/src/isomedia/box_funcs.c#L198)); the allocated buffer should be initialized by the function `gf_bs_read_data()` in [box_funcs.c:202](https://github.com/gpac/gpac/blob/205bfe3196764b61b19b63494a2b4708ac774b71/src/isomedia/box_funcs.c#L202) but the return value of this function (i.e. the number of read bytes) is not checked. Regardless of how many bytes are read, the whole buffer and the `size` variable are passed to the function `gf_gz_decompress_payload_ex()` in [box_funcs.c:203](https://github.com/gpac/gpac/blob/205bfe3196764b61b19b63494a2b4708ac774b71/src/isomedia/box_funcs.c#L203) which then passes the (uninitialized) buffer to the function `inflate()` in [base_encoding.c:254](https://github.com/gpac/gpac/blob/205bfe3196764b61b19b63494a2b4708ac774b71/src/utils/base_encoding.c#L254).
A possible fix might be to check the return value of the function `gf_bs_read_data()` in [box_funcs.c:202](https://github.com/gpac/gpac/blob/205bfe3196764b61b19b63494a2b4708ac774b71/src/isomedia/box_funcs.c#L202) and either exit with an error or adjust the values accordingly if the expected size does not match the number of read bytes. The testcase provided in the PoC is only 10 bytes long, but triggers an allocation of millions of bytes since the first bytes appear to be interpreted as the size of the payload. The return value of the function `gf_bs_read_data()` with the given input is `0`.
**To Reproduce**
The [attached archive](https://github.com/gpac/gpac/files/15096139/gpac.zip) contains:
- the executable on which we performed our tests (commit hash: 205bfe3)
- the input file to exercise the bug
- the stacktrace when the bug was observed
- the output of Valgrind confirming our finding
At least for this testcase, a memory safety tool is required to expose the bug. To reproduce, run the given binary with the testcase file inside valgrind with a command like `valgrind --track-origins=yes ./fuzz_parse uninit_mem/testcase`.
The binary in the archive is a compiled version of the fuzzing harness you made available for OSS-Fuzz (i.e. `testsuite/oss-fuzzers/fuzz_parse.c`), with a main() function that simply opens a file, reads its content and calls the LLVMFuzzerTestOneInput() function. To compile, we used clang 14 and we ran every test on an ubuntu 22.04 x86-64 machine.
**Impact**
Use-of-uninitialized-memory violations can lead to security issues, but we could not assess the potential impact of this one in depth. We believe the severity (e.g., a local DoS from crash) will depend also on how erratically inflate() may behave on the random data from the uninitialized buffer. Since the testcase we generated does not cause a cash, we followed your policies in `SECURITY.md` and reported it here.
| Use of uninitialized memory in gf_gz_decompress_payload_ex() | https://api.github.com/repos/gpac/gpac/issues/2809/comments | 1 | 2024-04-24T14:56:39Z | 2024-05-13T17:35:56Z | https://github.com/gpac/gpac/issues/2809 | 2,261,505,837 | 2,809 |
[
"gpac",
"gpac"
] | When using profile onDemand and drm (also with dual) the output is weird.
Cannot be played, and most important, when we look at the M3U8 file it looks like this, so it doesn't even show it is DRM protected even it is (and if we look at full-segment.mp4 it shows all green as it is). However, when trying to play from the mpd file, that shows it is DRM, it cannot be played either.
Some weird thing is happening, I cannot figure out what
```
#EXTM3U
#EXT-X-TARGETDURATION:5
#EXT-X-VERSION:6
#EXT-X-MEDIA-SEQUENCE:1
#EXT-X-INDEPENDENT-SEGMENTS
#EXT-X-MAP:URI="full-segment.mp4",BYTERANGE="1151@0"
#EXTINF:5
#EXT-X-BYTERANGE:142072@1283
full-segment.mp4
#EXT-X-ENDLIST
```
| Bug with profile onDemand and DRM | https://api.github.com/repos/gpac/gpac/issues/2808/comments | 15 | 2024-04-19T21:22:29Z | 2024-07-08T15:53:09Z | https://github.com/gpac/gpac/issues/2808 | 2,254,023,476 | 2,808 |
[
"gpac",
"gpac"
] | Hi,
Is there a way to pack HLS/DASH but with everything in just one mp4 file per track, without init segments?
Thanks! | How to pack HLS/DASH but everything in just one mp4 file per track, without init segments? | https://api.github.com/repos/gpac/gpac/issues/2807/comments | 2 | 2024-04-17T21:30:55Z | 2024-05-22T14:52:37Z | https://github.com/gpac/gpac/issues/2807 | 2,249,300,933 | 2,807 |
[
"gpac",
"gpac"
] | I couldn't find any similar issues. I'm using the latest version of GPAC. The duration of my video file is 38 seconds. I want to split it into 15-second parts. However, the last file is always broken: there is a frozen black frame for 5 seconds and after that 3 seconds normal video. But the audio is fine.
Here's the command I'm using:
`MP4Box -split 15 1a088153e.mp4`
[Input file](https://www.dropbox.com/scl/fi/yjwik9i4r84ghkf8w5iyp/1a088153e.mp4?rlkey=w8f48btopfql485pg4mqsa7px&dl=0).
Output [video parts](https://www.dropbox.com/scl/fi/sfe0woor4b3f1jzo6p5pd/1a088153e.tar?rlkey=ddsisttw1l5hl88x9tjn8o5jo&dl=0).
Other videos have different durations, but I always need the segments to be less than 15 seconds. How can I achieve this? | MP4box -split issue, last part is broken, frozen black frame | https://api.github.com/repos/gpac/gpac/issues/2806/comments | 1 | 2024-04-17T17:52:52Z | 2024-05-29T16:08:14Z | https://github.com/gpac/gpac/issues/2806 | 2,248,888,725 | 2,806 |
[
"gpac",
"gpac"
] | Is it possible to output a single m3u8 playlist that contains all the segment information and DRM keys inside for all tracks?
Thanks
| Output a single m3u8 playlist containing everything? | https://api.github.com/repos/gpac/gpac/issues/2805/comments | 1 | 2024-04-17T17:09:29Z | 2024-05-22T14:28:15Z | https://github.com/gpac/gpac/issues/2805 | 2,248,785,782 | 2,805 |
[
"gpac",
"gpac"
] | Hi,
How can I set the audio track name? Imagine I have multiple audio tracks with several qualities or languages. How can I set the audio track name for each?
Sample command:
```
-i transcoded/video_h264_720_vcrf_23.mp4:#HLSPL=video/h264_720_vcrf_23/index.m3u8 @ cecrypt:cfile=drm/drmSpecs/65ebb3d94544b359e976b34665d152c0.xml:FID=SRC1::#HLSKey=skd://65ebb3d94544b359e976b34665d152c0",KEYFORMAT="com.apple.streamingkeydelivery",KEYFORMATVERSIONS="1 -i transcoded/video_h264_480_vb_1500k.mp4:#HLSPL=video/h264_480_vb_1500k/index.m3u8 @ cecrypt:cfile=drm/drmSpecs/65ebb3d94544b359e976b347980565a6.xml:FID=SRC2::#HLSKey=skd://65ebb3d94544b359e976b347980565a6",KEYFORMAT="com.apple.streamingkeydelivery",KEYFORMATVERSIONS="1 -i transcoded/video_h264_360_vb_1M.mp4:#HLSPL=video/h264_360_vb_1M/index.m3u8 @ cecrypt:cfile=drm/drmSpecs/65ebb3d94544b359e976b348cfcdc854.xml:FID=SRC3::#HLSKey=skd://65ebb3d94544b359e976b348cfcdc854",KEYFORMAT="com.apple.streamingkeydelivery",KEYFORMATVERSIONS="1 -i transcoded/video_h264_240_vb_500k.mp4:#HLSPL=video/h264_240_vb_500k/index.m3u8 @ cecrypt:cfile=drm/drmSpecs/65ebb3d94544b359e976b349c7dbc8ff.xml:FID=SRC4::#HLSKey=skd://65ebb3d94544b359e976b349c7dbc8ff",KEYFORMAT="com.apple.streamingkeydelivery",KEYFORMATVERSIONS="1 -i transcoded/video_h264_1080_vcrf_21.mp4:#HLSPL=video/h264_1080_vcrf_21/index.m3u8 @ cecrypt:cfile=drm/drmSpecs/65ebb3d94544b359e976b34ae17ee22c.xml:FID=SRC5::#HLSKey=skd://65ebb3d94544b359e976b34ae17ee22c",KEYFORMAT="com.apple.streamingkeydelivery",KEYFORMATVERSIONS="1 -i transcoded/audio_aac_ab_64k_asr_44100_ac_1.mp4:#HLSPL=audio/aac_ab_64k_asr_44100_ac_1/index.m3u8 @ cecrypt:cfile=drm/drmSpecs/65ebb3d94544b359e976b34b4f8e2722.xml:FID=SRC6::#HLSKey=skd://65ebb3d94544b359e976b34b4f8e2722",KEYFORMAT="com.apple.streamingkeydelivery",KEYFORMATVERSIONS="1 -i transcoded/audio_aac_ab_128k_asr_44100_ac_2.mp4:#HLSPL=audio/aac_ab_128k_asr_44100_ac_2/index.m3u8 @ cecrypt:cfile=drm/drmSpecs/65ebb3d94544b359e976b34c12b121c6.xml:FID=SRC7::#HLSKey=skd://65ebb3d94544b359e976b34c12b121c6",KEYFORMAT="com.apple.streamingkeydelivery",KEYFORMATVERSIONS="1 -o drm/protected/live.m3u8:template=seg-$Number$:dual:segdur=2:SID=SRC1,SRC2,SRC3,SRC4,SRC5,SRC6,SRC7:profile=main
```
| How to set audio tracks names when using GPAC? | https://api.github.com/repos/gpac/gpac/issues/2804/comments | 3 | 2024-04-15T14:01:27Z | 2024-05-27T15:19:03Z | https://github.com/gpac/gpac/issues/2804 | 2,243,772,490 | 2,804 |
[
"gpac",
"gpac"
] | GPAC version 2.0-rev2.0.0+dfsg1-2
We are making stream, consequently feeding MP4Box with new video-fragments
```
MP4Box -dash 10000 -dash-ctx ./stream/context.txt -rap -profile dashavc264:live \
-mpd-refresh 6 -dynamic -bs-switching no \
-segment-timeline -url-template -time-shift 5 \
./chunks/segment_0001.mp4#video ./chunks/segment_0001.mp4#audio -out ./stream/live.mpd
```
Everything is working good, except that fact, that MPD manifest grows very quickly.
Hour after it weighs 9 megabytes, which causes video freeze.
On the other hand, when I use Nginx to stream MPD, it keeps manifest size about 25 kilobytes.
Currently I don't see any workaround, except cleaning it from time to time. But, perhaps, there is some option to keep size in reasonable borders?
| MPEG-DASH manifest size grows like avalanche | https://api.github.com/repos/gpac/gpac/issues/2801/comments | 12 | 2024-04-11T09:17:04Z | 2024-05-29T14:34:58Z | https://github.com/gpac/gpac/issues/2801 | 2,237,274,988 | 2,801 |
[
"gpac",
"gpac"
] | How to use bellow ffmpeg command in gpac.
ffmpeg -i input_file -crf 23 -maxrate 6750k -bufsize 6750k output_file | How to use capped CRF in gpac | https://api.github.com/repos/gpac/gpac/issues/2800/comments | 2 | 2024-04-10T18:54:25Z | 2024-05-22T14:31:23Z | https://github.com/gpac/gpac/issues/2800 | 2,236,220,290 | 2,800 |
[
"gpac",
"gpac"
] | this happened when switching to ffmpeg 7, see the [buildbot](https://buildbot.gpac.io/#/builders/27/builds/516).
as a side effect the automatic deployment is also broken.
the broken build shouldn't be uploaded to [wasmth.gpac.io](https://wasmth.gpac.io).
cc @rbouqueau
| wasm build and deployment are broken | https://api.github.com/repos/gpac/gpac/issues/2799/comments | 1 | 2024-04-09T10:21:57Z | 2024-04-09T12:22:22Z | https://github.com/gpac/gpac/issues/2799 | 2,233,111,231 | 2,799 |
[
"gpac",
"gpac"
] | I'm now using visual studio 2022, and I built the gpac with v143 , windows SDK 10. When i'm trying to debug the gpac_public/build/msvc14/gpac.sln, it shows Lnk1104 error with nghttp2.lib and the others. I add the command argument on visual studio gpac -gui https://dash.akamaized.net/akamai/bbb_30fps/bbb_30fps.mpd.
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 https://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: https://gpac.io/bug-reporting/
| gpac windows 64 LNK 1104 error. | https://api.github.com/repos/gpac/gpac/issues/2798/comments | 1 | 2024-04-09T10:00:33Z | 2024-04-09T10:30:57Z | https://github.com/gpac/gpac/issues/2798 | 2,233,073,116 | 2,798 |
[
"gpac",
"gpac"
] | I want to know if the fragments are saving in buffer. And which file the buffer exist.
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.
- [ ] I tried with the latest version of GPAC. Installers available at https://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: https://gpac.io/bug-reporting/
| Where can I find fragments getting from the sever via mpd? | https://api.github.com/repos/gpac/gpac/issues/2797/comments | 2 | 2024-04-08T08:36:48Z | 2024-04-09T09:52:23Z | https://github.com/gpac/gpac/issues/2797 | 2,230,599,746 | 2,797 |
[
"gpac",
"gpac"
] | 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 https://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: https://gpac.io/bug-reporting/
## Describe the bug
There is a heap-buffer-overflow bug in mpgviddmx_process , src/filters/reframe_mpgvid.c:741:4, can be triggered via MP4Box+ ASan
## Step to reproduce
```
export CC="clang -fsanitize=address -fPIC -g"
export CXX="clang++ -fsanitize=address -fPIC -g"
./configure --enable-static --disable-shared --static-build
make -j10
./MP4Box -dash 1000 -out /dev/null poc
```
## Sanitizer output
```
cas@cas-PC:~/chenxu/try_cve/verifycrash/gpac/bin/gcc$ ./MP4Box -dash 1000 -out /dev/null poc
[m4v] Format m4v detected only with low score of 5, misdetection possible!
[mpeg4] time_increment_bits 0 is invalid in relation to the current bitstream, this is likely caused by a missing VOL header
[mpeg4] time_increment_bits set to 16 bits, based on bitstream analysis
[mpeg4] time_increment_bits 16 is invalid in relation to the current bitstream, this is likely caused by a missing VOL header
[mpeg4] time_increment_bits set to 16 bits, based on bitstream analysis
[mpeg4] time_increment_bits 16 is invalid in relation to the current bitstream, this is likely caused by a missing VOL header
[mpeg4] time_increment_bits set to 16 bits, based on bitstream analysis
[mpeg4] time_increment_bits 16 is invalid in relation to the current bitstream, this is likely caused by a missing VOL header
[mpeg4] time_increment_bits set to 16 bits, based on bitstream analysis
[mpeg4] time_increment_bits 16 is invalid in relation to the current bitstream, this is likely caused by a missing VOL header
[mpeg4] time_increment_bits set to 16 bits, based on bitstream analysis
[mpeg4] time_increment_bits 16 is invalid in relation to the current bitstream, this is likely caused by a missing VOL header
[mpeg4] time_increment_bits set to 16 bits, based on bitstream analysis
[mpeg4] time_increment_bits 16 is invalid in relation to the current bitstream, this is likely caused by a missing VOL header
[mpeg4] time_increment_bits set to 16 bits, based on bitstream analysis
[mpeg4] time_increment_bits 16 is invalid in relation to the current bitstream, this is likely caused by a missing VOL header
[mpeg4] time_increment_bits set to 16 bits, based on bitstream analysis
[mpeg4] time_increment_bits 4 is invalid in relation to the current bitstream, this is likely caused by a missing VOL header
[mpeg4] time_increment_bits set to 16 bits, based on bitstream analysis
[mpeg4] time_increment_bits 16 is invalid in relation to the current bitstream, this is likely caused by a missing VOL header
[mpeg4] time_increment_bits set to 16 bits, based on bitstream analysis
[mpeg4] time_increment_bits 16 is invalid in relation to the current bitstream, this is likely caused by a missing VOL header
[mpeg4] time_increment_bits set to 16 bits, based on bitstream analysis
[mpeg4] time_increment_bits 16 is invalid in relation to the current bitstream, this is likely caused by a missing VOL header
[mpeg4] time_increment_bits set to 16 bits, based on bitstream analysis
[mpeg4] Error, header damaged or not MPEG4 header (b_code=0)
[mpeg4] header damaged
[mpeg4] time_increment_bits 16 is invalid in relation to the current bitstream, this is likely caused by a missing VOL header
[mpeg4] time_increment_bits set to 16 bits, based on bitstream analysis
[mpeg4] time_increment_bits 16 is invalid in relation to the current bitstream, this is likely caused by a missing VOL header
[mpeg4] time_increment_bits set to 16 bits, based on bitstream analysis
[mpeg4] time_increment_bits 16 is invalid in relation to the current bitstream, this is likely caused by a missing VOL header
[mpeg4] time_increment_bits set to 16 bits, based on bitstream analysis
[mpeg4] time_increment_bits 16 is invalid in relation to the current bitstream, this is likely caused by a missing VOL header
[mpeg4] time_increment_bits set to 16 bits, based on bitstream analysis
[mpeg4] time_increment_bits 16 is invalid in relation to the current bitstream, this is likely caused by a missing VOL header
[mpeg4] time_increment_bits set to 16 bits, based on bitstream analysis
[mpeg4] time_increment_bits 16 is invalid in relation to the current bitstream, this is likely caused by a missing VOL header
[mpeg4] time_increment_bits set to 16 bits, based on bitstream analysis
[m4v] decoding for stream 0 failed
[m4v] Could not find codec parameters for stream 0 (Video: mpeg4 (Hybrid Profile), none, 2054x5814): unspecified pixel format
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[FFDmx] Unknown frame rate, will use 25 fps - use `:#FPS=VAL` to force frame rate signaling
[FFDmx] Unsupported pixel format -1
[Dasher] No template assigned, using $File$_dash$FS$$Number$
[Dasher] No bitrate property assigned to PID video1, computing from bitstream
=================================================================
==18597==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x602000008b96 at pc 0x0000004a696f bp 0x7fffffff01f0 sp 0x7ffffffef9b8
READ of size 9 at 0x602000008b96 thread T0
#0 0x4a696e in __asan_memmove /home/cas/chenxu/llvm/llvm-project-release-12.x/compiler-rt/lib/asan/asan_interceptors_memintrinsics.cpp:30:3
#1 0xf8ceaa in mpgviddmx_process /home/cas/chenxu/try_cve/verifycrash/gpac/src/filters/reframe_mpgvid.c:741:4
#2 0xc151e5 in gf_filter_process_task /home/cas/chenxu/try_cve/verifycrash/gpac/src/filter_core/filter.c:3029:7
#3 0xbf133d in gf_fs_thread_proc /home/cas/chenxu/try_cve/verifycrash/gpac/src/filter_core/filter_session.c:2113:3
#4 0xbefd82 in gf_fs_run /home/cas/chenxu/try_cve/verifycrash/gpac/src/filter_core/filter_session.c:2413:3
#5 0x996a8f in gf_dasher_process /home/cas/chenxu/try_cve/verifycrash/gpac/src/media_tools/dash_segmenter.c:1255:6
#6 0x4ef7d3 in do_dash /home/cas/chenxu/try_cve/verifycrash/gpac/applications/mp4box/mp4box.c:4832:15
#7 0x4ef7d3 in mp4box_main /home/cas/chenxu/try_cve/verifycrash/gpac/applications/mp4box/mp4box.c:6256:7
#8 0x7ffff065fc86 in __libc_start_main /build/glibc-CVJwZb/glibc-2.27/csu/../csu/libc-start.c:310
#9 0x42c2a9 in _start (/home/cas/chenxu/try_cve/verifycrash/gpac/bin/gcc/MP4Box+0x42c2a9)
0x602000008b96 is located 0 bytes to the right of 6-byte region [0x602000008b90,0x602000008b96)
allocated by thread T0 here:
#0 0x4a716d in malloc /home/cas/chenxu/llvm/llvm-project-release-12.x/compiler-rt/lib/asan/asan_malloc_linux.cpp:145:3
#1 0x1835713 in gf_filter_pck_new_alloc_internal /home/cas/chenxu/try_cve/verifycrash/gpac/src/filter_core/filter_pck.c:159:15
#2 0x1031059 in ffdmx_process /home/cas/chenxu/try_cve/verifycrash/gpac/src/filters/ff_dmx.c:660:13
#3 0xc151e5 in gf_filter_process_task /home/cas/chenxu/try_cve/verifycrash/gpac/src/filter_core/filter.c:3029:7
SUMMARY: AddressSanitizer: heap-buffer-overflow /home/cas/chenxu/llvm/llvm-project-release-12.x/compiler-rt/lib/asan/asan_interceptors_memintrinsics.cpp:30:3 in __asan_memmove
Shadow bytes around the buggy address:
0x0c047fff9120: fa fa 00 00 fa fa fd fa fa fa fd fd fa fa fd fa
0x0c047fff9130: fa fa 00 06 fa fa 00 06 fa fa 04 fa fa fa 00 05
0x0c047fff9140: fa fa 00 00 fa fa 04 fa fa fa 00 00 fa fa fd fa
0x0c047fff9150: fa fa fd fd fa fa fd fd fa fa fd fd fa fa 00 00
0x0c047fff9160: fa fa 00 00 fa fa 00 00 fa fa 00 00 fa fa 00 00
=>0x0c047fff9170: fa fa[06]fa fa fa 00 00 fa fa 01 fa fa fa 00 00
0x0c047fff9180: fa fa 05 fa fa fa 00 00 fa fa 00 00 fa fa 00 00
0x0c047fff9190: fa fa 00 00 fa fa 03 fa fa fa 00 04 fa fa 03 fa
0x0c047fff91a0: fa fa 05 fa fa fa 03 fa fa fa 00 00 fa fa 03 fa
0x0c047fff91b0: fa fa 03 fa fa fa 03 fa fa fa 03 fa fa fa 00 04
0x0c047fff91c0: fa fa 03 fa fa fa fa fa fa fa fa fa fa fa fa fa
Shadow byte legend (one shadow byte represents 8 application bytes):
Addressable: 00
Partially addressable: 01 02 03 04 05 06 07
Heap left redzone: fa
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack after return: f5
Stack use after scope: f8
Global redzone: f9
Global init order: f6
Poisoned by user: f7
Container overflow: fc
Array cookie: ac
Intra object redzone: bb
ASan internal: fe
Left alloca redzone: ca
Right alloca redzone: cb
Shadow gap: cc
==18597==ABORTING
```
## version
system: ubuntu 18.04.1
compiler: clang 12.0.1
GPAC version 2.3-DEV-rev1013-g61146d5e7-master
## POC
Please unzip it first.
[poc.zip](https://github.com/gpac/gpac/files/14895606/poc.zip)
Can this assign CVE?
| heap-buffer-overflow on mpgviddmx_process src/filters/reframe_mpgvid.c:741:4 | https://api.github.com/repos/gpac/gpac/issues/2795/comments | 0 | 2024-04-07T02:52:47Z | 2024-04-08T14:32:27Z | https://github.com/gpac/gpac/issues/2795 | 2,229,527,808 | 2,795 |
[
"gpac",
"gpac"
] | I'm trying to remove the title of a track with `mp4box filename.mp4 -name 5=""` but that just keeps the existing title.
If I try to replace it with something else with `mp4box filename.mp4 -name 5="New Text"` I get "`New Text / Old Text`"
`MP4Box - GPAC version 2.2.1-rev0-gb34e3851-release-2.2`
Very frustrating.
**UPDATE:** There were apparently some UDTA's set, perhaps by HandBrake. I removed those and it worked as expected, still maybe some kind of overriding option wouldn't hurt. I would've never found this without doing `-info 5`. (And even then the `-udta` documentation could've been better since I'm not even sure what they are.) | name tkID appends text not replace | https://api.github.com/repos/gpac/gpac/issues/2794/comments | 1 | 2024-04-06T04:50:14Z | 2024-04-08T14:50:36Z | https://github.com/gpac/gpac/issues/2794 | 2,229,075,594 | 2,794 |
[
"gpac",
"gpac"
] | 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 https://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
We created a subtitles [WebVTT file](https://github.com/gpac/gpac/files/14889478/subtitleVTT.txt), and transformed it to a TTXT file using the following GPAC command:
```
gpac -i subtitleVTT.vtt -o subtitleTTXT.ttxt
```
After, we want to ingest an [output.ts](https://github.com/gpac/gpac/files/14889487/output.txt) file alongside the [subtitleTTXT.ttxt](https://github.com/gpac/gpac/files/14889485/subtitleTTXT.txt) file to produce HLS with WebVTT raw subtitles, using the following command:
```
gpac \
-i output.ts \
-i subtitleTTXT.ttxt tx3g2vtt \
-o res/live.m3u8:cmaf=cmf2:rawsub=true:segdur=1:cat=auto
```
Note the `tx3g2vtt` filter, who should transform the TTXT format to WebVTT format. GPAC throws the following error:
```
[Dasher] PID subtitleTTXT.ttxt config changed during active period, forcing period switch
Segmentation fault (core dumped)
```
Are we missing any configuration on the GPAC command to get this working? Any help is much appreciated.
The following are the attachments to run the GPAC command:
- [output.ts](https://github.com/gpac/gpac/files/14889487/output.txt): Rename to output.ts
- [subtitleVTT.vtt](https://github.com/gpac/gpac/files/14889478/subtitleVTT.txt): Rename to subtitleVTT.vtt
- [subtitleTTXT.ttxt](https://github.com/gpac/gpac/files/14889485/subtitleTTXT.txt): Rename to subtitleTTXT.ttxt
| Ingesting TS and TTXT subtitle files to create HLS with WebVTT raw format seems not working | https://api.github.com/repos/gpac/gpac/issues/2793/comments | 1 | 2024-04-05T18:46:30Z | 2024-04-08T14:32:58Z | https://github.com/gpac/gpac/issues/2793 | 2,228,627,563 | 2,793 |
[
"gpac",
"gpac"
] | Hello!
I'm interested in packaging content for Dolby Vision Profile 20 for Apple Vision Pro.
https://professionalsupport.dolby.com/s/article/Introduction-to-Dolby-Vision-Profile-20?language=en_US
This is basically Dolby Vision Profile 5 but extended for MV-HEVC. It would be awesome to be able to use MP4Box to package Profile 20 content into HLS CMAF.
- [x] I looked for a similar issue and couldn't find any.
- [x] I tried with the latest version of GPAC. Installers available at https://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
| Dolby Vision Profile 20? | https://api.github.com/repos/gpac/gpac/issues/2790/comments | 5 | 2024-03-26T18:08:37Z | 2024-03-30T11:18:42Z | https://github.com/gpac/gpac/issues/2790 | 2,208,970,035 | 2,790 |
[
"gpac",
"gpac"
] | I can't document it much but we've been able to generate (and capture) faulty sessions this way:
```
gpac -i EncB/manifest.mpd dashin:forward=file -o atsc:// -graph -netcap=dst=netcap.gpc
```
and replay with:
```
gpac -netcap=src=netcap.gpc -play atsc://::max_segs=10
```
The issue with VoD session is that the MPD is scheduled at the end of the session.
There were also questions on using ```:forward=file``` versus ```:forward=mani```. And also with requiring ```atsc://```.
There is an analysis from @touatily available on request. | Add warnings when generating ROUTE sessions from VoD assets that can't work | https://api.github.com/repos/gpac/gpac/issues/2789/comments | 1 | 2024-03-26T10:13:00Z | 2024-04-05T15:00:21Z | https://github.com/gpac/gpac/issues/2789 | 2,207,817,269 | 2,789 |
[
"gpac",
"gpac"
] | 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 https://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: https://gpac.io/bug-reporting/
Greetings,
I installed GPAC android apk (stable release 2.2.1) on an ASUS_Z017DA phone (android 7). I then used it to play a mp4 file that was working in the GPAC client running on Linux. I found that I could hear the audio, but the screen was all black.
I have attached the relevant logs at the end of the post.
My questions are below:
• Are there any suggestions for solving this problem?
• Which version of the Android phone is working fine with the GPAC Client?
• What make/model of Android phone is recommended for use with the GPAC client?
Any hints are highly appreciated.
Thanks,
Ei Kyi Phyu Khin
2024-03-19 17:57:54.790 23012-23030 GPAC io.gpac.gpac I GPAC is ready
2024-03-19 17:57:54.790 23012-23030 GPACRenderer io.gpac.gpac I Surface changed from thread Thread[GLThread 760,5,main]
2024-03-19 17:57:54.790 23012-23030 GPAC io.gpac.gpac I Resizing to 1080x1920
2024-03-19 17:57:54.835 23012-23034 AudioTrack io.gpac.gpac D Client defaulted notificationFrames to 1178 for frameCount 3536
2024-03-19 17:57:54.858 23012-23030 GPAC io.gpac.gpac D Connected
2024-03-19 17:57:55.231 23012-23012 Choreographer io.gpac.gpac I Skipped 36 frames! The application may be doing too much work on its main thread.
2024-03-19 17:58:05.643 23012-23012 BoostFramework io.gpac.gpac V BoostFramework() : mPerf = com.qualcomm.qti.Performance@391136e
2024-03-19 17:58:09.379 23012-23019 art io.gpac.gpac I Debugger is no longer active
2024-03-19 17:58:09.379 23012-23019 art io.gpac.gpac I Starting a blocking GC Instrumentation
2024-03-19 17:58:10.020 23012-23030 GPAC io.gpac.gpac D Connected
2024-03-19 17:58:10.020 23012-23030 GPAC io.gpac.gpac I Received Un-Register Sensors call for type 0
2024-03-19 17:58:10.024 23012-23030 GPAC SensorServices io.gpac.gpac I Using Rotation Vector sensor for 360navigation
2024-03-19 17:58:10.045 23012-23035 VideoCapabilities io.gpac.gpac W Unrecognized profile 2130706433 for video/avc
2024-03-19 17:58:10.045 23012-23035 VideoCapabilities io.gpac.gpac W Unrecognized profile 2130706434 for video/avc
2024-03-19 17:58:10.051 23012-23035 Utils io.gpac.gpac W could not parse long range '175-174'
2024-03-19 17:58:10.056 23012-23035 VideoCapabilities io.gpac.gpac W Unrecognized profile 2130706433 for video/avc
2024-03-19 17:58:10.056 23012-23035 VideoCapabilities io.gpac.gpac W Unrecognized profile 2130706434 for video/avc
2024-03-19 17:58:10.059 23012-23035 VideoCapabilities io.gpac.gpac W Unrecognized profile 2130706433 for video/avc
2024-03-19 17:58:10.059 23012-23035 VideoCapabilities io.gpac.gpac W Unrecognized profile 2130706434 for video/avc
2024-03-19 17:58:10.080 23012-23035 VideoCapabilities io.gpac.gpac W Unsupported mime video/mp4v-esdp
2024-03-19 17:58:10.107 23012-23035 VideoCapabilities io.gpac.gpac I Unsupported profile 4 for video/mp4v-es
2024-03-19 17:58:10.112 23012-23035 VideoCapabilities io.gpac.gpac W Unrecognized profile 2130706433 for video/avc
2024-03-19 17:58:10.112 23012-23035 VideoCapabilities io.gpac.gpac W Unrecognized profile 2130706434 for video/avc
2024-03-19 17:58:10.113 23012-23035 VideoCapabilities io.gpac.gpac W Unrecognized profile 2130706433 for video/avc
2024-03-19 17:58:10.113 23012-23035 VideoCapabilities io.gpac.gpac W Unrecognized profile 2130706434 for video/avc
2024-03-19 17:58:10.119 23012-23052 OMXClient io.gpac.gpac I MuxOMX ctor
2024-03-19 17:58:10.163 23012-23034 AudioTrack io.gpac.gpac W releaseBuffer() track 0xcc112200 disabled due to previous underrun, restarting
2024-03-19 17:58:10.182 23012-23051 MediaCodec io.gpac.gpac I [OMX.qcom.video.decoder.avc] setting surface generation to 23564289
2024-03-19 17:58:10.182 23012-23052 ExtendedACodec io.gpac.gpac I setupVideoDecoder()
2024-03-19 17:58:10.182 23012-23052 ExtendedACodec io.gpac.gpac I vpp-enable search is 0 and value is 0
2024-03-19 17:58:10.189 23012-23052 ExtendedACodec io.gpac.gpac I Decoder will be in frame by frame mode
2024-03-19 17:58:10.207 23012-23052 SurfaceUtils io.gpac.gpac D set up nativeWindow 0xcc424b08 for 1280x640, color 0x7fa30c06, rotation 0, usage 0x2002900
2024-03-19 18:16:27.410 23012-23012 GPAC io.gpac.gpac I onStop called on activity
2024-03-19 19:35:45.339 23012-23023 art io.gpac.gpac I Background partial concurrent mark sweep GC freed 209301(7MB) AllocSpace objects, 0(0B) LOS objects, 59% free, 5MB/13MB, paused 341us total 136.063ms
2024-03-19 19:59:47.421 23012-23023 art io.gpac.gpac I Background sticky concurrent mark sweep GC freed 209447(7MB) AllocSpace objects, 0(0B) LOS objects, 58% free, 5MB/13MB, paused 351us total 101.883ms
2024-03-19 20:02:27.617 23012-23023 art io.gpac.gpac I Background partial concurrent mark sweep GC freed 209586(7MB) AllocSpace objects, 0(0B) LOS objects, 59% free, 5MB/13MB, paused 66.220ms total 103.727ms | MP4Client shows no video on Android 7 phone | https://api.github.com/repos/gpac/gpac/issues/2787/comments | 1 | 2024-03-21T12:56:52Z | 2024-05-05T07:22:26Z | https://github.com/gpac/gpac/issues/2787 | 2,200,128,784 | 2,787 |
[
"gpac",
"gpac"
] | I'm using below command to send a file using route.
gpac -i ./gpac.zip:mime=application/octet-string -o route://225.1.1.0:6000
Questions:
-How to set a limit the route mux rate?
-This command keep sending the file forever, how to exit after send file 2x.
Thanks | Question ROUTE | https://api.github.com/repos/gpac/gpac/issues/2786/comments | 1 | 2024-03-21T03:18:41Z | 2024-04-08T15:11:21Z | https://github.com/gpac/gpac/issues/2786 | 2,199,026,477 | 2,786 |
[
"gpac",
"gpac"
] | Not a bug, just a feature request:
`gf_media_get_rfc_6381_codec_name()` is excellent.
Maybe it would be possible to export the codec-name also with:
````
gpac -i test.mp4 inspect:full
````
| gf_media_get_rfc_6381_codec_name() in gpac | https://api.github.com/repos/gpac/gpac/issues/2785/comments | 2 | 2024-03-19T17:34:10Z | 2024-03-26T15:58:23Z | https://github.com/gpac/gpac/issues/2785 | 2,195,575,813 | 2,785 |
[
"gpac",
"gpac"
] | 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 https://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
Download this Twitch video with [TwitchDownloaderCLI](https://github.com/lay295/TwitchDownloader):
```
TwitchDownloaderCLI videodownload -u 2065608792 -q best -o 2065608792.mp4
```
Try to split it
```
MP4Box -splitx 8130:9200 2065608792.mp4 -out mp4box.mp4
[MP4Mux] Error creating new tx3g sample description: Bad Parameter
Failed to connect filter reframer PID T3 to filter mp4mx: Bad Parameter
splitting: file 1 done
Split failed: Bad Parameter
Error: Bad Parameter
```
2065608792.mp4 includes 4 chapters, I guess they should be adjusted relative to output file as well (in case it's not done already).
Here is the attachment of these 2 output files (samples):
```
TwitchDownloaderCLI videodownload -u 2065608792 -q 480p -e 16 -o 2065608792_0s_16s.mp4
MP4Box -splitx 8:12 2065608792_0s_16s.mp4 -out mp4box_clip.mp4
```
[2065608792_0s_16s.zip](https://github.com/gpac/gpac/files/14627207/2065608792_0s_16s.zip)
| Can't split MP4 files downloaded from Twitch Transport Stream files | https://api.github.com/repos/gpac/gpac/issues/2784/comments | 8 | 2024-03-17T11:46:55Z | 2024-03-27T12:49:46Z | https://github.com/gpac/gpac/issues/2784 | 2,190,623,225 | 2,784 |
[
"gpac",
"gpac"
] | 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 https://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 ...).
Detailed guidelines: https://gpac.io/bug-reporting/
I want to push a subtitles track into GPAC in live mode to generate a live HLS/DASH stream. Currently, the subtitles are pushed via a TCP socket from another application (see below).
The GPAC command is:
```bash
gpac \
-i tcp://0.0.0.0:9091:gpac:tsprobe=false:listen=true txtin \
-o res/live.mpd:dual:cmaf=cmf2:segdur=2:rawsub=true:dmode=dynamic -graph
```
From the command I expect GPAC to start creating the playlist and segments live while the VTT text arrives from the socket. What I see is that there are no files created in the `res` folder. And, when I stop the Python client (and the socket is closed), GPAC starts creating the playlist and segments as I expect them to be.
A given segment `0.0.0_dash1.vtt` looks like
```
WEBVTT
00:00.000 --> 00:01.000
Current time: 00:00.000
00:01.000 --> 00:02.000
Current time: 00:01.000
```
Am I missing something from the TCP connection to signal the `dasher` to produce the subtitles track live?
## Python client
This is the code for the `subtitles_client.py` client.
To run it:
```bash
python3 subtitles_client.py
```
which creates the WebVTT track, pushes it to the TCP socket, and prints the pushed string:
```
WEBVTT
00:00.000 --> 00:01.000
Current time: 00:00.000
00:01.000 --> 00:02.000
Current time: 00:01.000
00:02.000 --> 00:03.000
Current time: 00:02.000
00:03.000 --> 00:04.000
Current time: 00:03.000
00:04.000 --> 00:05.000
Current time: 00:04.000
00:05.000 --> 00:06.000
Current time: 00:05.000
00:06.000 --> 00:07.000
Current time: 00:06.000
00:07.000 --> 00:08.000
Current time: 00:07.000
```
```python3
import socket
import threading
import time
def div_remainder(val, div):
return int(val // div), int(val % div)
def time_format(milliseconds):
s, ms = div_remainder(milliseconds, 1000)
m, s = div_remainder(s, 60)
h, m = div_remainder(m, 60)
if h == 0:
return '{0:02d}:{1:02d}.{2:03d}'.format(m, s, ms)
else:
return '{0:02d}:{1:02d}:{2:02d}.{3:03d}'.format(h, m, s, ms)
def subtitles_thread():
print("subtitles_thread started")
conn = socket.create_connection(('localhost', 9091))
header = "WEBVTT\n\n"
conn.send(bytes(header, "utf-8"))
print(header, end='')
template = "{0} --> {1}\n{2}\n\n"
counter_ms = 0
delta_ms = 1000
while True:
curr_time = time_format(counter_ms)
next_time = time_format(counter_ms + delta_ms)
msg = 'Current time: {0}'.format(curr_time)
s = template.format(curr_time, next_time, msg)
conn.send(bytes(s, 'utf-8'))
print(s, end='')
counter_ms += delta_ms
time.sleep(delta_ms / 1000.0)
conn.close()
print("subtitles_thread finished")
if __name__ == '__main__':
t1 = threading.Thread(target=subtitles_thread)
print('STARTING')
t1.start()
print('JOINING')
t1.join()
```
| Consume WebVTT live from a TCP socket | https://api.github.com/repos/gpac/gpac/issues/2783/comments | 1 | 2024-03-12T19:01:49Z | 2024-04-09T14:35:52Z | https://github.com/gpac/gpac/issues/2783 | 2,182,470,718 | 2,783 |
[
"gpac",
"gpac"
] | It seems that we may not up to date with the latest [version 2.3](https://dolby.my.salesforce.com/sfc/p/#700000009YuG/a/4u000000l6FV/TqYPD0f0c3Zm40JJrFKFn1m29QdUxuVB.U_GzZzbXgE).
What I understand:
- For mixed DV and non-DV DASH representations, the codec value should be ```hev1```, optional codec should be ```dvhe```, and optional brands should be ```cdm4``` (for HDR10+) and ```db1p``` (for Dolby Vision 8.1).
- See Table 1 for the DV brands depending on the CCID.
- For backward-compatibility, ```AdaptationSet@scte214:supplementalCodecs``` and
```AdaptationSet@scte214:supplementalProfiles``` to include Dolby Vision codes string and compatibility
brands.
Example:
```
mimeType="video/mp4" codecs="hev1.2.4.L153.B0"
scte214:supplementalCodecs="dvh1.08.09" scte214:supplementalProfiles="db1p"
```
Other namespace to be set: ```xmlns:scte214="urn:scte:dash:scte214-extensions"```
Some ```EssentialProperty``` *should* be present as well:
```
<AdaptationSet segmentAlignment="true"
subsegmentAlignment="true" subsegmentStartsWithSAP="1" >
<EssentialProperty schemeIdUri="urn:mpeg:mpegB:cicp:MatrixCoefficients" value="9"/>
<EssentialProperty schemeIdUri="urn:mpeg:mpegB:cicp:ColourPrimaries" value="9"/>
<EssentialProperty schemeIdUri="urn:mpeg:mpegB:cicp:TransferCharacteristics” value="16"/>
<Representation id="1" mimeType="video/mp4" codecs="hev1.2.4.L153.B0" scte214:supplementalCodecs= "dvh1.08.09" scte214:supplementalProfiles="db1p" segmentProfiles="chd1" width="3840" height="2160" frameRate="60000/1001" sar="1:1" startWithSAP="1" bandwidth="18667200" >
<BaseURL>Dolby_visioin_p81.mp4</BaseURL>
<SegmentBase indexRangeExact="true" indexRange="1009-1388">
<Initialization range="0-1008"/>
</SegmentBase>
</Representation>
</AdaptationSet>
```
With some Dolby Atmos:
```
<?xml version="1.0"?>
<MPD xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xmlns:dolby="http://www.dolby.com/ns/online/DASH" xmlns="urn:mpeg:dash:schema:mpd:2011" xsi:schemaLocation="urn:mpeg:dash:schema:mpd:2011" type="static" mediaPresentationDuration="PT0H1M2.550S" minBufferTime="PT1.2S" profiles="urn:mpeg:dash:profile:isoff-on-demand:2011">
<BaseURL>./</BaseURL>
<Period>
<!-- Video -->
<AdaptationSet mimeType="video/mp4" codecs="dvhe.05.07" subsegmentAlignment="true" subsegmentStartsWithSAP="1">
<Representation id="1" bandwidth="17677192" width="3840" height="2160" frameRate="30000/1001">
<BaseURL>profile5.mp4</BaseURL>
<SegmentBase indexRange="812-1095">
<Initialization range="0-811"/>
</SegmentBase>
</Representation>
</AdaptationSet>
<!-- Audio -->
<AdaptationSet mimeType="audio/mp4" codecs="ec-3" lang="und" subsegmentAlignment="true" subsegmentStartsWithSAP="1">
<Representation id="2" bandwidth="640000">
<AudioChannelConfiguration schemeIdUri="tag:dolby.com,2014:dash:audio_channel_configuration:2011" value="F801"/>
<SupplementalProperty schemeIdUri="tag:dolby.com,2018:dash:EC3_ExtensionType:2018" value="JOC"/>
<SupplementalProperty schemeIdUri="tag:dolby.com,2018:dash:EC3_ExtensionComplexityIndex:2018" value="16"/>
<BaseURL>audio.mp4</BaseURL>
<SegmentBase indexRange="652-875">
<Initialization range="0-651"/>
</SegmentBase>
</Representation>
</AdaptationSet>
</Period>
</MPD>
``` | Dolby Vision signalling updates | https://api.github.com/repos/gpac/gpac/issues/2782/comments | 0 | 2024-03-12T17:42:22Z | 2024-03-12T17:42:22Z | https://github.com/gpac/gpac/issues/2782 | 2,182,303,837 | 2,782 |
[
"gpac",
"gpac"
] | - [x] I looked for a similar issue and couldn't find any.
- [x] I tried with the latest version of GPAC. Installers available at https://gpac.io/downloads/gpac-nightly-builds/
- [x] I give enough information for contributors to reproduce my issue
I'm trying to encapsulate a TTML chunk into an fMP4 container.
Related: #2730
Back then, when trying to do the same with WebVTT, I was finally succesful thanks to your guidance.
So I tried the same command but using TTML input, and the output seems to have some problem.
This is an example input:
```xml
<?xml version="1.0" encoding="UTF-8"?>
<tt xmlns="http://www.w3.org/ns/ttml" xmlns:ttm="http://www.w3.org/ns/ttml#metadata" xmlns:ttp="http://www.w3.org/ns/ttml#parameter" xmlns:tts="http://www.w3.org/ns/ttml#styling" xml:lang="en" >
<head>
<metadata>
<ttm:title/>
<ttm:desc/>
<ttm:copyright/>
</metadata>
<styling>
<style xml:id="style0" tts:textAlign="center" />
</styling>
<layout>
<region xml:id="region01" tts:extent="100% 14%" tts:fontFamily="proportionalSansSerif" tts:fontSize="24px" tts:origin="0% 79%" />
</layout>
</head>
<body>
<div>
<p style="style0" end="06:48:23.888" region="region01" begin="06:48:20.051" xml:id="caption0152" >Abrazándose. No robándose las perlas<br/>de la abuela Fine.</p>
</div>
</body>
</tt>
```
Then I run this gpac command:
```
# gpac -i input.ttml -o output.mpd:dmode=static:segdur=6.4:dur=6.4:noinit=false:segext=m4s:initext=mp4:timescale=1000:force_flush=true:moovts=1000:subs_sidx=0:store=fstart:mediats=1000
```
And this is what the output contains:
```
$ cat input_dash1.m4s
stypmsdhmsdhmsixlmsg,sidx��u�P�hmoofmfhdPtraftfhd&tfdt$trunpu�PTmdat<?xml version="1.0" encoding="UTF-8"?>
<tt xmlns="http://www.w3.org/ns/ttml" xmlns:ttm="http://www.w3.org/ns/ttml#metadata" xmlns:ttp="http://www.w3.org/ns/ttml#parameter" xmlns:tts="http://www.w3.org/ns/ttml#styling" xml:lang="en" >
<head>
<metadata>
<ttm:title/>
<ttm:desc/>
<ttm:copyright/>
</metadata>
<styling>
<style xml:id="style0" tts:textAlign="center" />
</styling>
<layout>
<region xml:id="region01" tts:extent="100% 14%" tts:fontFamily="proportionalSansSerif" tts:fontSize="24px" tts:origin="0% 79%" />
</layout>
</head>
<body>
<div>
<p style="style0" end="06:48:23.888" region="region01" begin="06:48:20.051" xml:id="caption0152" >Abrazándose. No robándose las perlas<br/>de la abuela Fine.</p>
</div>
</body>
</tt><?xml version="1.0" encoding="UTF-8"?>
<tt xmlns="http://www.w3.org/ns/ttml" xmlns:ttm="http://www.w3.org/ns/ttml#metadata" xmlns:ttp="http://www.w3.org/ns/ttml#parameter" xmlns:tts="http://www.w3.org/ns/ttml#styling" xml:lang="en" >
<head>
<metadata>
<ttm:title/>
<ttm:desc/>
<ttm:copyright/>
</metadata>
<styling>
<style xml:id="style0" tts:textAlign="center" />
</styling>
<layout>
<region xml:id="region01" tts:extent="100% 14%" tts:fontFamily="proportionalSansSerif" tts:fontSize="24px" tts:origin="0% 79%" />
</layout>
</head>
<body>
<div>
<p style="style0" end="06:48:23.888" region="region01" begin="06:48:20.051" xml:id="caption0152" >Abrazándose. No robándose las perlas<br/>de la abuela Fine.</p>
</div>
</body>
</tt>
```
As you can see, the xml content is duplicated inside the fMP4 container.
I didn't get playback on players, and that's how I end up checking inside the file. Didn't found a workaround with my known gpac commands, and this seems like some kind of error, so I create this issue here.
Tested with a mainline build minutes ago:
```
# gpac --asdasd
Nothing to do, check usage "gpac -h"
gpac - GPAC command line filter engine - version 2.3-DEV-rev922-g96b474ec5-master
(c) 2000-2023 Telecom Paris distributed under LGPL v2.1+ - https://gpac.io
Please cite our work in your research:
GPAC Filters: https://doi.org/10.1145/3339825.3394929
GPAC: https://doi.org/10.1145/1291233.1291452
```
Thanks. | Repeated ttml code when encapsulating inside fMP4 | https://api.github.com/repos/gpac/gpac/issues/2778/comments | 5 | 2024-03-11T21:40:47Z | 2024-03-26T17:08:14Z | https://github.com/gpac/gpac/issues/2778 | 2,180,305,992 | 2,778 |
[
"gpac",
"gpac"
] | 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 https://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
Trying the following GPAC command to generate CMAF2 HLS with raw subtitles (rawsub) is creating a m3u8 playlist with an init file, which GPAC doesn't create:
```
gpac \
-i output.ts \
-i subtitle.vtt \
-o res/live.m3u8:cmaf=cmf2:rawsub=true:segdur=1:cat=auto
```
We set the `rawsub=true`, which works fine, however, the following is the subtitles playlist generated:
```
#EXTM3U
#EXT-X-TARGETDURATION:1
#EXT-X-VERSION:6
#EXT-X-MEDIA-SEQUENCE:1
#EXT-X-INDEPENDENT-SEGMENTS
#EXT-X-MAP:URI="subtitle_dashinit.vtt"
#EXTINF:1,
subtitle_dash1.vtt
#EXTINF:1,
subtitle_dash2.vtt
#EXTINF:1,
subtitle_dash3.vtt
#EXTINF:1,
subtitle_dash4.vtt
#EXTINF:1,
subtitle_dash5.vtt
#EXTINF:1,
subtitle_dash6.vtt
#EXTINF:1,
subtitle_dash7.vtt
#EXTINF:1,
subtitle_dash8.vtt
#EXTINF:1,
subtitle_dash9.vtt
#EXTINF:1,
subtitle_dash10.vtt
#EXTINF:1,
subtitle_dash11.vtt
#EXTINF:1,
subtitle_dash12.vtt
#EXTINF:1,
subtitle_dash13.vtt
#EXTINF:1,
subtitle_dash14.vtt
#EXTINF:1,
subtitle_dash15.vtt
#EXTINF:1,
subtitle_dash16.vtt
#EXTINF:1,
subtitle_dash17.vtt
#EXTINF:1,
subtitle_dash18.vtt
#EXTINF:1,
subtitle_dash19.vtt
#EXTINF:1,
subtitle_dash20.vtt
#EXT-X-ENDLIST
```
Look to the tag `#EXT-X-MAP:URI="subtitle_dashinit.vtt"`, but the `subtitle_dashinit.vtt` file is not created, so, when we play the HLS VOD, subtitles don't show up.
The following is the filter graph of that command:
```
Filters connected:
fin (src=output.ts) (idx=1)
-(PID output.ts) m2tsdmx (dyn_idx=4)
--(PID P1V2) rfnalu (dyn_idx=6)
---(PID P1V2) dasher (dyn_idx=8)
----(PID manifest_m3u8) fout (dst=res/live.m3u8:cmaf=cmf2:rawsub=true:segdur=1:cat=auto) (idx=3)
----(PID subtitle.vtt) ufvtt (dyn_idx=12)
-----(PID subtitle.vtt) writegen (dyn_idx=13)
------(PID subtitle.vtt) fout (dst=res/subtitle_dashinit.vtt:gfopt:cmaf=cmf2:rawsub=true:segdur=1:cat=auto:noinitraw:frag:xps_inband=no:psshs=moov:cmaf=cmf2) (idx=9)
----(PID P1V2) mp4mx (dyn_idx=14)
-----(PID P1V2) fout (dst=res/output_dash_track256_init.mp4:gfopt:cmaf=cmf2:rawsub=true:segdur=1:cat=auto:frag:xps_inband=no:psshs=moov:mime=video/mp4:cmaf=cmf2) (idx=10)
----(PID P1A3) mp4mx (dyn_idx=15)
-----(PID P1A3) fout (dst=res/output_dash_track257_init.mp4:gfopt:cmaf=cmf2:rawsub=true:segdur=1:cat=auto:frag:xps_inband=no:psshs=moov:mime=audio/mp4:cmaf=cmf2) (idx=11)
--(PID P1A3) rfadts (dyn_idx=7)
---(PID P1A3) dasher (dyn_idx=8)
fin (src=subtitle.vtt) (idx=2)
-(PID subtitle.vtt) txtin (dyn_idx=5)
```
Note in the line `fout (dst=res/subtitle_dashinit.vtt:gfopt:cmaf=cmf2:rawsub=true:segdur=1:cat=auto:noinitraw:frag:xps_inband=no:psshs=moov:cmaf=cmf2) (idx=9)` how the flag `noinitraw` tells the `dst` to not generate an init file.
Seems like GPAC shouldn't add the `#EXT-X-MAP:URI` to the subtitles playlist if `noinitraw` flag is there?
The following are the attachments to run the GPAC command:
- [output.txt](https://github.com/gpac/gpac/files/14563670/output.txt): Rename to output.ts
- [subtitle.txt](https://github.com/gpac/gpac/files/14563673/subtitle.txt): Rename to subtitle.vtt
| noinitraw flag doesn't remove the #EXT-X-MAP:URI tag in the subtitles playlist when rawsub=true for HLS | https://api.github.com/repos/gpac/gpac/issues/2777/comments | 1 | 2024-03-11T19:27:44Z | 2024-03-26T15:01:12Z | https://github.com/gpac/gpac/issues/2777 | 2,180,039,825 | 2,777 |
[
"gpac",
"gpac"
] | There is no way I can encrypt an audio track and get it working, I am creating an .mp4 file with only an audio track on it, no video track, and
Audio file:
https://github.com/gpac/gpac/assets/19694461/d44305ad-16cc-4974-a055-09479bb6e0bc
DRM Spec file
```
<?xml version="1.0" encoding="UTF-8"?>
<GPACDRM type="cenc">
<DRMInfo type="pssh" version="0">
<BS ID128="edef8ba979d64acea3c827dcd51d21ed"/>
<BS data="0x08011210"/>
<BS ID128="65ef3cf7c0194e39591b237300000000"/>
</DRMInfo>
<DRMInfo type="pssh" version="1">
<BS ID128="1077efecc0b24d02ace33c1e52e2fb4b"/>
<BS bits="32" value="1"/>
<BS ID128="65ef3cf7c0194e39591b237300000000"/>
</DRMInfo>
<CrypTrack trackID="0" IsEncrypted="1" IV_size="16" first_IV="0x908e9dff71c68aa391501d11e0c1afca" saiSavedBox="senc">
<key KID="0x65ef3cf7c0194e39591b237300000000" value="0xe87fb1c0a57028ef89138b42b8eb94fd"/>
</CrypTrack>
</GPACDRM>
```
It creates an output, but it cannot be played.
I tried creating only an audio output with that file, and it is not working, obviously video+audio happens the same, only video only works for me.
Any clue? | Cannot encrypt any video track with audio track, or audio track alone, playback never works. | https://api.github.com/repos/gpac/gpac/issues/2776/comments | 4 | 2024-03-11T17:22:18Z | 2024-03-11T21:20:45Z | https://github.com/gpac/gpac/issues/2776 | 2,179,718,990 | 2,776 |
[
"gpac",
"gpac"
] | For some reason, download manager is not working properly in a worker. Considering both the main thread and worker thread are running on their own thread, I can't find the reason why download manager experiences degraded performance while using gpac in a worker.
What happens is that when using worker and a remote source, gpac takes almost 60-70 times more to load the source. It seems that the reason lies with scheduling `fetch` promises while the same thread runs gpac. I've tried a very rough way to run `fetch` in seperate threads but I think I'm still blocked by scheduling. The correct way to achieve this seems to be through native (pthread) threading for download manager. Just how `-dm-threads` option supposed to work.
I would be happy to open a PR to bring `-dm-threads` to WebAssembly version but I need some guidance on what is needed and what might be a blocking issue. @jeanlf any idea on how to proceed with this one?
**My attempt at multi-threaded fetch:**
```js
let workerScript = `self.onmessage = async function(event)
{
let {url, options} = event.data;
let res = await fetch(url, options);
if (res.ok)
{
self.postMessage({
ok: res.ok,
url: res.url,
status: res.status,
headers: JSON.stringify([...res.headers]),
redirected: res.redirected,
body: res.body
}, [res.body])
} else self.postMessage({ok: res.ok, status: res.status})
}`;
let workerBlob = new Blob([workerScript], { type: 'application/javascript' });
fetcher._worker = new Worker(URL.createObjectURL(workerBlob));
fetcher._worker.onmessage = (event) =>
{
if (event.data.ok)
{
fetcher._state = 1;
fetcher._bytes = 0;
fetcher._reader = event.data.body.getReader();
let final_url = null;
if (event.data.redirected) final_url = event.data.url;
libgpac._fetcher_set_reply(fetcher.sess, event.data.status, final_url);
let headers = JSON.parse(event.data.headers);
headers.forEach(([value, key]) => {
libgpac._fetcher_set_header(fetcher.sess, key, value);
});
libgpac._fetcher_set_header(fetcher.sess, 0, 0);
}
else
{
libgpac._fetcher_set_reply(fetcher.sess, event.data.status, null);
do_log_err('fetcher for ' + url + ' failed ' + event.data.status);
fetcher._state = 3;
}
};
fetcher._state = 0;
fetcher._worker.postMessage({url, options}, [...(options.body ? [options.body] : [])]);
return ret;
```
**Was placed here:**
https://github.com/gpac/gpac/blob/96b474ec59b3490eed7a874b14f78ad4b3a9d2bd/src/utils/downloader.c#L7702 | WebAssembly: Add threading for download manager | https://api.github.com/repos/gpac/gpac/issues/2775/comments | 0 | 2024-03-11T06:37:13Z | 2024-04-16T15:51:17Z | https://github.com/gpac/gpac/issues/2775 | 2,178,339,624 | 2,775 |
[
"gpac",
"gpac"
] | 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 https://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: https://gpac.io/bug-reporting/
I have a question video audio sync.
when I try play hls-js, video-audio sync is out of sync.
My question is that is there possible to Performance improvement to make segment faster ?
(Now I am collecting data in segments in 2 sec)
when i make audio segments it takes about 1.97 seconds (from first audio data to callback),
video takes 1.98 seconds (from first video data to callback).
Could this have something to do with the out of sync?
(Also I am trying to use compress mode using `gf_isom_enable_compression` when I mux the video, Is it good choice ?)
Seconds question is
when i use `gf_isom_fragment_add_sample` this function
https://github.com/gpac/gpac/blob/96b474ec59b3490eed7a874b14f78ad4b3a9d2bd/src/isomedia/movie_fragments.c#L2979C1-L2980C113
If I push the video I-frame for sample,
do I set the argument redundant_coding = 0,
otherwise, P-frame or B-frame, set redundant_coding = 1 ? | video-audio sync question. | https://api.github.com/repos/gpac/gpac/issues/2774/comments | 1 | 2024-03-10T07:06:45Z | 2024-03-26T14:09:45Z | https://github.com/gpac/gpac/issues/2774 | 2,177,558,329 | 2,774 |
[
"gpac",
"gpac"
] | With the following gpac command:
```
-i transcoded/video_h264_720_vcrf_23.mp4:#HLSPL=video/h264_720_vcrf_23/index.m3u8 @ cecrypt:cfile=drm/drmSpecs/65ebb3d94544b359e976b34665d152c0.xml:FID=SRC1::#HLSKey=skd://65ebb3d94544b359e976b34665d152c0",KEYFORMAT="com.apple.streamingkeydelivery",KEYFORMATVERSIONS="1 -i transcoded/video_h264_480_vb_1500k.mp4:#HLSPL=video/h264_480_vb_1500k/index.m3u8 @ cecrypt:cfile=drm/drmSpecs/65ebb3d94544b359e976b347980565a6.xml:FID=SRC2::#HLSKey=skd://65ebb3d94544b359e976b347980565a6",KEYFORMAT="com.apple.streamingkeydelivery",KEYFORMATVERSIONS="1 -i transcoded/video_h264_360_vb_1M.mp4:#HLSPL=video/h264_360_vb_1M/index.m3u8 @ cecrypt:cfile=drm/drmSpecs/65ebb3d94544b359e976b348cfcdc854.xml:FID=SRC3::#HLSKey=skd://65ebb3d94544b359e976b348cfcdc854",KEYFORMAT="com.apple.streamingkeydelivery",KEYFORMATVERSIONS="1 -i transcoded/video_h264_240_vb_500k.mp4:#HLSPL=video/h264_240_vb_500k/index.m3u8 @ cecrypt:cfile=drm/drmSpecs/65ebb3d94544b359e976b349c7dbc8ff.xml:FID=SRC4::#HLSKey=skd://65ebb3d94544b359e976b349c7dbc8ff",KEYFORMAT="com.apple.streamingkeydelivery",KEYFORMATVERSIONS="1 -i transcoded/video_h264_1080_vcrf_21.mp4:#HLSPL=video/h264_1080_vcrf_21/index.m3u8 @ cecrypt:cfile=drm/drmSpecs/65ebb3d94544b359e976b34ae17ee22c.xml:FID=SRC5::#HLSKey=skd://65ebb3d94544b359e976b34ae17ee22c",KEYFORMAT="com.apple.streamingkeydelivery",KEYFORMATVERSIONS="1 -i transcoded/audio_aac_ab_64k_asr_44100_ac_1.mp4:#HLSPL=audio/aac_ab_64k_asr_44100_ac_1/index.m3u8 @ cecrypt:cfile=drm/drmSpecs/65ebb3d94544b359e976b34b4f8e2722.xml:FID=SRC6::#HLSKey=skd://65ebb3d94544b359e976b34b4f8e2722",KEYFORMAT="com.apple.streamingkeydelivery",KEYFORMATVERSIONS="1 -i transcoded/audio_aac_ab_128k_asr_44100_ac_2.mp4:#HLSPL=audio/aac_ab_128k_asr_44100_ac_2/index.m3u8 @ cecrypt:cfile=drm/drmSpecs/65ebb3d94544b359e976b34c12b121c6.xml:FID=SRC7::#HLSKey=skd://65ebb3d94544b359e976b34c12b121c6",KEYFORMAT="com.apple.streamingkeydelivery",KEYFORMATVERSIONS="1 -o drm/protected/live.m3u8:template=seg-$Number$:dual:segdur=2:SID=SRC1,SRC2,SRC3,SRC4,SRC5,SRC6,SRC7:profile=main
```
For some unknown reason, the $Number$ does not resolve as init in the audio tracks. It does for video.
Even when nto specifying template names, I started noticing that for audio tracks the output init track was by default _dash.mp4 while for video tracks it was _dashinit.mp4.
I guess there might be a bug but I cannot find why or where. Maybe related to when there are several audio inputs? The file inputs have only one track each video or audio.
| Strange bug in audio init segments | https://api.github.com/repos/gpac/gpac/issues/2773/comments | 7 | 2024-03-09T01:00:45Z | 2024-03-27T14:57:19Z | https://github.com/gpac/gpac/issues/2773 | 2,176,979,139 | 2,773 |
[
"gpac",
"gpac"
] | I'm trying to use [this httpout feature](https://docs.gpac.io/Filters/httpout/?h=simple+http+server#simple-http-server) to create a small origin.
I thought that eventually we could extend it to add some dashin forward. However I'm failing with the most basic use-case:
```
> gpac httpout:rdirs=outcoming:wdir=incoming:port=8080 #server
> gpac avgen c=aac c=avc -o http://:8080/live.mpd:hmode=push:rdirs=/tmp/tmp/dash #source
> gpac -play http://127.0.0.1:8080/live.mpd #or curl etc. for playback
```
The issue is that the source can't push to the server:
```
[HTTPOut] Failed to open output file /audio_dash_track1_init.mp4: IP Connection Failed
```
What's the status of this feature? Do we maintain it? For which use-case? | httpout simple server question | https://api.github.com/repos/gpac/gpac/issues/2772/comments | 7 | 2024-03-06T17:47:01Z | 2024-04-10T15:19:15Z | https://github.com/gpac/gpac/issues/2772 | 2,172,093,524 | 2,772 |
[
"gpac",
"gpac"
] | - There are some filters' arguments whose enum values are shown as commas (`,`) instead of bar (`|`). This comes from `constants.h`. I've tried to change it but it broke something else and I cannot find what is affected by this.
- Some enum values are also listed as `uint` but actually they are string. In the code this `uint` is used as index to get the proper value. Wouldn't make more sense to convert these to `str` type?
I've listed the affected filters in the attached JSONs.
[uints.json](https://github.com/gpac/gpac/files/14488390/uints.json)
[comma.json](https://github.com/gpac/gpac/files/14488393/comma.json)
| Formatting of some arguments' help | https://api.github.com/repos/gpac/gpac/issues/2771/comments | 5 | 2024-03-04T23:42:58Z | 2024-04-10T11:21:56Z | https://github.com/gpac/gpac/issues/2771 | 2,167,997,658 | 2,771 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.