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"
] | Thanks for reporting your issue. Please make sure these boxes are checked before submitting your issue - thank you!
- [ x ] I looked for a similar issue and couldn't find any.
- [ x ] I tried with the latest version of GPAC. Installers available at http://gpac.io/downloads/gpac-nightly-builds/
- [ x ] I give enough information for contributors to reproduce my issue (meaningful title, github labels, platform and compiler, command-line ...). I can share files anonymously with this dropbox: https://www.mediafire.com/filedrop/filedrop_hosted.php?drop=eec9e058a9486fe4e99c33021481d9e1826ca9dbc242a6cfaab0fe95da5e5d95
Detailed guidelines: http://gpac.io/2013/07/16/how-to-file-a-bug-properly/
I tried streaming a multiple track stream using gstreamer and package to hls it with gpac to then serve the segments with an origin, I notice that the option `max_cache_segs` is causing the playlist to be deleted.
GStreamer command
```bash
gst-launch-1.0 -v \
videotestsrc pattern=snow name="decodebin_video_0" \
videotestsrc pattern=ball name="decodebin_video_1" \
videotestsrc pattern=smpte100 name="decodebin_video_2" \
audiotestsrc freq=200 name="decodebin_audio_1" \
decodebin_video_0. ! video/x-raw ! queue name="src_0_decodebin_video_queue" ! clockoverlay 'time-format="%T %Z"' ! tee name="src_0_video_raw_tee" \
decodebin_video_1. ! video/x-raw ! queue name="src_1_decodebin_video_queue" ! clockoverlay 'time-format="%T %Z"' ! tee name="src_1_video_raw_tee" \
decodebin_video_2. ! video/x-raw ! queue name="src_3_decodebin_video_queue" ! clockoverlay 'time-format="%T %Z"' ! tee name="src_3_video_raw_tee" \
decodebin_audio_1. ! audio/x-raw ! queue name="src_5_decodebin_audio_queue" ! tee name="src_5_audio_raw_tee" \
src_5_audio_raw_tee. ! queue name="src_5_audio_enc_queue" ! audioconvert ! audioresample ! audio/x-raw ! tee name="src_5_audio_resample_tee" \
src_5_audio_resample_tee. ! queue ! audioconvert ! "audio/x-raw,channels=2" ! avenc_aac name="src_5_audio_encoder" ! "audio/mpeg" ! aacparse ! tee name="src_5_audio_encoder_tee" \
src_0_video_raw_tee. ! queue name="src_0_video_scale_queue" ! videoscale ! "video/x-raw" ! x264enc ! "video/x-h264" ! h264parse ! tee name="src_0_video_transcoded_enc_tee" \
src_1_video_raw_tee. ! queue name="src_1_video_scale_queue" ! videoscale ! "video/x-raw" ! x264enc ! "video/x-h264" ! h264parse ! tee name="src_1_video_transcoded_enc_tee" \
src_3_video_raw_tee. ! queue name="src_3_video_scale_queue" ! videoscale ! "video/x-raw" ! x264enc ! "video/x-h264" ! h264parse ! tee name="src_3_video_transcoded_enc_tee" \
src_0_video_transcoded_enc_tee. ! queue name="src_0_video_transcoded_queue_mpegts" ! mpegtsmux m2ts-mode=false name="mpegts_mux_transcoded_0" ! tee name="mpegts_mux_transcoded_tee_0" \
src_1_video_transcoded_enc_tee. ! queue name="src_1_video_transcoded_queue_mpegts" ! mpegts_mux_transcoded_0. \
src_3_video_transcoded_enc_tee. ! queue name="src_3_video_transcoded_queue_mpegts" ! mpegts_mux_transcoded_0. \
src_5_audio_encoder_tee. ! queue ! mpegts_mux_transcoded_0. \
mpegts_mux_transcoded_tee_0. ! queue ! udpsink host="255.255.255.255" port=5000 name="udp_broadcast_0"
```
GPAC command
```bash
gpac \
-i udp://255.255.255.255:5000/:gpac:listen=true:tsprobe=true reframer:rt=on restamp \
-o /tmp/workdir/content/playlist.m3u8:gpac:dmode=dynamic:hmode=push:max_cache_segs=16
```
These commands creates a m3u8 playlist with the sub-playlist for each track in the input, but as mentioned before the playlist get deleted, making impossible to access to the stream, since the option `max_cache_segs` is for keeping a limit number of segments it shoudnt affect the number of playlist, also this happens only when the source has multiple tracks
In this GIF in shown that at the moment of running those commands all the playlist appear correctly, but get deleted almost instantly

| Issue with the option max_cache_segs deleting playlists | https://api.github.com/repos/gpac/gpac/issues/2532/comments | 1 | 2023-07-22T21:02:22Z | 2023-07-24T09:35:56Z | https://github.com/gpac/gpac/issues/2532 | 1,816,894,218 | 2,532 |
[
"gpac",
"gpac"
] | Altough pixel in other formats (GF_PIXEL_RGB, GF_PIXEL_BGR, etc.) all well supported, image data send with GF_PIXEL_RGBA format to the pngenc filter outputs an image with the correct size, but with no data from the image.
Command line for testing :
gpac -i 32bpp-320x240.bmp -o test.png
with the enclosed image:
[32bpp-320x240.bmp.zip](https://github.com/gpac/gpac/files/12122641/32bpp-320x240.bmp.zip)
| Filter pngenc does not support GF_PIXEL_RGBA | https://api.github.com/repos/gpac/gpac/issues/2531/comments | 1 | 2023-07-21T10:27:23Z | 2023-07-21T11:13:25Z | https://github.com/gpac/gpac/issues/2531 | 1,815,566,803 | 2,531 |
[
"gpac",
"gpac"
] | Does routeout atsc support setting major and minor channel numbers? I looked through the code and it does not look like it, but I wanted to confirm, as I am not much of a coder. It looks like routeout just passes through any channel info it receivers from a DASH feed.
Any confirmation or pointers on how to do this is appreciated!
| routeout atsc setting major and minor channel numbers | https://api.github.com/repos/gpac/gpac/issues/2530/comments | 5 | 2023-07-20T17:10:12Z | 2023-07-21T19:07:47Z | https://github.com/gpac/gpac/issues/2530 | 1,814,452,282 | 2,530 |
[
"gpac",
"gpac"
] | Hello.
I have been using GPAC for over a year now and I find it amazing and easy to use, but there is one feature that I really want to use, and it is to be able to output to separate output directories for every source input I use.
I extract multiple resolutions from a video mp4 file to support variable bitrate for HLS and DASH video on demand. Then use GPAC to encode these mp4 files to [HLS and DASH](https://github.com/gpac/gpac/wiki/LL-HLS).
In the end, I get all encoded segments (.ts) in a single directory which is very confusing and not ergonomic. [Shaka Packager](https://shaka-project.github.io/shaka-packager/html/tutorials/hls.html#examples) has this feature and I want to use it with GPAC instead and don't know if it exists or not. | How to create separate output directories for multiple input sources? | https://api.github.com/repos/gpac/gpac/issues/2529/comments | 1 | 2023-07-16T07:55:46Z | 2023-07-18T05:06:09Z | https://github.com/gpac/gpac/issues/2529 | 1,806,487,712 | 2,529 |
[
"gpac",
"gpac"
] | I'm trying to play tiled videos with mp4box.
Tiling low-definition images and high-definition videos with kvazaar, packaging them with mp4box, and then generating mpd and playing them live.
However, it takes too long for low-definition video to change to high-definition.
When I move the point of view, I want to change to high-definition tiles quickly.
So I tried to adjust the maximum buffer length to 4000ms using the mbuffer option, but the error "ARG mbuffer: 4000 set but not used" appears.
(used code: `mp4box -dash 2000 -rap --mbuffer 4000 -profile live -out mbuffer/dash_file.mpd lowvideo.mp4 highvideo.mp4`
This error also occurs when trying to utilize other options, and the option does not apply.
How do I fix this?
I'm running this on Windows.
Also, I was wondering what options are there to help low-definition tiles quickly change to high-definition. | mp4box option error | https://api.github.com/repos/gpac/gpac/issues/2528/comments | 1 | 2023-07-13T21:53:39Z | 2023-07-24T09:39:11Z | https://github.com/gpac/gpac/issues/2528 | 1,803,813,251 | 2,528 |
[
"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 http://gpac.io/downloads/gpac-nightly-builds/
- [x] I give enough information for contributors to reproduce my issue (meaningful title, github labels, platform and compiler, command-line ...). I can share files anonymously with this dropbox: https://www.mediafire.com/filedrop/filedrop_hosted.php?drop=eec9e058a9486fe4e99c33021481d9e1826ca9dbc242a6cfaab0fe95da5e5d95
Hi everyone,
I want to assign different adaptation sets Id for each track of an UDP stream with multiple videos, so far I had no luck doing it using only one UDP stream, my approach was to stream multiple UDP each one with a different video, having multiple inputs allow us to modify the adaptation set and representation Id per input, generating the plalyst in the desired format.
There is an example of what I'm trying to do [here](https://github.com/JuanSalazar22/videoengineering/tree/main/0_transmit_multiple_tracks_with_gpac)
The gstreamer command I used is:
```bash
gst-launch-1.0 -v \
videotestsrc pattern=snow name="decodebin_video_0" \
videotestsrc pattern=ball name="decodebin_video_1" \
videotestsrc pattern=smpte100 name="decodebin_video_2" \
audiotestsrc freq=200 name="decodebin_audio_1" \
audiotestsrc freq=1500 name="decodebin_audio_2" \
decodebin_video_0. ! video/x-raw ! queue name="src_0_decodebin_video_queue" ! clockoverlay 'time-format="%T %Z"' ! tee name="src_0_video_raw_tee" \
decodebin_video_1. ! video/x-raw ! queue name="src_1_decodebin_video_queue" ! clockoverlay 'time-format="%T %Z"' ! tee name="src_1_video_raw_tee" \
decodebin_video_2. ! video/x-raw ! queue name="src_3_decodebin_video_queue" ! clockoverlay 'time-format="%T %Z"' ! tee name="src_3_video_raw_tee" \
decodebin_audio_1. ! audio/x-raw ! queue name="src_5_decodebin_audio_queue" ! tee name="src_5_audio_raw_tee" \
decodebin_audio_2. ! audio/x-raw ! queue name="src_6_decodebin_audio_queue" ! tee name="src_6_audio_raw_tee" \
src_5_audio_raw_tee. ! queue name="src_5_audio_enc_queue" ! audioconvert ! audioresample ! audio/x-raw ! tee name="src_5_audio_resample_tee" \
src_6_audio_raw_tee. ! queue name="src_6_audio_enc_queue" ! audioconvert ! audioresample ! audio/x-raw ! tee name="src_6_audio_resample_tee" \
src_5_audio_resample_tee. ! queue ! audioconvert ! "audio/x-raw,channels=2" ! avenc_aac name="src_5_audio_encoder" ! "audio/mpeg" ! aacparse ! tee name="src_5_audio_encoder_tee" \
src_6_audio_resample_tee. ! queue ! audioconvert ! "audio/x-raw,channels=2" ! avenc_aac name="src_6_audio_encoder" ! "audio/mpeg" ! aacparse ! tee name="src_6_audio_encoder_tee" \
src_0_video_raw_tee. ! queue name="src_0_video_scale_queue" ! videoscale ! "video/x-raw,width=1920,height=1080" ! x264enc bitrate=1500 byte-stream=true key-int-max=30 bframes=0 aud=true tune=zerolatency pass=cbr ! "video/x-h264,profile=baseline,stream-format=byte-stream" ! h264parse ! tee name="src_0_video_transcoded_enc_tee" \
src_1_video_raw_tee. ! queue name="src_1_video_scale_queue" ! videoscale ! "video/x-raw,width=1920,height=1080" ! x264enc bitrate=1500 byte-stream=true key-int-max=30 bframes=0 aud=true tune=zerolatency pass=cbr ! "video/x-h264,profile=baseline,stream-format=byte-stream" ! h264parse ! tee name="src_1_video_transcoded_enc_tee" \
src_3_video_raw_tee. ! queue name="src_3_video_scale_queue" ! videoscale ! "video/x-raw,width=1920,height=1080" ! x264enc bitrate=1500 byte-stream=true key-int-max=30 bframes=0 aud=true tune=zerolatency pass=cbr ! "video/x-h264,profile=baseline,stream-format=byte-stream" ! h264parse ! tee name="src_3_video_transcoded_enc_tee" \
src_0_video_transcoded_enc_tee. ! queue name="src_0_video_transcoded_queue_mpegts" ! mpegtsmux m2ts-mode=false name="mpegts_mux_transcoded_0" ! tee name="mpegts_mux_transcoded_tee_0" \
src_1_video_transcoded_enc_tee. ! queue name="src_1_video_transcoded_queue_mpegts" ! mpegtsmux m2ts-mode=false name="mpegts_mux_transcoded_1" ! tee name="mpegts_mux_transcoded_tee_1" \
src_3_video_transcoded_enc_tee. ! queue name="src_3_video_transcoded_queue_mpegts" ! mpegtsmux m2ts-mode=false name="mpegts_mux_transcoded_3" ! tee name="mpegts_mux_transcoded_tee_3" \
src_5_audio_encoder_tee. ! queue ! mpegtsmux m2ts-mode=false name="mpegts_mux_transcoded_5" ! tee name="mpegts_mux_transcoded_tee_5" src_6_audio_encoder_tee. ! queue ! mpegts_mux_transcoded_5. \
mpegts_mux_transcoded_tee_0. ! queue ! udpsink host="225.225.225.225" port=5000 name="udp_broadcast_0" \
mpegts_mux_transcoded_tee_1. ! queue ! udpsink host="225.225.225.225" port=5001 name="udp_broadcast_1" \
mpegts_mux_transcoded_tee_3. ! queue ! udpsink host="225.225.225.225" port=5003 name="udp_broadcast_3" \
mpegts_mux_transcoded_tee_5. ! queue ! udpsink host="225.225.225.225" port=5005 name="udp_broadcast_5"
```
The GPAC command I'm using is:
```bash
gpac \
-i udp://225.225.225.225:5000/:gpac:listen=true:tsprobe=true:#ASID=112:#Representation=10:#Language=af \
-i udp://225.225.225.225:5001/:gpac:listen=true:tsprobe=true:#ASID=100:#Representation=10:#Language=am \
-i udp://225.225.225.225:5003/:gpac:listen=true:tsprobe=true:#ASID=199:#Representation=10:#Language=arn \
-i udp://225.225.225.225:5005/:gpac:listen=true:tsprobe=true:#ASID=105 \
-o /tmp/workdir/content/playlist.mpd:buf=-100:segdur=2.0:cdur=0.2:asto=1.8:dmode=dynamic:cmaf=cmfc:profile=dashif.ll:utcs=https://time.akamai.com/?iso:pssh=mv:hmode=push
```
When we try to do the same using only one UDP stream with multiple tracks each track appears in the playlist but no as adaptation set but as representations, which is undesired since dash starts switching between these representations. This second scenario can be reproduced using the following commands:
gStreamer:
```bash
gst-launch-1.0 -v \
videotestsrc pattern=snow name="decodebin_video_0" \
videotestsrc pattern=ball name="decodebin_video_1" \
videotestsrc pattern=smpte100 name="decodebin_video_2" \
audiotestsrc freq=200 name="decodebin_audio_1" \
audiotestsrc freq=1500 name="decodebin_audio_2" \
decodebin_video_0. ! video/x-raw ! queue name="src_0_decodebin_video_queue" ! clockoverlay 'time-format="%T %Z"' ! tee name="src_0_video_raw_tee" \
decodebin_video_1. ! video/x-raw ! queue name="src_1_decodebin_video_queue" ! clockoverlay 'time-format="%T %Z"' ! tee name="src_1_video_raw_tee" \
decodebin_video_2. ! video/x-raw ! queue name="src_3_decodebin_video_queue" ! clockoverlay 'time-format="%T %Z"' ! tee name="src_3_video_raw_tee" \
decodebin_audio_1. ! audio/x-raw ! queue name="src_5_decodebin_audio_queue" ! tee name="src_5_audio_raw_tee" \
decodebin_audio_2. ! audio/x-raw ! queue name="src_6_decodebin_audio_queue" ! tee name="src_6_audio_raw_tee" \
src_5_audio_raw_tee. ! queue name="src_5_audio_enc_queue" ! audioconvert ! audioresample ! audio/x-raw ! tee name="src_5_audio_resample_tee" \
src_6_audio_raw_tee. ! queue name="src_6_audio_enc_queue" ! audioconvert ! audioresample ! audio/x-raw ! tee name="src_6_audio_resample_tee" \
src_5_audio_resample_tee. ! queue ! audioconvert ! "audio/x-raw,channels=2" ! avenc_aac name="src_5_audio_encoder" ! "audio/mpeg" ! aacparse ! tee name="src_5_audio_encoder_tee" \
src_6_audio_resample_tee. ! queue ! audioconvert ! "audio/x-raw,channels=2" ! avenc_aac name="src_6_audio_encoder" ! "audio/mpeg" ! aacparse ! tee name="src_6_audio_encoder_tee" \
src_0_video_raw_tee. ! queue name="src_0_video_scale_queue" ! videoscale ! "video/x-raw,width=1920,height=1080" ! x264enc bitrate=1500 byte-stream=true key-int-max=30 bframes=0 aud=true tune=zerolatency pass=cbr ! "video/x-h264,profile=baseline,stream-format=byte-stream" ! h264parse ! tee name="src_0_video_transcoded_enc_tee" \
src_1_video_raw_tee. ! queue name="src_1_video_scale_queue" ! videoscale ! "video/x-raw,width=1920,height=1080" ! x264enc bitrate=1500 byte-stream=true key-int-max=30 bframes=0 aud=true tune=zerolatency pass=cbr ! "video/x-h264,profile=baseline,stream-format=byte-stream" ! h264parse ! tee name="src_1_video_transcoded_enc_tee" \
src_3_video_raw_tee. ! queue name="src_3_video_scale_queue" ! videoscale ! "video/x-raw,width=1920,height=1080" ! x264enc bitrate=1500 byte-stream=true key-int-max=30 bframes=0 aud=true tune=zerolatency pass=cbr ! "video/x-h264,profile=baseline,stream-format=byte-stream" ! h264parse ! tee name="src_3_video_transcoded_enc_tee" \
src_0_video_transcoded_enc_tee. ! queue name="src_0_video_transcoded_queue_mpegts" ! mpegtsmux m2ts-mode=false name="mpegts_mux_transcoded_0" ! tee name="mpegts_mux_transcoded_tee_0" \
src_1_video_transcoded_enc_tee. ! queue name="src_1_video_transcoded_queue_mpegts" ! mpegts_mux_transcoded_0. \
src_3_video_transcoded_enc_tee. ! queue name="src_3_video_transcoded_queue_mpegts" ! mpegts_mux_transcoded_0. \
src_5_audio_encoder_tee. ! queue ! mpegts_mux_transcoded_0. \
src_6_audio_encoder_tee. ! queue ! mpegts_mux_transcoded_0. \
mpegts_mux_transcoded_tee_0. ! queue ! udpsink host="225.225.225.225" port=5000 name="udp_broadcast_0"
```
GPAC:
```bash
gpac \
-i udp://225.225.225.225:5000/:gpac:listen=true:tsprobe=true \
-o /tmp/workdir/content/playlist.mpd:buf=-100:segdur=2.0:cdur=0.2:asto=1.8:dmode=dynamic:cmaf=cmfc:profile=dashif.ll:utcs=https://time.akamai.com/?iso:pssh=mv:hmode=push
```
Is there a way to assigns a different adaptation set Id to each track?
Thanks in advance for any information about this
Detailed guidelines: http://gpac.io/2013/07/16/how-to-file-a-bug-properly/
| Assign diferent ASIDs to each track in an UDP stream with multiple-videos | https://api.github.com/repos/gpac/gpac/issues/2527/comments | 8 | 2023-07-12T21:24:44Z | 2023-07-18T10:06:24Z | https://github.com/gpac/gpac/issues/2527 | 1,801,781,342 | 2,527 |
[
"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 http://gpac.io/downloads/gpac-nightly-builds/
- [x] I give enough information for contributors to reproduce my issue (meaningful title, github labels, platform and compiler, command-line ...). I can share files anonymously with this dropbox: https://www.mediafire.com/filedrop/filedrop_hosted.php?drop=eec9e058a9486fe4e99c33021481d9e1826ca9dbc242a6cfaab0fe95da5e5d95
Detailed guidelines: http://gpac.io/2013/07/16/how-to-file-a-bug-properly/
Hey Guys,
I'm trying to make DRM (Fairplay) to a UDP stream produced by gstreamer (command bellow), to make ll-hls, with TS segments. Based on this answer https://github.com/gpac/gpac/issues/2230#issuecomment-1189306231 I try to create the xml file based on it (cbcs that I use for mp4), but is not working, I don't know if maybe I'm missing something or maybe is a bug.........
```xml
<?xml version="1.0" encoding="UTF-8"?>
<GPACDRM type="cbcs">
<DRMInfo type="pssh" version="1" >
<!-- System ID (Fairplay) -->
<BS ID128="94CE86FB07FF4F43ADB893D2FA968CA2"/>
</DRMInfo>
<CrypTrack isEncrypted="1" constant_IV_size="16" constant_IV="0xDA.........................................69" saiSavedBox="senc">
<!-- Add the URI and KEYFORMAT="com.apple.streamingkeydelivery",KEYFORMATVERSIONS="1"-->
<key KID="0xDA.........................................69" value="0x9AXXXXXXXXXXXXXXXXXXXXXX89" hlsInfo='URI="skd://fps.ezdrm.com/;daXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXX69",KEYFORMAT="com.apple.streamingkeydelivery",KEYFORMATVERSIONS="1"'/>
</CrypTrack>
</GPACDRM>
```
```xml
<?xml version="1.0" encoding="UTF-8"?>
<GPACDRM type="HLS SAES">
<DRMInfo type="pssh" version="1" >
<!-- System ID (Fairplay) -->
<BS ID128="94CE86FB07FF4F43ADB893D2FA968CA2"/>
</DRMInfo>
<CrypTrack isEncrypted="1" constant_IV_size="16" constant_IV="0xDA.........................................69" saiSavedBox="senc">
<!-- Add the URI and KEYFORMAT="com.apple.streamingkeydelivery",KEYFORMATVERSIONS="1"-->
<key KID="0xDA.........................................69" value="0x9AXXXXXXXXXXXXXXXXXXXXXX89" hlsInfo='URI="skd://fps.ezdrm.com/;daXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXX69",KEYFORMAT="com.apple.streamingkeydelivery",KEYFORMATVERSIONS="1"'/>
</CrypTrack>
</GPACDRM>
```
Gstreamer command:
```bash
gst-launch-1.0 -v videotestsrc ! video/x-raw, height=1080, width=1920 ! timeoverlay halignment=left \
! clockoverlay halignment=right ! videoconvert ! x264enc tune=zerolatency ! video/x-h264, profile=high \
! mpegtsmux name=mux ! udpsink host=239.0.0.1 port=1234 audiotestsrc wave=sine ! audioconvert ! faac ! mux.
```
Gpac command:
```bash
gpac -i udp://239.0.0.1:1234 cecrypt:cfile=/etc/drm/drm.xml @ -o /stream/prog_index.m3u8:gpac:segdur=3:cdur=0.5:asto=2.5:profile=live:dmode=dynamic:llhls=sf:hlsc=1:ll_preload_hint=1:ll_rend_rep=0:ll_part_hb=-1:template=fileSequence:fintra=0.5:muxtype=ts
```
I also try to add this to the input, but I don't know if that also works for UDP.
```
::#HLSKey=urn:gpac:keys:value:5544694d47473326622665665a396b36::#Representation=1
```
And also I'm getting the following error.
```
gpac-hls | [avc-h264] Unknown aspect_ratio_idc: your video may have a wrong aspect ratio. Contact the GPAC team!
gpac-hls | [CENC] Invalid NALU size 4185261116 remaining bytes 904
gpac-hls | [CENC] Error encrypting packet 53 in PID video1: BitStream Not Compliant
```
I tested this with gpac 2.2 and the latest Master changes. | LL-HLS DRM with fairplay and TS mux | https://api.github.com/repos/gpac/gpac/issues/2526/comments | 6 | 2023-07-11T15:26:53Z | 2023-09-25T09:32:23Z | https://github.com/gpac/gpac/issues/2526 | 1,799,196,313 | 2,526 |
[
"gpac",
"gpac"
] | How do I play a video on an Android phone by command? Can you provide an example of a command?
thx!
| How do I play a video on an Android phone by command? | https://api.github.com/repos/gpac/gpac/issues/2525/comments | 1 | 2023-07-11T09:57:50Z | 2023-07-11T10:03:49Z | https://github.com/gpac/gpac/issues/2525 | 1,798,569,891 | 2,525 |
[
"gpac",
"gpac"
] | Hello,I use the fuzzer(AFL) to fuzz binary gpac and got some crashes.
The following is the details.
Title: SEGV on unknown address 0x000000000000
1. Description
SEGV on unknown address 0x000000000000 has occurred in functionin import_file gpac/applications/mp4box/fileimport.c:1528:7
when running program MP4Box, this can reproduce on the lattest commit.
2. Software version info
$ ./MP4Box -version
MP4Box - GPAC version 2.3-DEV-rev423-g609cba674-master
(c) 2000-2023 Telecom Paris distributed under LGPL v2.1+ - http://gpac.io
3. System version info
./uname -a
Linux ppg-X10DRi 5.11.0-49-generic #55-Ubuntu SMP Wed Jan 12 17:36:34 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
4. Command
./MP4Box -add poc -new /tmp/output.mp4 -ab 1024
5. Result
```
Unrecognized import option 000012,sig, ignoring
Unrecognized import option 11,src, ignoring
Unrecognized import option 014377,argv, ignoring
Unrecognized import option 000005,time, ignoring
Unrecognized import option 43079354,execs, ignoring
Unrecognized import option 2518437,op, ignoring
Unrecognized import option havoc,rep, ignoring
Unrecognized import option 8, ignoring
[iso file] Box "saiz" (start 987) has 10 extra bytes
[iso file] Unknown box type senc in parent stbl
[iso file] Read Box type 00000000 (0x00000000) at position 1312 has size 0 but is not at root/file level. Forbidden, skipping end of parent box !
[iso file] Box "moov" (start 32) has 1447 extra bytes
[iso file] Unknown top-level box type 1D02~W
[iso file] Incomplete box 1D02~W - start 2767 size 486632918
[iso file] Incomplete file while reading for dump - aborting parsing
IsoMedia import id:000012,sig:11,src:014377,argv:000005,time:43079354,execs:2518437,op:havoc,rep:8 - track ID 1 - Video (size 320 x 240)
AddressSanitizer:DEADLYSIGNAL
=================================================================
==3835627==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7fe7765c86b7 bp 0x000000000000 sp 0x7ffdb9c8c330 T0)
==3835627==The signal is caused by a READ memory access.
==3835627==Hint: address points to the zero page.
#0 0x7fe7765c86b7 in gf_isom_copy_sample_info (/home/ppg/fuzz_carpet/gpac/build_carpet/lib/libgpac.so.12+0x3a96b7)
#1 0x7fe7766c0179 in gf_import_isomedia_track (/home/ppg/fuzz_carpet/gpac/build_carpet/lib/libgpac.so.12+0x4a1179)
#2 0x7fe7766bbb29 in gf_media_import (/home/ppg/fuzz_carpet/gpac/build_carpet/lib/libgpac.so.12+0x49cb29)
#3 0x51f5a3 in import_file /home/ppg/fuzz_carpet/gpac/applications/mp4box/fileimport.c:1528:7
#4 0x4eeb44 in do_add_cat /home/ppg/fuzz_carpet/gpac/applications/mp4box/mp4box.c
#5 0x4e89a8 in mp4box_main /home/ppg/fuzz_carpet/gpac/applications/mp4box/mp4box.c:6190:13
#6 0x7fe775ead564 in __libc_start_main csu/../csu/libc-start.c:332:16
#7 0x42ad1d in _start (/home/ppg/fuzz_carpet/gpac/build_carpet/bin/MP4Box+0x42ad1d)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV (/home/ppg/fuzz_carpet/gpac/build_carpet/lib/libgpac.so.12+0x3a96b7) in gf_isom_copy_sample_info
==3835627==ABORTING
```
6. Impact
This vulnerability is capable of crashing software, Bypass Protection Mechanism, Modify Memory, and possible remote execution.
7. POC
[poc02.zip](https://github.com/gpac/gpac/files/11990711/poc02.zip)
| SEGV on unknown address 0x000000000000 | https://api.github.com/repos/gpac/gpac/issues/2524/comments | 0 | 2023-07-08T13:03:44Z | 2023-07-10T13:01:10Z | https://github.com/gpac/gpac/issues/2524 | 1,794,933,459 | 2,524 |
[
"gpac",
"gpac"
] | before
```
mediainfo --Details=10 test.m4a | grep "k ID"
000008C Next track ID: 3 (0x00000003)
00000C1 Track ID: 1 (0x00000001)
02A3DBA Track ID: 2 (0x00000002)
```
MP4Box -rem 2 test.m4a
```
000008C Next track ID: 1 (0x00000001)
00000C1 Track ID: 1 (0x00000001)
```
importing the file again corrects it:
MP4Box -add test.m4a -new test2.m4a
```
000008C Next track ID: 2 (0x00000002)
00000C1 Track ID: 1 (0x00000001)
```
Thanks for reporting your issue. Please make sure these boxes are checked before submitting your issue - thank you!
- [X] I looked for a similar issue and couldn't find any.
- [X] I tried with the latest version of GPAC. Installers available at http://gpac.io/downloads/gpac-nightly-builds/
- [X] I give enough information for contributors to reproduce my issue (meaningful title, github labels, platform and compiler, command-line ...). I can share files anonymously with this dropbox: https://www.mediafire.com/filedrop/filedrop_hosted.php?drop=eec9e058a9486fe4e99c33021481d9e1826ca9dbc242a6cfaab0fe95da5e5d95
Detailed guidelines: http://gpac.io/2013/07/16/how-to-file-a-bug-properly/
| After removing a track "Next track ID" is set to excisting track ID | https://api.github.com/repos/gpac/gpac/issues/2523/comments | 1 | 2023-07-07T10:10:38Z | 2023-07-10T12:38:57Z | https://github.com/gpac/gpac/issues/2523 | 1,793,235,392 | 2,523 |
[
"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 http://gpac.io/downloads/gpac-nightly-builds/
- [x] I give enough information for contributors to reproduce my issue (meaningful title, github labels, platform and compiler, command-line ...). I can share files anonymously with this dropbox: https://www.mediafire.com/filedrop/filedrop_hosted.php?drop=eec9e058a9486fe4e99c33021481d9e1826ca9dbc242a6cfaab0fe95da5e5d95
We are building an LL HLS origin and we have noticed GPAC sometimes sends several times an HTTP PUT request to the origin, for the same segment/part name, when we are in `llhls=sf` mode.
## GPAC command
```
gpac -i udp://239.0.0.1:1234 reframer:rt=on -o http://http_origin:80/live/upload/playlist.mpd:gpac:dual:buf=-100:segdur=3.0:cdur=0.2:asto=2.8:llhls=sf:hlsc=true:cmaf=cmfc:dmode=dynamic:profile=dashif.ll:utcs=https://time.akamai.com/?iso:hmode=push:template=segment_$(openssl rand -hex 5):hmode=push
```
## FFMPEG command
```
ffmpeg -re -f lavfi -i testsrc=size=1280x720:rate=25 -f lavfi -i sine=frequency=1000 -f mpegts -vcodec libx264 -acodec aac -profile:v high444 -b:v 2000k -maxrate 2000k -bufsize 2000k -r:v 25 -g 50 udp://239.0.0.1:1234
```
## Steps to reproduce
Repository with all the artifacts to reproduce the case: https://github.com/estigma88/gpac_experiments/tree/main/6-udp_mpegts_duplicated_segm.
The following are the steps:
1. Navigate to the `6-udp_mpegts_duplicated_segm` folder
2. Run the docker compose for few minutes: `docker-compose up`
3. Stop the docker compose; `docker-compose down`
4. Two new folders should show up: `content` (media folder) and `logs` (nginx logs)
5. Run the python script to find the HTTP PUT duplicates in the nginx access logs: `python3 findmediaduplicates.py` . The following is an output example:
```
playlist.mpd
playlist.m3u8
playlist_1.m3u8
playlist_2.m3u8
segment_890df68f91_track257_2.m4s
segment_890df68f91_track256_2.m4s
segment_890df68f91_track256_3.m4s
segment_890df68f91_track257_3.m4s
segment_890df68f91_track257_4.m4s
segment_890df68f91_track256_4.m4s
segment_890df68f91_track256_5.m4s
segment_890df68f91_track257_5.m4s
```
6. Open the access log in logs/access.log, and try to find one of above duplicates, you will see two places: before the first part is transferred, and before the last part is transferred:
```
172.25.0.3 - - [07/Jul/2023:01:54:39 +0000] "PUT /live/upload/segment_890df68f91_track257_2.m4s HTTP/1.1" 201 0 "-" "GPAC/2.3-DEV-rev422-g64201a26-master"
172.25.0.3 - - [07/Jul/2023:01:54:39 +0000] "PUT /live/upload/playlist.mpd HTTP/1.1" 204 0 "-" "GPAC/2.3-DEV-rev422-g64201a26-master"
172.25.0.3 - - [07/Jul/2023:01:54:39 +0000] "PUT /live/upload/playlist_1.m3u8 HTTP/1.1" 204 0 "-" "GPAC/2.3-DEV-rev422-g64201a26-master"
172.25.0.3 - - [07/Jul/2023:01:54:39 +0000] "PUT /live/upload/playlist_2.m3u8 HTTP/1.1" 204 0 "-" "GPAC/2.3-DEV-rev422-g64201a26-master"
172.25.0.3 - - [07/Jul/2023:01:54:39 +0000] "PUT /live/upload/segment_890df68f91_track257_2.m4s.1 HTTP/1.1" 201 0 "-" "GPAC/2.3-DEV-rev422-g64201a26-master"
....
172.25.0.3 - - [07/Jul/2023:01:54:42 +0000] "PUT /live/upload/segment_890df68f91_track257_2.m4s HTTP/1.1" 204 0 "-" "GPAC/2.3-DEV-rev422-g64201a26-master"
172.25.0.3 - - [07/Jul/2023:01:54:42 +0000] "PUT /live/upload/segment_890df68f91_track257_2.m4s.15 HTTP/1.1" 201 0 "-" "GPAC/2.3-DEV-rev422-g64201a26-master"
```
## Questions
1. What is being sent in the second HTTP PUT, before the last part? and why?
2. Is this happening only for full segments or also for parts? we have seen this happening sometimes for parts, but hard to reproduce
3. Also, we have seen GPAC resending a whole segment and its parts, is that common? When can that happen?
4. What should the origin behavior be in those cases? override the previous segment? ignore?
Any help will be much appreciated.
| HTTP push filter (httpout) sends several times the same segment to the origin | https://api.github.com/repos/gpac/gpac/issues/2522/comments | 2 | 2023-07-07T02:11:00Z | 2023-07-11T14:13:39Z | https://github.com/gpac/gpac/issues/2522 | 1,792,589,572 | 2,522 |
[
"gpac",
"gpac"
] | The result of H265de hvec encoded video tile dash cannot be played | The result of H265de hvec encoded video tile dash cannot be played | https://api.github.com/repos/gpac/gpac/issues/2521/comments | 2 | 2023-07-06T03:00:20Z | 2023-07-10T19:33:41Z | https://github.com/gpac/gpac/issues/2521 | 1,790,706,259 | 2,521 |
[
"gpac",
"gpac"
] | Description
The [gpac VobSub parser](https://github.com/gpac/gpac/blob/ec145e7fc36597ffdbc0bae924de261324ded1ca/src/media_tools/vobsub.c#L254-L453) takes a FILE* handle and attempts to load the information from that file into its memory.
The main focus of this report revolves around [the first few lines of the function](https://github.com/gpac/gpac/blob/f54c70d041448bddc2083a63d4241a2bd63f688e/src/media_tools/vobsub.c#L256-L275) and how they make some assumptions about buffer sizes that allows for an out-of-bounds read:
```
char strbuf[256];
char *str, *pos, *entry;
for (line = 0; !error && gf_fgets(strbuf, sizeof(strbuf), file); line++) // Read up to 256 bytes into strbuf
{
str = strtrim(strbuf);
if (line == 0) // Conditional for if this is the first line of the VobSub file:
{
char *buf = "VobSub index file, v";
pos = strstr(str, buf); // Find where 'buf' appears in 'str'
if (pos == NULL || sscanf(pos + strlen(buf), "%d", version) != 1 || *version > VOBSUBIDXVER) // Read and check the version integer
{
error = 1;
continue;
}
}
...
}
```
In this extract, a buffer of 256 bytes is allocated on the stack, and a maximum of 256 bytes are read into that buffer from a file.
From there, the buffer is 'trimmed', which seems to leading whitespace on each side of the buffer with null bytes (although on the 'left' side of the buffer, its index is simply incremented) - this 'cleaned' version is stored in str.
Later, a string search (strstr) occurs for the text "VobSub index file, v" in the buffer. This string search assumes that the buffer (str) is null-terminated to avoid searching past the 256-byte boundary.
Furthermore, an (optionally signed) integer is read from the end of the "VobSub index file, v" position in the buffer - this makes the assumption that the string ("VobSub index file, v") occurs at least four (implementation-specific, but usually four) bytes before the end of the buffer.
Both of the aforementioned assumptions are incorrect when strbuf is non-null upon initialization, and more favourably for an attacker, whenever the contents of strbuf fill the buffer exactly. At which point, there is no guarantee of a null-terminator and such read/write attempts may impact other arbitrary data.
Proof of Concept
This proof of concept code shows that an element past the end of the strbuf array can be read by filling the aforementioned buffer.
```
#include <ctype.h>
#include <string.h>
#include <stdio.h>
#define MIN(A, B) (A > B ? B : A)
char* strltrim(char* str) {
if (str == NULL) {
return NULL;
}
while (*str) {
if (!isspace(*str)) {
return str;
}
str++;
}
return str;
}
char* strrtrim(char* str) {
char *end;
if (str == NULL) {
return NULL;
}
end = str + strlen(str);
while (end-- > str) {
if (!isspace(*end)) {
return str;
}
*end = '\0';
}
return str;
}
char* strtrim(char* data) {
return strltrim(strrtrim(data));
}
#define VOBSUBIDXVER 7
int run_iter(char* const strbuf) {
char* const str = strtrim(strbuf);
const char* buf = "VobSub index file, v";
char* const pos = strstr(str, buf);
int ver = 0;
int* version = &ver;
if (pos == NULL || sscanf(pos + strlen(buf), "%d", version) != 1 || *version > VOBSUBIDXVER) {
return -1; // Should hit this if there was no overflow situation.
}
return 1;
}
int main(void) {
char strbuf[256 + 1];
memset(strbuf, 0x01, 256); // Where test_data will fall within.
strbuf[256 /* Out of gpac's boundary */] = VOBSUBIDXVER + 0x37 /* 0x37 is ASCII for '0' */;
// test_data = ('.' * 236) + "VobSub index file, v"
const char* const test_data = "............................................................................................................................................................................................................................................VobSub index file, v";
// Using MIN() here as a sanity check to ensure that we aren't writing over the 256 buffer that would be present in gpac.
memcpy(strbuf, test_data, MIN(strlen(test_data), 256));
printf("run_iter(...): '%d'\n", run_iter(strbuf));
return 1;
}
```
Impact
This report and the proof-of-concept therein have focused almost exclusively on two memory violations within the first 20 lines of vobsub_read_idx; the scope of this issue actually includes the entire function which repeatedly assumes that the 256-byte buffer is terminated. Such areas have been included in the 'Occurances' section.
Fixing this vulnerability will be extremely simple. By (optionally increasing the size of strbuf by a single byte and then) setting strbuf[sizeof(strbuf) - 1] = 0x00 only including sizeof(strbuf) - 1 as the length in the call to gf_fgets, the buffer will always be null-terminated.
I'm happy to fork and make a pull request with this patch however I wouldn't want to create a public fork too early in the event that it could disclose information regarding the issue to third parties.
Thanks for the great work you all do with gpac!
Occurrences
```
vobsub.c L303
if (sscanf(str, "%dx%d", &w, &h) != 2)
vobsub.c L343
strlwr(str);
vobsub.c L407
if (sscanf(str, "%d%c%d%c%d%c%d", &hh, &c, &mm, &c, &ss, &c, &ms) != 7)
vobsub.c L382
if (sscanf(pos, "%d%c%d%c%d%c%d", &hh, &c, &mm, &c, &ss, &c, &ms) != 7)
vobsub.c L300
if (stricmp(entry, "size") == 0)
vobsub.c L269
pos = strstr(str, buf);
vobsub.c L373
else if (id >= 0 && stricmp(entry, "delay") == 0)
vobsub.c L310
else if (stricmp(entry, "palette") == 0)
vobsub.c L315-L319
if (sscanf(str, "%x,%x,%x,%x,%x,%x,%x,%x,%x,%x,%x,%x,%x,%x,%x,%x",
(u32 *) &palette[0], (u32 *) &palette[1], (u32 *) &palette[2], (u32 *) &palette[3],
(u32 *) &palette[4], (u32 *) &palette[5], (u32 *) &palette[6], (u32 *) &palette[7],
(u32 *) &palette[8], (u32 *) &palette[9], (u32 *) &palette[10], (u32 *) &palette[11],
(u32 *) &palette[12],(u32 *) &palette[13],(u32 *) &palette[14], (u32 *) &palette[15]) != 16)
vobsub.c L346
pos = strstr(str, buf);
vobsub.c L285-L292
pos = strchr(str, ':');
if (pos == NULL || pos == str)
{
continue;
}
entry = str;
*pos = '\0';
vobsub.c L416
pos = strstr(str, buf);
vobsub.c L270
sscanf(pos + strlen(buf), "%d", version) != 1 || *version > VOBSUBIDXVER
vobsub.c L405
while (*str == '-' || *str == '+') str++;
vobsub.c L390
else if (id >= 0 && stricmp(entry, "timestamp") == 0)
vobsub.c L424
if (sscanf(pos + strlen(buf), LLX, &vspos->filepos) != 1)
vobsub.c L338
else if (stricmp(entry, "id") == 0)
vobsub.c L353
if (sscanf(pos + strlen(buf), "%d", &id) != 1 || id < 0 || id >= 32)
``` | Out of bounds read in VobSub loader | https://api.github.com/repos/gpac/gpac/issues/2520/comments | 0 | 2023-07-05T21:26:14Z | 2023-07-06T07:51:39Z | https://github.com/gpac/gpac/issues/2520 | 1,790,362,011 | 2,520 |
[
"gpac",
"gpac"
] | Hello,I use the fuzzer(AFL) to fuzz binary gpac and got some crashes.
The following is the details.
## Title: SEGV on unknown address 0x000000000000
**1. Description**
SEGV on unknown address 0x000000000000 has occurred in functionin dump_isom_scene /root/gpac/applications/mp4box/filedump.c:209:14
when running program MP4Box, this can reproduce on the lattest commit.
**2. Software version info**
```
fuzz@ubuntu:~/gpac2.1/gpac/bin/gcc$ MP4Box -version
MP4Box - GPAC version 2.3-DEV-rev395-g98979a443-master
(c) 2000-2023 Telecom Paris distributed under LGPL v2.1+ - http://gpac.io
```
**3. System version info**
```
./uname -a
Linux ouc7 5.4.0-150-generic #167-Ubuntu SMP Mon May 15 17:35:05 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
```
**4. Command**
```
./MP4Box -bt poc1
```
**5. Result**
```
[iso file] Unknown box type 0000 in parent moov
[iso file] Unknown box type 0000 in parent moov
[iso file] Unknown box type 0000 in parent moov
[iso file] Unknown box type 0000 in parent moov
[iso file] Unknown box type 0000 in parent moov
[iso file] Unknown box type 0000 in parent moov
[iso file] Unknown box type 0000 in parent minf
[iso file] Missing DataInformationBox
[iso file] Unknown box type 0000 in parent moov
[iso file] Read Box type 0000 (0x30303030) at position 11542 has size 0 but is not at root/file level. Forbidden, skipping end of parent box !
[iso file] Box "moov" (start 20) has 806 extra bytes
[iso file] Unknown top-level box type 0000
[iso file] Incomplete box 0000 - start 12356 size 808421684
[iso file] Incomplete file while reading for dump - aborting parsing
[iso file] Unknown box type 0000 in parent moov
[iso file] Unknown box type 0000 in parent moov
[iso file] Unknown box type 0000 in parent moov
[iso file] Unknown box type 0000 in parent moov
[iso file] Unknown box type 0000 in parent moov
[iso file] Unknown box type 0000 in parent moov
[iso file] Unknown box type 0000 in parent minf
[iso file] Missing DataInformationBox
[iso file] Unknown box type 0000 in parent moov
[iso file] Read Box type 0000 (0x30303030) at position 11542 has size 0 but is not at root/file level. Forbidden, skipping end of parent box !
[iso file] Box "moov" (start 20) has 806 extra bytes
[iso file] Unknown top-level box type 0000
[iso file] Incomplete box 0000 - start 12356 size 808421684
[iso file] Incomplete file while reading for dump - aborting parsing
MPEG-4 BIFS Scene Parsing
[ODF] Reading bifs config: shift in sizes (not supported)
UndefinedBehaviorSanitizer:DEADLYSIGNAL/100)
==3913630==ERROR: UndefinedBehaviorSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7f9727dd6ee1 bp 0x000000000008 sp 0x7fff18efad90 T3913630)
==3913630==The signal is caused by a READ memory access.
==3913630==Hint: address points to the zero page.
#0 0x7f9727dd6ee1 in BM_ParseIndexValueReplace (/usr/local/lib/libgpac.so.12+0x259ee1)
#1 0x7f9727dd7661 in BM_ParseCommand (/usr/local/lib/libgpac.so.12+0x25a661)
#2 0x7f9727dd7d00 in gf_bifs_decode_command_list (/usr/local/lib/libgpac.so.12+0x25ad00)
#3 0x7f9728031dfb in gf_sm_load_run_isom (/usr/local/lib/libgpac.so.12+0x4b4dfb)
#4 0x450461 in dump_isom_scene /root/gpac/applications/mp4box/filedump.c:209:14
#5 0x4478b0 in mp4box_main /root/gpac/applications/mp4box/mp4box.c:6461:7
#6 0x7f9727810082 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x24082)
#7 0x41304d in _start (/usr/local/bin/MP4Box+0x41304d)
UndefinedBehaviorSanitizer can not provide additional info.
SUMMARY: UndefinedBehaviorSanitizer: SEGV (/usr/local/lib/libgpac.so.12+0x259ee1) in BM_ParseIndexValueReplace
==3913630==ABORTING
```
**6. Impact**
This vulnerability is capable of crashing software, Bypass Protection Mechanism, Modify Memory, and possible remote execution.
**7. POC**
POC file list
[poc1.zip](https://github.com/gpac/gpac/files/11956120/poc1.zip)
**Report of the Information Security Laboratory of Ocean University of China @OUC_ISLOUC @OUC_Blue_Whale** | SEGV on unknown address 0x000000000000 | https://api.github.com/repos/gpac/gpac/issues/2519/comments | 1 | 2023-07-05T09:15:37Z | 2023-07-06T07:46:20Z | https://github.com/gpac/gpac/issues/2519 | 1,789,129,297 | 2,519 |
[
"gpac",
"gpac"
] | Hi,
I want to extract the frame of a tiled mp4 using the Python API of GPAC, then process and render using OpenCV. Can you please tell me how to do it? I tried the custom_sink.py, but it throws errors. I also looked into this https://github.com/gpac/gpac/issues/1761 issue.
When I ran the custom_sink.py on a tiled HEVC from Kvazaar, it ran and showed packets like this.
```
[ 0 0 0 16 2 1 255 17 106 79 221 17 128 226 176 220 0 0
15 120] (20,)
PCK Prop: 1280, 720
[ 0 0 0 17 2 1 65 127 17 106 79 221 17 128 226 176 220 0
0 15 120] (21,)
PCK Prop: 1280, 720
[ 0 0 0 17 2 1 66 191 17 106 79 221 17 128 226 176 220 0
0 15 120] (21,)
PCK Prop: 1280, 720
[ 0 0 0 17 2 1 67 255 17 106 79 221 17 128 226 176 220 0
0 15 120] (21,)
PCK Prop: 1280, 720
```
Can you tell me what these arrays imply? I guess these are frame data. But how can I make OpenCV read them?
But for tiled mp4 videos, it gives this error:
```
Exception ignored on calling ctypes callback function: <function filter_cbk_configure at 0x7f4f818325e0>
Traceback (most recent call last):
File "/home/shubhamch/project/NetColab/env/lib/python3.8/site-packages/libgpac/libgpac.py", line 2725, in filter_cbk_configure
filter = cast(obj, py_object).value
ValueError: PyObject is NULL
```
| How to extract frames of tiled mp4 using Python API | https://api.github.com/repos/gpac/gpac/issues/2518/comments | 4 | 2023-07-05T08:49:24Z | 2023-09-01T04:21:44Z | https://github.com/gpac/gpac/issues/2518 | 1,789,084,757 | 2,518 |
[
"gpac",
"gpac"
] | Android mobile phone does not have real3D this device, does not support panoramic playback, how to change my side, you can call the provided setsize, load_service, render_frame method to render the video into a 2D video | android can not play 3DVideo | https://api.github.com/repos/gpac/gpac/issues/2517/comments | 1 | 2023-07-05T07:29:40Z | 2023-07-05T13:46:28Z | https://github.com/gpac/gpac/issues/2517 | 1,788,953,687 | 2,517 |
[
"gpac",
"gpac"
] | Hello,I use the fuzzer(AFL) to fuzz binary gpac and got some crashes.
The following is the details.
## Title: SEGV on unknown address 0x000000000038
**1. Description**
SEGV on unknown address 0x000000000038 has occurred in function set_file_udta /root/gpac/applications/mp4box/fileimport.c:70:14
when running program MP4Box, this can reproduce on the lattest commit.
**2. Software version info**
```
fuzz@ubuntu:~/gpac2.1/gpac/bin/gcc$ MP4Box -version
MP4Box - GPAC version 2.3-DEV-rev395-g98979a443-master
(c) 2000-2023 Telecom Paris distributed under LGPL v2.1+ - http://gpac.io
```
**3. System version info**
```
./uname -a
Linux ouc7 5.4.0-150-generic #167-Ubuntu SMP Mon May 15 17:35:05 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
```
**4. Command**
```
./MP4Box -udta 3:type=name -udta 3:type=name:str="Director Commentary" poc
```
**5. Result**
```
[iso file] Unknown top-level box type Ytra
[iso file] Box "mehd" (start 84) has 88 extra bytes
[iso file] Unknown top-level box type mo^v
[iso file] Unknown top-level box type 000000FF
UndefinedBehaviorSanitizer:DEADLYSIGNAL
==1680297==ERROR: UndefinedBehaviorSanitizer: SEGV on unknown address 0x000000000038 (pc 0x7fe43b404373 bp 0x00006e616d65 sp 0x7ffcf11b03e0 T1680297)
==1680297==The signal is caused by a READ memory access.
==1680297==Hint: address points to the zero page.
#0 0x7fe43b404373 in gf_isom_remove_user_data (/usr/local/lib/libgpac.so.12+0x318373)
#1 0x467b3d in set_file_udta /root/gpac/applications/mp4box/fileimport.c:70:14
#2 0x44aeb1 in do_track_act /root/gpac/applications/mp4box/mp4box.c:5612:8
#3 0x44aeb1 in mp4box_main /root/gpac/applications/mp4box/mp4box.c:6694:6
#4 0x7fe43ad7f082 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x24082)
#5 0x41304d in _start (/usr/local/bin/MP4Box+0x41304d)
UndefinedBehaviorSanitizer can not provide additional info.
SUMMARY: UndefinedBehaviorSanitizer: SEGV (/usr/local/lib/libgpac.so.12+0x318373) in gf_isom_remove_user_data
==1680297==ABORTING
```
**6. Impact**
This vulnerability is capable of crashing software, Bypass Protection Mechanism, Modify Memory, and possible remote execution.
**7. POC**
POC file list
[poc_lst.zip](https://github.com/gpac/gpac/files/11949634/poc_lst.zip)
**Report of the Information Security Laboratory of Ocean University of China @OUC_ISLOUC @OUC_Blue_Whale** | SEGV on unknown address 0x000000000038 | https://api.github.com/repos/gpac/gpac/issues/2516/comments | 0 | 2023-07-04T13:14:59Z | 2023-07-04T15:06:27Z | https://github.com/gpac/gpac/issues/2516 | 1,787,914,764 | 2,516 |
[
"gpac",
"gpac"
] | Hello,I use the fuzzer(AFL) to fuzz binary gpac and got some crashes.
The following is the details.
## Title: SEGV on unknown address 0x000000000003(0x000000000009)
**1. Description**
A SEGV on unknown address 0x000000000003(0x000000000009) has occurred in function dump_isom_scene /root/gpac/applications/mp4box/filedump.c:223:7
when running program MP4Box, this can reproduce on the lattest commit.
**2. Software version info**
```
fuzz@ubuntu:~/gpac2.1/gpac/bin/gcc$ MP4Box -version
MP4Box - GPAC version 2.3-DEV-rev381-g817a848f6-master
(c) 2000-2023 Telecom Paris distributed under LGPL v2.1+ - http://gpac.io
```
**3. System version info**
```
./uname -a
Linux ouc7 5.4.0-150-generic #167-Ubuntu SMP Mon May 15 17:35:05 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
```
**4. Command**
```
./MP4Box -bt poc
```
**5. Result**
```
[iso file] Unknown box type 0000 in parent moov
[iso file] Unknown box type 0000 in parent moov
[iso file] Unknown box type 0000 in parent moov
[iso file] Unknown box type 0000 in parent moov
[iso file] Unknown box type 0000 in parent moov
[iso file] Unknown box type 0000 in parent moov
[iso file] Unknown box type 0000 in parent minf
[iso file] Missing DataInformationBox
[iso file] Unknown box type 0000 in parent moov
[iso file] Read Box type 0000 (0x30303030) at position 11542 has size 0 but is not at root/file level. Forbidden, skipping end of parent box !
[iso file] Box "moov" (start 20) has 806 extra bytes
[iso file] Unknown top-level box type 0000
[iso file] Incomplete box 0000 - start 12356 size 808401079
[iso file] Incomplete file while reading for dump - aborting parsing
[iso file] Unknown box type 0000 in parent moov
[iso file] Unknown box type 0000 in parent moov
[iso file] Unknown box type 0000 in parent moov
[iso file] Unknown box type 0000 in parent moov
[iso file] Unknown box type 0000 in parent moov
[iso file] Unknown box type 0000 in parent moov
[iso file] Unknown box type 0000 in parent minf
[iso file] Missing DataInformationBox
[iso file] Unknown box type 0000 in parent moov
[iso file] Read Box type 0000 (0x30303030) at position 11542 has size 0 but is not at root/file level. Forbidden, skipping end of parent box !
[iso file] Box "moov" (start 20) has 806 extra bytes
[iso file] Unknown top-level box type 0000
[iso file] Incomplete box 0000 - start 12356 size 808401079
[iso file] Incomplete file while reading for dump - aborting parsing
MPEG-4 BIFS Scene Parsing
[ODF] Reading bifs config: shift in sizes (invalid descriptor)
[MP4 Loading] Unable to fetch sample 14 from track ID 8 - aborting track import
Scene loaded - dumping 1 systems streams
UndefinedBehaviorSanitizer:DEADLYSIGNAL
==3913141==ERROR: UndefinedBehaviorSanitizer: SEGV on unknown address 0x000000000003 (pc 0x7f3c65d28adb bp 0x00000000002d sp 0x7fffa6574310 T3913141)
==3913141==The signal is caused by a READ memory access.
==3913141==Hint: address points to the zero page.
#0 0x7f3c65d28adb in gf_dump_vrml_sffield (/usr/local/lib/libgpac.so.12+0x4dfadb)
#1 0x7f3c65d284e1 in gf_dump_vrml_simple_field (/usr/local/lib/libgpac.so.12+0x4df4e1)
#2 0x7f3c65d1f694 in gf_sm_dump_command_list (/usr/local/lib/libgpac.so.12+0x4d6694)
#3 0x7f3c65d27670 in gf_sm_dump (/usr/local/lib/libgpac.so.12+0x4de670)
#4 0x450606 in dump_isom_scene /root/gpac/applications/mp4box/filedump.c:223:7
#5 0x4478b0 in mp4box_main /root/gpac/applications/mp4box/mp4box.c:6461:7
#6 0x7f3c654dc082 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x24082)
#7 0x41304d in _start (/usr/local/bin/MP4Box+0x41304d)
UndefinedBehaviorSanitizer can not provide additional info.
SUMMARY: UndefinedBehaviorSanitizer: SEGV (/usr/local/lib/libgpac.so.12+0x4dfadb) in gf_dump_vrml_sffield
==3913141==ABORTING
[iso file] Unknown box type 0000 in parent moov
[iso file] Unknown box type 0000 in parent moov
[iso file] Unknown box type 0000 in parent moov
[iso file] Unknown box type 0000 in parent moov
[iso file] Unknown box type 0000 in parent moov
[iso file] Unknown box type 0000 in parent moov
[iso file] Unknown box type 0000 in parent minf
[iso file] Missing DataInformationBox
[iso file] Unknown box type 0000 in parent moov
[iso file] Read Box type 0000 (0x30303030) at position 11542 has size 0 but is not at root/file level. Forbidden, skipping end of parent box !
[iso file] Box "moov" (start 20) has 806 extra bytes
[iso file] Unknown top-level box type 0000
[iso file] Incomplete box 0000 - start 12356 size 808423476
[iso file] Incomplete file while reading for dump - aborting parsing
[iso file] Unknown box type 0000 in parent moov
[iso file] Unknown box type 0000 in parent moov
[iso file] Unknown box type 0000 in parent moov
[iso file] Unknown box type 0000 in parent moov
[iso file] Unknown box type 0000 in parent moov
[iso file] Unknown box type 0000 in parent moov
[iso file] Unknown box type 0000 in parent minf
[iso file] Missing DataInformationBox
[iso file] Unknown box type 0000 in parent moov
[iso file] Read Box type 0000 (0x30303030) at position 11542 has size 0 but is not at root/file level. Forbidden, skipping end of parent box !
[iso file] Box "moov" (start 20) has 806 extra bytes
[iso file] Unknown top-level box type 0000
[iso file] Incomplete box 0000 - start 12356 size 808423476
[iso file] Incomplete file while reading for dump - aborting parsing
MPEG-4 BIFS Scene Parsing
[ODF] Reading bifs config: shift in sizes (not supported)
[MP4 Loading] Unable to fetch sample 2 from track ID 8 - aborting track import
Scene loaded - dumping 1 systems streams
UndefinedBehaviorSanitizer:DEADLYSIGNAL
==430714==ERROR: UndefinedBehaviorSanitizer: SEGV on unknown address 0x000000000009 (pc 0x7f38a4794adb bp 0x00000000002d sp 0x7ffed4adff90 T430714)
==430714==The signal is caused by a READ memory access.
==430714==Hint: address points to the zero page.
#0 0x7f38a4794adb in gf_dump_vrml_sffield (/usr/local/lib/libgpac.so.12+0x4dfadb)
#1 0x7f38a47944e1 in gf_dump_vrml_simple_field (/usr/local/lib/libgpac.so.12+0x4df4e1)
#2 0x7f38a478b96d in gf_sm_dump_command_list (/usr/local/lib/libgpac.so.12+0x4d696d)
#3 0x7f38a4793670 in gf_sm_dump (/usr/local/lib/libgpac.so.12+0x4de670)
#4 0x450606 in dump_isom_scene /root/gpac/applications/mp4box/filedump.c:223:7
#5 0x4478b0 in mp4box_main /root/gpac/applications/mp4box/mp4box.c:6461:7
#6 0x7f38a3f48082 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x24082)
#7 0x41304d in _start (/usr/local/bin/MP4Box+0x41304d)
UndefinedBehaviorSanitizer can not provide additional info.
SUMMARY: UndefinedBehaviorSanitizer: SEGV (/usr/local/lib/libgpac.so.12+0x4dfadb) in gf_dump_vrml_sffield
==430714==ABORTING
```
**6. Impact**
This vulnerability is capable of crashing software, Bypass Protection Mechanism, Modify Memory, and possible remote execution.
**7. POC**
POC file list
[poc_list.zip](https://github.com/gpac/gpac/files/11944873/poc_list.zip)
**Report of the Information Security Laboratory of Ocean University of China @OUC_ISLOUC @OUC_Blue_Whale** | SEGV on unknown address 0x000000000003(0x000000000009) | https://api.github.com/repos/gpac/gpac/issues/2515/comments | 0 | 2023-07-04T05:41:47Z | 2023-07-04T15:06:27Z | https://github.com/gpac/gpac/issues/2515 | 1,787,186,997 | 2,515 |
[
"gpac",
"gpac"
] | Hello,I use the fuzzer(AFL) to fuzz binary gpac and got some crashes.
The following is the details.
## Title: SEGV on unknown address 0x000000000000
**1. Description**
A SEGV on unknown address 0x000000000000 has occurred in function dump_isom_scene /root/gpac/applications/mp4box/filedump.c:209:14
when running program MP4Box, this can reproduce on the lattest commit.
**2. Software version info**
```
fuzz@ubuntu:~/gpac2.1/gpac/bin/gcc$ MP4Box -version
MP4Box - GPAC version 2.3-DEV-rev381-g817a848f6-master
(c) 2000-2023 Telecom Paris distributed under LGPL v2.1+ - http://gpac.io
```
**3. System version info**
```
./uname -a
Linux ouc7 5.4.0-150-generic #167-Ubuntu SMP Mon May 15 17:35:05 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
```
**4. Command**
```
./MP4Box -xmt poc1
```
**5. Result**
```
[iso file] Unknown box type 0000 in parent moov
[iso file] Unknown box type 0000 in parent moov
[iso file] Unknown box type 0000 in parent moov
[iso file] Unknown box type 0000 in parent moov
[iso file] Unknown box type 0000 in parent moov
[iso file] Unknown box type 0000 in parent moov
[iso file] Unknown box type 0000 in parent minf
[iso file] Missing DataInformationBox
[iso file] Unknown box type 0000 in parent moov
[iso file] Read Box type 0000 (0x30303030) at position 11542 has size 0 but is not at root/file level. Forbidden, skipping end of parent box !
[iso file] Box "moov" (start 20) has 806 extra bytes
[iso file] Unknown top-level box type 0000
[iso file] Incomplete box 0000 - start 12356 size 808363764
[iso file] Incomplete file while reading for dump - aborting parsing
[iso file] Unknown box type 0000 in parent moov
[iso file] Unknown box type 0000 in parent moov
[iso file] Unknown box type 0000 in parent moov
[iso file] Unknown box type 0000 in parent moov
[iso file] Unknown box type 0000 in parent moov
[iso file] Unknown box type 0000 in parent moov
[iso file] Unknown box type 0000 in parent minf
[iso file] Missing DataInformationBox
[iso file] Unknown box type 0000 in parent moov
[iso file] Read Box type 0000 (0x30303030) at position 11542 has size 0 but is not at root/file level. Forbidden, skipping end of parent box !
[iso file] Box "moov" (start 20) has 806 extra bytes
[iso file] Unknown top-level box type 0000
[iso file] Incomplete box 0000 - start 12356 size 808363764
[iso file] Incomplete file while reading for dump - aborting parsing
MPEG-4 BIFS Scene Parsing
[ODF] Reading bifs config: shift in sizes (not supported)
UndefinedBehaviorSanitizer:DEADLYSIGNAL/100)
==3773381==ERROR: UndefinedBehaviorSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7f064cc53d31 bp 0x000000000000 sp 0x7ffe4c9c9210 T3773381)
==3773381==The signal is caused by a READ memory access.
==3773381==Hint: address points to the zero page.
#0 0x7f064cc53d31 in BM_ParseIndexValueReplace (/usr/local/lib/libgpac.so.12+0x259d31)
#1 0x7f064cc544b1 in BM_ParseCommand (/usr/local/lib/libgpac.so.12+0x25a4b1)
#2 0x7f064cc54b50 in gf_bifs_decode_command_list (/usr/local/lib/libgpac.so.12+0x25ab50)
#3 0x7f064ceaebbb in gf_sm_load_run_isom (/usr/local/lib/libgpac.so.12+0x4b4bbb)
#4 0x450461 in dump_isom_scene /root/gpac/applications/mp4box/filedump.c:209:14
#5 0x4478b0 in mp4box_main /root/gpac/applications/mp4box/mp4box.c:6461:7
#6 0x7f064c68d082 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x24082)
#7 0x41304d in _start (/usr/local/bin/MP4Box+0x41304d)
UndefinedBehaviorSanitizer can not provide additional info.
SUMMARY: UndefinedBehaviorSanitizer: SEGV (/usr/local/lib/libgpac.so.12+0x259d31) in BM_ParseIndexValueReplace
==3773381==ABORTING
```
**6. Impact**
This vulnerability is capable of crashing software, Bypass Protection Mechanism, Modify Memory, and possible remote execution.
**7. POC**
POC file
[poc1.zip](https://github.com/gpac/gpac/files/11944812/poc1.zip)
**Report of the Information Security Laboratory of Ocean University of China @OUC_ISLOUC @OUC_Blue_Whale** | SEGV on unknown address 0x000000000000 | https://api.github.com/repos/gpac/gpac/issues/2514/comments | 0 | 2023-07-04T05:31:02Z | 2023-07-04T15:06:27Z | https://github.com/gpac/gpac/issues/2514 | 1,787,177,384 | 2,514 |
[
"gpac",
"gpac"
] | Hi, I'm using kvazaar for a university project and I'm having a little problem. I would appreciate if someone help me to solve it. I am working with five different qualities of the same video (480p,720p,1080p,2k,4k)
I have generated the segments (for all the qualitis) and stored them on a server. I am working with WSL2 and I have the server in windows.
So to play the content, I use the following command gpac -gui http://192.168.1.221/TFG/dash_tiled.mpd#VR
The problem is that I get a black screen. I have captured the traffic with wireshark and I have obtained two different cases. Sometimes only the "init" files are requested and the segments are not requested. And in other cases everything seems to be fine. The client requests the "init" files and segments and the server provides them I have tried to reproduce the 5 mpds of the 5 qualities and they all work correctly. The problem is the mpd with more than one representation.
I attach the mpd and the wireshark captures that proves that sometimes the traffic is correct and the client dosen't request the segments


mpd: https://drive.google.com/file/d/1YcfiUMpgy-_0Iz6tGqd-vgUtmG_DsybQ/view?usp=sharing
I would appreciate if someone help me to solve it | Problem playing content stored on the server | https://api.github.com/repos/gpac/gpac/issues/2510/comments | 20 | 2023-06-30T13:42:48Z | 2023-07-18T06:01:18Z | https://github.com/gpac/gpac/issues/2510 | 1,782,555,957 | 2,510 |
[
"gpac",
"gpac"
] | processing time of the tileagg filter: you need to locate the filter in your session and call get_statistics on it - you will have a FilterStats object, check the time_process field
1.I'm sorry, could you please tell me how to call the get_statistics function?
You can use the following example
2. Always trigger [TileAgg] No frames on tile base pid V1 after 33977 ms, discarding all tiles WHY?
"Advanced example" in https://github.com/gpac/gpac/wiki/python | I want to ask some questions about python api(tileagg ) | https://api.github.com/repos/gpac/gpac/issues/2509/comments | 1 | 2023-06-28T16:40:07Z | 2023-07-04T15:09:30Z | https://github.com/gpac/gpac/issues/2509 | 1,779,316,897 | 2,509 |
[
"gpac",
"gpac"
] | Hello,I use the fuzzer(AFL) to fuzz binary gpac and got some crashes.
The following is the details.
### Description
A SEGV on unknown address 0x000000000000 has occurred in function split_isomedia_file_main gpac/applications/mp4box/fileimport.c:2364:6
when running program MP4Box, this can reproduce on the lattest commit.
### System && Software version info
```
$ ./MP4Box -version
MP4Box - GPAC version 2.3-DEV-rev389-g6ae306f5a-master
(c) 2000-2023 Telecom Paris distributed under LGPL v2.1+ - http://gpac.io
$uname -a
Linux ppg-X10DRi 5.11.0-49-generic #55-Ubuntu SMP Wed Jan 12 17:36:34 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
```
### Steps to reproduce
```
CFLAGS="-g -O0 -lpthread -fsanitize=address" ./configure
make -j
```
### Command&&Result
```
$./MP4Box -add poc3 -new /tmp/output.mp4 -split-size 5000000
Unrecognized import option 000004,sig, ignoring
Unrecognized import option 11,src, ignoring
Unrecognized import option 004830,argv, ignoring
Unrecognized import option 000060,time, ignoring
Unrecognized import option 1651917,execs, ignoring
Unrecognized import option 173547,op, ignoring
Unrecognized import option argv,pos, ignoring
Unrecognized import option 0, ignoring
[iso file] Unknown box type st80l in parent minf
[iso file] Track with no sample table !
[iso file] Track with no sample description box !
[iso file] Incomplete box mdat - start 11977 size 276821
[iso file] Incomplete file while reading for dump - aborting parsing
IsoMedia import id:000004,sig:11,src:004830,argv:000060,time:1651917,execs:173547,op:argv,pos:0 - track ID 201 - Video (size 0 x 0)
[iso file] Unknown box type st80l in parent minf
IsoMedia import id:000004,sig:11,src:004830,argv:000060,time:1651917,execs:173547,op:argv,pos:0 - track ID 65737 - media type "hint:00000000"
IsoMedia import id:000004,sig:11,src:004830,argv:000060,time:1651917,execs:173547,op:argv,pos:0 - track ID 101 - Audio (SR 11025 - 1 channels)
IsoMedia import id:000004,sig:11,src:004830,argv:000060,time:1651917,execs:173547,op:argv,pos:0 - track ID 65637 - media type "hint:rtp "
Split by size but output not a template, using /tmp/output_$num$.mp4 as output
AddressSanitizer:DEADLYSIGNAL
=================================================================
==2366747==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7fbaf17fa3dc bp 0x607000007410 sp 0x7ffc8b8dbfc0 T0)
==2366747==The signal is caused by a READ memory access.
==2366747==Hint: address points to the zero page.
#0 0x7fbaf17fa3dc in gf_isom_add_user_data (/home/ppg/fuzz/gpac/build_carpet/lib/libgpac.so.12+0x39a3dc)
#1 0x7fbaf1d5ba69 in mp4_mux_set_udta (/home/ppg/fuzz/gpac/build_carpet/lib/libgpac.so.12+0x8fba69)
#2 0x7fbaf1d55480 in mp4_mux_setup_pid (/home/ppg/fuzz/gpac/build_carpet/lib/libgpac.so.12+0x8f5480)
#3 0x7fbaf1b6c030 in gf_filter_pid_configure (/home/ppg/fuzz/gpac/build_carpet/lib/libgpac.so.12+0x70c030)
#4 0x7fbaf1b7aad6 in gf_filter_pid_connect_task (/home/ppg/fuzz/gpac/build_carpet/lib/libgpac.so.12+0x71aad6)
#5 0x7fbaf1ba5a94 in gf_fs_thread_proc (/home/ppg/fuzz/gpac/build_carpet/lib/libgpac.so.12+0x745a94)
#6 0x7fbaf1ba49a0 in gf_fs_run (/home/ppg/fuzz/gpac/build_carpet/lib/libgpac.so.12+0x7449a0)
#7 0x525413 in split_isomedia_file /home/ppg/fuz_carpet/gpac/applications/mp4box/fileimport.c:2364:6
#8 0x4eae0b in mp4box_main /home/ppg/fuz_carpet/gpac/applications/mp4box/mp4box.c:6551:7
#9 0x7fbaf10ee564 in __libc_start_main csu/../csu/libc-start.c:332:16
#10 0x42ad1d in _start (/home/ppg/fuzz/gpac/build_carpet/bin/MP4Box+0x42ad1d)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV (/home/ppg/fuzz_carpet/gpac/build_carpet/lib/libgpac.so.12+0x39a3dc) in gf_isom_add_user_data
==2366747==ABORTING
```
### Impact
This vulnerability is capable of crashing software, Bypass Protection Mechanism, Modify Memory, and possible remote execution.
### POC
[poc3.zip](https://github.com/gpac/gpac/files/11889469/poc3.zip)
| A SEGV in function split_isomedia_file_main at gpac/applications/mp4box/fileimport.c:2364:6 | https://api.github.com/repos/gpac/gpac/issues/2508/comments | 1 | 2023-06-28T03:30:01Z | 2023-06-28T06:45:36Z | https://github.com/gpac/gpac/issues/2508 | 1,778,110,898 | 2,508 |
[
"gpac",
"gpac"
] | Hello,I use the fuzzer(AFL) to fuzz binary gpac and got some crashes.
The following is the details.
Title:SEGV on unknown address 0x000000000000
### Description
A SEGV on unknown address 0x000000000000 has occurred in function mp4box_main gpac/applications/mp4box/mp4box.c:6239:7
when running program MP4Box, this can reproduce on the lattest commit.
### System && Software version info
```
$ ./MP4Box -version
MP4Box - GPAC version 2.3-DEV-rev389-g6ae306f5a-master
(c) 2000-2023 Telecom Paris distributed under LGPL v2.1+ - http://gpac.io
$uname -a
Linux ppg-X10DRi 5.11.0-49-generic #55-Ubuntu SMP Wed Jan 12 17:36:34 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
```
### Steps to reproduce
```
CFLAGS="-g -O0 -lpthread -fsanitize=address" ./configure
make -j
```
### Command&&Result
```
$./MP4Box -add poc2 -new /tmp/output.mp4 -dash 2000
[iso file] Unknown box type udt00 in parent moov
[iso file] Unknown box type udtd in parent trak
[iso file] Unknown box type els95 in parent edts
[iso file] Read Box type dtp (0x64747020) at position 10857 has size 0 but is not at root/file level. Forbidden, skipping end of parent box !
[iso file] Box "stsd" (start 10841) has 28 extra bytes
[iso file] Incomplete box mdat - start 11977 size 276821
[iso file] Incomplete file while reading for dump - aborting parsing
[iso file] Unknown box type udtd in parent trak
IsoMedia import 01 - track ID 201 - Video (size 176 x 144)
IsoMedia import 01 - track ID 65737 - media type "hint:rtp "
IsoMedia import 01 - track ID 101 - Audio (SR 11025 - 1 channels)
IsoMedia import 01 - track ID 65637 - media type "hint:00000000"
[iso file] Unknown box type udtd in parent trak
[Dasher] No template assigned, using $File$_dash$FS$$Number$
AddressSanitizer:DEADLYSIGNAL
=================================================================
==1167055==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7fd55ea473dc bp 0x60700000a6d0 sp 0x7ffe9234ef40 T0)
==1167055==The signal is caused by a READ memory access.
==1167055==Hint: address points to the zero page.
#0 0x7fd55ea473dc in gf_isom_add_user_data (/home/ppg/fuzz/gpac/build_carpet/lib/libgpac.so.12+0x39a3dc)
#1 0x7fd55efa8a69 in mp4_mux_set_udta (/home/ppg//gpac/build_carpet/lib/libgpac.so.12+0x8fba69)
#2 0x7fd55efa2480 in mp4_mux_setup_pid (/home/ppg//gpac/build_carpet/lib/libgpac.so.12+0x8f5480)
#3 0x7fd55edb9030 in gf_filter_pid_configure (/home/ppg//gpac/build_carpet/lib/libgpac.so.12+0x70c030)
#4 0x7fd55edc7ad6 in gf_filter_pid_connect_task (/home/ppg/fuzz/gpac/build_carpet/lib/libgpac.so.12+0x71aad6)
#5 0x7fd55edf2a94 in gf_fs_thread_proc (/home/ppg/fuzz/gpac/build_carpet/lib/libgpac.so.12+0x745a94)
#6 0x7fd55edf19a0 in gf_fs_run (/home/ppg/fuzz/gpac/build_carpet/lib/libgpac.so.12+0x7449a0)
#7 0x7fd55eaee47e in gf_dasher_process (/home/ppg/fuzz/gpac/build_carpet/lib/libgpac.so.12+0x44147e)
#8 0x4f3481 in do_dash /home/ppg/fuzz/gpac/applications/mp4box/mp4box.c:4825:15
#9 0x4e8ac6 in mp4box_main /home/ppg/fuzz/gpac/applications/mp4box/mp4box.c:6239:7
#10 0x7fd55e33b564 in __libc_start_main csu/../csu/libc-start.c:332:16
#11 0x42ad1d in _start (/home/ppg/fuzz/gpac/build_carpet/bin/MP4Box+0x42ad1d)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV (/home/ppg/fuzz_carpet/gpac/build_carpet/lib/libgpac.so.12+0x39a3dc) in gf_isom_add_user_data
==1167055==ABORTING
```
### Impact
This vulnerability is capable of crashing software, Bypass Protection Mechanism, Modify Memory, and possible remote execution.
### POC
[poc2.zip](https://github.com/gpac/gpac/files/11889221/poc2.zip)
| SEGV on unknown address 0x000000000000 | https://api.github.com/repos/gpac/gpac/issues/2507/comments | 1 | 2023-06-28T02:55:09Z | 2023-06-28T06:45:14Z | https://github.com/gpac/gpac/issues/2507 | 1,778,084,597 | 2,507 |
[
"gpac",
"gpac"
] | Hello,I use the fuzzer(AFL) to fuzz binary gpac and got some crashes.
The following is the details.
Title:SEGV on unknown address 0x000000000000
### Description
A SEGV on unknown address 0x000000000000 has occurred in function mp4box_main /gpac/applications/mp4box/mp4box.c:6786:7
when running program MP4Box, this can reproduce on the lattest commit.
### Software&&System version info
```
$ ./MP4Box -version
MP4Box - GPAC version 2.3-DEV-rev389-g6ae306f5a-master
(c) 2000-2023 Telecom Paris distributed under LGPL v2.1+ - http://gpac.io
$uname -a
Linux ppg-X10DRi 5.11.0-49-generic #55-Ubuntu SMP Wed Jan 12 17:36:34 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
```
### Steps to reproduce
```
CFLAGS="-g -O0 -lpthread -fsanitize=address" ./configure
make -j
```
### Command&&Result
```
$./MP4Box -add poc1 -new /tmp/output.mp4 -frag 5000
[iso file] Incomplete box mdat - start 11977 size 276821
[iso file] Incomplete file while reading for dump - aborting parsing
IsoMedia import 00 - track ID 201 - Video (size 176 x 144)
IsoMedia import 00 - track ID 65737 - media type "hint:rtp "
IsoMedia import 00 - track ID 101 - Audio (SR 11025 - 1 channels)
IsoMedia import 00 - track ID 65637 - media type "hint:rtp "
Fragmenting file (5.000 seconds fragments)
AddressSanitizer:DEADLYSIGNAL
=================================================================
==3203904==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7f9c110243dc bp 0x607000007090 sp 0x7ffc316eb230 T0)
==3203904==The signal is caused by a READ memory access.
==3203904==Hint: address points to the zero page.
#0 0x7f9c110243dc in gf_isom_add_user_data (/home/ppg/fuzz/gpac/build_carpet/lib/libgpac.so.12+0x39a3dc)
#1 0x7f9c11585a69 in mp4_mux_set_udta (/home/ppg/fuzz/gpac/build_carpet/lib/libgpac.so.12+0x8fba69)
#2 0x7f9c1157f480 in mp4_mux_setup_pid (/home/ppg/fuzz/gpac/build_carpet/lib/libgpac.so.12+0x8f5480)
#3 0x7f9c11396030 in gf_filter_pid_configure (/home/ppg/fuzz/gpac/build_carpet/lib/libgpac.so.12+0x70c030)
#4 0x7f9c113a4ad6 in gf_filter_pid_connect_task (/home/ppg/fuzzgpac/build_carpet/lib/libgpac.so.12+0x71aad6)
#5 0x7f9c113cfa94 in gf_fs_thread_proc (/home/ppg/fuzz/gpac/build_carpet/lib/libgpac.so.12+0x745a94)
#6 0x7f9c113ce9a0 in gf_fs_run (/home/ppg/fuzz/gpac/build_carpet/lib/libgpac.so.12+0x7449a0)
#7 0x7f9c110c5743 in gf_media_fragment_file (/home/ppg/fuzz/gpac/build_carpet/lib/libgpac.so.12+0x43b743)
#8 0x4ec3c6 in mp4box_main /home/ppg/fuzz/gpac/applications/mp4box/mp4box.c:6786:7
#9 0x7f9c10918564 in __libc_start_main csu/../csu/libc-start.c:332:16
#10 0x42ad1d in _start (/home/ppg/fuzz/gpac/build_carpet/bin/MP4Box+0x42ad1d)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV (/home/ppg/fuzz/gpac/build_carpet/lib/libgpac.so.12+0x39a3dc) in gf_isom_add_user_data
==3203904==ABORTING
```
### Impact
This vulnerability is capable of crashing software, Bypass Protection Mechanism, Modify Memory, and possible remote execution.
### POC
[poc1.zip](https://github.com/gpac/gpac/files/11889188/poc1.zip)
| SEGV on unknown address 0x000000000000 | https://api.github.com/repos/gpac/gpac/issues/2506/comments | 0 | 2023-06-28T02:46:05Z | 2023-06-28T06:44:53Z | https://github.com/gpac/gpac/issues/2506 | 1,778,078,464 | 2,506 |
[
"gpac",
"gpac"
] | Hello,I use the fuzzer(AFL) to fuzz binary gpac and got some crashes.
The following is the details.
## Title: SEGV on unknown address 0x000000012c29
**1. Description**
A SEGV on unknown address 0x000000012c29 has occurred in function dump_isom_scene /root/gpac/applications/mp4box/filedump.c:226:2
when running program MP4Box, this can reproduce on the lattest commit.
**2. Software version info**
```
fuzz@ubuntu:~/gpac2.1/gpac/bin/gcc$ MP4Box -version
MP4Box - GPAC version 2.3-DEV-rev381-g817a848f6-master
(c) 2000-2023 Telecom Paris distributed under LGPL v2.1+ - http://gpac.io
```
**3. System version info**
```
./uname -a
Linux ouc7 5.4.0-150-generic #167-Ubuntu SMP Mon May 15 17:35:05 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
```
**4. Command**
```
./MP4Box -bt poc1
```
**5. Result**
```
[iso file] Unknown box type 0000 in parent moov
[iso file] Unknown box type 0000 in parent moov
[iso file] Unknown box type 0000 in parent moov
[iso file] Unknown box type 0000 in parent moov
[iso file] Unknown box type 0000 in parent moov
[iso file] Unknown box type 0000 in parent moov
[iso file] Unknown box type 0000 in parent minf
[iso file] Missing DataInformationBox
[iso file] Unknown box type 0000 in parent moov
[iso file] Read Box type 0000 (0x30303030) at position 11542 has size 0 but is not at root/file level. Forbidden, skipping end of parent box !
[iso file] Box "moov" (start 20) has 806 extra bytes
[iso file] Unknown top-level box type 0000
[iso file] Incomplete box 0000 - start 12356 size 808424308
[iso file] Incomplete file while reading for dump - aborting parsing
[iso file] Unknown box type 0000 in parent moov
[iso file] Unknown box type 0000 in parent moov
[iso file] Unknown box type 0000 in parent moov
[iso file] Unknown box type 0000 in parent moov
[iso file] Unknown box type 0000 in parent moov
[iso file] Unknown box type 0000 in parent moov
[iso file] Unknown box type 0000 in parent minf
[iso file] Missing DataInformationBox
[iso file] Unknown box type 0000 in parent moov
[iso file] Read Box type 0000 (0x30303030) at position 11542 has size 0 but is not at root/file level. Forbidden, skipping end of parent box !
[iso file] Box "moov" (start 20) has 806 extra bytes
[iso file] Unknown top-level box type 0000
[iso file] Incomplete box 0000 - start 12356 size 808424308
[iso file] Incomplete file while reading for dump - aborting parsing
MPEG-4 LASeR Scene Parsing
[MP4 Loading] decoding sample 1 from track ID 8 failed
UndefinedBehaviorSanitizer:DEADLYSIGNAL
==3702327==ERROR: UndefinedBehaviorSanitizer: SEGV on unknown address 0x000000012c29 (pc 0x7f22677126f0 bp 0x7f226864c8a8 sp 0x7ffc03c79320 T3702327)
==3702327==The signal is caused by a READ memory access.
#0 0x7f22677126f0 in free (/lib/x86_64-linux-gnu/libc.so.6+0x9a6f0)
#1 0x7f2267c0106a in gf_svg_delete_attribute_value (/root/gpac/bin/gcc/libgpac.so.12+0x1eb06a)
#2 0x7f2267b60505 in gf_sg_command_del (/root/gpac/bin/gcc/libgpac.so.12+0x14a505)
#3 0x7f2267ea7fa3 in gf_sm_au_del (/root/gpac/bin/gcc/libgpac.so.12+0x491fa3)
#4 0x7f2267ea695f in gf_sm_del (/root/gpac/bin/gcc/libgpac.so.12+0x49095f)
#5 0x4504a0 in dump_isom_scene /root/gpac/applications/mp4box/filedump.c:226:2
#6 0x4478b0 in mp4box_main /root/gpac/applications/mp4box/mp4box.c:6461:7
#7 0x7f226769c082 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x24082)
#8 0x41304d in _start (/root/gpac/bin/gcc/MP4Box+0x41304d)
UndefinedBehaviorSanitizer can not provide additional info.
SUMMARY: UndefinedBehaviorSanitizer: SEGV (/lib/x86_64-linux-gnu/libc.so.6+0x9a6f0) in free
==3702327==ABORTING
```
**6. Impact**
This vulnerability is capable of crashing software, Bypass Protection Mechanism, Modify Memory, and possible remote execution.
**7. POC**
POC file
[poc1.zip](https://github.com/gpac/gpac/files/11879540/poc1.zip)
**Report of the Information Security Laboratory of Ocean University of China @OUC_ISLOUC @OUC_Blue_Whale** | SEGV on unknown address 0x000000012c29 | https://api.github.com/repos/gpac/gpac/issues/2505/comments | 0 | 2023-06-27T08:29:57Z | 2023-06-27T13:29:56Z | https://github.com/gpac/gpac/issues/2505 | 1,776,376,880 | 2,505 |
[
"gpac",
"gpac"
] | Does GPAC support RTP sender and RTP receiver functionality for VVC (H.266) payload of RTP? | Support for rtp streaming of vvc (H.266) | https://api.github.com/repos/gpac/gpac/issues/2504/comments | 1 | 2023-06-26T16:53:26Z | 2023-06-27T06:49:52Z | https://github.com/gpac/gpac/issues/2504 | 1,775,190,549 | 2,504 |
[
"gpac",
"gpac"
] | 1.Do you have an API that can tell me how long it takes to assemble a picture using HEVC tiles based on MPEG-DASH?
2.Can I switch the fs.http_max_bitrate limit during the process when using ABS? For example, can I switch from a limit of 7500 to 37500 after 20 seconds?
3.Is it possible to change the download queue for HEVC tiles based on MPEG-DASH to simultaneously download segments of the MPD? If so, how can I do this with a call in Python?
Thank you very much for patiently answering my questions
| I want to ask some questions about python api(ABS) | https://api.github.com/repos/gpac/gpac/issues/2502/comments | 3 | 2023-06-25T13:58:31Z | 2023-08-11T01:48:24Z | https://github.com/gpac/gpac/issues/2502 | 1,773,304,390 | 2,502 |
[
"gpac",
"gpac"
] | Hello, I am trying to configure some Atmos files so they can play properly on my iPhone. Figured out what was causing the issue was the Complexity Index in the Atmos mediainfo was labeled "Not Present/16" instead of just "16." Tested two different files with MP4Box and one file that didn't say "Not Present" was recognized as ATMOS while the other that listed it didn't. How can I change the complexity index to get rid of "Not Present?"
| Can I change metadata of an Atmos file, specifically the Complexity index. | https://api.github.com/repos/gpac/gpac/issues/2500/comments | 13 | 2023-06-25T03:51:04Z | 2023-06-27T17:12:27Z | https://github.com/gpac/gpac/issues/2500 | 1,773,039,959 | 2,500 |
[
"gpac",
"gpac"
] | 1.I want to test my own Adaptive Bitrate Streaming (ABS). Is fs.http_max_bitrate used to limit the download rate? I set fs.http_max_bitrate=700000, but it did not reflect on stats.total_rate and stats.download_rate. What should I do?
2.For most cases, is the switching of video quality based on stats.total_rate?
| I want to ask some questions about python api(ABS) | https://api.github.com/repos/gpac/gpac/issues/2498/comments | 1 | 2023-06-23T07:40:25Z | 2023-06-23T11:05:59Z | https://github.com/gpac/gpac/issues/2498 | 1,770,979,868 | 2,498 |
[
"gpac",
"gpac"
] | **If you're having trouble building gpac after updating past fb3b9788c1a47c please read the following.**
You can report build issues here if the following solutions aren't working for you.
First please read the commit message from commit fb3b9788c1a47c
If you can't or don't want to use the deps repos and the wiki guides, you can also restore the removed files with either of these methods:
* with git 2.23+
```
git restore -s bbb652bc477ae257850ff731717b4c3625c3f634 extra_lib/include
```
* alternatively, you can download the zip from the latest release source at https://github.com/gpac/gpac/archive/refs/tags/v2.2.1.zip and extract the `extra_lib/include` directory from there | build issues after removal of extra_lib/include | https://api.github.com/repos/gpac/gpac/issues/2497/comments | 0 | 2023-06-21T13:08:28Z | 2024-04-09T14:40:26Z | https://github.com/gpac/gpac/issues/2497 | 1,767,570,269 | 2,497 |
[
"gpac",
"gpac"
] | I'm trying to use this framework for a university project. I have generated the mpd correctly and I have left the file on an HTTP server
But when I use the command gpac -gui https://localhost/TFG/manifest.mpd to start playback I get the error "cannot find filter for service: Feature Not Supported"
I would appreciate if someone can tell me what this error is due to.
| Cannot find filter for service: Feature Not Supported | https://api.github.com/repos/gpac/gpac/issues/2496/comments | 27 | 2023-06-20T21:00:26Z | 2023-06-27T07:41:43Z | https://github.com/gpac/gpac/issues/2496 | 1,766,143,219 | 2,496 |
[
"gpac",
"gpac"
] | Hi,
I want to detect individual frames from the GPAC's tile-encoded mp4 output bitstream. I could not get any suitable command argument for it. Can I use my custom markers to mark frame start and end bytes like the way we add `m4cc` markers at the end of each fragment? | How to know frame boundaries from GPAC bitstream? | https://api.github.com/repos/gpac/gpac/issues/2495/comments | 15 | 2023-06-19T11:09:39Z | 2023-06-21T13:26:57Z | https://github.com/gpac/gpac/issues/2495 | 1,763,308,908 | 2,495 |
[
"gpac",
"gpac"
] | Hi, I want to capture and encode only N frames (say 10). I'm using the below command
```
gpac -i video://:fmt=x11grab:framerate=30:video_size=1280x720:dev=: enc:c=libx265 reframer:frames=1,2,3,4,5,6,7,8,9,10 -o out.mp4
```
This saves only 10 frames, but the command keeps running on the terminal. Ideally, it should stop once 10 frames are encoded and saved. I also tried with `xs` and `xe` options, but they also didn't help. The command works absolutely fine with a file as input but it isn't working with screen capture. How to do this? | How to encode N frames only? | https://api.github.com/repos/gpac/gpac/issues/2494/comments | 5 | 2023-06-14T10:46:14Z | 2023-06-17T10:10:49Z | https://github.com/gpac/gpac/issues/2494 | 1,756,594,539 | 2,494 |
[
"gpac",
"gpac"
] | [POC](https://gitee.com/FUNctionMain/mypoc/raw/master/poc)
```
Description
Heap-buffer-overflow in MP4Box.
Version
MP4Box - GPAC version 2.3-DEV-revrelease
(c) 2000-2023 Telecom Paris distributed under LGPL v2.1+ - http://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
Proof of Concept
./MP4Box -info ./poc.mp3
[poc](https://gitee.com/FUNctionMain/mypoc/raw/master/poc) is here!
ASAN
information reported by sanitizer
==32961==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x602000001bb8 at pc 0x7fe8c604bcc3 bp 0x7ffc04e06160 sp 0x7ffc04e06150
WRITE of size 1 at 0x602000001bb8 thread T0
#0 0x7fe8c604bcc2 in id3dmx_flush filters/reframe_mp3.c:274
#1 0x7fe8c604de18 in mp3_dmx_flush_id3 filters/reframe_mp3.c:344
#2 0x7fe8c604de18 in mp3_dmx_check_pid filters/reframe_mp3.c:417
#3 0x7fe8c604de18 in mp3_dmx_process filters/reframe_mp3.c:657
#4 0x7fe8c5bee15e in gf_filter_process_task filter_core/filter.c:2901
#5 0x7fe8c5badd1a in gf_fs_thread_proc filter_core/filter_session.c:1962
#6 0x7fe8c5bbb686 in gf_fs_run filter_core/filter_session.c:2264
#7 0x7fe8c55ea3c6 in gf_media_import media_tools/media_import.c:1239
#8 0x55a1aa648da1 in convert_file_info /home/functionmain/Desktop/gpac-master/applications/mp4box/fileimport.c:130
#9 0x55a1aa6123a7 in mp4box_main /home/functionmain/Desktop/gpac-master/applications/mp4box/mp4box.c:6371
#10 0x7fe8c2814082 in __libc_start_main ../csu/libc-start.c:308
#11 0x55a1aa5eaebd in _start (/home/functionmain/Desktop/gpac-master/bin/gcc/MP4Box+0xa4ebd)
0x602000001bb8 is located 0 bytes to the right of 8-byte region [0x602000001bb0,0x602000001bb8)
allocated by thread T0 here:
#0 0x7fe8c87e2c3e in __interceptor_realloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cc:163
#1 0x7fe8c604b37a in id3dmx_flush filters/reframe_mp3.c:269
#2 0x7fe8c604de18 in mp3_dmx_flush_id3 filters/reframe_mp3.c:344
#3 0x7fe8c604de18 in mp3_dmx_check_pid filters/reframe_mp3.c:417
#4 0x7fe8c604de18 in mp3_dmx_process filters/reframe_mp3.c:657
#5 0x7fe8c5bee15e in gf_filter_process_task filter_core/filter.c:2901
#6 0x7fe8c5badd1a in gf_fs_thread_proc filter_core/filter_session.c:1962
#7 0x7fe8c5bbb686 in gf_fs_run filter_core/filter_session.c:2264
#8 0x7fe8c55ea3c6 in gf_media_import media_tools/media_import.c:1239
#9 0x55a1aa648da1 in convert_file_info /home/functionmain/Desktop/gpac-master/applications/mp4box/fileimport.c:130
#10 0x55a1aa6123a7 in mp4box_main /home/functionmain/Desktop/gpac-master/applications/mp4box/mp4box.c:6371
#11 0x7fe8c2814082 in __libc_start_main ../csu/libc-start.c:308
SUMMARY: AddressSanitizer: heap-buffer-overflow filters/reframe_mp3.c:274 in id3dmx_flush
Shadow bytes around the buggy address:
0x0c047fff8320: fa fa fd fd fa fa 06 fa fa fa 00 01 fa fa 00 00
0x0c047fff8330: fa fa 00 00 fa fa 00 00 fa fa 00 00 fa fa 00 00
0x0c047fff8340: fa fa 00 00 fa fa 00 00 fa fa 00 00 fa fa 00 00
0x0c047fff8350: fa fa 00 00 fa fa 00 00 fa fa 00 00 fa fa 00 00
0x0c047fff8360: fa fa fd fa fa fa 00 00 fa fa 00 00 fa fa fd fa
=>0x0c047fff8370: fa fa 06 fa fa fa 00[fa]fa fa 05 fa fa fa 03 fa
0x0c047fff8380: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8390: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff83a0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff83b0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff83c0: 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
Shadow gap: cc
==32961==ABORTING
Impact
This is capable of causing crashes.
References
[poc](https://gitee.com/FUNctionMain/mypoc/raw/master/poc)
Impact
This is capable of causing crashes.
Occurrences
reframe_mp3.c L274
This vulnerability is capable of making the MP4Box crash .Additionally, the attacker could use this vulnerability to cause a denial of service (DoS) by crashing the application or making it unresponsive. This vulnerability poses a significant risk to the confidentiality, integrity, and availability of systems running the affected software.
```
| heap-buffer-overflow in function id3dmx_flush filters/reframe_mp3.c | https://api.github.com/repos/gpac/gpac/issues/2493/comments | 0 | 2023-06-14T09:39:20Z | 2023-06-15T09:28:16Z | https://github.com/gpac/gpac/issues/2493 | 1,756,476,073 | 2,493 |
[
"gpac",
"gpac"
] | Hi @aureliendavid, using https://github.com/gpac/gpac/issues/1625#issuecomment-1581185023, I have compiled GPAC with Kvazaar support. I can now use Kvazaar directly from GPAC (v2.3.0 with the latest FFmpeg). But when trying to use the fragmented mode like this
```
gpac -i video://:fmt=x11grab:framerate=30:video_size=1280x720:dev=: --kvazaar-params=tiles=4x4,slices=tiles,mv-constraint=frametilemargin,input-fps=30,input-res=1280x720 enc:c=libkvazaar tilesplit @ -o named_pipe1:ext=mp4:frag
```
It throws a warning as below
```
[MP4Mux] Cannot add track to already finalized movie in fragmented file, will request a new muxer for that track
No filter chain found for PID video1_tile1 in filter mp4mx to any loaded filters - NOT CONNECTED
```
The generated output file has only one stream, which should be 17 for a 4x4 tiled video, right?
I'm not able to use fragmented mode properly.
| Fragmented mode gives error in piped output | https://api.github.com/repos/gpac/gpac/issues/2492/comments | 2 | 2023-06-14T09:26:39Z | 2023-06-17T10:19:29Z | https://github.com/gpac/gpac/issues/2492 | 1,756,454,308 | 2,492 |
[
"gpac",
"gpac"
] | The box name of "rinf" should be “Restricted scheme information box”, but now it is "ProtectionSchemeInfoBox". Could you please verify and fix it?
| The box name of "rinf" is wrong | https://api.github.com/repos/gpac/gpac/issues/2491/comments | 0 | 2023-06-07T02:24:52Z | 2023-06-07T07:48:13Z | https://github.com/gpac/gpac/issues/2491 | 1,744,915,693 | 2,491 |
[
"gpac",
"gpac"
] | Hi,
I'm trying to encode a continuous HEVC byte stream from Kvazaar, but not sure why GPAC keeps the encoded output byte stream in its buffer. The whole stream is dumped into a file only when I break the pipeline.
I've looked into different issues and even checked the documentation to fix. I've tried all the options such as --no-cache, --no-block, --no-reservoir, --no-graph-cache, etc. | GPAC 2.0 caches input stream | https://api.github.com/repos/gpac/gpac/issues/2490/comments | 9 | 2023-06-06T11:39:29Z | 2023-06-07T11:54:46Z | https://github.com/gpac/gpac/issues/2490 | 1,743,681,826 | 2,490 |
[
"gpac",
"gpac"
] | null | mp4box.exe can not phase Restricted Video Sample Entry Box("resv") | https://api.github.com/repos/gpac/gpac/issues/2489/comments | 3 | 2023-06-04T15:20:42Z | 2023-06-05T15:05:15Z | https://github.com/gpac/gpac/issues/2489 | 1,740,429,905 | 2,489 |
[
"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 http://gpac.io/downloads/gpac-nightly-builds/
- [x ] I give enough information for contributors to reproduce my issue (meaningful title, github labels, platform and compiler, command-line ...). I can share files anonymously with this dropbox: https://www.mediafire.com/filedrop/filedrop_hosted.php?drop=eec9e058a9486fe4e99c33021481d9e1826ca9dbc242a6cfaab0fe95da5e5d95
I found some mp4box converted file audio is missing on some players such as vlc ,windows media player and adobe premier 2023
detail and files are here
https://code.videolan.org/videolan/vlc/-/issues/27328
convert cmd is
MP4Box -dash 30000 -profile onDemand mp4box.mp4 -out dash.mpd --dual | no audio sometimes in fragment mp4 | https://api.github.com/repos/gpac/gpac/issues/2488/comments | 12 | 2023-05-31T06:25:29Z | 2023-06-27T03:00:03Z | https://github.com/gpac/gpac/issues/2488 | 1,733,472,693 | 2,488 |
[
"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 http://gpac.io/downloads/gpac-nightly-builds/
- [ ] I give enough information for contributors to reproduce my issue (meaningful title, github labels, platform and compiler, command-line ...). I can share files anonymously with this dropbox: https://www.mediafire.com/filedrop/filedrop_hosted.php?drop=eec9e058a9486fe4e99c33021481d9e1826ca9dbc242a6cfaab0fe95da5e5d95
Detailed guidelines: http://gpac.io/2013/07/16/how-to-file-a-bug-properly/
| How GPAC shards the live stream after svt_hevc tiles encoding, and ensures that the track blocks of the DASH result are consistent with the number of tiles | https://api.github.com/repos/gpac/gpac/issues/2487/comments | 2 | 2023-05-31T02:53:31Z | 2023-06-01T08:04:25Z | https://github.com/gpac/gpac/issues/2487 | 1,733,301,521 | 2,487 |
[
"gpac",
"gpac"
] | mp4box v2.3-DEV-rev301
I have faced very strange bug remuxing files from Canon C300.
```
mp4box -add video.h264 -add audio1.wav -new nofps_ok.mov
mp4box -add "video.h264:fps=25" -add audio1.wav -new fps25_ok.mp4
mp4box -add "video.h264:fps=25" -new fps25_noaudio_ok.mov
mp4box -add "video.h264:fps=25:dur=3" -add "audio1.wav:dur=3" -new fps25_3sec_ok.mov
mp4box -add "video.h264:fps=25" -add audio1.wav -new fps25_bad.mov
```
The file fps25_bad.mov is unplayable.
It is stuck in MediaPlayerClassic (on Windows) at opening. It can be played (video and audio) after seeking to 1 sec.
VLC can playback audio only and 1 static frame.
mp4 with the same parameters is ok.
mov without audio is ok.
mov without fps is ok.
mov 1 sec shorten is ok.
I have no idea what is wrong. Please investigate.
Samples:
http://slydiman.me/ffmpeg/unk/video.h264
http://slydiman.me/ffmpeg/unk/audio1.wav
http://slydiman.me/ffmpeg/unk/fps25_bad.mov | mp4box produces unplayable video at strange conditions | https://api.github.com/repos/gpac/gpac/issues/2486/comments | 1 | 2023-05-30T19:03:40Z | 2023-06-01T07:32:14Z | https://github.com/gpac/gpac/issues/2486 | 1,732,814,949 | 2,486 |
[
"gpac",
"gpac"
] | [POC](https://drive.google.com/file/d/1JBLFTJQSPV93FHWfxDhtHPXQfq8ukjY2)
```
Environment
Distributor ID: Debian
Description: Debian GNU/Linux bookworm/sid
Version
I checked against the latest release as of 05/29/23 the current master branch at commit 4f810869b06b5d7b0cb73d166864dfb4b1e900f6 .
Description
This AddressSanitizer output is indicating a read on an unknown address 0x8. This exception occurred in the function dasher_configure_pid at line 1418 in the file dasher.c. This root cause of this error is that the function call to gf_odf_avc_cfg_read on the line line 1418 just before the call to gf_list_get can return 0/NULL. This value is set to the variable avccfg and is then dereferenced like this:
avccfg->sequenceParameterSets
The fix is to properly check the return value whenever gf_odf_avc_cfg_read is called, or change said function to exit cleanly with an error if it is fatal.
GF_AVCConfig* avccfg = gf_odf_avc_cfg_read(dsi->value.data.ptr, dsi->value.data.size);
//The provided testcase causes avccfg to equal 0.
GF_NALUFFParam *sl = (GF_NALUFFParam *)gf_list_get(avccfg->sequenceParameterSets, 0); // the deref that causes the asan output is here
POC
./MP4Box -dash 1000 ./POC3_config4
ASAN
./bin/gcc/MP4Box -dash 1000 ../d_test_min
[BS] Attempt to overread bitstream
[Core] exp-golomb read failed, not enough bits in bitstream !
[AVC|H264] Error parsing NAL unit type 13
[Dasher] No template assigned, using $File$_dash$FS$$Number$
[Dasher] No bitrate property assigned to PID d_test_min, computing from bitstream
[Dasher] No bitrate property assigned to PID d_test_min, computing from bitstream
[AVC] Wrong param set size 1
AddressSanitizer:DEADLYSIGNAL
=================================================================
==934039==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000008 (pc 0x7ffff6de6190 bp 0x7fffffff4fb0 sp 0x7ffffffc4ae0 T0)
==934039==The signal is caused by a READ memory access.
==934039==Hint: address points to the zero page.
#0 0x7ffff6de6190 in dasher_configure_pid /path/to/gpac/src/filters/dasher.c:1418:64
#1 0x7ffff6cd87d5 in gf_filter_pid_configure /path/to/gpac/src/filter_core/filter_pid.c:860:6
#2 0x7ffff6d061b3 in filter_pck_check_prop_change /path/to/gpac/src/filter_core/filter_pid.c:6157:9
#3 0x7ffff6cdd0b8 in gf_filter_pid_get_packet /path/to/gpac/src/filter_core/filter_pid.c:6206:6
#4 0x7ffff6e1e08a in dasher_switch_period /path/to/gpac/src/filters/dasher.c:6111:3
#5 0x7ffff6ddf178 in dasher_process /path/to/gpac/src/filters/dasher.c:9490:6
#6 0x7ffff6d7bae5 in gf_filter_process_task /path/to/gpac/src/filter_core/filter.c:2894:7
#7 0x7ffff6d4830c in gf_fs_thread_proc /path/to/gpac/src/filter_core/filter_session.c:1962:3
#8 0x7ffff6d46aff in gf_fs_run /path/to/gpac/src/filter_core/filter_session.c:2264:3
#9 0x7ffff6607cfa in gf_dasher_process /path/to/gpac/src/media_tools/dash_segmenter.c:1236:6
#10 0x5555556c161c in do_dash /path/to/gpac/applications/mp4box/mp4box.c:4825:15
#11 0x5555556b2aae in mp4box_main /path/to/gpac/applications/mp4box/mp4box.c:6236:7
#12 0x7ffff5846189 in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16
#13 0x7ffff5846244 in __libc_start_main csu/../csu/libc-start.c:381:3
#14 0x5555555dad50 in _start (/path/to/gpac/bin/gcc/MP4Box+0x86d50) (BuildId: 4f810869b06b5d7b0cb73d166864dfb4b1e900f6)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /path/to/gpac/src/filters/dasher.c:1418:64 in dasher_configure_pid
==934039==ABORTING
Testcase crashes:
https://github.com/gpac/gpac/blob/4b28f33967d63c1039f31efd0bcf04a35894ff67/src/filters/dasher.c#L1417-L1418
Similar code sites:
https://github.com/gpac/gpac/blob/4b28f33967d63c1039f31efd0bcf04a35894ff67/src/filters/mux_isom.c#L2561-L2565
https://github.com/gpac/gpac/blob/4b28f33967d63c1039f31efd0bcf04a35894ff67/src/filters/dec_vtb.c#L1096-L1097
https://github.com/gpac/gpac/blob/4b28f33967d63c1039f31efd0bcf04a35894ff67/src/filters/dec_mediacodec.c#L665-L666
Impact
This can cause this program or programs using this library to crash or experience undefined behavior.
Occurrences
dec_vtb.c L1096-L1097
Expected same behavior from unchecked return. No testcase provided to verify.
dasher.c L1417-L1418
This this the line that my fuzzer crashed on that caused the ASAN output
mux_isom.c L2561-L2565
Expected same behavior from unchecked return. No testcase provided to verify.
dec_mediacodec.c L665-L666
Expected same behavior from unchecked return. No testcase provided to verify.
``` | OOB read from unchecked return | https://api.github.com/repos/gpac/gpac/issues/2485/comments | 0 | 2023-05-30T17:06:51Z | 2023-05-31T12:12:28Z | https://github.com/gpac/gpac/issues/2485 | 1,732,652,910 | 2,485 |
[
"gpac",
"gpac"
] | So, I was experimenting and decided to read a random .m3u8 file from the ones I specified to generate, and I caught something really strange...
```
#EXTM3U
#EXT-X-TARGETDURATION:2
#EXT-X-VERSION:3
#EXT-X-MEDIA-SEQUENCE:1351
#EXT-X-SERVER-CONTROL:PART-HOLD-BACK=4.29492e+08
#EXT-X-PART-INF:PART-TARGET=1.43164e+08
#EXT-X-INDEPENDENT-SEGMENTS
#EXT-X-PROGRAM-DATE-TIME:2023-05-30T09:39:07.933Z
#EXT-X-PART:DURATION=0.5,URI="'index_0001351'_track1_.ts.1",INDEPENDENT=YES
#EXT-X-PART:DURATION=0.5,URI="'index_0001351'_track1_.ts.2",INDEPENDENT=YES
#EXT-X-PART:DURATION=0.5,URI="'index_0001351'_track1_.ts.3",INDEPENDENT=YES
#EXT-X-PART:DURATION=0.5,URI="'index_0001351'_track1_.ts.4",INDEPENDENT=YES
#EXTINF:2,
'index_0001351'_track1_.ts
#EXT-X-PART:DURATION=0.5,URI="'index_0001352'_track1_.ts.1",INDEPENDENT=YES
#EXT-X-PRELOAD-HINT:TYPE=PART,URI="'index_0001352'_track1_.ts.2"
#EXT-X-RENDITION-REPORT:URI="index_1.m3u8",LAST-MSN=2480,LAST-PART=3
```
Some of the values are extraordinary large, especially for specified values of 2s for segments and 0.5s for parts...
**#EXT-X-SERVER-CONTROL:PART-HOLD-BACK=4.29492e+08
#EXT-X-PART-INF:PART-TARGET=1.43164e+08**
I really do not believe that this is supposed to happen!
- Why is this happening?
- Is this a problem?
- How can I solve it? | Incredibly large values of LL-HLS segments/parts | https://api.github.com/repos/gpac/gpac/issues/2484/comments | 4 | 2023-05-30T09:50:03Z | 2024-05-31T14:45:24Z | https://github.com/gpac/gpac/issues/2484 | 1,731,912,062 | 2,484 |
[
"gpac",
"gpac"
] | When generating multiple Low Latency HLS (LL-HLS) manifest files of different qualities from an ongoing RTMP stream within a Kubernetes (K8s) pod, several issues arise.
Locally, the LL-HLS files play fine, with minor audio synchronization and multiple audio playback issues. However, the main problem occurs when attempting to scale the stream through a Content Delivery Network (CDN), causing the playback of the stream to freeze.
Here are some cases I have tried:
- Locally:
- LL-HLS files play fine, but encounter occasional audio synchronization and multiple audio playback issues.
- When utilizing Ngrok or an Nginx web server:
- Playback of LL-HLS files is smooth, but audio errors occur.
In both the above cases, the desired delay of 4-6 seconds was achieved successfully.
- Within a Docker container:
- The same issues experienced in the K8s environment persist.
- LL-HLS files exhibit freezing playback when scaled through a CDN.
My intention is to produce the LL-HLS stream from within a K8s pod and distribute it through a CDN. Is that possible?
Has anyone faced this sort of issues?
I would really appreciate your help!
Thank you. | LL-HLS Playback freezes when scaling stream through CDN | https://api.github.com/repos/gpac/gpac/issues/2483/comments | 1 | 2023-05-29T16:29:49Z | 2023-06-07T09:23:03Z | https://github.com/gpac/gpac/issues/2483 | 1,731,013,387 | 2,483 |
[
"gpac",
"gpac"
] | Is there any way to send a fragment as an stdin, and get GPAC to return the encrypted fragment?
And then, provide another, and that way getting GPAC to work inside a pipeline? | Input fragment by fragment by submitting them through a fifo? | https://api.github.com/repos/gpac/gpac/issues/2482/comments | 76 | 2023-05-29T00:16:59Z | 2023-08-31T17:00:29Z | https://github.com/gpac/gpac/issues/2482 | 1,729,773,540 | 2,482 |
[
"gpac",
"gpac"
] | Is there a way to remove different tiles for each frame or segment? For example, if I have a 3x3 tiled video, can tile 3 from 1st frame and tile 4 from 2nd frame be removed?
| Remove different tiles for each frame | https://api.github.com/repos/gpac/gpac/issues/2481/comments | 1 | 2023-05-28T08:43:22Z | 2023-05-31T12:16:02Z | https://github.com/gpac/gpac/issues/2481 | 1,729,309,528 | 2,481 |
[
"gpac",
"gpac"
] | [POC](https://github.com/Suica523/POC/raw/main/gpac_null_ptr_poc)
```
Description
NULL Pointer Dereference In utils/xml_parser.c:963
Environment
Description: Ubuntu 20.04 LTS
Version
MP4Box - GPAC version 2.3-DEV-rev293-g56eed04c2-master
(c) 2000-2023 Telecom Paris distributed under LGPL v2.1+ - http://gpac.io
MINI build (encoders, decoders, audio and video output disabled)
Please cite our work in your research:
GPAC Filters: https://doi.org/10.1145/3339825.3394929
GPAC: https://doi.org/10.1145/1291233.1291452
Build
sudo CC=gcc CXX=g++ CFLAGS="-fsanitize=address -static-libasan" CXXFLAGS="-fsanitize=address -static-libasan" LDFLAGS="-fsanitize=address -static-libasan" ./configure && sudo make
Proof of Concept
./MP4Box -bin ./gpac_null_ptr_poc
ASAN
./MP4Box -bin ./gpac_null_ptr_poc
AddressSanitizer:DEADLYSIGNAL
=================================================================
==1568303==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7f8c0e58e6e5 bp 0x7ffcbc50b160 sp 0x7ffcbc50a8d8 T0)
==1568303==The signal is caused by a READ memory access.
==1568303==Hint: address points to the zero page.
#0 0x7f8c0e58e6e4 (/lib/x86_64-linux-gnu/libc.so.6+0x1886e4)
#1 0x55eab7ceabdb in __interceptor_strlen.part.0 (/home/hack/fuzz/asan_bin/bin/MP4Box+0x62bdb)
#2 0x7f8c0e879735 in gf_xml_sax_parse_intern (../lib/libgpac.so.12+0xcc735)
#3 0x7f8c0e879b94 in gf_xml_sax_parse (../lib/libgpac.so.12+0xccb94)
#4 0x7f8c0e879c32 in xml_sax_read_file.part.0 (../lib/libgpac.so.12+0xccc32)
#5 0x7f8c0e879f26 in gf_xml_sax_parse_file (../lib/libgpac.so.12+0xccf26)
#6 0x7f8c0e87af62 in gf_xml_dom_parse (../lib/libgpac.so.12+0xcdf62)
#7 0x55eab7dd34f4 in xml_bs_to_bin (/home/hack/fuzz/asan_bin/bin/MP4Box+0x14b4f4)
#8 0x55eab7de37cc in mp4box_main (/home/hack/fuzz/asan_bin/bin/MP4Box+0x15b7cc)
#9 0x7f8c0e42a082 in __libc_start_main ../csu/libc-start.c:308
#10 0x55eab7ca5e1d in _start (/home/hack/fuzz/asan_bin/bin/MP4Box+0x1de1d)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV (/lib/x86_64-linux-gnu/libc.so.6+0x1886e4)
==1568303==ABORTING
Impact
This vulnerability is capable of making the MP4Box crash, An attacker who can successfully exploit this vulnerability could potentially execute arbitrary code in the context of the application, leading to a compromise of the system where the vulnerable software is installed. Additionally, the attacker could use this vulnerability to cause a denial of service (DoS) by crashing the application or making it unresponsive. This vulnerability poses a significant risk to the confidentiality, integrity, and availability of systems running the affected software.
Occurrences
xml_parser.c L971
``` | NULL Pointer Dereference in function xml_sax_append_string | https://api.github.com/repos/gpac/gpac/issues/2480/comments | 0 | 2023-05-27T10:18:16Z | 2023-05-31T12:12:27Z | https://github.com/gpac/gpac/issues/2480 | 1,728,631,651 | 2,480 |
[
"gpac",
"gpac"
] | For local mp4 files, tile dash fragmentation has been successful, related commands are as follows (internal svt-hevc encoder is used)
1. ffmpeg -y -i E:\video\nature_5s.mp4 -vf scale=7680:3840,setsar=1:1 E:\video\324_dest\nature_5s_hd.yuv
2. SvtHevcEncApp -i E:\video\324_dest\nature_5s_hd.yuv -irefresh-type 0 -fps 30 -tbr 62914560 -intra-period 4 -vid-info 1 -rc 1 -profile 2 -level 0 -tier 0 -umv 0 -tile_slice_mode 1 -w 7680 -h 3840 -tile_row_cnt 12 -tile_col_cnt 12 -pred-struct 0 -b E:\video\324_dest\nature_5s_hd.hevc
3. MP4Box -add E:\video\324_dest\nature_5s_hd.hevc:split_tiles:timescale=30000 -new E:\video\324_dest\nature_5s_hd.mp4
4. MP4Box -dash 1000 -frag 1000 -rap -frag-rap -profile live E:\video\324_dest\nature_5s_hd.mp4 -out E:\video\324_dest\nature_5s_hd.mpd
For the rtsp live stream, the push command is as follows, (internal svt-hevc encoder is used) ,Locally verify that the push stream is OK and can be played
ffmpeg -re -stream_loop -1 -i /home/jinpengtao/desktop/8k-30s.mp4 -c:v libsvt_hevc -tile_slice_mode 1 -tile_row_cnt 12 -tile_col_cnt 12 -f rtsp -rtsp_transport tcp rtsp://192.168.1.104/live/test
How to use MP4Box to tile dash fragmentation of this stream rtsp://192.168.1.104/live/test , preferably give an example command, thank you very much | How to use MP4Box to tile dash fragmentation of live stream? Can you give an example of command? Thank you very much | https://api.github.com/repos/gpac/gpac/issues/2479/comments | 1 | 2023-05-26T02:47:29Z | 2023-05-26T12:52:47Z | https://github.com/gpac/gpac/issues/2479 | 1,726,808,295 | 2,479 |
[
"gpac",
"gpac"
] | I have a tool that creates a series of 1 sec webm files (with Alpha information in the BlockAdditional element of each packet). Is it possible to create a Dash playlist, using MP4Box or gpac as follows?
- the segments are played in a sequence
- the video is not transcoded
- the alpha channel is preserved
I tried a variety of commands like:
```
MP4Box -dash 10000 /alpha/video_0000.webm:Period=0 /alpha/video_0001.webm:period=1 --muxtype=webm
```
This gets close, but it transcode to MP4. I also get an error saying:
```
Arg muxtype set but not used
```
I'm on Ubuntu 20. I installed gpac and mp4box with
```
apt-get update && apt-get install -y --no-install-recommends libjpeg62 gpac
wget https://download.tsi.telecom-paristech.fr/gpac/release/2.2.1/gpac_2.2.1-rev0-gb34e3851-release-2.2_amd64.deb
dpkg -i gpac_2.2.1-rev0-gb34e3851-release-2.2_amd64.deb
```
Thanks for helping. | Is it possible to combine a series of WebM files into a Dash MPD playlist? | https://api.github.com/repos/gpac/gpac/issues/2478/comments | 3 | 2023-05-25T14:25:46Z | 2023-05-26T12:21:28Z | https://github.com/gpac/gpac/issues/2478 | 1,725,937,264 | 2,478 |
[
"gpac",
"gpac"
] | [POC File](https://drive.google.com/file/d/1yA4QV_zhDq0nv_OB7_b2yfBegbnGL4Vq)
```
Environment
Distributor ID: Debian
Description: Debian GNU/Linux bookworm/sid
Release: n/a
Codename: bookworm
Version
I checked against the latest release as of 05/18/23 the current master branch at commit a6ae93532ea5615c876c81a6580badbfa01d4383 .
Description
This AddressSanitizer output is indicating that floating point exception occurred in the function dasher_mark_segment_start at line 7588 in the file dasher.c. This error is a divide by zero error ds->timescale is not properly checked and can be zero, leading to this FPE error.
//ds->timescale is zero here with the provided testcase
ds->last_min_segment_start_time /= ds->timescale;
POC
AFL_MAP_SIZE=260000 ./MP4Box -dash 1000 ./crash_file1
ASAN
[avc-h264] Unknown aspect_ratio_idc: your video may have a wrong aspect ratio. Contact the GPAC team!
[avc-h264] Unknown aspect_ratio_idc: your video may have a wrong aspect ratio. Contact the GPAC team!
[AVC|H264] Error parsing NAL unit type 7
[AVC|H264] Error parsing Sequence Param Set
[AVC|H264] Possible Variable Frame Rate: VUI "fixed_frame_rate_flag" absent
[avc-h264] Unknown aspect_ratio_idc: your video may have a wrong aspect ratio. Contact the GPAC team!
[avc-h264] Unknown aspect_ratio_idc: your video may have a wrong aspect ratio. Contact the GPAC team!
[avc-h264] Unknown aspect_ratio_idc: your video may have a wrong aspect ratio. Contact the GPAC team!
[avc-h264] Unknown aspect_ratio_idc: your video may have a wrong aspect ratio. Contact the GPAC team!
[avc-h264] Unknown aspect_ratio_idc: your video may have a wrong aspect ratio. Contact the GPAC team!
[avc-h264] Unknown aspect_ratio_idc: your video may have a wrong aspect ratio. Contact the GPAC team!
[avc-h264] Unknown aspect_ratio_idc: your video may have a wrong aspect ratio. Contact the GPAC team!
[avc-h264] Unknown aspect_ratio_idc: your video may have a wrong aspect ratio. Contact the GPAC team!
[avc-h264] Unknown aspect_ratio_idc: your video may have a wrong aspect ratio. Contact the GPAC team!
[avc-h264] Unknown aspect_ratio_idc: your video may have a wrong aspect ratio. Contact the GPAC team!
[avc-h264] Unknown aspect_ratio_idc: your video may have a wrong aspect ratio. Contact the GPAC team!
[avc-h264] Unknown aspect_ratio_idc: your video may have a wrong aspect ratio. Contact the GPAC team!
[avc-h264] Unknown aspect_ratio_idc: your video may have a wrong aspect ratio. Contact the GPAC team!
[avc-h264] SEI user message type 2035 size error (1658 but 16 remain), keeping full SEI untouched
[avc-h264] Unknown aspect_ratio_idc: your video may have a wrong aspect ratio. Contact the GPAC team!
[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] No template assigned, using $File$_dash$FS$$Number$
[Dasher] No bitrate property assigned to PID crash_file1, computing from bitstream
[avc-h264] Unknown aspect_ratio_idc: your video may have a wrong aspect ratio. Contact the GPAC team!
[avc-h264] Unknown aspect_ratio_idc: your video may have a wrong aspect ratio. Contact the GPAC team!
[AVC|H264] Possible Variable Frame Rate: VUI "fixed_frame_rate_flag" absent
[AVC|H264] xPS changed but could not flush frames before signaling state change !
[AVC|H264] Possible Variable Frame Rate: VUI "fixed_frame_rate_flag" absent
[AVC|H264] xPS changed but could not flush frames before signaling state change !
[avc-h264] Unknown aspect_ratio_idc: your video may have a wrong aspect ratio. Contact the GPAC team!
[AVC|H264] Possible Variable Frame Rate: VUI "fixed_frame_rate_flag" absent
[AVC|H264] xPS changed but could not flush frames before signaling state change !
[AVC|H264] Possible Variable Frame Rate: VUI "fixed_frame_rate_flag" absent
[AVC|H264] xPS changed but could not flush frames before signaling state change !
[avc-h264] Unknown aspect_ratio_idc: your video may have a wrong aspect ratio. Contact the GPAC team!
[AVC|H264] Possible Variable Frame Rate: VUI "fixed_frame_rate_flag" absent
[AVC|H264] xPS changed but could not flush frames before signaling state change !
[AVC|H264] Possible Variable Frame Rate: VUI "fixed_frame_rate_flag" absent
[AVC|H264] xPS changed but could not flush frames before signaling state change !
[avc-h264] Unknown aspect_ratio_idc: your video may have a wrong aspect ratio. Contact the GPAC team!
[AVC|H264] Possible Variable Frame Rate: VUI "fixed_frame_rate_flag" absent
[AVC|H264] xPS changed but could not flush frames before signaling state change !
[avc-h264] Unknown aspect_ratio_idc: your video may have a wrong aspect ratio. Contact the GPAC team!
[AVC|H264] Possible Variable Frame Rate: VUI "fixed_frame_rate_flag" absent
[AVC|H264] xPS changed but could not flush frames before signaling state change !
[avc-h264] Unknown aspect_ratio_idc: your video may have a wrong aspect ratio. Contact the GPAC team!
[AVC|H264] Possible Variable Frame Rate: VUI "fixed_frame_rate_flag" absent
[AVC|H264] xPS changed but could not flush frames before signaling state change !
[AVC|H264] Possible Variable Frame Rate: VUI "fixed_frame_rate_flag" absent
[AVC|H264] xPS changed but could not flush frames before signaling state change !
[avc-h264] Unknown aspect_ratio_idc: your video may have a wrong aspect ratio. Contact the GPAC team!
[AVC|H264] Possible Variable Frame Rate: VUI "fixed_frame_rate_flag" absent
[AVC|H264] xPS changed but could not flush frames before signaling state change !
[AVC|H264] Possible Variable Frame Rate: VUI "fixed_frame_rate_flag" absent
[AVC|H264] xPS changed but could not flush frames before signaling state change !
[avc-h264] Unknown aspect_ratio_idc: your video may have a wrong aspect ratio. Contact the GPAC team!
[AVC|H264] Possible Variable Frame Rate: VUI "fixed_frame_rate_flag" absent
[AVC|H264] xPS changed but could not flush frames before signaling state change !
[avc-h264] Unknown aspect_ratio_idc: your video may have a wrong aspect ratio. Contact the GPAC team!
[AVC|H264] Possible Variable Frame Rate: VUI "fixed_frame_rate_flag" absent
[AVC|H264] xPS changed but could not flush frames before signaling state change !
[AVC|H264] Possible Variable Frame Rate: VUI "fixed_frame_rate_flag" absent
[AVC|H264] xPS changed but could not flush frames before signaling state change !
[avc-h264] Unknown aspect_ratio_idc: your video may have a wrong aspect ratio. Contact the GPAC team!
[AVC|H264] Possible Variable Frame Rate: VUI "fixed_frame_rate_flag" absent
[AVC|H264] xPS changed but could not flush frames before signaling state change !
[AVC|H264] Possible Variable Frame Rate: VUI "fixed_frame_rate_flag" absent
[AVC|H264] xPS changed but could not flush frames before signaling state change !
[AVC|H264] Incomplete last NAL and eos, discarding
[Dasher] No bitrate property assigned to PID crash_file1, computing from bitstream
[avc-h264] Unknown aspect_ratio_idc: your video may have a wrong aspect ratio. Contact the GPAC team!
[MP4Mux] No timescale specified, guessing from media: 892678964
AddressSanitizer:DEADLYSIGNAL
=================================================================
==2982015==ERROR: AddressSanitizer: FPE on unknown address 0x7ffff6e0e1ab (pc 0x7ffff6e0e1ab bp 0x7fffffff5bb0 sp 0x7fffffff26e0 T0)
#0 0x7ffff6e0e1ab in dasher_mark_segment_start /path/to/gpac/src/filters/dasher.c:7588:34
#1 0x7ffff6dd2223 in dasher_process /path/to/gpac/src/filters/dasher.c:9266:5
#2 0x7ffff6d74d05 in gf_filter_process_task /path/to/gpac/src/filter_core/filter.c:2894:7
#3 0x7ffff6d4153c in gf_fs_thread_proc /path/to/gpac/src/filter_core/filter_session.c:1962:3
#4 0x7ffff6d3fd2f in gf_fs_run /path/to/gpac/src/filter_core/filter_session.c:2264:3
#5 0x7ffff660245a in gf_dasher_process /path/to/gpac/src/media_tools/dash_segmenter.c:1236:6
#6 0x5555556c15fc in do_dash /path/to/gpac/applications/mp4box/mp4box.c:4825:15
#7 0x5555556b2a8e in mp4box_main /path/to/gpac/applications/mp4box/mp4box.c:6236:7
#8 0x7ffff5846189 in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16
#9 0x7ffff5846244 in __libc_start_main csu/../csu/libc-start.c:381:3
#10 0x5555555dad30 in _start (/path/to/gpac/new_pull_2_build/bin/gcc/MP4Box+0x86d30) (BuildId: 764c86f2d59b4db3d4590a720eca33bd143620a7)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: FPE /path/to/gpac/src/filters/dasher.c:7588:34 in dasher_mark_segment_start
==2982015==ABORTING
Impact
divide by zero can cause a crash which will affect the system availability or availability of the application.
Occurrences
dasher.c L7587-L7588
line before the crash and the crashing line that divides by zero
``` | Divide By Zero FPE | https://api.github.com/repos/gpac/gpac/issues/2476/comments | 0 | 2023-05-19T20:46:37Z | 2023-05-22T15:48:16Z | https://github.com/gpac/gpac/issues/2476 | 1,717,812,103 | 2,476 |
[
"gpac",
"gpac"
] | [POC File](https://drive.google.com/file/d/1M1NO5DjD_iUmWVP5OzYkmM8npysEDpdd)
```
Environment
Distributor ID: Debian
Description: Debian GNU/Linux bookworm/sid
Release: n/a
Codename: bookworm
Version
I checked against the latest release as of 05/18/23 the current master branch at commit a6ae93532ea5615c876c81a6580badbfa01d4383 .
Description
This AddressSanitizer output is indicating that an out of bounds read occurred in the function gf_filter_get_stats at line 4149 in the file filter_session.c. A bit of debugging leads me to think that the loop at line line 4131 is improperly bounded since at the crash, the loop iterator i equals 0xffff4f07
for (i=0; i<f->num_input_pids; i++)
POC
AFL_MAP_SIZE=260000 ./MP4Box -dash 1000 ./crash_file
ASAN
[Dasher] No template assigned, using $File$_dash$FS$$Number$
Failed to connect filter fin PID crash_file to filter rfmpgvid: Feature Not Supported
Blacklisting rfmpgvid as output from fin and retrying connections
[MP4Mux] muxing codecID 0 not yet implemented - patch welcome
Failed to connect filter dasher PID crash_file to filter mp4mx: Feature Not Supported
Blacklisting mp4mx as output from dasher and retrying connections
AddressSanitizer:DEADLYSIGNAL
=================================================================
==2980979==ERROR: AddressSanitizer: SEGV on unknown address 0x00000000009c (pc 0x7ffff6d5968a bp 0x0c2600000200 sp 0x7fffffff4f90 T0)
==2980979==The signal is caused by a READ memory access.
==2980979==Hint: address points to the zero page.
#0 0x7ffff6d5968a in gf_filter_get_stats /path/to/gpac/src/filter_core/filter_session.c:4149:32
#1 0x7ffff660b68b in on_dasher_event /path/to/gpac/src/media_tools/dash_segmenter.c:501:8
#2 0x7ffff6d51fc9 in gf_fs_ui_event /path/to/gpac/src/filter_core/filter_session.c:4180:8
#3 0x7ffff6d831da in gf_filter_update_status /path/to/gpac/src/filter_core/filter.c:4738:2
#4 0x7ffff6f74b0a in filein_process /path/to/gpac/src/filters/in_file.c:699:3
#5 0x7ffff6d74d05 in gf_filter_process_task /path/to/gpac/src/filter_core/filter.c:2894:7
#6 0x7ffff6d4153c in gf_fs_thread_proc /path/to/gpac/src/filter_core/filter_session.c:1962:3
#7 0x7ffff6d3fd2f in gf_fs_run /path/to/gpac/src/filter_core/filter_session.c:2264:3
#8 0x7ffff660245a in gf_dasher_process /path/to/gpac/src/media_tools/dash_segmenter.c:1236:6
#9 0x5555556c15fc in do_dash /path/to/gpac/applications/mp4box/mp4box.c:4825:15
#10 0x5555556b2a8e in mp4box_main /path/to/gpac/applications/mp4box/mp4box.c:6236:7
#11 0x7ffff5846189 in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16
#12 0x7ffff5846244 in __libc_start_main csu/../csu/libc-start.c:381:3
#13 0x5555555dad30 in _start (/path/to/gpac/new_pull_2_build/bin/gcc/MP4Box+0x86d30) (BuildId: 764c86f2d59b4db3d4590a720eca33bd143620a7)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /path/to/gpac/src/filter_core/filter_session.c:4149:32 in gf_filter_get_stats
==2980979==ABORTING
Impact
out of bounds read can cause a crash which will affect the system availability or potentially leak memory from the application.
Occurrences
filter_session.c L4131-L4149
Beginning of loop to where the crash triggers.
``` | OOB Read segfault | https://api.github.com/repos/gpac/gpac/issues/2475/comments | 0 | 2023-05-19T20:45:18Z | 2023-05-22T15:48:16Z | https://github.com/gpac/gpac/issues/2475 | 1,717,809,940 | 2,475 |
[
"gpac",
"gpac"
] | [poc](https://drive.google.com/file/d/1q2w7UcjDg1kxOCOmXQDe8ofgA1TBpxeY/view?usp=sharing)
```
Description
NULL Pointer Dereference In gf_isom_fragment_add_sample_ex isomedia/movie_fragments.c:2883
Environment
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04 LTS
Release: 20.04
Codename: focal
Build
sudo CC=gcc CXX=g++ CFLAGS="-fsanitize=address -static-libasan" CXXFLAGS="-fsanitize=address -static-libasan" LDFLAGS="-fsanitize=address -static-libasan" ./configure && sudo make
Proof of Concept
bin/gcc/MP4Box -dash 1000 ./poc7
ASAN
[iso file] Unknown box type 0000 in parent moov
[iso file] Unknown box type 0000 in parent moov
[iso file] Unknown box type 0000 in parent moov
[iso file] Unknown box type 0000 in parent moov
[iso file] Unknown box type 0000 in parent moov
[iso file] Unknown box type 0000 in parent moov
[iso file] Unknown box type 0000 in parent minf
[iso file] Missing DataInformationBox
[iso file] Unknown box type 0000 in parent moov
[iso file] Read Box type 0000 (0x30303030) at position 11542 has size 0 but is not at root/file level. Forbidden, skipping end of parent box !
[iso file] Box "moov" (start 20) has 806 extra bytes
[iso file] Unknown top-level box type 0000
[IsoMedia] Track 1 is disabled but single track in file, considering it enabled
[Dasher] No template assigned, using $File$_dash$FS$$Number$
[iso file] Unknown box type 0000 in parent moov
[iso file] Unknown box type 0000 in parent moov
[iso file] Unknown box type 0000 in parent moov
[iso file] Unknown box type 0000 in parent moov
[iso file] Unknown box type 0000 in parent moov
[iso file] Unknown box type 0000 in parent moov
[iso file] Unknown box type 0000 in parent moov
AddressSanitizer:DEADLYSIGNAL
=================================================================
==3802899==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7fc009a6a74c bp 0x000000000000 sp 0x7fff627f5d40 T0)
==3802899==The signal is caused by a READ memory access.
==3802899==Hint: address points to the zero page.
#0 0x7fc009a6a74b in gf_isom_fragment_add_sample_ex isomedia/movie_fragments.c:2883
#1 0x7fc00a713f83 in mp4_mux_process_sample filters/mux_isom.c:4742
#2 0x7fc00a759cd6 in mp4_mux_process_fragmented filters/mux_isom.c:6391
#3 0x7fc00a759cd6 in mp4_mux_process filters/mux_isom.c:6992
#4 0x7fc00a375c48 in gf_filter_process_task filter_core/filter.c:2894
#5 0x7fc00a31f731 in gf_fs_thread_proc filter_core/filter_session.c:1961
#6 0x7fc00a3378fb in gf_fs_run filter_core/filter_session.c:2263
#7 0x7fc009b96fdb in gf_dasher_process media_tools/dash_segmenter.c:1236
#8 0x55ec636cfcad in do_dash /home/ubuntu/gpac/applications/mp4box/mp4box.c:4825
#9 0x55ec636cfcad in mp4box_main /home/ubuntu/gpac/applications/mp4box/mp4box.c:6236
#10 0x7fc008eff082 in __libc_start_main ../csu/libc-start.c:308
#11 0x55ec63561e9d in _start (/home/ubuntu/gpac/bin/gcc/MP4Box+0x1de9d)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV isomedia/movie_fragments.c:2883 in gf_isom_fragment_add_sample_ex
==3802899==ABORTING
Impact
This vulnerability is capable of making the MP4Box crash, An attacker who can successfully exploit this vulnerability could potentially execute arbitrary code in the context of the application, leading to a compromise of the system where the vulnerable software is installed. Additionally, the attacker could use this vulnerability to cause a denial of service (DoS) by crashing the application or making it unresponsive. This vulnerability poses a significant risk to the confidentiality, integrity, and availability of systems running the affected software.
Occurrences
movie_fragments.c L2883
``` | NULL Pointer Dereference | https://api.github.com/repos/gpac/gpac/issues/2474/comments | 0 | 2023-05-19T20:42:52Z | 2023-05-22T15:48:16Z | https://github.com/gpac/gpac/issues/2474 | 1,717,805,742 | 2,474 |
[
"gpac",
"gpac"
] | Updated on 2023/05/20
POC: https://github.com/7resp4ss/poc/raw/main/poc
```
Description
Stack-overflow in MP4Box.
Version
MP4Box - GPAC version 2.3-DEV-rev263-g2afa05f4d-master
(c) 2000-2023 Telecom Paris distributed under LGPL v2.1+ - http://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 --prefix=../bin_asan
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_PNG GPAC_HAS_LINUX_DVB GPAC_DISABLE_3D
Reproduce
complie and run
./configure --enable-sanitizer
make
Proof of Concept
./MP4Box -bin poc
[poc](https://github.com/7resp4ss/poc/raw/main/poc) is here!
ASAN
==3553706==ERROR: AddressSanitizer: stack-overflow on address 0x7ffca1f90ff8 (pc 0x7fbaf3ef760d bp 0x00000000001e sp 0x7ffca1f91000 T0)
#0 0x7fbaf3ef760c in __sanitizer::StackDepotBase<__sanitizer::StackDepotNode, 1, 20>::Put(__sanitizer::StackTrace, bool*) ../../../../src/libsanitizer/sanitizer_common/sanitizer_stackdepotbase.h:105
#1 0x7fbaf3ef724b in __sanitizer::StackDepotPut(__sanitizer::StackTrace) ../../../../src/libsanitizer/sanitizer_common/sanitizer_stackdepot.cc:110
#2 0x7fbaf3df5151 in __asan::Allocator::Allocate(unsigned long, unsigned long, __sanitizer::BufferedStackTrace*, __asan::AllocType, bool) ../../../../src/libsanitizer/asan/asan_allocator.cc:508
#3 0x7fbaf3df154a in __asan::asan_malloc(unsigned long, __sanitizer::BufferedStackTrace*) ../../../../src/libsanitizer/asan/asan_allocator.cc:874
#4 0x7fbaf3ed68ce in __interceptor_malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cc:145
#5 0x7fbaf04617d1 in gf_list_new (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x19ec7d1)
#6 0x7fbaf049ed96 in on_dom_text_content (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a29d96)
#7 0x7fbaf04a43cd in xml_sax_flush_text (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a2f3cd)
#8 0x7fbaf04a9ebb in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a34ebb)
#9 0x7fbaf04ab0e8 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a360e8)
#10 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#11 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#12 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#13 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#14 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#15 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#16 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#17 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#18 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#19 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#20 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#21 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#22 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#23 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#24 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#25 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#26 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#27 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#28 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#29 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#30 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#31 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#32 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#33 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#34 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#35 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#36 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#37 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#38 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#39 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#40 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#41 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#42 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#43 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#44 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#45 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#46 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#47 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#48 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#49 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#50 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#51 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#52 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#53 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#54 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#55 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#56 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#57 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#58 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#59 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#60 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#61 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#62 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#63 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#64 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#65 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#66 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#67 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#68 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#69 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#70 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#71 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#72 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#73 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#74 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#75 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#76 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#77 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#78 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#79 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#80 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#81 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#82 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#83 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#84 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#85 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#86 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#87 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#88 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#89 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#90 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#91 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#92 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#93 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#94 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#95 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#96 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#97 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#98 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#99 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#100 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#101 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#102 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#103 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#104 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#105 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#106 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#107 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#108 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#109 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#110 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#111 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#112 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#113 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#114 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#115 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#116 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#117 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#118 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#119 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#120 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#121 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#122 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#123 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#124 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#125 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#126 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#127 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#128 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#129 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#130 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#131 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#132 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#133 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#134 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#135 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#136 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#137 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#138 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#139 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#140 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#141 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#142 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#143 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#144 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#145 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#146 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#147 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#148 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#149 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#150 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#151 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#152 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#153 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#154 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#155 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#156 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#157 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#158 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#159 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#160 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#161 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#162 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#163 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#164 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#165 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#166 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#167 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#168 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#169 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#170 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#171 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#172 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#173 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#174 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#175 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#176 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#177 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#178 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#179 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#180 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#181 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#182 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#183 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#184 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#185 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#186 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#187 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#188 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#189 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#190 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#191 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#192 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#193 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#194 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#195 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#196 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#197 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#198 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#199 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#200 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#201 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#202 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#203 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#204 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#205 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#206 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#207 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#208 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#209 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#210 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#211 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#212 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#213 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#214 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#215 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#216 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#217 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#218 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#219 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#220 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#221 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#222 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#223 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#224 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#225 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#226 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#227 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#228 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#229 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#230 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#231 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#232 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#233 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#234 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#235 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#236 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#237 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#238 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#239 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#240 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#241 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#242 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#243 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#244 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#245 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#246 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
#247 0x7fbaf04aafe3 in gf_xml_sax_parse_intern (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a35fe3)
#248 0x7fbaf04aa07b in xml_sax_parse (/home/hack/ohhh/bin_asan/lib/libgpac.so.12+0x1a3507b)
SUMMARY: AddressSanitizer: stack-overflow ../../../../src/libsanitizer/sanitizer_common/sanitizer_stackdepotbase.h:105 in __sanitizer::StackDepotBase<__sanitizer::StackDepotNode, 1, 20>::Put(__sanitizer::StackTrace, bool*)
==3553706==ABORTING
Impact
This is capable of causing crashes.
Occurrences
xml_parser.c L905
xml_sax_parse functions are called recursively with gf_xml_sax_parse_intern functions, which can exhaust stack space and cause a crash
xml_parser.c L1078
xml_sax_parse functions are called recursively with gf_xml_sax_parse_intern functions, which can exhaust stack space and cause a crash
``` | Stack-overflow in function xml_sax_parse at src/utils/xml_parser.c | https://api.github.com/repos/gpac/gpac/issues/2473/comments | 3 | 2023-05-19T20:37:59Z | 2023-05-22T15:48:15Z | https://github.com/gpac/gpac/issues/2473 | 1,717,797,386 | 2,473 |
[
"gpac",
"gpac"
] | mp4box v2.2.1
```
mp4box -add video.h264 -new video.mp4
```
if the video stream video.h264 contains additional PPS in the middle of the file, mp4box adds a new `avc1` and `avcC` atom with the updated list of PPS. Here is the dump of video.mp4
```
'ftyp' 0x0 [0x1C] Major Brand: 'isom', Minor Version: 0x1
Compatible brands: 'isom', 'avc1', 'iso6'
'moov' 0x1C [0xBD527]
'mvhd' 0x24 [0x6C] Movie Header: Time scale 600, Duration 1462100 (2436.83 sec)
Rate 1, Volume 1
Creating time: 2023/05/19 10:25:20
Modification time: 2023/05/19 10:25:20
Next Track ID: 2
'iods' 0x90 [0x15]
Unprocessed 0xD bytes 00 00 00 00 10 07 00 4F FF FF FF 7F FF
'trak' 0xA5 [0xBD424]
'tkhd' 0xAD [0x5C] Track #1, Duration 1462100
Resolution: 3840x2160
Creating time: 2023/05/19 10:25:20
Modification time: 2023/05/19 10:25:38
'edts' 0x109 [0x24]
Unprocessed 0x1C bytes
'mdia' 0x12D [0xBD39C]
'mdhd' 0x135 [0x20] Media Header: Time scale 30000, Duration 73106033 (2436.87 sec)
Creating time: 2023/05/19 10:25:20
Modification time: 2023/05/19 10:25:38
'hdlr' 0x155 [0x47] Component Type: {0000}, Subtype: 'vide', "?@GPAC2.2.1-rev0-gb34e3851-relea"
'minf' 0x19C [0xBD32D]
'vmhd' 0x1A4 [0x14]
'dinf' 0x1B8 [0x24]
'dref' 0x1C0 [0x1C]
'url ' 0x1D0 [0xC]
Unprocessed 0x4 bytes 00 00 00 01
'stbl' 0x1DC [0xBD2ED]
'stsd' 0x1E4 [0x9D0]
'avc1' 0x1F4 [0x13D] Video Sample 3840x2160, 24 bits,
'avcC' 0x24A [0xB0] SPS0{AVC video 3840x2160, High Profile, Level 5.1}, PPS3{sps=0}
'pasp' 0x2FA [0x10]
Unprocessed 0x8 bytes 00 00 00 01 00 00 00 01
'colr' 0x30A [0x13]
Unprocessed 0xB bytes 6E 63 6C 78 00 01 00 0B 00 01 00
'btrt' 0x31D [0x14]
Unprocessed 0xC bytes 00 16 80 82 05 66 1B 68 03 48 1D 08
'avc1' 0x331 [0x193] Video Sample 3840x2160, 24 bits,
'avcC' 0x387 [0x11A] SPS0{AVC video 3840x2160, High Profile, Level 5.1}, PPS3{sps=0}, PPS2{sps=0}
'pasp' 0x4A1 [0x10]
Unprocessed 0x8 bytes 00 00 00 01 00 00 00 01
'colr' 0x4B1 [0x13]
Unprocessed 0xB bytes 6E 63 6C 78 00 01 00 0B 00 01 00
'avc1' 0x4C4 [0x1FB] Video Sample 3840x2160, 24 bits,
'avcC' 0x51A [0x182] SPS0{AVC video 3840x2160, High Profile, Level 5.1}, PPS3{sps=0}, PPS2{sps=0}, PPS1{sps=0}
'pasp' 0x69C [0x10]
Unprocessed 0x8 bytes 00 00 00 01 00 00 00 01
'colr' 0x6AC [0x13]
Unprocessed 0xB bytes 6E 63 6C 78 00 01 00 0B 00 01 00
'avc1' 0x6BF [0x269] Video Sample 3840x2160, 24 bits,
'avcC' 0x715 [0x1F0] SPS0{AVC video 3840x2160, High Profile, Level 5.1}, PPS3{sps=0}, PPS2{sps=0}, PPS1{sps=0}, PPS4{sps=0}
'pasp' 0x905 [0x10]
Unprocessed 0x8 bytes 00 00 00 01 00 00 00 01
'colr' 0x915 [0x13]
Unprocessed 0xB bytes 6E 63 6C 78 00 01 00 0B 00 01 00
'avc1' 0x928 [0x28C] Video Sample 3840x2160, 24 bits,
'avcC' 0x97E [0x213] SPS0{AVC video 3840x2160, High Profile, Level 5.1}, PPS3{sps=0}, PPS2{sps=0}, PPS1{sps=0}, PPS4{sps=0}, PPS0{sps=0}
'pasp' 0xB91 [0x10]
Unprocessed 0x8 bytes 00 00 00 01 00 00 00 01
'colr' 0xBA1 [0x13]
Unprocessed 0xB bytes 6E 63 6C 78 00 01 00 0B 00 01 00
'stts' 0xBB4 [0x18] Time-to-Sample[1] (#: Count * Duration):
...
```
Some demuxers read only the first `avcC`, so the part of the video stream is unplayable because references to a missing PPS.
Note 1: Only first `avc1` contains `btrt`.
Note 2: I also see the following warning in the output `[AVC|H264] xPS changed but could not flush frames before signaling state change !`.
The same behavior for HEVC and `hvc1`/`hvcC`. | Multiple avc1/avcC and hvc1/hvcC atoms inside a single track | https://api.github.com/repos/gpac/gpac/issues/2472/comments | 8 | 2023-05-19T10:40:14Z | 2023-05-25T16:52:24Z | https://github.com/gpac/gpac/issues/2472 | 1,717,032,790 | 2,472 |
[
"gpac",
"gpac"
] | Hi @jeanlf ,
I'd like to continue the thread at #2466 since I made some tests using the httpout filter as you suggested for the server.
I still continue to get Network unreachable and I tried several files two of them are using different codec for H.265
This time I have the logs on both sides server and dasher on uploading.
Here there is the description of the logs and video files used:
1) _gpacLogs.zip_ contains the followings logs file:
- gpacServer.log: is the log on server started with the command defined #2466
- uploadLiveStreaming.log: is the log of client uploading the video stream to Gpac Server
- uploadToCustomServer.log: is the log of client uploading the video stream to my customization of node_gpac
2) Video Source: is Big Buck Bunny 4K video downloaded from [here](https://download.blender.org/demo/movies/BBB/). It is one of the sample available on [Kodi](https://kodi.wiki/view/Samples). It was used to generate all logs
In addition, because hls.js doesn't support the particular codec of the video, I used VLC as player and I was able to watch a few seconds of the video using my customization of the server, instead with gpac server VLC was buffering indefinitely.
I hope we can understand the issues in some ways
[gpacLogs.zip](https://github.com/gpac/gpac/files/11507634/gpacLogs.zip)
| [HLS] Network Unreachable and Connection to server closed | https://api.github.com/repos/gpac/gpac/issues/2471/comments | 8 | 2023-05-18T12:14:21Z | 2023-06-23T14:30:45Z | https://github.com/gpac/gpac/issues/2471 | 1,715,535,738 | 2,471 |
[
"gpac",
"gpac"
] | I tried to use mp4box to remux MP4 files recorded by cameras SONY.
Most SONY cameras records PCM_S16BE 48000Hz, 2 channels with the audio tag `twos`.
SONY FX3 records PCM_S24BE 48000Hz, 2 channels with the audio tag `ipcm`.
I also saw some files with the audio tag `lpcm`.
mp4box from GPAC v2.0 worked with PCM 16-bit audio:
`mp4box -add video.h264 -add audio.wav -new mux.mp4`
produces a correct and playable MP4 file (audio.wav is PCM_S16LE, 48000Hz, 2 channels).
mp4box from GPAC v2.2+ (including the latest) creates a MP4 file with the correct audio handler `twos` but the audio data is missing at all. `stco`, `stsz`, etc. are empty for the audio track.
Note most players are used the audio stream for sync with the timeline, so the resulting file is not playable. It is possible only to seek and see a static picture.
Note mp4box crashes on PCM 24-bit audio files. | mp4box failed with PCM audio | https://api.github.com/repos/gpac/gpac/issues/2470/comments | 13 | 2023-05-17T12:34:34Z | 2023-05-30T18:42:44Z | https://github.com/gpac/gpac/issues/2470 | 1,713,809,833 | 2,470 |
[
"gpac",
"gpac"
] | follow-up on #2462 (deleted) and fe02e73f (reverted)
In GPAC, we treat all NAL types indicating IDR/BLA with decodable leading pictures as SAP2 if and only if the following picture has a poc less than the sap picture, otherwise we use SAP1.
We do this because many encoders use decodable leading pictures NAL type signaling when they in fact use simply IDRs. Not doing so would end up having SAP2 indicated in e.g. DASH manifest, which may break validation by some players.
Note that we don't change the NAL type, just the SAP type.
| Note on SAP2 handling | https://api.github.com/repos/gpac/gpac/issues/2469/comments | 0 | 2023-05-16T12:55:11Z | 2023-05-16T12:55:59Z | https://github.com/gpac/gpac/issues/2469 | 1,711,969,234 | 2,469 |
[
"gpac",
"gpac"
] | Following the build from source instructions, on Ubuntu.
` ./configure --disable-X11` `results` in:
`! Unrecognized option disable-X11, ignoring !`
Same happens trying to pass any of the options shown in help configure.
Any dieas please?
Many thanks | Build from Source - build_all.sh linux gives Scons/Python Errors | https://api.github.com/repos/gpac/gpac/issues/2468/comments | 15 | 2023-05-14T22:46:08Z | 2023-05-22T14:08:50Z | https://github.com/gpac/gpac/issues/2468 | 1,709,099,802 | 2,468 |
[
"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 http://gpac.io/downloads/gpac-nightly-builds/
- [x] I give enough information for contributors to reproduce my issue (meaningful title, github labels, platform and compiler, command-line ...). I can share files anonymously with this dropbox: https://www.mediafire.com/filedrop/filedrop_hosted.php?drop=eec9e058a9486fe4e99c33021481d9e1826ca9dbc242a6cfaab0fe95da5e5d95
I have created a couple of test uncompressed files with Y Cb Cr components (no subsampling). Converting those to PNG, JPEG or YUV fails with unable to convert caps.
A simple way to reproduce this is:
```
#gpac uncvg:c=Y,U,V:fps=0 -o gpac_yuv.heif
$ ../../gpac/bin/gcc/gpac -i gpac_yuv.heif -o out.yuv
No suitable filter to adapt caps between pid gpac_yuv.heif in filter uncvdec to filter writegen, disconnecting pid!
session last connect error Filter not found for the desired type
```
In addition, trying with PNG will segfault:
```
$ ../../gpac/bin/gcc/gpac -i gpac_yuv.heif -o out.png
No suitable filter to adapt caps between pid gpac_yuv.heif in filter uncvdec to filter encpng:1.6.37, disconnecting pid!
Segmentation fault (core dumped)
```
This doesn't appear to happen with other components - mono, mono+alpha planar, RGB pixel interleave, RGBA pixel interleave, and RGB planar appear OK. | uncompressed YCbCr can't be decoded to a file | https://api.github.com/repos/gpac/gpac/issues/2467/comments | 3 | 2023-05-12T10:45:52Z | 2023-05-13T00:13:37Z | https://github.com/gpac/gpac/issues/2467 | 1,707,398,894 | 2,467 |
[
"gpac",
"gpac"
] | I would like to understand if GPAC supports HLS [RFC8216bis-3](https://datatracker.ietf.org/doc/html/draft-pantos-hls-rfc8216bis-13), since I'm trying to use gpac for implementing LLHLS Origin PUSH setup and I'm dealing with several problems which I'm going to report below. I would like to know better how GPAC should work.
GPAC 2.2 Command on Ubuntu 20.04: `gpac -graph -r -stats -i video.mp4 reframer:rt=on -o http://localhost:8000/live.m3u8:gpac:hmode=push:segdur=6:cdur=1:profile=live:dmode=dynamic:hmode=push:llhls=br -no-h2`
Client Player: [Hls.js](https://hlsjs.video-dev.org/demo/)
1) Is there any support to Playlist Delta Update? It looks that gpac sends media playlists every time that they are changed, is that right? If it is so, should I overwrite the playlists on server side?
2) In both RFC8216 and RFC8216bis-13, there is a specification about EXT-X-TARGETDURATION, which MUST NOT change (see [General Server Responsabilities](https://datatracker.ietf.org/doc/html/rfc8216#section-6.2.1). Why does gpac send a new media playlist with EXT-X-TARGETDURATION=10 altough in the previous requests it was 6 as I declared into the command? (See files in the attachments)
3) If you look at the version 15 of live1.m3u8 in the attachments, you can observe the following aspects:
> EXT-X-TARGETDURATION=11 (still changing before previous one)
> All media segments previous at _video_dash_track1_9.m4s_ are not present anymore
> There are some media segments with subsegments and other without.
Does all look correct for you?
4) Client player interrups the playback because it makes a request for a segment that has not available in the server side yet. Why does it happen? Should player follow and make request according to what is written inside media playlists?
5) Gpac prints a lot of error messages regarding Network Unreachable and some issues on dasher filter.
In the attachments you can find:
- _playlists.zip_: contains some of the most important versions of playlists exchanged between gpac and server.
- _gpacLiveStreamingHls.pcap_: contains the whole network trace of all packets exchanged between gpac application and server both of them running on the same host. Server uses tcp port 8000. It was made with _tcpdump_
- _gpacLogsScreenshot.png_: logs printed by the command above
Please let me know, if you need more information about the test that I run.
[playlists.zip](https://github.com/gpac/gpac/files/11461733/playlists.zip)

[gpacLiveStreamingHLs.zip](https://github.com/gpac/gpac/files/11461737/gpacLiveStreamingHLs.zip)
| HLS RFC8216bis-13 | https://api.github.com/repos/gpac/gpac/issues/2466/comments | 5 | 2023-05-12T09:49:17Z | 2023-05-17T14:19:29Z | https://github.com/gpac/gpac/issues/2466 | 1,707,316,493 | 2,466 |
[
"gpac",
"gpac"
] | Hi:
I encountered the following issues while using FFmpeg:
Android NDK: This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES
Android NDK: or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the
Android NDK: current module
Android NDK: WARNING:/home/liulin/Android/gpac/build/android/jni/wrapper/Android.mk:gpacWrapper: non-system libraries in linker flags: -lgpac
Android NDK: This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES
Android NDK: or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the
Android NDK: current module
Android NDK: WARNING:/home/liulin/Android/gpac/build/android/jni/mp4box/Android.mk:mp4box: non-system libraries in linker flags: -lgpac -ljs_osmo -leditline -lft2 -ljpegdroid -lopenjpeg -lpng -lgpac
Android NDK: This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES
Android NDK: or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the
Android NDK: current module
[armeabi] SharedLibrary : libgpac.so
/home/liulin/Android/android-ndk-r13b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: cannot find -lavdevice
/home/liulin/Android/gpac/build/android/jni/libgpac/../../../../src/filters/ff_common.c:632: error: undefined reference to 'avdevice_register_all'
/home/liulin/Android/gpac/build/android/jni/libgpac/../../../../src/filters/ff_common.c:732: error: undefined reference to 'av_filter_iterate'
/home/liulin/Android/gpac/build/android/jni/libgpac/../../../../src/filters/ff_dmx.c:762: error: undefined reference to 'avdevice_register_all'
/home/liulin/Android/gpac/build/android/jni/libgpac/../../../../src/filters/ff_mx.c:83: error: undefined reference to 'avformat_init_output'
/home/liulin/Android/gpac/build/android/jni/libgpac/../../../../src/filters/ff_mx.c:217: error: undefined reference to 'avcodec_parameters_copy'
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [/home/liulin/Android/android-ndk-r13b/build/core/build-binary.mk:703: /home/liulin/Android/gpac/build/android/obj/local/armeabi/libgpac.so] Error 1
Version : v0.9.0-preview
May I ask how to fix this problem?
Thanks! | cannot find -lavdevice | https://api.github.com/repos/gpac/gpac/issues/2463/comments | 1 | 2023-05-10T14:41:49Z | 2023-05-10T15:04:50Z | https://github.com/gpac/gpac/issues/2463 | 1,704,096,708 | 2,463 |
[
"gpac",
"gpac"
] | I built APK on the v0.9.0 review branch, referencing/home/liulin/Android/gpac/build/android/README, but reported the following error:
[armeabi] SharedLibrary : libgpac.so
Reaping winning child 0x5637313df250 PID 18242
Live child 0x5637313df250 (/home/liulin/Andorid/gpac/build/android/obj/local/armeabi/libgpac.so) PID 18243
/home/liulin/Andorid/android-ndk-r13b-linux-x86_64/android-ndk-r13b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: cannot find -lavdevice
/home/liulin/Andorid/gpac/build/android/jni/libgpac/../../../../src/filters/ff_common.c:632: error: undefined reference to 'avdevice_register_all'
/home/liulin/Andorid/gpac/build/android/jni/libgpac/../../../../src/filters/ff_common.c:732: error: undefined reference to 'av_filter_iterate'
/home/liulin/Andorid/gpac/build/android/jni/libgpac/../../../../src/filters/ff_dmx.c:762: error: undefined reference to 'avdevice_register_all'
/home/liulin/Andorid/gpac/build/android/jni/libgpac/../../../../src/filters/ff_mx.c:83: error: undefined reference to 'avformat_init_output'
/home/liulin/Andorid/gpac/build/android/jni/libgpac/../../../../src/filters/ff_mx.c:217: error: undefined reference to 'avcodec_parameters_copy'
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
Reaping losing child 0x5637313df250 PID 18243
make: *** [/home/liulin/Andorid/android-ndk-r13b-linux-x86_64/android-ndk-r13b/build/core/build-binary.mk:703: /home/liulin/Andorid/gpac/build/android/obj/local/armeabi/libgpac.so] Error 1
Removing child 0x5637313df250 PID 18243 from chain.
android ndk version is : ndk13b
| build apk error | https://api.github.com/repos/gpac/gpac/issues/2461/comments | 3 | 2023-05-09T10:19:04Z | 2023-05-10T13:58:00Z | https://github.com/gpac/gpac/issues/2461 | 1,701,796,579 | 2,461 |
[
"gpac",
"gpac"
] | The following are 16 TILEs
total_rate is 16 TILEs download_rate divided by time right?
How to calculate total_rate
<html xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:x="urn:schemas-microsoft-com:office:excel"
xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta name=ProgId content=Excel.Sheet>
<meta name=Generator content="Microsoft Excel 15">
<link id=Main-File rel=Main-File
href="file:///C:/Users/a2323/AppData/Local/Temp/msohtmlclip1/01/clip.htm">
<link rel=File-List
href="file:///C:/Users/a2323/AppData/Local/Temp/msohtmlclip1/01/clip_filelist.xml">
<style>
<!--table
{mso-displayed-decimal-separator:"\.";
mso-displayed-thousand-separator:"\,";}
@page
{margin:.75in .7in .75in .7in;
mso-header-margin:.3in;
mso-footer-margin:.3in;}
tr
{mso-height-source:auto;
mso-ruby-visibility:none;}
col
{mso-width-source:auto;
mso-ruby-visibility:none;}
br
{mso-data-placement:same-cell;}
td
{padding-top:1px;
padding-right:1px;
padding-left:1px;
mso-ignore:padding;
color:black;
font-size:12.0pt;
font-weight:400;
font-style:normal;
text-decoration:none;
font-family:新細明體, serif;
mso-font-charset:136;
mso-number-format:General;
text-align:general;
vertical-align:middle;
border:none;
mso-background-source:auto;
mso-pattern:auto;
mso-protection:locked visible;
white-space:nowrap;
mso-rotate:0;}
ruby
{ruby-align:left;}
rt
{color:windowtext;
font-size:9.0pt;
font-weight:400;
font-style:normal;
text-decoration:none;
font-family:新細明體, serif;
mso-font-charset:136;
mso-char-type:none;
display:none;}
-->
</style>
</head>
<body link="#0563C1" vlink="#954F72">
stats.total_rate | download_rate | group.idx | filesize | group.qualities[stats.active_quality_idx].bandwidth)]
-- | -- | -- | -- | --
3243509 | 1672288 | 0 | 4904 | 10000
3243509 | 1459744 | 1 | 8362 | 534375
3243509 | 5440344 | 2 | 24266 | 534375
3243509 | 6882176 | 3 | 17122 | 534375
3243509 | 4461464 | 4 | 12114 | 534375
3243509 | 11095000 | 5 | 30962 | 534375
3243509 | 25044280 | 6 | 76983 | 534375
3243509 | 12390008 | 7 | 40441 | 534375
3243509 | 8389216 | 8 | 22610 | 534375
3243509 | 12150120 | 9 | 34599 | 534375
3243509 | 40744304 | 10 | 212889 | 534375
3243509 | 37406256 | 11 | 136603 | 534375
3243509 | 12582128 | 12 | 36441 | 534375
3243509 | 3430728 | 13 | 9540 | 534375
3243509 | 4199808 | 14 | 10047 | 534375
3243509 | 3425088 | 15 | 9279 | 534375
3243509 | 3313784 | 16 | 9960 | 534375
</body>
</html>
| I want to ask some questions about python api | https://api.github.com/repos/gpac/gpac/issues/2459/comments | 1 | 2023-05-09T07:42:30Z | 2023-05-11T11:31:45Z | https://github.com/gpac/gpac/issues/2459 | 1,701,533,075 | 2,459 |
[
"gpac",
"gpac"
] | May I use the GPAC library in Unity Editor to play 360 panoramic videos? | How to use GPAC in Unity | https://api.github.com/repos/gpac/gpac/issues/2457/comments | 1 | 2023-05-04T10:15:15Z | 2023-05-11T11:21:03Z | https://github.com/gpac/gpac/issues/2457 | 1,695,713,945 | 2,457 |
[
"gpac",
"gpac"
] | Running this command:
```
MP4Box -add vid01.ts -cat vid02.ts -new out.mp4
```
for two constant 50 FPS `.ts` files produces one file with a variable frame rate. How to keep constant 50 FPS when concatenating stream files?
Sample files (two 2-sec `.ts` files with almost empty content) uploaded to your MediaFire File Drop with a `gpacsamples` password as `samples.zip`.
MP4Box - GPAC version 2.2-revrelease
Thanks! | MP4Box concatenation changes frame rate from constant 50 to variable 49.xxx | https://api.github.com/repos/gpac/gpac/issues/2456/comments | 7 | 2023-05-03T12:23:56Z | 2023-05-11T12:33:53Z | https://github.com/gpac/gpac/issues/2456 | 1,693,973,636 | 2,456 |
[
"gpac",
"gpac"
] | I'm using GStreamer to push mpeg TS segments over UDP to GPAC as:
```shell
gst-launch-1.0 -e \
videotestsrc ! "video/x-raw,height=720,width=1280,framerate=25/1" ! queue ! tee name=video_raw_tee \
audiotestsrc wave=ticks apply-tick-ramp=true tick-interval=100000000 freq=10000 volume=0.4 marker-tick-period=10 sine-periods-per-tick=20 ! queue ! tee name=audio_raw_tee \
\
video_raw_tee. ! queue name=video_scale_queue ! videoscale ! video/x-raw,height=240,width=360 ! tee name=video_scale_tee \
\
video_scale_tee. ! queue name=video_transcode_enc_queue ! videoconvert ! "video/x-raw,format=I420" ! \
x264enc bitrate=2000 byte-stream=true key-int-max=25 bframes=0 aud=true tune=zerolatency pass=cbr ! \
"video/x-h264,profile=baseline,stream-format=avc" ! h264parse config-interval=-1 ! tee name=video_transcoded_enc_tee \
\
audio_raw_tee. ! queue name=audio_enc_queue ! audioresample ! "audio/x-raw,rate=44100" ! tee name=audio_resample_tee \
audio_resample_tee. ! queue ! audioconvert ! "audio/x-raw,channels=2" ! avenc_aac name=audio_encoder ! "audio/mpeg" ! aacparse ! tee name=audio_encoder_tee \
\
video_transcoded_enc_tee. ! queue name=video_transcoded_queue ! mpegtsmux m2ts-mode=false name=mpegts_mux_transcoded ! tee name=mpegts_mux_transcoded_tee \
audio_encoder_tee. ! queue ! mpegts_mux_transcoded. \
\
mpegts_mux_transcoded_tee. ! queue ! udpsink host="${UDP_HOST}" port=${UDP_PORT} name=udp_sink_transcoded
```
In GPAC, I'm receiving the stream as:
```shell
gpac -i udp://0.0.0.0:5000/:gpac:listen=true:tsprobe=true \
reframer:rt=on \
-o /tmp/workdir/content/playlist.mpd:dmode=dynamic:utcs=https://time.akamai.com/?iso \
-graph
```
and it works correctly. However, when I include a DRM stage as
```shell
gpac -i udp://0.0.0.0:5000/:gpac:listen=true:tsprobe=true \
reframer:rt=on \
cecrypt:cfile="/tmp/workdir/gpac-drm-dash.xml" \
inspect \
-graph \
-logs=all@info
```
GPAC immediately segfaults. These are the logs:
```
gpac | Refreshing list of modules in directory /usr/lib/gpac
gpac | [Core] Added module gm_alsa.so.
gpac | [Core] Added module gf_openhevc_dec.so.
gpac | [Core] Added module gm_x11_out.so.
gpac | [Core] Added module gm_ft_font.so.
gpac | [Core] Added module gm_validator.so.
gpac | [Core] Added module gm_pulseaudio.so.
gpac | [Core] Added module gm_sdl_out.so.
gpac | [Core] Added module gm_jack.so.
gpac | Loaded 8 modules.
gpac | [Core] Load module file gf_openhevc_dec.so
gpac | [Core] Load module file gf_openhevc_dec.so OK
gpac | [Sock_IPV6] Solving 0.0.0.0 address
gpac | [Sock_IPV6] Host 0.0.0.0 found
gpac | [SockIn] opening udp://0.0.0.0:5000/
[SockIn] Reception started after 39 ms9 seconds
gpac | Filter sockin PID connection pending, queuing packet
gpac | Filter sockin PID queuing downstream event PLAY
gpac | Filter sockin (0x560f2056f110) PID (0x560f2057c4e0) (1 fan-out) connected to filter m2tsdmx (0x560f205785d0)
gpac | Filter sockin PID event PLAY but PID is already playing, discarding
Unknown registration descriptor HDMVr 10 seconds
gpac | Filter m2tsdmx PID P1V2 connection pending, queuing packet
gpac | Filter m2tsdmx PID P1A3 connection pending, queuing packet
gpac | Filter m2tsdmx PID P1A3 connection pending, queuing packet
Filter m2tsdmx (0x560f205785d0) PID P1V2 (0x560f205483f0) (1 fan-out) connected to filter rfnalu (0x560f20578f90)
gpac | Filter m2tsdmx (0x560f205785d0) PID P1A3 (0x560f20561a90) (1 fan-out) connected to filter rfadts (0x560f20575be0)
gpac | Filter rfnalu (0x560f20578f90) PID P1V2 (0x560f205a7f00) (1 fan-out) connected to filter reframer (0x560f20563fe0)
gpac | Filter rfadts (0x560f20575be0) PID P1A3 (0x560f205a8530) (1 fan-out) connected to filter reframer (0x560f20563fe0)
gpac | Filter reframer (0x560f20563fe0) PID P1V2 (0x560f205a8c80) (1 fan-out) connected to filter cecrypt (0x560f20562bc0)
gpac | Filter reframer (0x560f20563fe0) PID P1A3 (0x560f205a9290) (1 fan-out) connected to filter cecrypt (0x560f20562bc0)
gpac | Filter cecrypt PID P1V2 queuing downstream event PLAY
gpac | Filter cecrypt (0x560f20562bc0) PID P1V2 (0x560f205a99c0) (1 fan-out) connected to filter inspect (0x560f20572210)
gpac | Filter cecrypt PID P1A3 queuing downstream event PLAY
gpac | Filter cecrypt (0x560f20562bc0) PID P1A3 (0x560f205b35a0) (1 fan-out) connected to filter inspect (0x560f20572210)
gpac | Filter cecrypt PID P1V2 processed event PLAY - canceled no
gpac | Filter cecrypt PID P1A3 processed event PLAY - canceled no
gpac | Filter rfnalu PID P1V2 queuing downstream event PLAY
gpac | Filter reframer PID P1V2 processed event PLAY - canceled yes
gpac | Filter rfadts PID P1A3 queuing downstream event PLAY
gpac | Filter reframer PID P1A3 processed event PLAY - canceled yes
gpac | Filter reframer PID P1V2 event PLAY but PID is already playing, discarding
gpac | Filter reframer PID P1A3 event PLAY but PID is already playing, discarding
gpac | Filter rfnalu PID P1V2 processed event PLAY - canceled no
gpac | Filter rfadts PID P1A3 processed event PLAY - canceled no
gpac | Filter m2tsdmx PID P1V2 processed event PLAY - canceled no
gpac | Filter m2tsdmx PID P1A3 processed event PLAY - canceled yes
gpac | Filter sockin PID event PLAY but PID is already playing, discarding
gpac | Filter rfadts PID P1A3 property changed at this packet, triggering reconfigure
gpac | Filter reframer PID P1A3 property changed at this packet, triggering reconfigure
gpac | Filter cecrypt PID P1A3 property changed at this packet, triggering reconfigure
Filter rfnalu PID P1V2 property changed at this packet, triggering reconfigure
gpac | Filter reframer PID P1V2 property changed at this packet, triggering reconfigure
gpac | Segmentation fault (core dumped)
gpac exited with code 139
```
The DRM config file is correct as it works when using GPAC in RTMP listen mode.
## Method to reproduce the issue
```shell
git clone https://github.com/jadarve/gpac_experiments.git
cd gpac_experiments
# build the containers
docker build -t gpac_experiments:http_origin -f containers/http_origin.dockerfile .
docker build -t gpac_experiments:gstreamer -f containers/gstreamer.dockerfile .
docker build -t gpac_experiments:gpac -f containers/gpac.dockerfile .
# run the experiment
cd 3-udp_mpegts_drm
docker-compose up
```
I can provide the `gpac-drm-dash.xml` file privately. | Segfault when ingesting UDP/TS stream and applying DRM | https://api.github.com/repos/gpac/gpac/issues/2455/comments | 9 | 2023-05-02T19:27:59Z | 2023-05-19T23:43:35Z | https://github.com/gpac/gpac/issues/2455 | 1,692,980,644 | 2,455 |
[
"gpac",
"gpac"
] | i use command like that
MP4Box -dash 10000 -rap -frag-rap -dash-profile dashavc264:onDemand -bs-switching no -segment-ext .m4s 11.mkv#video ED320x240.mp4#video 11.mkv#audio -out xxx.mpd
and mpd content like that,two video stream create two AdaptationSet
<?xml version="1.0"?>
<!-- MPD file Generated with GPAC version 2.2-rev0-gab012bbf-master at 2023-05-02T08:39:09.274Z -->
<MPD xmlns="urn:mpeg:dash:schema:mpd:2011" minBufferTime="PT1.500S" type="static" mediaPresentationDuration="PT0H13M38.601S" maxSubsegmentDuration="PT0H0M14.414S" profiles="urn:mpeg:dash:profile:isoff-on-demand:2011,http://dashif.org/guidelines/dash264">
<ProgramInformation moreInformationURL="http://gpac.io">
<Title>xxx.mpd generated by GPAC</Title>
</ProgramInformation>
<Period duration="PT0H13M38.601S">
<AdaptationSet segmentAlignment="true" lang="und" startWithSAP="1" subsegmentAlignment="true" subsegmentStartsWithSAP="1">
<Representation id="3" mimeType="audio/mp4" codecs="opus" audioSamplingRate="48000" bandwidth="120000">
<AudioChannelConfiguration schemeIdUri="urn:mpeg:dash:23003:3:audio_channel_configuration:2011" value="2"/>
<BaseURL>11_dash_track2_init.mp4</BaseURL>
<SegmentBase indexRangeExact="true" indexRange="915-1930">
<Initialization range="0-802"/>
</SegmentBase>
</Representation>
</AdaptationSet>
<AdaptationSet segmentAlignment="true" maxWidth="3840" maxHeight="2160" maxFrameRate="25" par="16:9" lang="und" startWithSAP="1" subsegmentAlignment="true" subsegmentStartsWithSAP="1">
<Representation id="1" mimeType="video/mp4" codecs="vp09.00.00.08.00.01.01.01.00" width="3840" height="2160" frameRate="25" sar="1:1" bandwidth="13500000">
<BaseURL>11_dash_track1_init.mp4</BaseURL>
<SegmentBase indexRangeExact="true" indexRange="986-2001">
<Initialization range="0-873"/>
</SegmentBase>
</Representation>
</AdaptationSet>
<AdaptationSet segmentAlignment="true" maxWidth="320" maxHeight="240" maxFrameRate="60000/1001" par="4:3" lang="und" startWithSAP="1" subsegmentAlignment="true" subsegmentStartsWithSAP="1">
<Representation id="2" mimeType="video/mp4" codecs="hev1.1.6.L63.90" width="320" height="240" frameRate="60000/1001" sar="4:3" bandwidth="100242">
<BaseURL>ED320x240_dashinit.mp4</BaseURL>
<SegmentBase indexRangeExact="true" indexRange="1061-2076">
<Initialization range="0-948"/>
</SegmentBase>
</Representation>
</AdaptationSet>
</Period>
</MPD> | two video stream create two AdaptationSet,not in one | https://api.github.com/repos/gpac/gpac/issues/2454/comments | 26 | 2023-05-02T12:12:23Z | 2023-05-26T09:04:27Z | https://github.com/gpac/gpac/issues/2454 | 1,692,311,066 | 2,454 |
[
"gpac",
"gpac"
] | I am trying to generate **LL-HLS** files from an **RTMP Stream**, but I couldn't find any examples on how to generate _multiple qualities_.
It works perfectly fine, meaning the LL-HLS .m3u8 files are generated, but only a master file and two separated files.
Current Command:
`gpac -i rtmp://[server]:1935/live/[key] reframer:rt=on -o res/live.m3u8:segdur=2:cdur=0.5:profile=live:dmode=dynamic:llhls=sf:ts`
Output Tree:
res/
-- list of segments.ts
-- live.m3u8
-- live_1.m3u8
-- live_2.m3u8
Is there such a command or parameters to specify different output qualities, like res/720p, res/1080p, res/480p ... ?
| Generate multiple LL-HLS qualities | https://api.github.com/repos/gpac/gpac/issues/2453/comments | 46 | 2023-05-02T10:03:31Z | 2023-05-22T16:02:01Z | https://github.com/gpac/gpac/issues/2453 | 1,692,134,878 | 2,453 |
[
"gpac",
"gpac"
] | I am getting the same error as #1553 with GPAC release 2.2.1 when running MP4Box -dash 1000 -profile live -mpd-refresh 15 -dynamic "sample.mp4" -out live.mpd:
[Dasher] Segment 1 duration 5.26667 more than 3/2 DASH duration, consider reencoding or using segment timeline
[Dasher] AS-1 Rep 1 segment 1 done 5196 ms before UTC due time
[Dasher] updated period DID1 duration 5266 MPD time 52663s 34 %
[Dasher] First CTS 80896 in segment 2 drifting by 4.26667 (more than half a segment duration) from segment time, consider reencoding or using segment timeline
[Dasher] Segment 2 duration 5.06667 more than 3/2 DASH duration, consider reencoding or using segment timeline
[Dasher] AS-1 Rep 1 segment 2 done 10227 ms before UTC due time
**[Dasher] removing segment sample_dash1.m4s 68 %**
[Dasher] updated period DID1 duration 10333 MPD time 10333
It's removing the generated m4s files for some reason.
Streaming the file with MP4Box -dash 1000 -frag 1000 -rap -segment-name segment_ "sample.mp4" works fine but I wanna do it dynamic so I can push new mp4 files as they arrive at the server to the live stream (like this issue: https://github.com/gpac/gpac/issues/1252).
Any help would be very appreciated! | MP4Box DASH live stream: .m4s files are being removed | https://api.github.com/repos/gpac/gpac/issues/2452/comments | 2 | 2023-05-01T13:54:54Z | 2023-05-10T14:09:38Z | https://github.com/gpac/gpac/issues/2452 | 1,690,837,391 | 2,452 |
[
"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 http://gpac.io/downloads/gpac-nightly-builds/
- [x] I give enough information for contributors to reproduce my issue (meaningful title, github labels, platform and compiler, command-line ...). I can share files anonymously with this dropbox: https://www.mediafire.com/filedrop/filedrop_hosted.php?drop=eec9e058a9486fe4e99c33021481d9e1826ca9dbc242a6cfaab0fe95da5e5d95
Detailed guidelines: http://gpac.io/2013/07/16/how-to-file-a-bug-properly/
I'm trying to build an MP4Box command to set the channel labels of a multi-track MOV where every audio track has just one channel.
The problem I'm facing is that for some reason FFmpeg labels the left surround / right surround tracks as "Bl / Br" when they should be "Ls / Rs", at least according to mediainfo. I want MP4Box to set these channel labels for me but don't see anything in the documentation about channel labels. Suggestions?
| Setting audio channel labels? | https://api.github.com/repos/gpac/gpac/issues/2450/comments | 3 | 2023-04-29T06:10:05Z | 2023-06-27T07:00:42Z | https://github.com/gpac/gpac/issues/2450 | 1,689,411,311 | 2,450 |
[
"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 http://gpac.io/downloads/gpac-nightly-builds/
- [x] I give enough information for contributors to reproduce my issue
Repository with a docker-compose to reproduce the issue: https://github.com/jadarve/gpac_experiments
I'm using GPAC as an RTMP server to mux the incoming stream to produce a DASH stream. The producer is a GStreamer pipeline pushing the content to GPAC. When GStreamer starts pushing, GPAC segfaults with little information about the error:
```
gpac | [flv] rfps: 240.000000 0.004160
gpac | [flv] rfps: 29.970030 0.000191
gpac | [flv] rfps: 29.970030 0.000191
gpac | [flv] rfps: 59.940060 0.000765
gpac | [flv] rfps: 59.940060 0.000765
gpac | [flv] stream 0: start_time: 0 duration: NOPTS
gpac | [flv] stream 1: start_time: 0 duration: NOPTS
gpac | [flv] stream 2: start_time: 0.266 duration: NOPTS
gpac | [flv] format: start_time: 0 duration: NOPTS (estimate from bit rate) bitrate=2753 kb/s
gpac | [flv] After avformat_find_stream_info() pos: 410330 bytes read:410330 seeks:0 frames:104
gpac | Segmentation fault (core dumped)
```
### Gpac command
```shell
gpac -i rtmp://:1935/live:gpac:rtmp_listen=1 \
-o /tmp/workdir/content/playlist.mpd:dmode=dynamic \
-graph \
-logs=all@debug
```
### GStreamer command
```shell
export PUSH_URL=rtmp://gpac:1935/live/live
gst-launch-1.0 -e \
videotestsrc ! "video/x-raw,height=720,width=1280" ! queue ! tee name=video_raw_tee \
audiotestsrc wave=ticks apply-tick-ramp=true tick-interval=100000000 freq=10000 volume=0.4 marker-tick-period=10 sine-periods-per-tick=20 ! queue ! tee name=audio_raw_tee \
\
video_raw_tee. ! queue name=video_scale_queue ! videoscale ! video/x-raw,height=240,width=360 ! tee name=video_scale_tee \
\
video_scale_tee. ! queue name=video_transcode_enc_queue ! videoconvert ! "video/x-raw,format=I420" ! \
x264enc bitrate=2000 byte-stream=true key-int-max=25 bframes=0 aud=true tune=zerolatency pass=cbr ! \
"video/x-h264,profile=baseline,stream-format=avc" ! h264parse config-interval=-1 ! tee name=video_transcoded_enc_tee \
\
audio_raw_tee. ! queue name=audio_enc_queue ! audioresample ! "audio/x-raw,rate=44100" ! tee name=audio_resample_tee \
audio_resample_tee. ! queue ! audioconvert ! "audio/x-raw,channels=2" ! avenc_aac name=audio_encoder ! "audio/mpeg" ! aacparse ! tee name=audio_encoder_tee \
\
video_transcoded_enc_tee. ! queue name=video_transcoded_queue ! flvmux streamable=true name=flv_mux_transcoded ! tee name=flv_mux_transcoded_tee \
audio_resample_tee. ! queue ! audioconvert ! flv_mux_transcoded. \
\
flv_mux_transcoded_tee. ! queue ! rtmpsink location="${PUSH_URL} live=1" name=rtmp_sink_transcoded
```
While the problem might be in the configuration of the [`x264enc`](https://gstreamer.freedesktop.org/documentation/x264/index.html?gi-language=c#x264enc), the segfault in GPAC's side makes it difficult to spot the problem.
You could use the docker-compose of the repo above to reproduce the issue:
```shell
# build containers
docker build -t gpac_experiments:http_origin -f containers/http_origin.dockerfile .
docker build -t gpac_experiments:gstreamer -f containers/gstreamer.dockerfile .
docker build -t gpac_experiments:gpac -f containers/gpac.dockerfile .
# run the example
cd 0-dash
docker-compose up
```
Any help will be much appreciated. | Receiving RTMP stream from GStreamer makes GPAC to segfault | https://api.github.com/repos/gpac/gpac/issues/2448/comments | 5 | 2023-04-27T22:15:37Z | 2023-05-02T18:01:27Z | https://github.com/gpac/gpac/issues/2448 | 1,687,623,125 | 2,448 |
[
"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 http://gpac.io/downloads/gpac-nightly-builds/
- [X] I give enough information for contributors to reproduce my issue (meaningful title, github labels, platform and compiler, command-line ...). I can share files anonymously with this dropbox: https://www.mediafire.com/filedrop/filedrop_hosted.php?drop=eec9e058a9486fe4e99c33021481d9e1826ca9dbc242a6cfaab0fe95da5e5d95
Detailed guidelines: http://gpac.io/2013/07/16/how-to-file-a-bug-properly/
Hi,
I tried the following command in order to use HLS protocol for making onDemand streaming:
`gpac -r -graph -stats -i video.mp4 -o http://localhost:8000/live.m3u8:gpac:hmode=push:profile=onDemand -no-h2`
I implemented a node.js server for storing all segments in a particular folder, but VLC Player and several web player using hls.js are not able to play the video. It looks like that the fragments are not created correctly.
You can see the error showed in [hls.js Demo]( https://hlsjs.video-dev.org/demo/) in the attached images.

In addition, I observed that m3u8 file was wrong since it shows that there are Indpendent Segments although the command require onDemand profile.
According to [Apple HLS Specification](https://developer.apple.com/documentation/http_live_streaming/example_playlists_for_http_live_streaming/video_on_demand_playlist_construction), the content of the m3u8 file should be:
`#EXTM3U
#EXT-X-PLAYLIST-TYPE:VOD
#EXT-X-TARGETDURATION:10
#EXT-X-VERSION:4
#EXT-X-MEDIA-SEQUENCE:0
#EXTINF:10.0,
http://example.com/movie1/fileSequenceA.ts
#EXTINF:10.0,
http://example.com/movie1/fileSequenceB.ts
#EXTINF:10.0,
http://example.com/movie1/fileSequenceC.ts
#EXTINF:9.0,
http://example.com/movie1/fileSequenceD.ts
#EXT-X-ENDLIST`
Instead the output generated by the command below is that one
`#EXTM3U
#EXT-X-VERSION:6
#EXT-X-INDEPENDENT-SEGMENTS
#EXT-X-STREAM-INF:BANDWIDTH=534662,CODECS="avc1.4D401F,mp4a.40.2",RESOLUTION=1280x720,FRAME-RATE=25,AUDIO="audio2"
live_1.m3u8
#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="audio2",NAME="2",LANGUAGE="eng",AUTOSELECT=YES,URI="live_2.m3u8",CHANNELS="2"`
Is there something wrong in the command?
Software and Used System:
- Ubuntu 20.04
- Gpac 2.2
- Firefox 112.0.1
| Dasher HLS doesn't play on client side | https://api.github.com/repos/gpac/gpac/issues/2447/comments | 5 | 2023-04-27T12:28:51Z | 2023-04-28T09:00:48Z | https://github.com/gpac/gpac/issues/2447 | 1,686,750,563 | 2,447 |
[
"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 http://gpac.io/downloads/gpac-nightly-builds/
- [X] I give enough information for contributors to reproduce my issue (meaningful title, github labels, platform and compiler, command-line ...).
Running
`./bin/gcc/gpac uncvg:interleave=row:tiles=1x2:fps=0 -o uncompressed_row.heif`
with current git HEAD (commit 586113942f9e1efdfa75eac1aae2b27b610bcb27) results in repeating error messages:
```
[uncvg] Error processing
[uncvg] Throw Internal error in tile padding: remain 24832 is greater than tile size 24576
```
followed by
```
[Filter] uncvg (idx 1) in error / not responding properly: 54 consecutive errors in 1018526 us with no packet discarded or sent
discarding all inputs and notifying end of stream on all outputs
```
The problem does not appear with component or pixel interleave.
The problem does not appear if tiles are not used, or for `tiles=1x1`. It does appear for `tiles=2x1`, `tiles=2x2` and `tiles=1x2`.
| uncvg filter errors out on row interleave with tiles | https://api.github.com/repos/gpac/gpac/issues/2446/comments | 2 | 2023-04-27T10:13:58Z | 2023-04-28T09:55:12Z | https://github.com/gpac/gpac/issues/2446 | 1,686,546,462 | 2,446 |
[
"gpac",
"gpac"
] | ### Description
I'm translating a vtt track in an mp4 file using `gpac -i test.mp4#text -o test.ttml`. This result in an error on screen.
```Attempt to write property on input PID in filter ufvtt - ignoring
[XML] Invalid TTML doc: Invalid node stack: closing node is p but span was expected - Line 10: </p
XML text was:
<?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:tts="http://www.w3.org/ns/ttml#styling" xmlns:ttp="http://www.w3.org/ns/ttml#parameter" xml:lang="und">
<head>
<layout>
<region xml:id="Default" tts:origin="5% 5%" tts:extent="90% 90%" tts:displayAlign="after" tts:overflow="visible" tts:textAlign="center" tts:fontSize="18px" tts:fontFamily="Serif"/>
</layout>
</head>
<body>
<div>
<p begin="00:02:47.090" end="00:02:49.260"><span tts:fontStyle="italic">Text part 1.<br/><span tts:fontStyle="italic">- Text part 2.</span></p>
</div>
</body>
</tt>
```
I was able to trace it down to when there's a `<br/>` in the italic span, or when the end of the line is italic and the start of the next one as well. | TTML generation fails for italic on 2 lines | https://api.github.com/repos/gpac/gpac/issues/2445/comments | 5 | 2023-04-26T11:01:35Z | 2023-04-27T13:35:18Z | https://github.com/gpac/gpac/issues/2445 | 1,684,794,280 | 2,445 |
[
"gpac",
"gpac"
] | Command:
`MP4Box -add video.ts:tc=50/1,11,09,59,07 -splitx 0.93:60.93 -new out.mp4`
instead of producing:
`out.mp4`
produces:
`out_0.93_60.93.mp4` (or `out_.mp4` with single underscore character suffix if error occurs).
How can I force MP4Box to name the output file `out.mp4`?
Currently it breaks my script which expects the name to be always `out.mp4`.
I can't get the name from the output, it doesn't say it:
```
IsoMedia import video.ts - track ID 33 - Video (size 1920 x 1080)
IsoMedia import video.ts - track ID 34 - Audio (SR 48000 - 2 channels)
splitting: file 1 done
```
I don't see the name with a `-v` flag either.
I've tested it with the latest GPAC 2.2 and with the older 1.0.1-rev1.0.1+dfsg1-4+deb11u1, both versions create changed name.
Thanks! | MP4Box: `-splitx` causes `-new` file name to be different than specified | https://api.github.com/repos/gpac/gpac/issues/2444/comments | 2 | 2023-04-25T14:26:00Z | 2023-04-28T10:13:24Z | https://github.com/gpac/gpac/issues/2444 | 1,683,282,641 | 2,444 |
[
"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 http://gpac.io/downloads/gpac-nightly-builds/
- [ x] I give enough information for contributors to reproduce my issue (meaningful title, github labels, platform and compiler, command-line ...). I can share files anonymously with this dropbox: https://www.mediafire.com/filedrop/filedrop_hosted.php?drop=eec9e058a9486fe4e99c33021481d9e1826ca9dbc242a6cfaab0fe95da5e5d95
With the file available in the above link, the following command,
gpac -i clip-a.h264 rfnalu inspect:analyze=bs
Produces only output for the picture parameters,
```
<?xml version="1.0" encoding="UTF-8"?>
<GPACInspect>
<PIDConfigure PID="1" name="clip-a.h264" SourcePath="clip-a.h264" URL="clip-a.h264" Extension="h264" MIMEType="video/avc" Cached="true" DownloadSize="1860" StreamType="Visual" ID="1" Width="176" Height="144" FPS="30" Timescale="120" CodecID="MPEG-4 AVC|H264 Video" DecoderConfig="43 bytes (CRC32 0x8338D18A)" Bitrate="14880" Duration="1" PlaybackMode="forward">
<AVCParameterSets>
<AVCSPSArray location="decoderConfig">
<NALU size="22" type="SequenceParameterSet" forbidden_zero_bit="0" nal_ref_idc="3" nal_unit_type="7" profile_idc="100" profile_compatibility="0" level_idc="11" sps_id="0" chroma_format_idc="1" luma_bit_depth="0" chroma_bit_depth="0" qpprime_y_zero_transform_bypass_flag="0" seq_scaling_matrix_present_flag="0" log2_max_frame_num="0" poc_type="2" max_num_ref_frames="3" gaps_in_frame_num_value_allowed_flag="0" pic_width_in_mbs_minus1="10" pic_height_in_map_units_minus1="8" frame_mbs_only_flag="1" direct_8x8_inference_flag="1" frame_cropping_flag="0" vui_parameters_present_flag="1" aspect_ratio_info_present_flag="0" overscan_info_present_flag="0" video_signal_type_present_flag="0" chroma_location_info_present_flag="0" timing_info_present_flag="1" num_units_in_tick="1" time_scale="60" fixed_frame_rate_flag="0" nal_hrd_parameters_present_flag="0" vcl_hrd_parameters_present_flag="0" pic_struct_present_flag="0"/>
</AVCSPSArray>
<AVCPPSArray location="decoderConfig">
<NALU size="6" type="PictureParameterSet" forbidden_zero_bit="0" nal_ref_idc="3" nal_unit_type="8" pps_id="0" sps_id="0" entropy_coding_mode_flag="1" pic_order_present="0" slice_group_count_minus1="0" num_ref_idx_l0_default_active_minus1="2" num_ref_idx_l1_default_active_minus1="0" weighted_pred_flag="1" weighted_bipred_idc="0" init_qp_minus26="-16" init_qs_minus26="0" chroma_qp_index_offset="-2" deblocking_filter_control_present_flag="1" constrained_intra_pred="0" redundant_pic_cnt_present="0"/>
</AVCPPSArray>
</AVCParameterSets>
</PIDConfigure>
</GPACInspect>
```
I was hoping to see the bitstream parameters for all slices as well. I suspect I'm missing some command line options, but I wasn't able to answer my question from the wiki.
| Analyze is not dumping all packet info, only parameter sets | https://api.github.com/repos/gpac/gpac/issues/2443/comments | 3 | 2023-04-21T15:35:24Z | 2023-04-27T13:51:27Z | https://github.com/gpac/gpac/issues/2443 | 1,678,717,533 | 2,443 |
[
"gpac",
"gpac"
] | Currently mp4box accepts - signs in track names, but not + signs. For example, mp4box allows: `mp4box -add audio.ec3:name=DD-Atmos`
but mp4box doesn't allow: `mp4box -add audio.ec3:name=DD+Atmos`
Yes... actually I would like to name the Dolby Digital Plus Atmos track to DD+Atmos :) | Feature Request: Make mp4box accept + signs when naming tracks. | https://api.github.com/repos/gpac/gpac/issues/2441/comments | 1 | 2023-04-19T11:40:27Z | 2023-04-19T13:51:36Z | https://github.com/gpac/gpac/issues/2441 | 1,674,728,798 | 2,441 |
[
"gpac",
"gpac"
] | Currently git master have fixes for CVE-2023-1448, CVE-2023-1449, CVE-2023-1452, CVE-2023-1654 and CVE-2023-1655
but the latest release is still vulnerable and a dot release (2.2.1) would be nice to fix these issues.
For the record Debian intent to remove gpac from his distribution after the bookworm release.
https://metadata.ftp-master.debian.org/changelogs//main/x/x264/x264_0.164.3095+gitbaee400-3_changelog | New release after CVE fixes ? | https://api.github.com/repos/gpac/gpac/issues/2440/comments | 6 | 2023-04-14T08:50:33Z | 2023-04-27T14:12:00Z | https://github.com/gpac/gpac/issues/2440 | 1,667,814,889 | 2,440 |
[
"gpac",
"gpac"
] | Hey, I'm writing an MP4 muxer right now and MP4Box has been instrumental in figuring out things I'm doing wrong. I've managed to create a file that satisfies MP4Box, as well as plays back in things like ffmpeg, VLC, Chromium and Firefox. However, the file fails to play in QuickTime and Windows' Movies&TV - which leads me to believe something is still fishy with my file. However, after hours of comparing the bytes and values of the boxes of my file and an ffmpeg-fixed version of it, I can't really find anything.
Here's the file (audio-only):
https://user-images.githubusercontent.com/1696106/230993312-b78ca932-5db7-45c2-8b13-af20b9ffab1d.mp4
And this is the MP4Box `-info` output:
```
# Movie Info - 1 track - TimeScale 1000
Duration 00:00:10.054 (recomputed 00:00:10.077)
Fragmented: no
Major Brand isom - version 0 - compatible brands: isom avc1 mp41
Created: GMT Mon Apr 10 21:17:09 2023
# Track 1 Info - ID 1 - TimeScale 44100
Media Duration 00:00:10.054 (recomputed 00:00:10.077)
Track flags: Enabled In Movie
Media Samples: 434
Media Type: soun:mp4a
Media Data Location: (null)
MPEG-4 Audio AAC LC (AOT=2 implicit) - 2 Channel(s) - SampleRate 44100
RFC6381 Codec Parameters: mp4a.40.2
All samples are sync
Max sample duration: 1024 / 44100
```
Now, in a way yes, I'm asking for somebody from this community to lend me a helping hand - maybe it'll be easy for them to spot what's wrong with the file. But, more importantly, maybe MP4Box can grow from this and improve its troubleshooting even more.
| Invalid MP4 file shows as valid in MP4Box | https://api.github.com/repos/gpac/gpac/issues/2439/comments | 2 | 2023-04-10T20:37:36Z | 2023-04-10T22:23:23Z | https://github.com/gpac/gpac/issues/2439 | 1,661,329,214 | 2,439 |
[
"gpac",
"gpac"
] | I am trying to package mp4 videos with MP4Box to play with dash.js.
I produce 4 qualities, with commands similar to this:
```
ffmpeg -i source.mkv -b:v 1000k -filter:v "scale=-2:480" \
-r 60 -x264opts 'keyint=120:min-keyint=120:no-scenecut' \
-movflags faststart \
-an -c:v libx264 \
-preset fast \
-profile:v main out-480.mp4
```
I generate 360p, 480p, 720p and 1080p.
Then I use `MP4Box` like this:
```
MP4Box -dash 2000 -frag 2000 -rap -fps 60 -profile onDemand \
encoded/out-1080.mp4'#video:id=1080p' \
encoded/out-720.mp4'#video:id=720p' \
encoded/out-480.mp4'#video:id=480p' \
encoded/out-360.mp4'#video:id=360p' \
encoded/out.m4a'#audio:id=Main:role=main' \
-out index.mpd
```
With short videos it works, but with longer videos it takes a very long time. I am trying with a 6 hour video, and it's been running for 48h now.
When I start it, it goes up at a decent pace, for example, I just launched it:
```
Dashing P1 AS#1.1(V) seg #398 0.20s (10.15 %) AS#1.2(V) seg #398 0.22s (10.83 %) AS#1.3(V) seg #398 0.22s (10.83 %) AS#1.4(V) seg #398 0.18s (9.17 %) AS#2.1(A) seg #398 0.22s (10.93 %) / MPD 794.22s 4 %
```
and it's at 4% in like a minute.
But after a while it seems to go slower and slower until it takes an hour for a single percent. (this is a general observation, I have not measured it)
When it is running, I see one CPU at 100%.
Is it normal? Can I do something to make it faster? I have a threadripper and a lot of memory (256GB) in my system, can I do anything to leverage that?
```
MP4Box - GPAC version 2.3-DEV-rev121-g71277af55-master
(c) 2000-2023 Telecom Paris distributed under LGPL v2.1+ - http://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: --prefix=/usr --mandir=/usr/share/man
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_FAAD GPAC_HAS_MAD GPAC_HAS_LIBA52 GPAC_HAS_JPEG GPAC_HAS_PNG GPAC_HAS_FFMPEG GPAC_HAS_JP2 GPAC_HAS_THEORA GPAC_HAS_VORBIS GPAC_HAS_LINUX_DVB GPAC_HAS_HTTP2
```
| MP4Box very slow | https://api.github.com/repos/gpac/gpac/issues/2436/comments | 7 | 2023-04-07T04:35:41Z | 2023-04-20T18:26:42Z | https://github.com/gpac/gpac/issues/2436 | 1,658,351,295 | 2,436 |
[
"gpac",
"gpac"
] | Here (second occurrence of "temporary" on the line):
https://github.com/gpac/gpac/blob/5b237238876333eacc1a41cbc0a1e8b3123b643b/src/utils/os_config_init.c#L1303
Note: I thought it would be simpler for this kind of issue to not make a pull request. | Typo (temportary -> temporary) | https://api.github.com/repos/gpac/gpac/issues/2435/comments | 1 | 2023-04-07T01:33:25Z | 2023-04-07T11:01:22Z | https://github.com/gpac/gpac/issues/2435 | 1,658,236,376 | 2,435 |
[
"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 http://gpac.io/downloads/gpac-nightly-builds/
- [x] I give enough information for contributors to reproduce my issue (meaningful title, github labels, platform and compiler, command-line ...).
Essentially the issue only seems to happen with 7.1 audio muxed with mp4box. If you play the file and do not touch seek at all, the audio will stay in sync. If you pause/seek (forwards/backwards) the audio will either not play for a while or once it does it's very very out of sync.
This only seems to be present when the 7.1 audio is encoded with Dolby Encoding Engine.
If i encode the audio with ffmpeg, the issue is not present in the mp4.
If i mux the DEE audio with the video into mp4 with ffmpeg the issue is not present.
If i mux the DEE audio with the video into mkv with mkvtoolnix the issue is not present.
The issue only seems to happen with audio encoded with dolby encoding engine, and muxed with mp4box.
Here is a zip file with my sample examples, using a DTS:X Demo video.
I have provided a sample of the audio encoded to eac3 with both ffmpeg and dolby encoding engine.
If you play the DTSX Gravity Encoded - ffmpeg.mp4 in VLC media player you should see that it plays back fine even when skipping around the video.
If you play the DTSX Gravity Encoded - DEE.mp4 in VLC media player, you should see that it initially plays back fine but as soon as you start skipping around the video the audio becomes out of sync.
https://mega.nz/file/icJTzYZA#6Uy9J7zLXyThM7qZed0zdeQR5lByKymORkHa--bR_eY | 7.1 E-AC3 audio out of sync in MP4 only with mp4box | https://api.github.com/repos/gpac/gpac/issues/2434/comments | 3 | 2023-04-01T01:21:41Z | 2023-04-03T15:37:27Z | https://github.com/gpac/gpac/issues/2434 | 1,650,228,779 | 2,434 |
[
"gpac",
"gpac"
] | Hi,
Can someone let me know/ point me to the documentation for real time streaming applications with GPAC.
Thanks
| RTP streaming with GPAC | https://api.github.com/repos/gpac/gpac/issues/2433/comments | 2 | 2023-03-30T23:14:04Z | 2023-05-10T14:06:04Z | https://github.com/gpac/gpac/issues/2433 | 1,648,443,669 | 2,433 |
[
"gpac",
"gpac"
] | Decoder:nvdec
| Tile based 360-degree video:When decoding tiles at the same bit rate, the decoding speed is normal, but if decoding tiles at different bit rates, the decoding speed will drop sharply. | https://api.github.com/repos/gpac/gpac/issues/2432/comments | 14 | 2023-03-27T02:35:02Z | 2023-03-28T08:10:11Z | https://github.com/gpac/gpac/issues/2432 | 1,641,259,232 | 2,432 |
[
"gpac",
"gpac"
] | https://user-images.githubusercontent.com/40682277/227702934-7a9ad657-9370-4017-a139-81fff1bb2d3f.mp4
command used: `MP4Box -add sample.mkv -new sample.mp4`
I tried the latest nightly build. The progress bar gradually fills up, and at some point the status changes to Killed and the operation stops.
https://user-images.githubusercontent.com/40682277/227705468-589b7c3f-73c3-40b9-9936-56ec73227a3e.mp4
I tested it on Windows 11 with the same build and the same sample, and no errors were observed on Windows 11. It worked normally. My guess is that my Windows 11 computer has much better specs, so it seemed to be doing its job normally and complete before the progress bar prematurely displayed Killed.
In the case of Linux, the specs were very poor so the progress bar was very slow, and MP4Box seemed to have reached the limit of its patience and decided to stop working, imo. It's like a hungry customer leaving a restaurant without waiting for the food to be ready.
Is MP4Box a program with emotions? | "Killed" appears when remuxing mkv to mp4 using mp4box on linux. | https://api.github.com/repos/gpac/gpac/issues/2430/comments | 26 | 2023-03-25T08:07:38Z | 2023-03-30T13:10:23Z | https://github.com/gpac/gpac/issues/2430 | 1,640,425,656 | 2,430 |
[
"gpac",
"gpac"
] | POC : ./MP4Box -dash 1000 POC1
LINK : https://drive.google.com/file/d/1LA8xG4tLZC86YAtSRLGTWwgIxbFoR7p6/view?usp=share_link
The description given by the reporter needs to be clarified. | Memory Leak in GPAC MP4Box DASHer | https://api.github.com/repos/gpac/gpac/issues/2429/comments | 1 | 2023-03-23T18:29:28Z | 2023-03-27T09:59:32Z | https://github.com/gpac/gpac/issues/2429 | 1,638,084,172 | 2,429 |
[
"gpac",
"gpac"
] | LINK:https://drive.google.com/file/d/1noz9KXlnqrxFkO593-DM6I81FV1kVSuY/view?usp=share_link
POC: ./MP4Box -dash 1000 POC7
```
stack overflow vulnerability in the code:
==2451518==ERROR: AddressSanitizer: stack-buffer-overflow on address 0x7ffc878aab58 at pc 0x7f191a430790 bp 0x7ffc878a9570 sp 0x7ffc878a9560
WRITE of size 4 at 0x7ffc878aab58 thread T0
This issue occurs in the swf_def_button function and may cause unexpected behavior or crashes. Developers should investigate this vulnerability to ensure the stability and security of the software.
==2451518==ERROR: AddressSanitizer: stack-buffer-overflow on address 0x7ffc878aab58 at pc 0x7f191a430790 bp 0x7ffc878a9570 sp 0x7ffc878a9560
WRITE of size 4 at 0x7ffc878aab58 thread T0
#0 0x7f191a43078f in swf_def_button (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x260378f)
#1 0x7f191a439274 in swf_parse_tag (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x260c274)
#2 0x7f191ac3d8d9 in gf_text_process_swf (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x2e108d9)
#3 0x7f191ac2e7ef in txtin_process (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x2e017ef)
#4 0x7f191a96b97c in gf_filter_process_task (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x2b3e97c)
#5 0x7f191a92700a in gf_fs_thread_proc (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x2afa00a)
#6 0x7f191a93492e in gf_fs_run (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x2b0792e)
#7 0x7f191a1a50ce in gf_dasher_process (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x23780ce)
#8 0x55819bea3338 in do_dash /root/gpac2/gpac/applications/mp4box/mp4box.c:4807
#9 0x55819bea3338 in mp4box_main /root/gpac2/gpac/applications/mp4box/mp4box.c:6184
#10 0x7f19175f9d8f in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58
#11 0x7f19175f9e3f in __libc_start_main_impl ../csu/libc-start.c:392
#12 0x55819be79cb4 in _start (/root/gpac2/gpac/bin/gcc/MP4Box+0xabcb4)
Address 0x7ffc878aab58 is located in stack of thread T0 at offset 5496 in frame
#0 0x7f191a42fdcf in swf_def_button (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x2602dcf)
This frame has 1 object(s):
[48, 5496) 'button' (line 1182) <== Memory access at offset 5496 overflows this variable
HINT: this may be a false positive if your program uses some custom stack unwind mechanism, swapcontext or vfork
(longjmp and C++ exceptions are supported)
SUMMARY: AddressSanitizer: stack-buffer-overflow (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x260378f) in swf_def_button
Shadow bytes around the buggy address:
0x100010f0d510: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x100010f0d520: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x100010f0d530: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x100010f0d540: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x100010f0d550: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
=>0x100010f0d560: 00 00 00 00 00 00 00 00 00 00 00[f3]f3 f3 f3 f3
0x100010f0d570: f3 f3 f3 f3 f3 f3 f3 f3 f3 f3 f3 f3 f3 f3 f3 f3
0x100010f0d580: f3 f3 f3 f3 f3 f3 f3 f3 f3 f3 f3 f3 00 00 00 00
0x100010f0d590: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x100010f0d5a0: 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1 04 f2
0x100010f0d5b0: 04 f2 04 f2 00 00 f2 f2 00 00 f2 f2 00 00 00 00
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
==2451518==ABORTING
``` | Stack Buffer Overflow in GPAC MP4Box SWF Text Processing (2) | https://api.github.com/repos/gpac/gpac/issues/2428/comments | 0 | 2023-03-23T18:27:49Z | 2023-03-27T09:59:31Z | https://github.com/gpac/gpac/issues/2428 | 1,638,082,166 | 2,428 |
[
"gpac",
"gpac"
] | POC: ./MP4Box -dash 1000 POC3
LINK: https://drive.google.com/file/d/1gBaPQJhDbiyUkDfMDYFDIDoMRF0fVyA2/view?usp=share_link
```
A stack buffer overflow vulnerability has been identified in the GPAC MP4Box while processing SWF text input files. The issue occurs in the swf_get_string function, causing a write of size 1 at an address that overflows the 'szName' variable. This vulnerability can be exploited by an attacker to cause arbitrary code execution or a denial of service.
Impact
Attackers could exploit this vulnerability to execute arbitrary code or cause a denial of service in the affected system. Users are advised to update to the latest version of GPAC MP4Box and apply proper input validation when processing SWF text files to mitigate this risk.
Occurrences
swf_parse.c L324
==2227669==ERROR: AddressSanitizer: stack-buffer-overflow on address 0x7ffcb1b83f90 at pc 0x7fb3e9bce988 bp 0x7ffcb1b83b30 sp 0x7ffcb1b83b20 WRITE of size 1 at 0x7ffcb1b83f90 thread T0 #0 0x7fb3e9bce987 in swf_get_string (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x25f7987) #1 0x7fb3e9be52e7 in swf_parse_tag (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x260e2e7) #2 0x7fb3ea3e78d9 in gf_text_process_swf (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x2e108d9) #3 0x7fb3ea3d87ef in txtin_process (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x2e017ef) #4 0x7fb3ea11597c in gf_filter_process_task (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x2b3e97c) #5 0x7fb3ea0d100a in gf_fs_thread_proc (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x2afa00a) #6 0x7fb3ea0de92e in gf_fs_run (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x2b0792e) #7 0x7fb3e994f0ce in gf_dasher_process (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x23780ce) #8 0x56089d2b4338 in do_dash /root/gpac2/gpac/applications/mp4box/mp4box.c:4807 #9 0x56089d2b4338 in mp4box_main /root/gpac2/gpac/applications/mp4box/mp4box.c:6184 #10 0x7fb3e6da3d8f in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58 #11 0x7fb3e6da3e3f in __libc_start_main_impl ../csu/libc-start.c:392 #12 0x56089d28acb4 in _start (/root/gpac2/gpac/bin/gcc/MP4Box+0xabcb4)
Address 0x7ffcb1b83f90 is located in stack of thread T0 at offset 1056 in frame #0 0x7fb3e9bce6cf in swf_get_string (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x25f76cf)
This frame has 1 object(s): [32, 1056) 'szName' (line 326) <== Memory access at offset 1056 overflows this variable HINT: this may be a false positive if your program uses some custom stack unwind mechanism, swapcontext or vfork (longjmp and C++ exceptions are supported) SUMMARY: AddressSanitizer: stack-buffer-overflow (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x25f7987) in swf_get_string Shadow bytes around the buggy address: 0x1000163687a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x1000163687b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x1000163687c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x1000163687d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x1000163687e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 =>0x1000163687f0: 00 00[f3]f3 f3 f3 f3 f3 f3 f3 f3 f3 f3 f3 f3 f3 0x100016368800: f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x100016368810: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x100016368820: f1 f1 f1 f1 04 f2 04 f2 04 f2 00 00 f2 f2 00 00 0x100016368830: f2 f2 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x100016368840: f2 f2 f2 f2 04 f3 f3 f3 00 00 00 00 00 00 00 00 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 ==2227669==ABORTING
``` | Stack Buffer Overflow in GPAC MP4Box SWF Text Processing | https://api.github.com/repos/gpac/gpac/issues/2427/comments | 0 | 2023-03-23T18:26:32Z | 2023-03-27T09:59:31Z | https://github.com/gpac/gpac/issues/2427 | 1,638,080,339 | 2,427 |
[
"gpac",
"gpac"
] | POC: # ./MP4Box -dash 1000 POC4
LINK: https://drive.google.com/file/d/1hHzxolxklZDG_wtowwUEmel9-HAya9Az/view?usp=share_link
```
An unhandled series of SWF tags have been identified in the MP4Box software, which is part of the GPAC multimedia framework. These tags are not properly processed, leading to potential vulnerabilities such as denial of service, buffer overflows, or other malicious attacks.
Impact
As a result of these unhandled tags, the software may be prone to exploitation by attackers, who can leverage the vulnerability to compromise the affected system, steal sensitive information, or disrupt normal operations. It is recommended to promptly patch or update the software to a version that addresses these issues to minimize the risk of potential attacks.
Occurrences
swf_parse.c L2395
SWF Import - Scene Size 487x330 - 1 frames @ 12 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 oHClMBwU.input, computing from bitstream [SWF Parsing] Tag ExportAssets (0x38) not implemented - skipping (frame 1) [SWF Parsing] Tag ExportAssets (0x38) not implemented - skipping (frame 1) [SWF Parsing] Tag ExportAssets (0x38) not implemented - skipping (frame 1) [SWF Parsing] Tag ExportAssets (0x38) not implemented - skipping (frame 1) [SWF Parsing] Tag ExportAssets (0x38) not implemented - skipping (frame 1) [SWF Parsing] Tag ExportAssets (0x38) not implemented - skipping (frame 1) [SWF Parsing] Tag ExportAssets (0x38) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x206) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x1ff) not implemented - skipping (frame 1) [SWF Parsing] tag DefineShape over-read of 10032 bytes (size 28) (frame 1) [SWF Parsing] Tag UnknownTag (0x80) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x80) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x80) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x80) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x80) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x80) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x80) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x80) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x80) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x80) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x80) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x80) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x80) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x80) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x80) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x80) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x80) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x80) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x80) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x80) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x80) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x80) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x80) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x80) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x80) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x80) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x80) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x80) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x80) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x80) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x80) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x80) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x80) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x80) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x80) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x80) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x80) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x80) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x80) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x80) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x80) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x80) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x80) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x80) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x80) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x80) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x80) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x80) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x80) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x80) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x80) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x80) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x80) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x80) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x80) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x80) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x80) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x80) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x80) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x80) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x80) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x80) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x80) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x80) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x80) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x80) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x80) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x80) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x80) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x80) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x80) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x80) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x80) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x80) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x80) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x80) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x80) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x80) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x80) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x80) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x80) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x80) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x80) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x80) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x80) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x80) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x80) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x80) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x80) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x80) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x80) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x81) not implemented - skipping (frame 1) [SWF Parsing] Tag DefineBitsLossless2 (0x24) not implemented - skipping (frame 1) [SWF Parsing] Tag NameCharacter (0x28) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x50) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x44) not implemented - skipping (frame 1) [SWF Parsing] tag DefineFont2 over-read of 34831 bytes (size 12) (frame 1) [SWF Parsing] Tag UnknownTag (0x169) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x252) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x2de) not implemented - skipping (frame 1) [SWF Parsing] tag PlaceObject over-read of 10 bytes (size 1) (frame 1) [SWF Parsing] Tag UnknownTag (0xc4) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x188) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x4d) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x151) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x1e5) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x393) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x227) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x8b) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x303) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x36b) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0xa9) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x2c1) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x1ca) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0xd1) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x89) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0xed) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x78) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x23c) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0xbb) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x54) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x1e) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x11e) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x268) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x1b7) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x8e) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0xa8) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x1a0) not implemented - skipping (frame 1) [SWF Parsing] Clipping not supported - ignoring (frame 1) [SWF Parsing] tag PlaceObject2 over-read of 31 bytes (size 18) (frame 1) [SWF Parsing] Tag UnknownTag (0x368) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0xeb) not implemented - skipping (frame 1) [SWF Parsing] Tag UnknownTag (0x2a8) not implemented - skipping (frame 1) [SWF Parsing] tag DefineButton over-read of 107432 bytes (size 14) (frame 1) [Dasher] Representation not initialized, dropping non-SAP1/2 packet CTS 18446744073709551615/1000 [Dasher] Couldn't compute bitrate of PID oHClMBwU.input in time for manifest generation, please specify #Bitrate property [Dasher] Couldn't compute bitrate of PID oHClMBwU.input in time for manifest generation, please specify #Bitrate property [MPD] Generating MPD at time 2023-03-22T18:07:29.519Z [Dasher] End of Period [Dasher] End of MPD (no more active streams) Error DASHing file: I/O Error
================================================================= ==2227685==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 72 byte(s) in 1 object(s) allocated from: #0 0x7f5324fca867 in __interceptor_malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:145 #1 0x7f5321d43ab1 in swf_parse_tag (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x260bab1) #2 0x7f53225488d9 in gf_text_process_swf (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x2e108d9) #3 0x7f53225397ef in txtin_process (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x2e017ef) #4 0x7f532227697c in gf_filter_process_task (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x2b3e97c) #5 0x7f532223200a in gf_fs_thread_proc (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x2afa00a) #6 0x7f532223f92e in gf_fs_run (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x2b0792e) #7 0x7f5321ab00ce in gf_dasher_process (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x23780ce) #8 0x556571339338 in do_dash /root/gpac2/gpac/applications/mp4box/mp4box.c:4807 #9 0x556571339338 in mp4box_main /root/gpac2/gpac/applications/mp4box/mp4box.c:6184 #10 0x7f531ef04d8f in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58
Indirect leak of 16 byte(s) in 1 object(s) allocated from: #0 0x7f5324fca867 in __interceptor_malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:145 #1 0x7f532128dcf1 in gf_list_new (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x1b55cf1) #2 0x7f5321d43ada in swf_parse_tag (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x260bada) #3 0x7f53225488d9 in gf_text_process_swf (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x2e108d9) #4 0x7f53225397ef in txtin_process (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x2e017ef) #5 0x7f532227697c in gf_filter_process_task (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x2b3e97c) #6 0x7f532223200a in gf_fs_thread_proc (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x2afa00a) #7 0x7f532223f92e in gf_fs_run (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x2b0792e) #8 0x7f5321ab00ce in gf_dasher_process (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x23780ce) #9 0x556571339338 in do_dash /root/gpac2/gpac/applications/mp4box/mp4box.c:4807 #10 0x556571339338 in mp4box_main /root/gpac2/gpac/applications/mp4box/mp4box.c:6184 #11 0x7f531ef04d8f in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58
Indirect leak of 13 byte(s) in 1 object(s) allocated from: #0 0x7f5324fca867 in __interceptor_malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:145 #1 0x7f5321d43e57 in swf_parse_tag (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x260be57) #2 0x7f53225488d9 in gf_text_process_swf (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x2e108d9) #3 0x7f53225397ef in txtin_process (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x2e017ef) #4 0x7f532227697c in gf_filter_process_task (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x2b3e97c) #5 0x7f532223200a in gf_fs_thread_proc (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x2afa00a) #6 0x7f532223f92e in gf_fs_run (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x2b0792e) #7 0x7f5321ab00ce in gf_dasher_process (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x23780ce) #8 0x556571339338 in do_dash /root/gpac2/gpac/applications/mp4box/mp4box.c:4807 #9 0x556571339338 in mp4box_main /root/gpac2/gpac/applications/mp4box/mp4box.c:6184 #10 0x7f531ef04d8f in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58
SUMMARY: AddressSanitizer: 101 byte(s) leaked in 3 allocation(s).
``` | Unhandled SWF Tags in MP4Box: Potential Vulnerability | https://api.github.com/repos/gpac/gpac/issues/2426/comments | 0 | 2023-03-23T18:25:29Z | 2023-03-27T09:59:30Z | https://github.com/gpac/gpac/issues/2426 | 1,638,078,647 | 2,426 |
[
"gpac",
"gpac"
] | LINK: https://drive.google.com/file/d/1kRcfKGIAySBhMLzQhbNhfDeHt6gJI6wC/view?usp=share_link
POC: ./MP4Box -dash 1000 POC9
```
discovered another heap overflow issue in the code, as highlighted by the AddressSanitizer report. This time, the heap-buffer-overflow error occurs during a READ operation within the __interceptor_memcpy function, involving the pcmreframe_process function.
==2451562==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x62200000c374 at pc 0x7f71a09b4397 bp 0x7fff7f7ebda0 sp 0x7fff7f7eb548
READ of size 2048 at 0x62200000c374 thread T0
#0 0x7f71a09b4396 in __interceptor_memcpy ../../../../src/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc:827
#1 0x7f719e154f00 in pcmreframe_process (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x2fb8f00)
#2 0x7f719dcda97c in gf_filter_process_task (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x2b3e97c)
#3 0x7f719dc9600a in gf_fs_thread_proc (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x2afa00a)
#4 0x7f719dca392e in gf_fs_run (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x2b0792e)
#5 0x7f719d5140ce in gf_dasher_process (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x23780ce)
#6 0x55bf76c63338 in do_dash /root/gpac2/gpac/applications/mp4box/mp4box.c:4807
#7 0x55bf76c63338 in mp4box_main /root/gpac2/gpac/applications/mp4box/mp4box.c:6184
#8 0x7f719a968d8f in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58
#9 0x7f719a968e3f in __libc_start_main_impl ../csu/libc-start.c:392
#10 0x55bf76c39cb4 in _start (/root/gpac2/gpac/bin/gcc/MP4Box+0xabcb4)
Address 0x62200000c374 is a wild pointer.
SUMMARY: AddressSanitizer: heap-buffer-overflow ../../../../src/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc:827 in __interceptor_memcpy
Shadow bytes around the buggy address:
0x0c447fff9810: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c447fff9820: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c447fff9830: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c447fff9840: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c447fff9850: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
=>0x0c447fff9860: fa fa fa fa fa fa fa fa fa fa fa fa fa fa[fa]fa
0x0c447fff9870: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c447fff9880: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c447fff9890: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c447fff98a0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c447fff98b0: 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
Shadow gap: cc
==2451562==ABORTING
``` | heap-buffer-overflow error in pcmreframe_process() | https://api.github.com/repos/gpac/gpac/issues/2425/comments | 0 | 2023-03-23T01:06:46Z | 2023-03-27T09:59:30Z | https://github.com/gpac/gpac/issues/2425 | 1,636,693,942 | 2,425 |
[
"gpac",
"gpac"
] | POC: ./MP4Box -dash 1000 POC8
LINK: https://drive.google.com/file/d/1hEKZtbUJi2V4euDl3oWbIAX-amnG29H9/view?usp=share_link
```
The vulnerability seems to be located in the gf_swf_read_header function, as indicated by the AddressSanitizer report showing a heap-buffer-overflow error.
Here are the details:
==2451549==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x602000004e51 at pc 0x7f7dd3979c23 bp 0x7ffe4fe10840 sp 0x7ffe4fe0ffe8
WRITE of size 8 at 0x602000004e51 thread T0
#0 0x7f7dd3979c22 in __interceptor_memset ../../../../src/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc:799
#1 0x7f7dd07731d2 in gf_swf_read_header (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x26111d2)
#2 0x7f7dd0f72a10 in gf_text_process_swf (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x2e10a10)
#3 0x7f7dd0f637ef in txtin_process (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x2e017ef)
#4 0x7f7dd0ca097c in gf_filter_process_task (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x2b3e97c)
#5 0x7f7dd0c5c00a in gf_fs_thread_proc (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x2afa00a)
#6 0x7f7dd0c6992e in gf_fs_run (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x2b0792e)
#7 0x7f7dd04da0ce in gf_dasher_process (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x23780ce)
#8 0x5572a9ad2338 in do_dash /root/gpac2/gpac/applications/mp4box/mp4box.c:4807
#9 0x5572a9ad2338 in mp4box_main /root/gpac2/gpac/applications/mp4box/mp4box.c:6184
#10 0x7f7dcd92ed8f in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58
#11 0x7f7dcd92ee3f in __libc_start_main_impl ../csu/libc-start.c:392
#12 0x5572a9aa8cb4 in _start (/root/gpac2/gpac/bin/gcc/MP4Box+0xabcb4)
0x602000004e51 is located 0 bytes to the right of 1-byte region [0x602000004e50,0x602000004e51)
allocated by thread T0 here:
#0 0x7f7dd39f4867 in __interceptor_malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:145
#1 0x7f7dd07731ba in gf_swf_read_header (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x26111ba)
#2 0x7f7dd0f72a10 in gf_text_process_swf (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x2e10a10)
#3 0x7f7dd0f637ef in txtin_process (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x2e017ef)
#4 0x7f7dd0ca097c in gf_filter_process_task (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x2b3e97c)
#5 0x7f7dd0c5c00a in gf_fs_thread_proc (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x2afa00a)
#6 0x7f7dd0c6992e in gf_fs_run (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x2b0792e)
#7 0x7f7dd04da0ce in gf_dasher_process (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x23780ce)
#8 0x5572a9ad2338 in do_dash /root/gpac2/gpac/applications/mp4box/mp4box.c:4807
#9 0x5572a9ad2338 in mp4box_main /root/gpac2/gpac/applications/mp4box/mp4box.c:6184
#10 0x7f7dcd92ed8f in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58
SUMMARY: AddressSanitizer: heap-buffer-overflow ../../../../src/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc:799 in __interceptor_memset
Shadow bytes around the buggy address:
0x0c047fff8970: fa fa 00 00 fa fa 00 00 fa fa 00 00 fa fa 00 00
0x0c047fff8980: fa fa 00 00 fa fa fd fd fa fa fd fd fa fa 06 fa
0x0c047fff8990: fa fa 00 00 fa fa 00 00 fa fa 00 00 fa fa 00 00
0x0c047fff89a0: fa fa 00 00 fa fa 00 00 fa fa 00 00 fa fa 00 00
0x0c047fff89b0: fa fa 00 00 fa fa 00 00 fa fa 00 00 fa fa 00 00
=>0x0c047fff89c0: fa fa 00 00 fa fa 00 00 fa fa[01]fa fa fa fa fa
0x0c047fff89d0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff89e0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff89f0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8a00: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8a10: 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
Shadow gap: cc
==2451549==ABORTING
``` | heap-buffer-overflow error in gf_swf_read_header() | https://api.github.com/repos/gpac/gpac/issues/2424/comments | 0 | 2023-03-23T01:05:32Z | 2023-03-27T09:59:29Z | https://github.com/gpac/gpac/issues/2424 | 1,636,693,033 | 2,424 |
[
"gpac",
"gpac"
] | POC: ./MP4Box -dash 1000 POC6
LINK: https://drive.google.com/file/d/1_bgcSCPG1Wcft9ZcY6xlbeIyUW40SOJ3/view?usp=share_link
```
A heap buffer overflow vulnerability has been detected in the GPAC multimedia framework. The issue occurs during the processing of AVI input files, leading to a potential compromise of the application's memory and possible remote code execution.
The vulnerability is caused by an incorrect boundary check when copying memory using the memcpy function (__interceptor_memcpy). This results in a read operation of size 352,321,536 bytes at address 0x625000018bc6, which is located at the edge of the allocated memory region.
The overflow occurs within the following GPAC library functions:
avi_parse_input_file
AVI_open_input_file
avidmx_process
gf_filter_process_task
gf_fs_thread_proc
gf_fs_run
gf_dasher_process
Additionally, the MP4Box application is also affected, as it relies on the vulnerable GPAC library functions.
=================================================================
==2451508==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x625000018bc6 at pc 0x7f6d287b3397 bp 0x7ffffa4cad80 sp 0x7ffffa4ca528
READ of size 352321536 at 0x625000018bc6 thread T0
#0 0x7f6d287b3396 in __interceptor_memcpy ../../../../src/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc:827
#1 0x7f6d254d3e44 in avi_parse_input_file (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x2538e44)
#2 0x7f6d254e049d in AVI_open_input_file (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x254549d)
#3 0x7f6d25bdd260 in avidmx_process (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x2c42260)
#4 0x7f6d25ad997c in gf_filter_process_task (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x2b3e97c)
#5 0x7f6d25a9500a in gf_fs_thread_proc (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x2afa00a)
#6 0x7f6d25aa292e in gf_fs_run (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x2b0792e)
#7 0x7f6d253130ce in gf_dasher_process (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x23780ce)
#8 0x556b6c48a338 in do_dash /root/gpac2/gpac/applications/mp4box/mp4box.c:4807
#9 0x556b6c48a338 in mp4box_main /root/gpac2/gpac/applications/mp4box/mp4box.c:6184
#10 0x7f6d22767d8f in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58
#11 0x7f6d22767e3f in __libc_start_main_impl ../csu/libc-start.c:392
#12 0x556b6c460cb4 in _start (/root/gpac2/gpac/bin/gcc/MP4Box+0xabcb4)
0x625000018bc6 is located 0 bytes to the right of 8902-byte region [0x625000016900,0x625000018bc6)
allocated by thread T0 here:
#0 0x7f6d2882d867 in __interceptor_malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:145
#1 0x7f6d254d2716 in avi_parse_input_file (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x2537716)
#2 0x7f6d254e049d in AVI_open_input_file (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x254549d)
#3 0x7f6d25bdd260 in avidmx_process (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x2c42260)
#4 0x7f6d25ad997c in gf_filter_process_task (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x2b3e97c)
#5 0x7f6d25a9500a in gf_fs_thread_proc (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x2afa00a)
#6 0x7f6d25aa292e in gf_fs_run (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x2b0792e)
#7 0x7f6d253130ce in gf_dasher_process (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x23780ce)
#8 0x556b6c48a338 in do_dash /root/gpac2/gpac/applications/mp4box/mp4box.c:4807
#9 0x556b6c48a338 in mp4box_main /root/gpac2/gpac/applications/mp4box/mp4box.c:6184
#10 0x7f6d22767d8f in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58
SUMMARY: AddressSanitizer: heap-buffer-overflow ../../../../src/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc:827 in __interceptor_memcpy
Shadow bytes around the buggy address:
0x0c4a7fffb120: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c4a7fffb130: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c4a7fffb140: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c4a7fffb150: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c4a7fffb160: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
=>0x0c4a7fffb170: 00 00 00 00 00 00 00 00[06]fa fa fa fa fa fa fa
0x0c4a7fffb180: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c4a7fffb190: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c4a7fffb1a0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c4a7fffb1b0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c4a7fffb1c0: 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
Shadow gap: cc
==2451508==ABORTING
``` | eap buffer overflow vulnerability | https://api.github.com/repos/gpac/gpac/issues/2423/comments | 0 | 2023-03-23T01:04:41Z | 2023-03-27T08:17:26Z | https://github.com/gpac/gpac/issues/2423 | 1,636,692,330 | 2,423 |
[
"gpac",
"gpac"
] | POC: ./MP4Box -dash 1000 POC5
LINK :https://drive.google.com/file/d/1NLI9NcY1k3XCYP61lfSvgMg4u1luvPYi/view?usp=share_link
```
[H263Dmx] garbage before first frame!
[Dasher] No template assigned, using $File$_dash$FS$$Number$
=================================================================
==2451487==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x60e000000dfd at pc 0x7f34308e4397 bp 0x7ffd0fb1c690 sp 0x7ffd0fb1be38
READ of size 3 at 0x60e000000dfd thread T0
#0 0x7f34308e4396 in __interceptor_memcpy ../../../../src/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc:827
#1 0x7f342e027817 in h263dmx_process (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x2f5b817)
#2 0x7f342dc0a97c in gf_filter_process_task (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x2b3e97c)
#3 0x7f342dbc600a in gf_fs_thread_proc (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x2afa00a)
#4 0x7f342dbd392e in gf_fs_run (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x2b0792e)
#5 0x7f342d4440ce in gf_dasher_process (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x23780ce)
#6 0x561a9f343338 in do_dash /root/gpac2/gpac/applications/mp4box/mp4box.c:4807
#7 0x561a9f343338 in mp4box_main /root/gpac2/gpac/applications/mp4box/mp4box.c:6184
#8 0x7f342a898d8f in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58
#9 0x7f342a898e3f in __libc_start_main_impl ../csu/libc-start.c:392
#10 0x561a9f319cb4 in _start (/root/gpac2/gpac/bin/gcc/MP4Box+0xabcb4)
0x60e000000dfd is located 5 bytes to the right of 152-byte region [0x60e000000d60,0x60e000000df8)
allocated by thread T0 here:
#0 0x7f343095e867 in __interceptor_malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:145
#1 0x7f342db29c99 in gf_filter_pck_new_shared_internal (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x2a5dc99)
#2 0x7f342db29ffa in gf_filter_pck_new_ref (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x2a5dffa)
#3 0x7f342dcb8c89 in dasher_process (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x2becc89)
#4 0x7f342dc0a97c in gf_filter_process_task (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x2b3e97c)
#5 0x7f342dbc600a in gf_fs_thread_proc (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x2afa00a)
#6 0x7f342dbd392e in gf_fs_run (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x2b0792e)
#7 0x7f342d4440ce in gf_dasher_process (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x23780ce)
#8 0x561a9f343338 in do_dash /root/gpac2/gpac/applications/mp4box/mp4box.c:4807
#9 0x561a9f343338 in mp4box_main /root/gpac2/gpac/applications/mp4box/mp4box.c:6184
#10 0x7f342a898d8f in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58
SUMMARY: AddressSanitizer: heap-buffer-overflow ../../../../src/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc:827 in __interceptor_memcpy
Shadow bytes around the buggy address:
0x0c1c7fff8160: 00 00 00 00 00 00 00 00 00 00 07 fa fa fa fa fa
0x0c1c7fff8170: fa fa fa fa 00 00 00 00 00 00 00 00 00 00 00 00
0x0c1c7fff8180: 00 00 00 00 00 00 00 00 fa fa fa fa fa fa fa fa
0x0c1c7fff8190: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c1c7fff81a0: 00 00 00 00 fa fa fa fa fa fa fa fa 00 00 00 00
=>0x0c1c7fff81b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00[fa]
0x0c1c7fff81c0: fa fa fa fa fa fa fa fa 00 00 00 00 00 00 00 00
0x0c1c7fff81d0: 00 00 00 00 00 00 00 00 00 00 00 fa fa fa fa fa
0x0c1c7fff81e0: fa fa fa fa 00 00 00 00 00 00 00 00 00 00 00 00
0x0c1c7fff81f0: 00 00 00 00 00 00 00 fa fa fa fa fa fa fa fa fa
0x0c1c7fff8200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
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
==2451487==ABORTING
``` | heap-buffer-overflow on h263dmx_process() | https://api.github.com/repos/gpac/gpac/issues/2422/comments | 0 | 2023-03-23T01:04:01Z | 2023-03-27T08:17:25Z | https://github.com/gpac/gpac/issues/2422 | 1,636,691,842 | 2,422 |
[
"gpac",
"gpac"
] | POC:
LINK : https://drive.google.com/file/d/1PO-c2WJnWqjUsG5dB0terCddup9-CL28/view?usp=share_link
```
A heap use-after-free vulnerability has been discovered in GPAC MP4Box's ogg_stream_clear function when processing OGG files. The vulnerability occurs due to improper handling of memory allocations and deallocations while processing OGG files. This leads to the use of previously freed memory, causing a potential risk of memory corruption, crashes, or other undefined behaviors.
Reproduce : ./bin/gcc/MP4Box -dash 1000 POC
Impact
An attacker who can successfully exploit this vulnerability could potentially execute arbitrary code in the context of the application, leading to a compromise of the system where the vulnerable software is installed. Additionally, the attacker could use this vulnerability to cause a denial of service (DoS) by crashing the application or making it unresponsive. This vulnerability poses a significant risk to the confidentiality, integrity, and availability of systems running the affected software.
Occurrences
mux_ogg.c L217
==1223316==ERROR: AddressSanitizer: heap-use-after-free on address 0x615000013188 at pc 0x7fc0bb2da988 bp 0x7ffce834e7e0 sp 0x7ffce834e7d0 READ of size 8 at 0x615000013188 thread T0 #0 0x7fc0bb2da987 in ogg_stream_clear (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x2557987) #1 0x7fc0bba259e1 in oggdmx_finalize (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x2ca29e1) #2 0x7fc0bb88f54e in gf_fs_del (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x2b0c54e) #3 0x7fc0bb0f8c56 in gf_dasher_clean_inputs (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x2375c56) #4 0x7fc0bb0f8d14 in gf_dasher_del (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x2375d14) #5 0x55587f9c995c in do_dash /root/gpac2/gpac/applications/mp4box/mp4box.c:4870 #6 0x55587f9c995c in mp4box_main /root/gpac2/gpac/applications/mp4box/mp4box.c:6184 #7 0x7fc0b854fd8f in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58 #8 0x7fc0b854fe3f in __libc_start_main_impl ../csu/libc-start.c:392 #9 0x55587f9a0cb4 in _start (/root/gpac2/gpac/bin/gcc/MP4Box+0xabcb4)
0x615000013188 is located 8 bytes inside of 488-byte region [0x615000013180,0x615000013368) freed by thread T0 here: #0 0x7fc0be615517 in __interceptor_free ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:127 #1 0x7fc0bba25a9a in oggdmx_finalize (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x2ca2a9a) #2 0x7fc0bb88f54e in gf_fs_del (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x2b0c54e) #3 0x7fc0bb0f8c56 in gf_dasher_clean_inputs (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x2375c56) #4 0x7fc0bb0f8d14 in gf_dasher_del (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x2375d14) #5 0x55587f9c995c in do_dash /root/gpac2/gpac/applications/mp4box/mp4box.c:4870 #6 0x55587f9c995c in mp4box_main /root/gpac2/gpac/applications/mp4box/mp4box.c:6184 #7 0x7fc0b854fd8f in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58
previously allocated by thread T0 here: #0 0x7fc0be615867 in __interceptor_malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:145 #1 0x7fc0bba2a0cd in oggdmx_process (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x2ca70cd) #2 0x7fc0bb8c197c in gf_filter_process_task (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x2b3e97c) #3 0x7fc0bb87d00a in gf_fs_thread_proc (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x2afa00a) #4 0x7fc0bb88a92e in gf_fs_run (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x2b0792e) #5 0x7fc0bb0fb0ce in gf_dasher_process (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x23780ce) #6 0x55587f9ca338 in do_dash /root/gpac2/gpac/applications/mp4box/mp4box.c:4807 #7 0x55587f9ca338 in mp4box_main /root/gpac2/gpac/applications/mp4box/mp4box.c:6184 #8 0x7fc0b854fd8f in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58
SUMMARY: AddressSanitizer: heap-use-after-free (/root/gpac2/gpac/bin/gcc/libgpac.so.12+0x2557987) in ogg_stream_clear Shadow bytes around the buggy address: 0x0c2a7fffa5e0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x0c2a7fffa5f0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x0c2a7fffa600: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x0c2a7fffa610: fd fd fd fd fd fd fd fd fd fd fd fa fa fa fa fa 0x0c2a7fffa620: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa =>0x0c2a7fffa630: fd[fd]fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x0c2a7fffa640: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x0c2a7fffa650: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x0c2a7fffa660: fd fd fd fd fd fd fd fd fd fd fd fd fd fa fa fa 0x0c2a7fffa670: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c2a7fffa680: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 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
```
| Heap Use-After-Free in GPAC MP4Box's ogg_stream_clear Function When Processing OGG Files | https://api.github.com/repos/gpac/gpac/issues/2421/comments | 0 | 2023-03-23T01:02:48Z | 2023-03-27T08:17:25Z | https://github.com/gpac/gpac/issues/2421 | 1,636,690,969 | 2,421 |
[
"gpac",
"gpac"
] | I noticed a slight audio/video offset in the generated DASH assets, when adding the raw VVC-bitstreams directly instead of first creating mp4 files and adding those.
Here is what I did (tested with the latest master revision):
```
MP4Box -dash 2700 -rap -profile onDemand -segment-name '$File$_raw_$FS$$Number$' -out sintel_raw.mpd sintel-video.vvc:fps=24 sintel-audio.aac
```
This has a slight de-synchronization between audio and video in the generated assets.
On the other hand this works fine:
```
MP4Box -new sintel-video.mp4 -add sintel-video.vvc:fps=24
MP4Box -dash 2700 -rap -profile onDemand -segment-name '$File$_mp4_$FS$$Number$' -out sintel_mp4.mpd sintel-video.mp4 sintel-audio.aac
```
Looking at the dumped xml from the generated video mp4 shows, that in the case with the raw bitstream the `CTSOffset` values are calculated incorrectly:
```
<TrackRunBox Size="532" Type="trun" Version="1" Flags="2561" Specification="p12" Container="traf" SampleCount="64" DataOffset="665">
<TrackRunEntry Size="6006" CTSOffset="31"/>
<TrackRunEntry Size="2782" CTSOffset="14"/>
<TrackRunEntry Size="1562" CTSOffset="5"/>
<TrackRunEntry Size="649" CTSOffset="0"/>
<TrackRunEntry Size="327" CTSOffset="-3"/>
<TrackRunEntry Size="154" CTSOffset="-5"/>
<TrackRunEntry Size="151" CTSOffset="-4"/>
<TrackRunEntry Size="340" CTSOffset="-2"/>
<TrackRunEntry Size="150" CTSOffset="-4"/>
<TrackRunEntry Size="164" CTSOffset="-3"/>
...
```
In contrast, this is what it looks like, when adding the video as an MP4 file:
```
<TrackRunBox Size="532" Type="trun" Version="0" Flags="2561" Specification="p12" Container="traf" SampleCount="64" DataOffset="640">
<TrackRunEntry Size="6006" CTSOffset="36"/>
<TrackRunEntry Size="2782" CTSOffset="19"/>
<TrackRunEntry Size="1562" CTSOffset="10"/>
<TrackRunEntry Size="649" CTSOffset="5"/>
<TrackRunEntry Size="327" CTSOffset="2"/>
<TrackRunEntry Size="154" CTSOffset="0"/>
<TrackRunEntry Size="151" CTSOffset="1"/>
<TrackRunEntry Size="340" CTSOffset="3"/>
<TrackRunEntry Size="150" CTSOffset="1"/>
<TrackRunEntry Size="164" CTSOffset="2"/>
...
```
It looks like the decoding delay is not taken into account correctly.
I uploaded the corresponding bitstreams and DASH assets as VVC_Incorrect_CTSOffset.zip. | Incorrect CTSOffset when dashing raw (VVC-)bitstreams | https://api.github.com/repos/gpac/gpac/issues/2420/comments | 3 | 2023-03-22T16:17:27Z | 2023-03-27T12:28:39Z | https://github.com/gpac/gpac/issues/2420 | 1,636,101,779 | 2,420 |
[
"gpac",
"gpac"
] | I am able to concatenate videos when the input files(.mp4) are on my machine. My use case is to merge multiple videos uploaded to S3 storage. I have to use presigned urls of input videos as input in concatenate command.
When I tried concatenate operation using input video's presigned urls, I am getting "Unknown input file type" error.
MP4Box -add "presigned url for video1" -cat "presigned url for video2" output.mp4.
Can someone help to use presigned urls as input to MP4Box for concatenating videos? | Cocatenate .mp4 videos using S3 presigned urls. | https://api.github.com/repos/gpac/gpac/issues/2419/comments | 13 | 2023-03-20T17:37:41Z | 2023-04-21T11:11:56Z | https://github.com/gpac/gpac/issues/2419 | 1,632,576,367 | 2,419 |
[
"gpac",
"gpac"
] | From the documentation, it is unclear to me whether GPAC should be able to DASH-prepare a video file with subtitles or not.
Using the `test5.mkv` sample file from the following URL: <https://github.com/ietf-wg-cellar/matroska-test-files/blob/master/test_files/test5.mkv>, I'm running GPAC like follows:
```bash
gpac -graph \
'src=/tmp/test5.mkv' \
'rfsrt:SID=#PID=5' @ 'tx3g2ttml:FID=subs' \
'dst=/output/out.mpd:dmode=static:SID=#PID=0,#PID=1,subs'
```
I'm expecting GPAC to create a DASH stream with a manifest file at `/output/out.mpd`, that includes the Video stream (PID 0), the audio stream (PID 1), and the French subtitles (PID 5) in `ttml` format, each embed in their respective fragmented mp4 containers. But instead I'm getting:
```logs
[MP4Mux] Error creating new XML subtitle sample description: Bad Parameter
Failed to connect filter dasher PID text3 to filter mp4mx: Bad Parameter
[AVC|H264] xPS changed but could not flush frames before signaling state change !
session last connect error Bad Parameter
Filters connected:
ffdmx (src=/tmp/test5.mkv:gpac:src=/tmp/test5.mkv) (idx=1)
-(PID video1) ufnalu (dyn_idx=5)
--(PID video1) rfnalu (dyn_idx=6)
---(PID video1) dasher (dyn_idx=7)
----(PID manifest_mpd) fout (dst=/output/out.mpd:dmode=static:SID=#PID=0,#PID=1,subs) (idx=4)
----(PID video1) mp4mx (dyn_idx=12)
-----(PID video1) fout (dst=/output/test5_dash_track1_init.mp4:gfopt:dmode=static:SID=#PID=0,#PID=1,subs:frag:xps_inband=no:psshs=moov:mime=video/mp4) (idx=10)
-(PID text3) txtin (dyn_idx=8)
--(PID text3) tx3g2srt (dyn_idx=9)
---(PID text3) rfsrt (SID=#PID=5) (idx=2)
----(PID text3) tx3g2ttml (FID=subs) (idx=3)
-----(PID text3) dasher (dyn_idx=7)
mp4mx (dyn_idx=13)
Filters not connected:
fout (dst=/output/test5_dash_track5_init.mp4:gfopt:dmode=static:SID=#PID=0,#PID=1,subs:frag:xps_inband=no:psshs=moov:mime=application/mp4) (idx=11)
```
Apologies in advance if I missed something from the documentation.
---
GPAC build:
```
gpac - GPAC command line filter engine - version 2.3-DEV-rev64-g1659cd1a4-master
(c) 2000-2023 Telecom Paris distributed under LGPL v2.1+ - http://gpac.io
```
---
Thanks for reporting your issue. Please make sure these boxes are checked before submitting your issue - thank you!
- [x] I looked for a similar issue and couldn't find any.
- [x] I tried with the latest version of GPAC. Installers available at http://gpac.io/downloads/gpac-nightly-builds/
- [x] I give enough information for contributors to reproduce my issue (meaningful title, github labels, platform and compiler, command-line ...). I can share files anonymously with this dropbox: https://www.mediafire.com/filedrop/filedrop_hosted.php?drop=eec9e058a9486fe4e99c33021481d9e1826ca9dbc242a6cfaab0fe95da5e5d95
Detailed guidelines: http://gpac.io/2013/07/16/how-to-file-a-bug-properly/
| Can GPAC transform a pre-encoded video with embed subtitles to DASH format? | https://api.github.com/repos/gpac/gpac/issues/2418/comments | 1 | 2023-03-16T18:48:46Z | 2023-03-17T18:32:09Z | https://github.com/gpac/gpac/issues/2418 | 1,628,083,565 | 2,418 |
[
"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 http://gpac.io/downloads/gpac-nightly-builds/
- [x] I give enough information for contributors to reproduce my issue (meaningful title, github labels, platform and compiler, command-line ...). I can share files anonymously with this dropbox: https://www.mediafire.com/filedrop/filedrop_hosted.php?drop=eec9e058a9486fe4e99c33021481d9e1826ca9dbc242a6cfaab0fe95da5e5d95
Platform:
Windows 10, mp4box version 2.2-rev0-gab012bbf-master
There are 2x PPS NAL units in a video encoding made by nVidia's NVEnc when weighted prediction is turned on. One PPS is for normal operation and the other PPS contains the weighted prediction information. When extracting the raw video stream with `mp4box -raw 1 <file>`, only the first (non-weighted prediction) PPS is extracted, leaving the weighted pred frames un-decodable. A sample encoding has been [uploaded here](https://www.mediafire.com/file/5thmnhuor68f02y/DHBSPan_nVidia_A4000_VBR_POnly_QtrPass_60fGoP_WPred-short.mp4/file).
Also, when you inspect the file with `mp4box -info`, it gives these details for Track 1:
```Parameter Sets: 1 VPS 1 SPS 1 PPS```
It should say:
```Parameter Sets: 1 VPS 1 SPS 2 PPS```
The attached encoding has the first PPS at offset 0x089 and the second one at offset 0x094.
| mp4box does not process all PPS NALs in a stream | https://api.github.com/repos/gpac/gpac/issues/2417/comments | 1 | 2023-03-15T23:36:34Z | 2023-03-16T14:48:22Z | https://github.com/gpac/gpac/issues/2417 | 1,626,428,329 | 2,417 |
[
"gpac",
"gpac"
] | (latest mp4box from git)
Dash segments don't have an equal duration in `SIDX.duration` and `mdat.duration(samples*dur)` fields. **Should SIDX and mdat fragment chunk durations match?**
Things go even more wrong after encryption, **first** `cenc/v1/1.m4s ` file is `SIDX.dur=3.76s, mdat=3.84s !!!` values.
Encoding target is 3,84s segments (input aac 48Khz/h264 25fps, gop 96 frames), this should give 100% align video+audio segment durations.
**4x fragments, no drm and drm**
```
https://refapp.hbbtv.org/videos/dashtest/test1/manifest.mpd
v1/1.m4s, SIDX.earliestPresTime=0, timescale=12800
SIDX.dur= 12800, 12288, 12288, 11776, total=49152 (3,84s)
mdat.dur=24*512=12288, 24*512=12288, 24*512=12288, 24*512=12288, total=49152 (3,84s)
v1/2.m4s SIDX.earliestPresTime=49152(3,84s), timescale=12800
SIDX.dur= 12800, 12288, 12288, 11776, total=49152 (3,84s)
mdat.dur=24*512=12288, 24*512=12288, 24*512=12288, 24*512=12288, total=49152 (3,84s)
https://refapp.hbbtv.org/videos/dashtest/test1/cenc/manifest.mpd
https://test.playready.microsoft.com/service/rightsmanager.asmx?cfg=(kid:header,sl:2000,persist:false,contentkey:EjQSNBI0EjQSNBI0EjQSNw==)
cenc/v1/1.m4s SIDX.earliestPresTime=0, timescale=12800
SIDX.dur= 11776, 12288, 12288, 11776, total=48128 (3,76s) !!!
mdat.dur=24*512=12288, 24*512=12288, 24*512=12288, 24*512=12288, total=49152 (3,84s) !!!
cenc/v1/2.m4s SIDX.earliestPresTime=48128(3,76s)
SIDX.dur= 12800, 12288, 12288, 11776, total=49152 (3,84s)
mdat.dur=24*512=12288, 24*512=12288, 24*512=12288, 24*512=12288, total=49152 (3,84s)
```
**1x fragment, no drm, drm**
```
https://refapp.hbbtv.org/videos/dashtest/test3/manifest.mpd
v1/1.m4s, SIDX.earliestPresTime=0, timescale=12800
SIDX.dur= 49152 (3,84s)
mdat.dur=96*512=49152 (3,84s)
v1/2.m4s, SIDX.earliestPresTime=49152
SIDX.dur= 49152 (3,84s)
mdat.dur=96*512=49152 (3,84s)
** 1x fragment, drm, test3/cenc/manifest.mpd **
https://refapp.hbbtv.org/videos/dashtest/test3/cenc/manifest.mpd
https://test.playready.microsoft.com/service/rightsmanager.asmx?cfg=(kid:header,sl:2000,persist:false,contentkey:EjQSNBI0EjQSNBI0EjQSNw==)
cenc/v1/1.m4s, SIDX.earliestPresTime=0, , timescale=12800
SIDX.dur= 48128 (3,76s) !!!
mdat.dur=96*512=49152 (3,84s) !!!
cenc/v1/2.m4s, SIDX.earliestPresTime=48128(3,76s)
SIDX.dur= 49152 (3,84s)
mdat.dur=96*512=49152 (3,84s)
```
**intermediary temp-xx.mp4 input files**
https://refapp.hbbtv.org/videos/dashtest/test1/temp/temp-v1.mp4
https://refapp.hbbtv.org/videos/dashtest/test1/temp/temp-a1.mp4
https://refapp.hbbtv.org/videos/dashtest/test3/temp/temp-v1.mp4
https://refapp.hbbtv.org/videos/dashtest/test3/temp/temp-a1.mp4
**Dash command lines**
```
4x fragments
MP4Box -dash 184320 -frag 46080 -dash-scale 48000 -mem-frags -rap -profile dashavc264:live \
-profile-ext urn:hbbtv:dash:profile:isoff-live:2012 -min-buffer 2000 \
-bs-switching no -sample-groups-traf -single-traf --tfdt64 --tfdt_traf --noroll=yes --btrt=no \
--truns_first=yes --cmaf=cmf2 -subsegs-per-sidx 0 \
-segment-name "$RepresentationID$/$Number$$Init=i$" \
-out manifest.mpd:dual \
"temp/temp-v1.mp4#trackID=1:id=v1:period=p0:asID=1:role=main:dur=24:#HLSPL=manifest_v1.m3u8" \
"temp/temp-a1.mp4#trackID=1:id=a1:period=p0:asID=21:role=main:dur=24:#HLSPL=manifest_a1.m3u8:#HLSGroup=audio"
1x fragment
MP4Box -dash 184320 -frag 184320 -dash-scale 48000 -mem-frags -rap -profile dashavc264:live \
-profile-ext urn:hbbtv:dash:profile:isoff-live:2012 -min-buffer 2000 \
-bs-switching no -sample-groups-traf -single-traf --tfdt64 --tfdt_traf --noroll=yes --btrt=no \
--truns_first=yes --cmaf=cmf2 -subsegs-per-sidx 0 \
-segment-name "$RepresentationID$/$Number$$Init=i$" \
-out manifest.mpd:dual \
"temp/temp-v1.mp4#trackID=1:id=v1:period=p0:asID=1:role=main:dur=24:#HLSPL=manifest_v1.m3u8" \
"temp/temp-a1.mp4#trackID=1:id=a1:period=p0:asID=21:role=main:dur=24:#HLSPL=manifest_a1.m3u8:#HLSGroup=audio"
Encryption
MP4Box -crypt drm-cenc.xml temp/temp-v1.mp4 -out temp/temp-v1-cenc.mp4
MP4Box -crypt drm-cenc.xml temp/temp-a1.mp4 -out temp/temp-a1-cenc.mp4
- run 4x and 1x fragment mp4box with temp-XX-cenc.mp4 input files
```
**drm-cenc.xml**
```
<?xml version="1.0" encoding="UTF-8" ?>
<GPACDRM type="CENC AES-CTR">
<!--
kid=0x43215678123412341234123412341237
key=0x12341234123412341234123412341237
iv=0x22ee7d4745d3a26a
-->
<!-- Playready -->
<DRMInfo type="pssh" version="0">
<BS ID128="9A04F07998404286AB92E65BE0885F95"/>
<BS bits="32" endian="little" value="518"/>
<BS bits="16" endian="little" value="1"/>
<BS bits="16" endian="little" value="1"/>
<BS bits="16" endian="little" value="508"/>
<BS data64="PABXAFIATQBIAEUAQQBEAEUAUgAgAHgAbQBsAG4AcwA9ACIAaAB0AHQAcAA6AC8ALwBzAGMAaABlAG0AYQBzAC4AbQBpAGMAcgBvAHMAbwBmAHQALgBjAG8AbQAvAEQAUgBNAC8AMgAwADAANwAvADAAMwAvAFAAbABhAHkAUgBlAGEAZAB5AEgAZQBhAGQAZQByACIAIAB2AGUAcgBzAGkAbwBuAD0AIgA0AC4AMAAuADAALgAwACIAPgA8AEQAQQBUAEEAPgA8AFAAUgBPAFQARQBDAFQASQBOAEYATwA+ADwASwBFAFkATABFAE4APgAxADYAPAAvAEsARQBZAEwARQBOAD4APABBAEwARwBJAEQAPgBBAEUAUwBDAFQAUgA8AC8AQQBMAEcASQBEAD4APAAvAFAAUgBPAFQARQBDAFQASQBOAEYATwA+ADwASwBJAEQAPgBlAEYAWQBoAFEAegBRAFMATgBCAEkAUwBOAEIASQAwAEUAagBRAFMATgB3AD0APQA8AC8ASwBJAEQAPgA8AEMASABFAEMASwBTAFUATQA+AHIAbQBpAFAAYwB6AHYAQwBXAHQAMAA9ADwALwBDAEgARQBDAEsAUwBVAE0APgA8AC8ARABBAFQAQQA+ADwALwBXAFIATQBIAEUAQQBEAEUAUgA+AA=="/>
</DRMInfo>
<!-- Widevine -->
<DRMInfo type="pssh" version="0">
<BS ID128="EDEF8BA979D64ACEA3C827DCD51D21ED"/>
<BS data="0x08011210"/>
<BS ID128="43215678123412341234123412341237"/>
</DRMInfo>
<!-- Marlin -->
<DRMInfo type="pssh" version="0">
<BS ID128="69f908af481646ea910ccd5dcccb0a3a"/>
<BS data="0x000000186d61726c000000106d6b69640000000000000000"/>
</DRMInfo>
<!-- CENC -->
<DRMInfo type="pssh" version="1">
<BS ID128="1077efecc0b24d02ace33c1e52e2fb4b"/>
<BS bits="32" value="1"/>
<BS ID128="43215678123412341234123412341237"/>
</DRMInfo>
<CrypTrack trackID="1" IsEncrypted="1" IV_size="8" first_IV="0x22ee7d4745d3a26a" saiSavedBox="senc" >
<key KID="0x43215678123412341234123412341237" value="0x12341234123412341234123412341237"/>
</CrypTrack>
</GPACDRM>
```
ps: #2377 ticket is loosely related to a timing, SIDX.earliestPresentationTime value was fixed. | dash segment fragment(SIDX , mdat) duration does not match, drm changes duration even more | https://api.github.com/repos/gpac/gpac/issues/2416/comments | 4 | 2023-03-10T15:58:11Z | 2023-03-14T10:11:36Z | https://github.com/gpac/gpac/issues/2416 | 1,619,205,328 | 2,416 |
[
"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 http://gpac.io/downloads/gpac-nightly-builds/
- [x] I give enough information for contributors to reproduce my issue (meaningful title, github labels, platform and compiler, command-line ...). I can share files anonymously with this dropbox: https://www.mediafire.com/filedrop/filedrop_hosted.php?drop=eec9e058a9486fe4e99c33021481d9e1826ca9dbc242a6cfaab0fe95da5e5d95
Detailed guidelines: http://gpac.io/2013/07/16/how-to-file-a-bug-properly/
App: GPAC
OS: Mac OS X 12.6 64 Bits
Version: 2.3-DEV-fccf4a645-master-20230307
I built it from source by following this [instructions](https://github.com/gpac/gpac/wiki/GPAC-Build-Guide-for-OSX).
I'm attempting to convert an mp4 file into a playlist and segment files using the LLHLS protocol as the primary format. Due to my work requirements, I need to output both multiplexed and non-multiplexed segment files separately (not necessarily simultaneously), but no matter how I adjust the command, I am unable to output multiplexed segment files. I have tried referring to a similar issue #1775 and several wiki explanations ([Dasher](https://github.com/gpac/gpac/wiki/dasher), [HLS](https://github.com/gpac/gpac/wiki/hls#hls-with-one-file-per-segment), [LLHLS](https://github.com/gpac/gpac/wiki/LL-HLS#hls-low-latency-setup), [Dash Transcoding](https://github.com/gpac/gpac/wiki/dash_transcoding#same-resolution), etc.), but still can't get it to work. What I want to achieve is an output in LLHLS protocol that includes only one variant m3u8 file, one init file, and segment and part files for a single audio and video stream (it's okay if a master m3u8 file is also generated). Is this a bug or is there a specific part of the command I need to adjust?
The command I used is:
```bash
gpac -i "input.mp4:#Representation=main" \
"reframer:rt=on" @ \
"ffsws:osize=640x360" @ \
"enc:c=avc:fintra=2" @2 \
"enc:c=aac:fintra=2:b=128k" @ @1 \
-o "index.m3u8:segdur=5:cdur=0.5:profile=live:dmode=dynamic:llhls=sf:tsb=-1:append" \
-graph
```
This command will generate these files in my output folder.
```
-rw-r--r-- 1 owner group 283 Mar 9 21:27 index.m3u8
-rw-r--r-- 1 owner group 12K Mar 9 21:27 index_1.m3u8
-rw-r--r-- 1 owner group 7.6K Mar 9 21:27 index_2.m3u8
-rw-r--r-- 1 owner group 680K Mar 9 21:27 input_dash_track1_1.m4s
-rw-r--r-- 1 owner group 153K Mar 9 21:27 input_dash_track1_1.m4s.1
-rw-r--r-- 1 owner group 134K Mar 9 21:27 input_dash_track1_1.m4s.2
-rw-r--r-- 1 owner group 40K Mar 9 21:27 input_dash_track1_1.m4s.3
-rw-r--r-- 1 owner group 1.2K Mar 9 21:27 input_dash_track1_init.mp4
-rw-r--r-- 1 owner group 56K Mar 9 21:27 input_dash_track2_1.m4s
-rw-r--r-- 1 owner group 353 Mar 9 21:27 input_dash_track2_1.m4s.1
-rw-r--r-- 1 owner group 7.3K Mar 9 21:27 input_dash_track2_1.m4s.2
-rw-r--r-- 1 owner group 8.6K Mar 9 21:27 input_dash_track2_1.m4s.3
-rw-r--r-- 1 owner group 1022 Mar 9 21:27 input_dash_track2_init.mp4
```
I checked the gpac graph and it seems that all filters are connected properly. Here is the output from the terminal:
```
Filters connected:
fin (src=input.mp4:#Representation=main) (idx=1)
-(PID input.mp4) mp4dmx (dyn_idx=7)
--(PID V1)\
--(PID A2)-> reframer (rt=on) (idx=2)
---(PID V1) vtbdec "VTB:Hardware:AVC|H264" (dyn_idx=8)
----(PID V1) ffsws (osize=640x360) (idx=3)
-----(PID V1) ffenc "ffenc:libx264" (c=avc:fintra=2) (idx=4)
------(PID V1) rfnalu (dyn_idx=11)
-------(PID V1) dasher (dyn_idx=10)
--------(PID manifest_m3u8) fout (dst=index.m3u8:segdur=5:cdur=0.5:profile=live:dmode=dynamic:llhls=sf:tsb=-1:append) (idx=6)
--------(PID A2) mp4mx (dyn_idx=14)
---------(PID A2) fout (dst=input_dash_track2_init.mp4:gfopt:segdur=5:cdur=0.5:profile=live:dmode=dynamic:llhls=sf:tsb=-1:append:frag:xps_inband=no:psshs=moov:mime=audio/mp4:cmaf=cmfc) (idx=12)
--------(PID V1) mp4mx (dyn_idx=15)
---------(PID V1) fout (dst=input_dash_track1_init.mp4:gfopt:segdur=5:cdur=0.5:profile=live:dmode=dynamic:llhls=sf:tsb=-1:append:frag:xps_inband=no:psshs=moov:mime=video/mp4:cmaf=cmfc) (idx=13)
---(PID A2) ffdec "ffdec:aac" (dyn_idx=9)
----(PID A2) ffenc "ffenc:aac" (c=aac:fintra=2:b=128k) (idx=5)
-----(PID A2) dasher (dyn_idx=10)
```
It seems that two streams are being outputted at the (PID manifest_m3u8) fout location.
Here is the output of `gpac -i "input.mp4" inspect` command (I can upload the file to Dropbox if needed).
```
PID 1 video inMovie duration 23:40.128 timescale 24000 delay -2002 1920x1080 fps 24000/1001 SAR 1/1 3113 kbps 34049 frames codec AVC|H264 PL High@5 YUV 4:2:0 8 bpp
PID 2 audio inMovie duration 23:40.086 timescale 44100 44100 Hz 2 channels 130 kbps 61158 frames codec AAC LC (aot=2 implicit)
```
I have a basic understanding of audio and video concepts and streaming protocols, but I am extremely unfamiliar with transcoding. Please let me know if there are any errors or omissions in my understanding. Thank you. | Cannot generate multiplexed LLHLS outputs | https://api.github.com/repos/gpac/gpac/issues/2414/comments | 1 | 2023-03-09T13:57:42Z | 2023-03-14T11:34:11Z | https://github.com/gpac/gpac/issues/2414 | 1,617,313,551 | 2,414 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.