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"
] | Hi, I am trying to play 3D music file in the Osmo4 player, but the app stops responding. Here is the audio file to test with: https://drive.google.com/file/d/1dOGFi1OplTyef4FhCOo7zrKKuI3AZ3CL/view?usp=sharing
Kindly help. | MPEG 4 3D not playing in android | https://api.github.com/repos/gpac/gpac/issues/1758/comments | 1 | 2021-04-23T19:46:34Z | 2021-04-26T13:36:55Z | https://github.com/gpac/gpac/issues/1758 | 866,385,861 | 1,758 |
[
"gpac",
"gpac"
] | null | null dereference in MP4Box trak_box_size | https://api.github.com/repos/gpac/gpac/issues/1757/comments | 0 | 2021-04-23T00:51:46Z | 2023-09-22T06:08:04Z | https://github.com/gpac/gpac/issues/1757 | 865,639,263 | 1,757 |
[
"gpac",
"gpac"
] | null | null dereference in MP4Box gf_odf_desc_copy | https://api.github.com/repos/gpac/gpac/issues/1756/comments | 0 | 2021-04-23T00:50:46Z | 2023-09-22T06:13:46Z | https://github.com/gpac/gpac/issues/1756 | 865,638,887 | 1,756 |
[
"gpac",
"gpac"
] | Is there a way to add inband timed metadata to mpeg fragments? I know it's possible to add them to mpeg-ts fragments, but I am trying to make the switch to mpeg4 fragments and need some help figuring out how to add the metadata. | Question? Add inband timed metadata to mpeg4 fragments? | https://api.github.com/repos/gpac/gpac/issues/1755/comments | 1 | 2021-04-22T23:31:14Z | 2021-04-23T10:01:47Z | https://github.com/gpac/gpac/issues/1755 | 865,573,444 | 1,755 |
[
"gpac",
"gpac"
] | null | null dereference issue in MP4Box HintFile | https://api.github.com/repos/gpac/gpac/issues/1754/comments | 0 | 2021-04-22T08:40:51Z | 2023-09-22T06:15:28Z | https://github.com/gpac/gpac/issues/1754 | 864,697,432 | 1,754 |
[
"gpac",
"gpac"
] | null | null dereference issue in MP4Box abst_box_size | https://api.github.com/repos/gpac/gpac/issues/1753/comments | 0 | 2021-04-22T08:05:19Z | 2023-09-22T06:10:25Z | https://github.com/gpac/gpac/issues/1753 | 864,665,765 | 1,753 |
[
"gpac",
"gpac"
] | I'm running GPAC on a mac mini with apple silicon, I am getting the following warning when running.
"Unexpected thread_info() call return (ipc/send) invalid destination port". I am running the following command
./gpac -i ~/Downloads/meta_n2.mp4 reframer:rt=on @ -o live.m3u8:segdur=10:cdur=0.1:llhls=br:cmaf=cmf2:dmode=static | Unexpected thread_info() call return (ipc/send) invalid destination port | https://api.github.com/repos/gpac/gpac/issues/1752/comments | 2 | 2021-04-21T17:12:57Z | 2021-04-22T13:05:46Z | https://github.com/gpac/gpac/issues/1752 | 864,098,916 | 1,752 |
[
"gpac",
"gpac"
] | Hello, everyone. Is there any method to obtain the frame data of the hevc tiled video?
When i use MP4Box to produce DASH video from a single MP4 file, I can simply concatenate the init.mp4 and the .m4s files like this:
```
cat init.mp4 1.m4s 2.m4s 3.m4s > target.mp4
```
Then i can use other tools to obtain the frame data of the video.
However, if i produce a tiled DASH video according to the wiki "HEVC Tile based adaptation guide", i find that the method i used no longer works.
When i want to concatenate the DASH files of one of the tracks (3x3+1 in wiki), the output can not be played seperately which means i can not obtain the frame data with other video processing tools(like ffmpeg).
Is there any helpful method in GPAC that can achieve this? | How to obtain the frame data? | https://api.github.com/repos/gpac/gpac/issues/1751/comments | 3 | 2021-04-21T07:12:36Z | 2021-04-21T08:53:45Z | https://github.com/gpac/gpac/issues/1751 | 863,524,074 | 1,751 |
[
"gpac",
"gpac"
] | Although the compositor handles well jpeg/png/etc. images from rfimg and imgdec filter chain, when it comes to bmp (so only with rfimg) the compositor display only a red images with GPAC_DISABLE_3D flag. | Compositor isn't able to display BMP files with GPAC_DISABLE_3D enable | https://api.github.com/repos/gpac/gpac/issues/1749/comments | 2 | 2021-04-20T19:58:14Z | 2021-04-22T19:51:04Z | https://github.com/gpac/gpac/issues/1749 | 863,187,302 | 1,749 |
[
"gpac",
"gpac"
] | The AV1 parser doesn't read enough bytes for the ispe element - getting the correct values requires looping over every OBU_FRAME or OBU_FRAME_HEADER in the source bitstream and finding the maximum size, but currently it only reads one block (currently 5000 bytes). There are a couple of solutions for this, but I'd like to know which one is appropriate for gpac.
1. Configure the AV1 parser to read an arbitrary number of bytes.
2. Use a function like av1_get_layer_size added by my a1lx PR specifically for the ispe element to determine sizes (it could in fact be the exact same function).
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/
| AV1 parser doesn't read enough to get correct size for ispe element | https://api.github.com/repos/gpac/gpac/issues/1747/comments | 11 | 2021-04-16T03:50:34Z | 2021-05-10T10:24:35Z | https://github.com/gpac/gpac/issues/1747 | 859,429,784 | 1,747 |
[
"gpac",
"gpac"
] | Extracting Mpeg-4 ASP stream fails using this https://drive.google.com/file/d/1Ho2OrCNKxi6QNl-dpGggiszJJrV9Op1I/view?usp=sharing
```
MP4Box.exe -info "f:\TestClips&Co\rotate_90.mp4"
# File Meta type: "undefined" - 0 resource item(s)
# Movie Info - 2 tracks - TimeScale 1000
Duration 00:00:17.160
Fragmented: no
Major Brand isom - version 512 - compatible brands: isom iso2 mp41
Created: UNKNOWN DATE
# Movie Meta type: "undefined" - 0 resource item(s)
iTunes Info:
title: Encoding TestClip
artist: AutorTest
created: Heute
tool: Lavf58.77.100
comment: Kleiner Testclip den ich zum Testen verwende
A9gen: Documentary
copyright: CopyrightTest
# Track 1 Info - ID 1 - TimeScale 12800
Media Duration 00:00:17.160
Track has 1 edits: track duration is 00:00:17.160
Media Info: Language "Undetermined (und)" - Type "vide:mp4v" - 429 samples
Visual Sample Entry Info: width=640 height=352 (depth=24 bits)
Visual Track layout: x=0 y=0 width=640 height=352
MPEG-4 Visual Size 640 x 352 - Advanced Simple Profile @ Level 5
Pixel Aspect Ratio 1:1 - Indicated track size 640 x 352
RFC6381 Codec Parameters: mp4v.20.f5
Track Meta type: "undefined" - 0 resource item(s)
Average GOP length: 214 samples
Max sample duration: 512 / 12800
# Track 2 Info - ID 2 - TimeScale 48000
Media Duration 00:00:17.160
Track has 1 edits: track duration is 00:00:17.160
Media Info: Language "Undetermined (und)" - Type "soun:mp4a" - 715 samples
MPEG-1 Audio - 2 Channel(s) - SampleRate 48000 - Layer 3
RFC6381 Codec Parameters: mp4a.6B.0
Track Meta type: "undefined" - 0 resource item(s)
Alternate Group ID 1
All samples are sync
Max sample duration: 1152 / 48000
```
with
```
MP4Box - GPAC version 1.1.0-DEV-rev692-g7443d3bc5-ab-suite
(c) 2000-2021 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
GPAC Configuration: --prefix=/local64 --disable-shared --enable-static --static-mp4box
Features: GPAC_CONFIG_WIN32 GPAC_64_BITS GPAC_MINIMAL_ODF GPAC_HAS_QJS GPAC_HAS_FREETYPE GPAC_HAS_MAD GPAC_HAS_JPEG GPAC_HAS_PNG GPAC_HAS_XVID GPAC_DISABLE_3D
```
and this call:
```
MP4Box -raw 1 "F:\TestClips&Co\rotate_90.mp4" -out "E:\Output\raw.m4v"
```
gives me:
```
No filter chain found for PID V1 in filter reframer to any loaded filters - NOT CONNECTED
Filters not connected:
fout (dst=E:\Output\raw.m4v) (ptr=000001d54b347790)
```
Cu Selur | Extracting Mpeg-4 ASP stream fails,... | https://api.github.com/repos/gpac/gpac/issues/1746/comments | 1 | 2021-04-15T15:55:11Z | 2021-04-16T17:09:57Z | https://github.com/gpac/gpac/issues/1746 | 859,021,531 | 1,746 |
[
"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,
After reading the
documentation, I've tried to use ffavin to load a stream through [NDI](https://www.ndi.tv/sdk/).
[EDIT]
To reproduce :
ffmpeg compilation:
```sh
sudo cp -av /NDI_Folder_Location_for_linux/lib/x86_64-linux-gnu/libndi.so* /usr/lib/
#compile ffmpeg
#configure
wget -O ffmpeg-snapshot.tar.bz2 https://ffmpeg.org/releases/ffmpeg-4.1.3.tar.bz2 && tar xjf ffmpeg-snapshot.tar.bz2 && sudo rm ffmpeg-snapshot.tar.bz2
cd ffmpeg-4.1.3
./configure \
--extra-cflags="-I/NDI_Folder_Location_for_linux/include" \
--extra-ldflags="-L/usr/lib/" \
--extra-libs="-lpthread -lm" \
--pkg-config=pkg-config \
--enable-libndi_newtek
#make
make -j$(nproc)
sudo make install
#quick test log
ffmpeg -h demuxer=libndi_newtek
```
Gpac compilation:
```sh
make config.mak
make -j$(nproc)
```
I've compiled ffmpeg with NDI support - 4.1.3 -, and gpac with my local version of ffmpeg: when running :
`./gpac -hx ffavin:libndi_newtek`
i get :
``` sh
ffavin:libndi_newtek
Description: Network Device Interface (NDI) input using NewTek library
Version: Lavd58.5.100
Max Input PIDs: 1
Flags: URLMimeProber
Priority 0
Options (expert):
find_sources (bool, default: false): Find available sources
wait_sources (uint): Time to wait until the number of online sources have changed
allow_video_fields (bool, default: true): When this flag is FALSE, all video that you receive will be progressive
extra_ips (str): List of comma separated ip addresses to scan for remote sources
```
all good so far.
But when trying to specify my input I don't get the right command..
<br>
With ffmpeg i do:
```sh
ffmpeg -f libndi_newtek -i "PIERRE-ALL-SERIES (NDI_TEST)" -frames:v 100 output.mp4
```
<br>
I have assumed this would work:
```sh
./gpac -i libndi_newtek:i="PIERRE-ALL-SERIES (NDI_TEST)" compositor vout
```
but i get : `Failed to load filter for "libndi_newtek:i=PIERRE-ALL-SERIES (NDI_TEST)": Requested URL is not valid or cannot be found`
Any pointers?
Thanks for your great work and support, :).
Best,
P | ffavin filter documentation // How to use it | https://api.github.com/repos/gpac/gpac/issues/1745/comments | 3 | 2021-04-15T09:05:40Z | 2021-04-15T13:06:10Z | https://github.com/gpac/gpac/issues/1745 | 858,668,204 | 1,745 |
[
"gpac",
"gpac"
] | I'd like to generate a HLS .m3u8 at the same time as the DASH .mpd, but - as I'm new to streaming tech - have been overwhelmed by all the options available.
Having read about the gpac 0.9.0 rearchitecture I gather this is possible, and have been exploring 1.0.1 on Debian testing - but can't see how to manage it.
I've successfully used FFMPEG to create multiple scaled represenatations of a video (and a single separate audio file), and then MP4Box to create an .mpd file and adjust the video container information as needed - resulting in a working stream with single files for each representation (serving byte-ranges via Apache).
I'm currently using gpac 0.5.2 on Debian 10 this with command:
```MP4Box -dash 5000 -frag 5000 -rap -profile onDemand -out film.mpd film_360.mp4 film_540.mp4 film_720.mp4 film_1080.mp4 film_audio.mp4```
It seems that, to get the .m3u8, I need to specify the *dasher* filter with the *dual* option, but haven't wrapped my head around how to do this.
Any suggestions or examples?
| How to generate both DASH & HLS for multiple representation files? [Help wanted] | https://api.github.com/repos/gpac/gpac/issues/1743/comments | 2 | 2021-04-14T13:22:40Z | 2021-04-14T14:05:11Z | https://github.com/gpac/gpac/issues/1743 | 857,894,718 | 1,743 |
[
"gpac",
"gpac"
] | http://dash.akamaized.net/WAVE/Mezzanine/tos_A1_480x270@15_60.mp4
```
gpac -graph -i ../content_files/tos_A1_480x270@15_60.mp4:noedit @ ffsws:osize=480x270 @ enc:c=h264:b=300k:r=60:color_primaries=1:color_trc=1:colorspace=1:FID=V7 -o output/gpac/stream.mpd:cmaf=cmfc:stl:segdur=2:profile=live:SID=V7
```
Output MPD:
```
<?xml version="1.0"?>
<!-- MPD file Generated with GPAC version 1.1.0-DEV-rev697-g29031a5e6-buildbot-cmaf-dash-profile at 2021-04-12T15:51:21.909Z -->
<MPD xmlns="urn:mpeg:dash:schema:mpd:2011" minBufferTime="PT2.000S" type="static" mediaPresentationDuration="PT0H1M0.133S" maxSegmentDuration="PT0H0M2.734S" profiles="urn:mpeg:dash:profile:full:2011,urn:mpeg:dash:profile:cmaf:2019">
<ProgramInformation moreInformationURL="http://gpac.io">
<Title>stream.mpd generated by GPAC</Title>
</ProgramInformation>
<Period duration="PT0H1M0.133S">
<AdaptationSet segmentAlignment="true" maxWidth="480" maxHeight="270" maxFrameRate="15" par="16:9" lang="und" startWithSAP="3">
<SegmentTemplate media="tos_A1_480x270@15_60_dash$Time$.m4s" initialization="tos_A1_480x270@15_60_dashinit.mp4" timescale="15360" presentationTimeOffset="2048" startNumber="1">
<SegmentTimeline>
<S t="0" d="31744"/>
<S d="30720" r="13"/>
<S d="41984"/>
<S d="30720" r="11"/>
<S d="23552"/>
<S d="27648"/>
</SegmentTimeline>
</SegmentTemplate>
<Representation id="1" mimeType="video/mp4" codecs="avc1.640015" width="480" height="270" frameRate="15" sar="1:1" bandwidth="300000">
</Representation>
</AdaptationSet>
</Period>
</MPD>
```
Same with and without ```:noedit```.
| dasher: intermittent issue with segment durations | https://api.github.com/repos/gpac/gpac/issues/1742/comments | 1 | 2021-04-12T15:52:19Z | 2021-04-13T09:01:27Z | https://github.com/gpac/gpac/issues/1742 | 856,115,373 | 1,742 |
[
"gpac",
"gpac"
] | Option 1 (FID/SID):
```
$ gpac -graph \
-i avgen:dur=3.840:sr=48000:ch=2:FID=GEN2 \
ffavf:FID=GEN2A:SID=GEN2#audio::f=aresample=sample_rate=48000 \
reframer:raw:xs=9.6:#ClampDur=9.6:#PStart=9.6:#m=m2:SID=GEN2A,GEN2#video:#BUrl=http://romain \
@ ffenc:c=aac:FID=P1A0 \
@1 ffenc:c=avc:fintra=1.920:FID=P1V0 \
-o tmp/dashif_ad_insertion_usecase1.mpd:segdur=1.920:cmaf=cmfc:stl:SID=P1A0,P1V0 --template='$m$_$Type$_$Number$'
[avgen] done playing, cts 96
[Reframer] All streams in end of stream for desired start range 9600000/1000000
Filters connected:
"avgen" (js=/home/rbouqueau/works/gpac/gpac/share/scripts/jsf/avgen/init.js:dur=3.840:sr=48000:ch=2:FID=GEN2) (ID=GEN2)
-(PID audio) ffavf (FID=GEN2A:SID=GEN2#audio::f=aresample=sample_rate=48000) (ID=GEN2A)
--(PID audio) reframer (raw:xs=9.6:#ClampDur=9.6:#PStart=9.6:#m=m2:SID=GEN2A,GEN2#video:#BUrl=http://romain) (ID=_0x55d220b24a40_)
---(PID video) ffenc "ffenc:libx264" (c=avc:fintra=1.920:FID=P1V0) (ID=P1V0)
----(PID video) rfnalu (ptr=0x55d2231b8960)
-----(PID video) dasher (ptr=0x55d2231b95c0)
------(PID manifest_mpd) fout (dst=tmp/dashif_ad_insertion_usecase1.mpd:segdur=1.920:cmaf=cmfc:stl:SID=P1A0,P1V0) (ptr=0x55d220baf590)
---(PID audio) resample (ptr=0x55d2231c2cd0)
----(PID audio) ffenc "ffenc:aac" (c=aac:FID=P1A0) (ID=P1A0)
-----(PID audio) dasher (ptr=0x55d2231b95c0)
-(PID video) reframer (raw:xs=9.6:#ClampDur=9.6:#PStart=9.6:#m=m2:SID=GEN2A,GEN2#video:#BUrl=http://romain) (ID=_0x55d220b24a40_)
```
Option 2 (using @ @1):
```
$ gpac -graph -i avgen:dur=3.840:sr=48000:ch=2:FID=GEN2 \
@ ffavf::f=aresample=sample_rate=48000::FID=GEN2A \
@ @1 reframer:raw:xs=9.6:#ClampDur=9.6:#PStart=9.6:#m=m2:#BUrl=http://romain @ ffenc:c=aac:FID=P1A0 \
@1 ffenc:c=avc:fintra=1.920:FID=P1V0 \
-o tmp/dashif_ad_insertion_usecase1.mpd:segdur=1.920:cmaf=cmfc:stl:SID=P1A0,P1V0 --template='$m$_$Type$_$Number$'
No filter chain found for PID audio in filter reframer to any loaded filters - NOT CONNECTED
[avgen] done playing, cts 96
[Reframer] All streams in end of stream for desired start range 9600000/1000000
Filters connected:
"avgen" (js=/home/rbouqueau/works/gpac/gpac/share/scripts/jsf/avgen/init.js:dur=3.840:sr=48000:ch=2:FID=GEN2) (ID=GEN2)
-(PID audio) ffavf (:f=aresample=sample_rate=48000::FID=GEN2A) (ID=GEN2A)
--(PID audio) reframer (raw:xs=9.6:#ClampDur=9.6:#PStart=9.6:#m=m2:#BUrl=http://romain) (ID=_0x559d99721660_)
---(PID audio) resample (ptr=0x559d9bdb7d60)
----(PID audio) ffenc "ffenc:aac" (c=aac:FID=P1A0) (ID=P1A0)
-----(PID audio) dasher (ptr=0x559d997b8ab0)
------(PID manifest_mpd) fout (dst=tmp/dashif_ad_insertion_usecase1.mpd:segdur=1.920:cmaf=cmfc:stl:SID=P1A0,P1V0) (ptr=0x559d9975e9c0)
---(PID video) ffenc "ffenc:libx264" (c=avc:fintra=1.920:FID=P1V0) (ID=P1V0)
----(PID video) rfnalu (ptr=0x559d9bdb7160)
-----(PID video) dasher (ptr=0x559d997b8ab0)
-(PID audio) reframer (raw:xs=9.6:#ClampDur=9.6:#PStart=9.6:#m=m2:#BUrl=http://romain) (ID=_0x559d99721660_)
-(PID video) reframer (raw:xs=9.6:#ClampDur=9.6:#PStart=9.6:#m=m2:#BUrl=http://romain) (ID=_0x559d99721660_)
```
Same with ```resample:osr=48k```. | Issue building a graph with audio resampler located where requested | https://api.github.com/repos/gpac/gpac/issues/1741/comments | 2 | 2021-04-12T09:10:28Z | 2021-04-14T08:55:59Z | https://github.com/gpac/gpac/issues/1741 | 855,745,922 | 1,741 |
[
"gpac",
"gpac"
] | I had an encrypt-decrypt pair of batch files, they worked okay about 1 year ago. I updated GPAC to the latest source and recompiled, then tried to decrypt the file encrypted a year ago. It came out with no sound. If I encrypt with the newest GPAC, then the decryption goes fine. The problem is that I have a bunch of files encrypted back then, which I can't decrypt now. Can I change some parameters to make it work?
### XML file
That file `gp.xml` wasn't changed.
```
<GPACDRM type="cenc">
<DRMInfo type="pssh" version="0" cypherMode="no">
<BS ID128="9A04F07998404286AB92E65BE0885F95" />
<BS data64="rgIAAAEAAQCkAjwAVwBSAE0ASABFAEEARABFAFIAIAB4AG0AbABuAHMAPQAiAGgAdAB0AHAAOgAvAC8AcwBjAGgAZQBtAGEAcwAuAG0AaQBjAHIAbwBzAG8AZgB0AC4AYwBvAG0ALwBEAFIATQAvADIAMAAwADcALwAwADMALwBQAGwAYQB5AFIAZQBhAGQAeQBIAGUAYQBkAGUAcgAiACAAdgBlAHIAcwBpAG8AbgA9ACIANAAuADAALgAwAC4AMAAiAD4APABEAEEAVABBAD4APABQAFIATwBUAEUAQwBUAEkATgBGAE8APgA8AEsARQBZAEwARQBOAD4AMQA2ADwALwBLAEUAWQBMAEUATgA+ADwAQQBMAEcASQBEAD4AQQBFAFMAQwBUAFIAPAAvAEEATABHAEkARAA+ADwALwBQAFIATwBUAEUAQwBUAEkATgBGAE8APgA8AEsASQBEAD4AdABsAFEAaQA3ADAAYwA3AFMARQBXADcANwBjAGcAUgB0AHcAcwB0AEcAZwA9AD0APAAvAEsASQBEAD4APABDAEgARQBDAEsAUwBVAE0APgB0AG0AUwB4AGkANwBuAEkAQgBaAE0APQA8AC8AQwBIAEUAQwBLAFMAVQBNAD4APABMAEEAXwBVAFIATAA+AGgAdAB0AHAAcwA6AC8ALwBuAGMAcABzAG0AZQBkAGkAYQAuAGsAZQB5AGQAZQBsAGkAdgBlAHIAeQAuAHcAZQBzAHQAZQB1AHIAbwBwAGUALgBtAGUAZABpAGEALgBhAHoAdQByAGUALgBuAGUAdAAvAFAAbABhAHkAUgBlAGEAZAB5AC8APAAvAEwAQQBfAFUAUgBMAD4APAAvAEQAQQBUAEEAPgA8AC8AVwBSAE0ASABFAEEARABFAFIAPgA=" />
</DRMInfo>
<CrypTrack first_IV="0x0000000000000001" saiSavedBox="uuid_psec">
<key KID="0xef2254b63b474548bbedc811b70b2d1a" value="0x04030201060508070102030405060708" />
</CrypTrack>
</GPACDRM>
```
### Commands
Encrypt:
```
"C:\Projects\gpac\bin\Win32\Debug - MP4Box_only\mp4box.exe" -crypt gp.xml -ab piff Dji.mp4 -out Dji.cenc.mp4
```
Decrypt:
```
"C:\Projects\gpac\bin\Win32\Debug - MP4Box_only\mp4box.exe" -decrypt gp.xml Dji.cenc.mp4 -out Dji.decrypt.mp4
```
The (old) encrypted file is here: http://nikitins.dk/exchange/Dji.cenc.mp4
Unencrypted file: http://nikitins.dk/exchange/Dji.mp4 | Cannot decrypt CENC file | https://api.github.com/repos/gpac/gpac/issues/1740/comments | 5 | 2021-04-10T12:14:37Z | 2021-04-13T17:29:11Z | https://github.com/gpac/gpac/issues/1740 | 855,054,356 | 1,740 |
[
"gpac",
"gpac"
] | null | null dereference in AV1_DuplicateConfig | https://api.github.com/repos/gpac/gpac/issues/1738/comments | 0 | 2021-04-09T00:57:41Z | 2023-09-22T06:13:19Z | https://github.com/gpac/gpac/issues/1738 | 854,055,702 | 1,738 |
[
"gpac",
"gpac"
] | null | [Security]memory leak with MP4Box | https://api.github.com/repos/gpac/gpac/issues/1737/comments | 0 | 2021-04-09T00:56:24Z | 2023-09-22T06:11:57Z | https://github.com/gpac/gpac/issues/1737 | 854,055,228 | 1,737 |
[
"gpac",
"gpac"
] | null | null dereference in MP4Box MergeTrack | https://api.github.com/repos/gpac/gpac/issues/1736/comments | 0 | 2021-04-08T07:11:57Z | 2023-09-22T06:09:11Z | https://github.com/gpac/gpac/issues/1736 | 853,145,443 | 1,736 |
[
"gpac",
"gpac"
] | null | null dereference in MP4Box gf_isom_cenc_get_default_info_internal | https://api.github.com/repos/gpac/gpac/issues/1735/comments | 0 | 2021-04-08T07:10:40Z | 2023-09-22T06:08:25Z | https://github.com/gpac/gpac/issues/1735 | 853,144,448 | 1,735 |
[
"gpac",
"gpac"
] | null | null dereference in MP4Box HintFile | https://api.github.com/repos/gpac/gpac/issues/1734/comments | 0 | 2021-04-08T04:07:59Z | 2023-09-22T06:10:12Z | https://github.com/gpac/gpac/issues/1734 | 853,037,887 | 1,734 |
[
"gpac",
"gpac"
] | null | [Security]heap-buffer-overflow in abst_box_read | https://api.github.com/repos/gpac/gpac/issues/1733/comments | 0 | 2021-04-08T04:06:31Z | 2023-09-22T06:12:52Z | https://github.com/gpac/gpac/issues/1733 | 853,037,318 | 1,733 |
[
"gpac",
"gpac"
] | using:
```
MP4Box - GPAC version 1.1.0-DEV-rev620-g9ed3d8d5c-ab-suite
(c) 2000-2021 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
GPAC Configuration: --prefix=/local64 --disable-shared --enable-static --static-mp4box
Features: GPAC_CONFIG_WIN32 GPAC_64_BITS GPAC_MINIMAL_ODF GPAC_HAS_QJS GPAC_HAS_FREETYPE GPAC_HAS_MAD GPAC_HAS_JPEG GPAC_HAS_PNG GPAC_HAS_XVID GPAC_DISABLE_3D
```
on Windows 10 pro 64bit
and calling:
```
MP4Box -add "E:\Output\2021-04-07@19_44_24_2410_01.265"#video:fps=25 -tmp "E:\Output" -new "E:\Output\2021-04-07@19_44_24_2410__02.mp4"
```
I get:
```
Track Importing HEVC - Width 640 Height 352 FPS 25000/1000 SAR 1/1
HEVC Import results: 429 samples (433 NALUs) - Slices: 3 I 118 P 308 B - 1 SEI - 3 IDR
HEVC Stream uses forward prediction - stream CTS offset: 4 frames
HEVC Max NALU size is 17663 - stream could be optimized by setting nal_length=2
Saving E:\Output\2021-04-07@19_44_24_2410__02.mp4: 0.500 secs Interleaving
```
and a '_libgpac_5412_0000021fa3e762b0_0000021fa3e76b30.tmp' file that isn't cleaned up.
(Same happens when using .264 files)
Attached the the files: [Output.zip](https://github.com/gpac/gpac/files/6273590/Output.zip)
in case it matters MP4Box was build using https://github.com/m-ab-s/media-autobuild_suite
Cu Selur
Ps.: Same happens when I use a tmp-path that isn't the same as the output-path.
| Temp files not cleaned up,.. | https://api.github.com/repos/gpac/gpac/issues/1732/comments | 1 | 2021-04-07T17:53:09Z | 2021-04-08T08:59:00Z | https://github.com/gpac/gpac/issues/1732 | 852,654,493 | 1,732 |
[
"gpac",
"gpac"
] | I'm trying to split live stream video from rtmp link to MxN tiles, encode each tile to different qualities and then play it. Is this possible with gpac and how, do I need linux for it? I'm new to this so I would appreciate any kind of help.
Thanks | Trying to split live 360 video to tiles and play it | https://api.github.com/repos/gpac/gpac/issues/1731/comments | 3 | 2021-04-06T17:27:51Z | 2021-04-12T18:16:02Z | https://github.com/gpac/gpac/issues/1731 | 851,641,880 | 1,731 |
[
"gpac",
"gpac"
] | In source code `filters/reframe_mpgvid.c:643`.
As below code shows:
`
if (remain<5) {
memcpy(ctx->hdr_store, start, remain);
ctx->bytes_in_header = remain;
break;
}
`
Where only check `remain < 5`, but not `remain < 0`.
So when remain is a negative number with a crafted mp4 file, the memcpy crashes.
In command line:

In gdb:

The crafted mp4 file:
[bug2.zip](https://github.com/gpac/gpac/files/6251873/bug2.zip)
| A Integer Overflow in function mpgviddmx_process | https://api.github.com/repos/gpac/gpac/issues/1729/comments | 0 | 2021-04-03T04:03:59Z | 2021-04-08T08:21:38Z | https://github.com/gpac/gpac/issues/1729 | 849,571,794 | 1,729 |
[
"gpac",
"gpac"
] | In filters/reframe_latm.c:480. There is a Null Pointer Dereference, when call `gf_filter_pck_get_data`.
The first arg pck may be null with a crafted mp4 file.
As below code shows:
`
if (!pck) {
if (gf_filter_pid_is_eos(ctx->ipid)) { // check1
if (!ctx->latm_buffer_size) { // check2
if (ctx->opid)
gf_filter_pid_set_eos(ctx->opid);
if (ctx->src_pck) gf_filter_pck_unref(ctx->src_pck);
ctx->src_pck = NULL;
return GF_EOS;
}
} else {
return GF_OK;
}
}
`
Although there are checks to test if pck is null. But when check1 is true and check2 is false, the checks are nothing.
The command line:

In gdb:

The crafted file:
[bug1.zip](https://github.com/gpac/gpac/files/6249122/bug1.zip)
| A Null Pointer Dereference In function gf_filter_pck_get_data | https://api.github.com/repos/gpac/gpac/issues/1728/comments | 0 | 2021-04-02T10:42:56Z | 2021-04-08T08:21:38Z | https://github.com/gpac/gpac/issues/1728 | 849,144,670 | 1,728 |
[
"gpac",
"gpac"
] | For example:
- ```gpac -i SOURCE44100#audio inspect 2>&1 | grep Timescale``` gives ```Timescale: 44100```
- ```gpac -i SOURCE44100#audio @ resample:osr=48000 @ inspect 2>&1 | grep Timescale``` gives ```Timescale: 44100```
- ```gpac -i SOURCE44100#audio @ ffavf:f=aresample:sample_rate=48000 @ inspect 2>&1 | grep Timescale``` gives ```Timescale: 44100```
It means that when dashing, we get durations expressed in the source timescale. Is it what we want to do? | when resampling audio the timescale is not updated accordingly | https://api.github.com/repos/gpac/gpac/issues/1727/comments | 1 | 2021-03-30T15:38:52Z | 2021-03-31T12:35:42Z | https://github.com/gpac/gpac/issues/1727 | 844,754,016 | 1,727 |
[
"gpac",
"gpac"
] | I am trying to create a oneliner to create the following DASH content:
- 3 periods of 9.6s each
- exact period bondaries by using 1.92s segments with video@25fps and audio@48000hz
```
gpac -graph \
-i avgen:dur=30:sr=48000:ch=2:#ClampDur=9.6:#PStart=0.000:FID=P0S0 \
reframer:xs=0.000:SID=P0S0#audio @ ffenc:c=aac:FID=P0A0 \
reframer:xs=0.000:SID=P0S0#video @ ffenc:c=avc:fintra=1.920:FID=P0V0 \
-i avgen:dur=30:sr=48000:ch=2:#ClampDur=9.6:#PStart=9.6:FID=P1S0 \
reframer:xs=9.6:SID=P1S0#audio @ ffenc:c=aac:FID=P1A0 \
reframer:xs=9.6:SID=P1S0#video @ ffenc:c=avc:fintra=1.920:FID=P1V0 \
-i avgen:dur=30:sr=48000:ch=2:#ClampDur=9.6:#PStart=19.2:FID=P2S0 \
reframer:xs=19.2:SID=P2S0#audio @ ffenc:c=aac:FID=P2A0 \
reframer:xs=19.2:SID=P2S0#video @ ffenc:c=avc:fintra=1.920:FID=P2V0 \
-o tmp/3periods.mpd:segdur=1.920:cmaf=cmfc:stl:SID=P0A0,P0V0,P1A0,P1V0,P2A0,P2V0
```
The result is not as expected, I get:
```
[avgen] Error removing pid
[avgen] TypeError: not a function
Failed to connect filter reframer PID audio to filter avgen: Bad Parameter
```
Of course the MPD should look appropriately (e.g. when using a file input, I currently get a tailing entry e.g.):
```
<SegmentTimeline>
<S t="0" d="83968" r="1"/>
<S d="1024"/>
</SegmentTimeline>
``` | trying to create a oneliner for DASH multiple-period (avgen source) | https://api.github.com/repos/gpac/gpac/issues/1726/comments | 8 | 2021-03-30T15:30:32Z | 2021-04-19T10:18:58Z | https://github.com/gpac/gpac/issues/1726 | 844,740,046 | 1,726 |
[
"gpac",
"gpac"
] | Since late last week, the following error appears regularly:
```
$ gpac -i avgen:dur=4 reframer -o null
[avgen] Error initializing filter
[avgen] Error: Font SANS not found and no default font available!
Check your GPAC configuration, or use `-rescan-fonts` to refresh font directory.
at put_image (/home/rbouqueau/works/gpac/gpac/share/scripts/jsf/avgen/init.js:355)
at <anonymous> (/home/rbouqueau/works/gpac/gpac/share/scripts/jsf/avgen/init.js:245)
Error Bad Parameter while instantiating filter jsf
Failed to load filter for "avgen:dur=4": Bad Parameter
```
```gpac -rescan-fonts``` doesn't work but ```rm -rf ~/.gpac``` does. However the errors comes back again regularly.
I am on Debian. @nlsdvl also had the issue on Ubuntu. | Font scan issue | https://api.github.com/repos/gpac/gpac/issues/1725/comments | 7 | 2021-03-30T14:35:05Z | 2021-05-07T06:48:36Z | https://github.com/gpac/gpac/issues/1725 | 844,656,035 | 1,725 |
[
"gpac",
"gpac"
] | Hi all,
Running into an issue with one specific file where MP4Box is misidentifying an elementary h264 video stream as an aac audio stream.
Running this build `MP4Box - GPAC version 1.1.0-DEV-rev507-g54f21e366-HEAD`
with this argument produces the following error and output
```
$ MP4Box -v -force-cat -tmp /var/tmp -add /var/tmp/FileA.h264 -cat /var/tmp/FileB.h264 /var/tmp/FileAB.mp4
[avc-h264] SEI user message x264 - core 161 r3020 d198931 - H.264/MPEG-4 AVC codec - Copyleft 2003-2020 - http://www.videolan.org/x264.html - options: cabac=1 ref=4 deblock=1:-1:-1 analyse=0x3:0x133 me=umh subme=9 psy=1 psy_rd=1.00:0.15 mixed_ref=1 me_range=16 chroma_me=1 trellis=2 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-3 threads=12 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 stitchable=1 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=2 b_bias=0 direct=3 weightb=1 open_gop=0 weightp=2 keyint=48 keyint_min=4 scenecut=0 intra_refresh=0 rc_lookahead=48 rc=abr mbtree=1 bitrate=5000 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=5500 vbv_bufsize=10000 nal_hrd=none filler=0 ip_ratio=1.40 aq=1:1.00
[AVC|H264] not yet playing
Track Importing MPEG-4 AVC - Width 1920 Height 1080 FPS 96000/4004 SAR 1/1
[AVC|H264] not yet playing
[AVC|H264] POC is 0 - min poc diff 0 - slice is ref 1
[AVC|H264] POC is 2 - min poc diff 2 - slice is ref 0
[AVC|H264] Frame timestamps computed dts 0 cts 0 (poc 0 min poc 0 poc_diff 2 last IDR DTS 0)
[AVC|H264] Frame timestamps computed dts 4004 cts 4004 (poc 2 min poc 0 poc_diff 2 last IDR DTS 0)
[MP4Mux] added sample DTS 0 - prev DTS 18446744073709551615 - prev size 0
[MP4Mux] added sample DTS 4004 - prev DTS 0 - prev size 4422
AVC|H264 Import results: 2 samples (9 NALUs) - Slices: 3 I 1 P 0 B - 1 SEI - 1 IDR
AVC|H264 Max NALU size is 3641 - stream could be optimized by setting nal_length=2
Track Importing AAC - SampleRate 12000 Num Channels 5
[MP4Mux] added sample DTS 0 - prev DTS 18446744073709551615 - prev size 0
[MP4Mux] added sample DTS 1024 - prev DTS 0 - prev size 148
[MP4Mux] added sample DTS 2047 - prev DTS 1024 - prev size 217
[MP4Mux] added sample DTS 2187 - prev DTS 2047 - prev size 62
[MP4Mux] added sample DTS 3211 - prev DTS 2187 - prev size 233
[MP4Mux] PID FileB.h264 ID 1 Sample 6 with DTS 0 less than previous sample DTS 3211, adjusting prev sample duration
[MP4Mux] added sample DTS 3211 - prev DTS 3211 - prev size 132
Floating point exception core dumped
```
Argument that created the FileB.h264 file along w verbose output below
```
$ MP4Box -v -tmp /var/tmp -raw 1:output=/var/tmp/FileB.h264 /var/tmp/FileB.mp4
[iso file] Parsing a top-level box at position 0
[iso file] Read Box type ftyp size 32 start 0
[iso file] Parsing a top-level box at position 32
[iso file] Read Box type mdat size 5240927748 start 32
[iso file] Parsing a top-level box at position 945960484
[iso file] Read Box type moov size 2488017 start 5240927780
[iso file] Read Box type mvhd size 108 start 5240927788
[iso file] Read Box type trak size 2487361 start 5240927896
[iso file] Read Box type tkhd size 92 start 5240927904
[iso file] Read Box type edts size 36 start 5240927996
[iso file] Read Box type elst size 28 start 5240928004
[iso file] Read Box type tref size 20 start 5240928032
[iso file] Read Box type tmcd size 12 start 5240928040
[iso file] Read Box type mdia size 2487205 start 5240928052
[iso file] Read Box type mdhd size 32 start 5240928060
[iso file] Read Box type hdlr size 58 start 5240928092
[iso file] Read Box type minf size 2487107 start 5240928150
[iso file] Read Box type vmhd size 20 start 5240928158
[iso file] Read Box type dinf size 36 start 5240928178
[iso file] Read Box type dref size 28 start 5240928186
[iso file] Read Box type url size 12 start 5240928202
[iso file] Read Box type stbl size 2487043 start 5240928214
[iso file] Read Box type stsd size 175 start 5240928222
[iso file] Read Box type avc1 size 159 start 5240928238
[iso file] Read Box type avcC size 57 start 5240928324
[iso file] Read Box type pasp size 16 start 5240928381
[iso file] Read Box type stts size 24 start 5240928397
[iso file] Read Box type stss size 17176 start 5240928421
[iso file] Read Box type ctts size 1547368 start 5240945597
[iso file] Read Box type stsc size 57844 start 5242492965
[iso file] Read Box type stsz size 823696 start 5242550809
[iso file] Read Box type co64 size 40752 start 5243374505
[iso file] Read Box type trak size 442 start 5243415257
[iso file] Read Box type tkhd size 92 start 5243415265
[iso file] Read Box type edts size 36 start 5243415357
[iso file] Read Box type elst size 28 start 5243415365
[iso file] Read Box type mdia size 306 start 5243415393
[iso file] Read Box type mdhd size 32 start 5243415401
[iso file] Read Box type hdlr size 58 start 5243415433
[iso file] Read Box type minf size 208 start 5243415491
[iso file] Read Box type nmhd size 12 start 5243415499
[iso file] Read Box type dinf size 36 start 5243415511
[iso file] Read Box type dref size 28 start 5243415519
[iso file] Read Box type url size 12 start 5243415535
[iso file] Read Box type stbl size 152 start 5243415547
[iso file] Read Box type stsd size 52 start 5243415555
[iso file] Read Box type tmcd size 36 start 5243415571
[iso file] Box "tmcd" (start 5243415571) has 2 extra bytes
[iso file] Read Box type stts size 24 start 5243415607
[iso file] Read Box type stsc size 28 start 5243415631
[iso file] Read Box type stsz size 20 start 5243415659
[iso file] Read Box type stco size 20 start 5243415679
[iso file] Read Box type udta size 98 start 5243415699
[iso file] Read Box type meta size 90 start 5243415707
[iso file] Read Box type hdlr size 33 start 5243415719
[iso file] Read Box type ilst size 45 start 5243415752
[iso file] Read Box type A9too size 37 start 5243415760
[iso file] Read Box type data size 29 start 5243415768
[iso file] Box trak size 314 write
[iso file] Written Box type trak size 314 start 0
[iso file] Box tkhd size 92 write
[iso file] Written Box type tkhd size 92 start 8
[iso file] Box tref size 20 write
[iso file] Written Box type tref size 20 start 100
[iso file] Box REFT size 12 write
[iso file] Written Box type tmcd size 12 start 108
[iso file] Box edts size 36 write
[iso file] Written Box type edts size 36 start 120
[iso file] Box elst size 28 write
[iso file] Written Box type elst size 28 start 128
[iso file] Box mdia size 158 write
[iso file] Written Box type mdia size 158 start 156
[iso file] Box mdhd size 32 write
[iso file] Written Box type mdhd size 32 start 164
[iso file] Box hdlr size 58 write
[iso file] Written Box type hdlr size 58 start 196
[iso file] Box minf size 60 write
[iso file] Written Box type minf size 60 start 254
[iso file] Box vmhd size 20 write
[iso file] Written Box type vmhd size 20 start 262
[iso file] Box dinf size 8 write
[iso file] Written Box type dinf size 8 start 282
[iso file] Box stbl size 24 write
[iso file] Written Box type stbl size 24 start 290
[iso file] Box stsd size 16 write
[iso file] Written Box type stsd size 16 start 298
[iso file] Box udta size 98 write
[iso file] Written Box type udta size 98 start 0
[iso file] Box meta size 90 write
[iso file] Written Box type meta size 90 start 8
[iso file] Box hdlr size 33 write
[iso file] Written Box type hdlr size 33 start 20
[iso file] Box ilst size 45 write
[iso file] Written Box type ilst size 45 start 53
[iso file] Box A9too size 37 write
[iso file] Written Box type A9too size 37 start 61
[iso file] Box data size 29 write
[iso file] Written Box type data size 29 start 69
[iso file] Box udta size 98 write
[iso file] Written Box type udta size 98 start 98
[iso file] Box meta size 90 write
[iso file] Written Box type meta size 90 start 106
[iso file] Box hdlr size 33 write
[iso file] Written Box type hdlr size 33 start 118
[iso file] Box ilst size 45 write
[iso file] Written Box type ilst size 45 start 151
[iso file] Box A9too size 37 write
[iso file] Written Box type A9too size 37 start 159
[iso file] Box data size 29 write
[iso file] Written Box type data size 29 start 167
[iso file] Box avc1 size 159 write
[iso file] Written Box type avc1 size 159 start 0
[iso file] Box avcC size 57 write
[iso file] Written Box type avcC size 57 start 86
[iso file] Box pasp size 16 write
[iso file] Written Box type pasp size 16 start 143
[iso file] Box trak size 286 write
[iso file] Written Box type trak size 286 start 0
[iso file] Box tkhd size 92 write
[iso file] Written Box type tkhd size 92 start 8
[iso file] Box edts size 36 write
[iso file] Written Box type edts size 36 start 100
[iso file] Box elst size 28 write
[iso file] Written Box type elst size 28 start 108
[iso file] Box mdia size 150 write
[iso file] Written Box type mdia size 150 start 136
[iso file] Box mdhd size 32 write
[iso file] Written Box type mdhd size 32 start 144
[iso file] Box hdlr size 58 write
[iso file] Written Box type hdlr size 58 start 176
[iso file] Box minf size 52 write
[iso file] Written Box type minf size 52 start 234
[iso file] Box nmhd size 12 write
[iso file] Written Box type nmhd size 12 start 242
[iso file] Box dinf size 8 write
[iso file] Written Box type dinf size 8 start 254
[iso file] Box stbl size 24 write
[iso file] Written Box type stbl size 24 start 262
[iso file] Box stsd size 16 write
[iso file] Written Box type stsd size 16 start 270
[iso file] Box udta size 98 write
[iso file] Written Box type udta size 98 start 0
[iso file] Box meta size 90 write
[iso file] Written Box type meta size 90 start 8
[iso file] Box hdlr size 33 write
[iso file] Written Box type hdlr size 33 start 20
[iso file] Box ilst size 45 write
[iso file] Written Box type ilst size 45 start 53
[iso file] Box A9too size 37 write
[iso file] Written Box type A9too size 37 start 61
[iso file] Box data size 29 write
[iso file] Written Box type data size 29 start 69
[iso file] Box udta size 98 write
[iso file] Written Box type udta size 98 start 98
[iso file] Box meta size 90 write
[iso file] Written Box type meta size 90 start 106
[iso file] Box hdlr size 33 write
[iso file] Written Box type hdlr size 33 start 118
[iso file] Box ilst size 45 write
[iso file] Written Box type ilst size 45 start 151
[iso file] Box A9too size 37 write
[iso file] Written Box type A9too size 37 start 159
[iso file] Box data size 29 write
[iso file] Written Box type data size 29 start 167
[iso file] Box tmcd size 34 write
[iso file] Written Box type tmcd size 34 start 0
Exporting MPEG-4 AVC|H264 Video - Size 1920x1080
[IsoMedia] Starting channel playback 0 to 0 (0 to 0)
[IsoMedia] Track #1 end of stream reached)
```
MP4Box Info of outputted FileB.h264 file
```
$ MP4Box -v -info /var/tmp/FileB.h264
Import probing results for /var/tmp/FileB.h264:
File has 1 tracks
Track 1 type: Audio - Codec MPEG-4 AAC Audio
SampleRate 12000 - 5 channels
```
Mediainfo and ffprobe both identify it as an h264 stream
```
$ ffprobe /var/tmp/FileB.h264
ffprobe version 4.3 Copyright (c) 2007-2020 the FFmpeg developers
built with gcc 9 (Ubuntu 9.3.0-17ubuntu1~20.04)
configuration: --disable-debug --disable-doc --disable-ffplay --enable-shared --enable-avresample --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-gpl --enable-libass --enable-libfreetype --enable-libvidstab --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx265 --enable-libx264 --enable-nonfree --enable-openssl --enable-libfdk_aac --enable-postproc --enable-small --enable-version3 --enable-libzimg --enable-vapoursynth --extra-cflags=-I/opt/ffmpeg/include --extra-ldflags=-L/opt/ffmpeg/lib --extra-libs=-ldl --prefix=/opt/ffmpeg
libavutil 56. 51.100 / 56. 51.100
libavcodec 58. 91.100 / 58. 91.100
libavformat 58. 45.100 / 58. 45.100
libavdevice 58. 10.100 / 58. 10.100
libavfilter 7. 85.100 / 7. 85.100
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 7.100 / 5. 7.100
libswresample 3. 7.100 / 3. 7.100
libpostproc 55. 7.100 / 55. 7.100
[h264 @ 0x55fdce4c63c0] Format h264 detected only with low score of 1, misdetection possible!
Input #0, h264, from '/var/tmp/FileB.h264':
Duration: N/A, bitrate: N/A
Stream #0:0: Video: h264, yuv420p(tv, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 24.08 fps, 23.98 tbr, 1200k tbn, 47.95 tbc
```
```
$ mediainfo /var/tmp/FileB.h264
General
Complete name : /var/tmp/FileB.h264
Format : AVC
Format/Info : Advanced Video Codec
File size : 4.88 GiB
Writing library : x264 core 161 r3020 d198931
Encoding settings : cabac=1 / ref=4 / deblock=1:-1:-1 / analyse=0x3:0x133 / me=umh / subme=9 / psy=1 / psy_rd=1.00:0.15 / mixed_ref=1 / me_range=16 / chroma_me=1/ trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-3 / threads=12 / lookahead_threads=1 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / stitchable=1 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=48 / keyint_min=4 / scenecut=0 / intra_refresh=0 / rc_lookahead=48 / rc=abr / mbtree=1 / bitrate=5000 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / vbv_maxrate=5500 / vbv_bufsize=10000 / nal_hrd=none / filler=0 / ip_ratio=1.40 / aq=1:1.00
Video
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4
Format settings : CABAC / 4 Ref Frames
Format settings, CABAC : Yes
Format settings, Reference frames : 4 frames
Bit rate : 5 000 kb/s
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate : 23.976 (24000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.101
Writing library : x264 core 161 r3020 d198931
Encoding settings : cabac=1 / ref=4 / deblock=1:-1:-1 / analyse=0x3:0x133 / me=umh / subme=9 / psy=1 / psy_rd=1.00:0.15 / mixed_ref=1 / me_range=16 / chroma_me=1/ trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-3 / threads=12 / lookahead_threads=1 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / stitchable=1 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=48 / keyint_min=4 / scenecut=0 / intra_refresh=0 / rc_lookahead=48 / rc=abr / mbtree=1 / bitrate=5000 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / vbv_maxrate=5500 / vbv_bufsize=10000 / nal_hrd=none / filler=0 / ip_ratio=1.40 / aq=1:1.00
Color range : Limited
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709
``` | MP4Box misidentifying elementary h264 stream it produces as aac | https://api.github.com/repos/gpac/gpac/issues/1724/comments | 9 | 2021-03-30T06:30:10Z | 2021-04-02T07:04:47Z | https://github.com/gpac/gpac/issues/1724 | 844,126,399 | 1,724 |
[
"gpac",
"gpac"
] | In `filters/reframe_adts.c`, function `adts_dmx_process`.
There is a sub codes like as below:
`
size = ctx->hdr.frame_size - ctx->hdr.hdr_size;
offset = ctx->hdr.hdr_size;
......
memcpy(output, sync + offset, size);
`
However, with crafted file, ctx->hdr.frame_size may be smaller than ctx->hdr.hdr_size.
So, the size may be a negative number, which results a heap overflow in memcpy.
In Command line:
gpac -info bug6

In gdb:

The crafted file is in the attached zip:
[bug6.zip](https://github.com/gpac/gpac/files/6219966/bug6.zip)
| A integer (heap) overflow in function adts_dmx_process | https://api.github.com/repos/gpac/gpac/issues/1723/comments | 1 | 2021-03-29T07:23:30Z | 2021-03-29T07:47:23Z | https://github.com/gpac/gpac/issues/1723 | 843,060,662 | 1,723 |
[
"gpac",
"gpac"
] | In `media_tools/av_parsers.c`, function `gf_hevc_read_pps_bs_internal`.
There is a loop as below:
`
pps->num_tile_columns = 1 + gf_bs_read_ue_log(bs, "num_tile_columns_minus1");
pps->num_tile_rows = 1 + gf_bs_read_ue_log(bs, "num_tile_rows_minus1");
pps->uniform_spacing_flag = gf_bs_read_int_log(bs, 1, "uniform_spacing_flag");
if (!pps->uniform_spacing_flag) {
for (i = 0; i < pps->num_tile_columns - 1; i++) {
pps->column_width[i] = 1 + gf_bs_read_ue_log_idx(bs, "column_width_minus1", i);
}
`
However, with crafted file, **pps->num_tile_columns** may be larger than sizeof(pps->column_width), which results a heap overflow in the loop.
In Command line:
gpac -info bug5

In gdb:

The crafted file is in the attached zip:
[bug5.zip](https://github.com/gpac/gpac/files/6219707/bug5.zip)
| A heap overflow in function gf_hevc_read_pps_bs_internal | https://api.github.com/repos/gpac/gpac/issues/1722/comments | 1 | 2021-03-29T06:29:39Z | 2021-03-29T07:47:09Z | https://github.com/gpac/gpac/issues/1722 | 843,020,967 | 1,722 |
[
"gpac",
"gpac"
] | There is a integer overflow in media_tools/av_parsers.c:6568, function hevc_parse_slice_segment.
Below code:
`
pps_id = gf_bs_read_ue_log(bs, "pps_id");
if (pps_id >= 64)
return -1;
pps = &hevc->pps[pps_id];
sps = &hevc->sps[pps->sps_id];
si->sps = sps;
si->pps = pps;
`
However, function may return a negative number to pps_id, which smaller than 64.
Results a crash in followed execution.
In command Line:
gpac -info bug4

In gdb:

The crafted file is in the attached zip:
[bug4.zip](https://github.com/gpac/gpac/files/6219606/bug4.zip)
| A Integer number overflow in function hevc_parse_slice_segment. | https://api.github.com/repos/gpac/gpac/issues/1721/comments | 1 | 2021-03-29T06:03:15Z | 2021-03-29T07:46:55Z | https://github.com/gpac/gpac/issues/1721 | 843,003,944 | 1,721 |
[
"gpac",
"gpac"
] | There is a integer overflow in `media_tools/av_parsers.c:5349`, function `gf_avc_read_pps_bs_internal`.
Below code:
`pps_id = gf_bs_read_ue_log(bs, "pps_id");
if (pps_id >= 255) {
return -1;
}
pps = &avc->pps[pps_id];
pps->id = pps_id;
`
pps_id may be a negative number, so will not return.
However, avc->pps only has 255 unit, so overflow, which results a crash .
More than, because of the `pps->id = pps_id`, the vuln may lead to an any addr write.
In command Line:
gpac -info bug3

In gdb:

The crafted file is in the attached zip:
[bug3.zip](https://github.com/gpac/gpac/files/6219500/bug3.zip)
| A Integer Overflow in function gf_avc_read_pps_bs_internal | https://api.github.com/repos/gpac/gpac/issues/1720/comments | 1 | 2021-03-29T05:34:17Z | 2021-03-29T07:46:46Z | https://github.com/gpac/gpac/issues/1720 | 842,986,600 | 1,720 |
[
"gpac",
"gpac"
] | There is a `Null Pointer Dereference` in function `filter_core/filter_pck.c:104:gf_filter_pck_new_alloc_internal`,
The `pid` comes from function `av1dmx_parse_flush_sample`, the `ctx.opid` maybe NULL.
Result a crash in `gf_filter_pck_new_alloc_internal`.
In command line:
gpac -info bug2

In gdb:

The crafted file is in attach zip:
[bug2.zip](https://github.com/gpac/gpac/files/6219469/bug2.zip)
| A Null Pointer Dereference In gf_filter_pck_new_alloc_internal | https://api.github.com/repos/gpac/gpac/issues/1719/comments | 0 | 2021-03-29T05:24:39Z | 2021-03-29T07:45:00Z | https://github.com/gpac/gpac/issues/1719 | 842,980,682 | 1,719 |
[
"gpac",
"gpac"
] | There is a integer overflow in function `filter_core/filter_props.c:gf_props_assign_value`.
In which, the arg `const GF_PropertyValue *value`,maybe value->value.data.size is a negative number.
In result, memcpy in gf_props_assign_value failed.
More, this bug may result a heap overflow with crafted file.
In command line:
./bin/gcc/gpac -info bug.flac

In gdb:

The crafted file is in attach zip:
[bug.zip](https://github.com/gpac/gpac/files/6217467/bug.zip)
| A integer overflow in function filter_core/filter_props.c:gf_props_assign_value | https://api.github.com/repos/gpac/gpac/issues/1718/comments | 1 | 2021-03-28T14:19:47Z | 2021-03-29T07:46:09Z | https://github.com/gpac/gpac/issues/1718 | 842,748,388 | 1,718 |
[
"gpac",
"gpac"
] | [See this topic #1704](https://github.com/gpac/gpac/issues/1704) about the `--tfdt64` flag to force TFDT.version1(64bit baseMediaDecodeTime) version.
Similar flag to force `--sidx64` SIDX.version1(64bit earliestPresentationTime) field?
This would help to create segments compatible to a vod-to-live conversion simulator.
| Force SIDX version=1 earliestPresentationTime=64bit value? | https://api.github.com/repos/gpac/gpac/issues/1716/comments | 6 | 2021-03-23T08:20:33Z | 2021-03-24T22:16:09Z | https://github.com/gpac/gpac/issues/1716 | 838,472,334 | 1,716 |
[
"gpac",
"gpac"
] | On https://github.com/AOMediaCodec/libavif/issues/289 @cconcolato suggested the following command line for making the first frame of an AV1 video into the still image for an AVIF:
```
MP4Box -add-image ref:primary:tk=1:samp=1 -ab avif -ab miaf chimera.mp4
```
Unfortunately, something goes wrong if you don't specify "-out [new_file]" with that command:
```
$ avifdec.exe -i four-colors-flip.avif
ERROR: Failed to decode image: BMFF parsing failed
```
The output is 87 bytes shorter when not using the -out command when converting this test image: https://storage.googleapis.com/dalecurtis/four-colors-flip.mp4
| Rewriting an AV1 MP4 file in-place to add a image track for AVIF compatibility breaks. | https://api.github.com/repos/gpac/gpac/issues/1715/comments | 4 | 2021-03-22T22:46:26Z | 2021-03-24T18:25:57Z | https://github.com/gpac/gpac/issues/1715 | 838,164,485 | 1,715 |
[
"gpac",
"gpac"
] | Tested with GPAC 1.0.1 (Centos7) and GPAC git (Ubuntu 20.04)
Steps to reproduce (filesize ~4GB):
````
cd /tmp
wget http://doppelbauer.name/coredump.mp4
MP4Box -inter 500 -tmp /tmp/test -add /tmp/coredump.mp4 -new /tmp/ignore.mp4
````
Console:
```
free(): double free detected in tcache 2
aborted (core dumped)
``` | Coredump: free(): double free detected in tcache 2 | https://api.github.com/repos/gpac/gpac/issues/1714/comments | 2 | 2021-03-22T21:43:19Z | 2021-03-23T10:31:25Z | https://github.com/gpac/gpac/issues/1714 | 838,131,404 | 1,714 |
[
"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 working on 360 videos using MPEG-DASH-SRD.
Details about my work are discussed in issue #1683.
I'm trying to compute VMAF and PSNR for 360 videos. For which I used avfilter with libvmaf.
When I calculated vmaf I got 0 vmaf score for most of the frames.I have attached the log for the same.
I'm not sure if there's some issue with my video or I'm calculating vmaf in wrong way.
I used following command.
`gpac -i original.mp4:#ffid=dist -i distorted.mp4:#ffid=ref ffavf::f=[dist][ref]libvmaf=log_path=libvmaf.log @ -o null`
vmaf score
[libvmaf.log](https://github.com/gpac/gpac/files/6181668/libvmaf.log)
https://user-images.githubusercontent.com/20301133/111981307-81a81e80-8b2d-11eb-84ff-7aad54f850a3.mp4
https://user-images.githubusercontent.com/20301133/111981319-85d43c00-8b2d-11eb-9654-a9d55efcb81a.mp4
This second video (distorted.mp4) can be played with only mp4client,if there's a way to make it compatible with every other video player please let me know.
Also I wanted to calculate psnr and ssim score along with the vmaf for which I used following command but I just got the vmaf score.
`gpac -i original.mp4:#ffid=dist -i distorted.mp4:#ffid=ref ffavf::f=[dist][ref]libvmaf=log_path=libvmaf.log::psnr=true=log_path=psnr.log @ -o null`
| QA of HEVC encoded 360 video | VMAF | PSNR | https://api.github.com/repos/gpac/gpac/issues/1713/comments | 5 | 2021-03-22T11:17:05Z | 2021-03-29T11:56:53Z | https://github.com/gpac/gpac/issues/1713 | 837,614,496 | 1,713 |
[
"gpac",
"gpac"
] | I am trying to create 100% even duration of video(h264) and audio(aac) segments. This is a known challenge with AAC codec 1024 sample length. We have this an even magic integer `seconds=8, rate=48000, dashscale=48000, segdur=384000` to be used. Video segment's duration is easy to match an integer duration.
**MP4box always writes one extra MDAT.TRAF payload element <ins>to the last audio segment</ins>**, it does not matter how many seconds I encode from the input.mp4 file. A bug in a segment splitter's audio sample loop counter?
I am trying to write 100% exact 1..n segments, encoding input timelimit is matched to a multiplier of 8 seconds.
Input file:
[00_llama_1080p_25fps.mp4](https://m.dtv.fi/dash/00_llama_1080p_25fps.mp4)
Statistics of the segments and few arguments, **Please note must use** ` -movflags empty_moov` flag so MP4Box is able to write an even duration of audio segments, removing a flag will make mp4box more easily write uneven audio segments, even the first segment may not match our 8s target.
```
ffmpeg : -t XX encode XX seconds from the input file
negative_cts_offsets enable negative MOOF/TRAF/TRUN.cts timestamp
empty_moov write initial moov(mp4box writes an even audio durations)
+cgop -sc_threshold use closed gop, disable scenecut
mp4box : segments 8sec duration (384000/48000)
--tfdt64 use tfdt 64bit ver=1 box
-subsegs-per-sidx 0 use one SIDX box
--noroll=yes disable roll sample grouping
video : SIDX.duration=102400, SIDX.scale=12800 -> 8sec
mdat.traf=200*512 duration=102400/12800 -> 8sec
audio : SIDX.duration=384000, SIDX.scale=48000 -> 8sec
mdat.traf=375*1024 duration=384000/48000 -> 8sec
- all but last one has 375 samples matching 8s target.
audio : SIDX.duration=385024, SIDX.scale=48000 -> 8,0213sec
(last) mdat.traf=376*1024 duration=385024/48000 -> 8,0213sec
- one extra sample element 385024-1024=384000.
```
Encoding and dash commands:
```
ffmpeg -hide_banner -nostats -i "./00_llama_1080p_25fps.mp4" -threads 4 -preset fast \
-c:v libx264 -profile:v main -level 4.0 -s:v 640x360 -b:v 512k -pix_fmt yuv420p \
-refs 3 -bf 3 -g 50 -keyint_min 25 -b_strategy 1 -flags +cgop -sc_threshold 0 \
-movflags "empty_moov+negative_cts_offsets+faststart" \
-an -t 32 -y "temp-v1.mp4"
ffmpeg -hide_banner -nostats -i "./00_llama_1080p_25fps.mp4" -threads 4 \
-c:a aac -strict experimental -b:a 128k \
-af "aresample=48000" -ar 48000 -ac 2 \
-movflags "empty_moov+negative_cts_offsets+faststart" \
-vn -t 32 -y "temp-a1.mp4"
MP4Box -dash 384000 -frag 384000 -dash-scale 48000 -closest -mem-frags -rap \
-profile "dashavc264:live" -profile-ext "urn:hbbtv:dash:profile:isoff-live:2012" \
-min-buffer 4000 -bs-switching no \
-sample-groups-traf -single-traf --tfdt64 --tfdt_traf --noroll=yes -subsegs-per-sidx 0 \
-segment-name "$RepresentationID$/$Number$$Init=i$" -out "manifest.mpd" \
"temp-v1.mp4#trackID=1:id=v1:period=p0" \
"temp-a1.mp4#trackID=1:id=a1:period=p0"
```
(mp4box, ffmpeg compiled from the latest git sources) | Write even duration of video and audio(aac), last audio segment always has one extra mdat.traf payload element | https://api.github.com/repos/gpac/gpac/issues/1711/comments | 3 | 2021-03-18T07:33:23Z | 2021-03-23T10:07:43Z | https://github.com/gpac/gpac/issues/1711 | 834,484,763 | 1,711 |
[
"gpac",
"gpac"
] | I just want to thank you for your open source project, it is awesome!
One more thing I want to add: Migrate the Android/iOS integration to Gradle/PODs. It is very **hard** to get a successful .so files and create wrappers. FFMPEG has one project with gradle integration for Android and iOS, You should do the same.
Gradle file:
```
dependencies {
implementation 'com.arthenica:mobile-ffmpeg-full-gpl:4.4.LTS'
}
```
Same with iOS project by including PODs | [FEATURE REQUEST] Migration to Gradle/POD | https://api.github.com/repos/gpac/gpac/issues/1708/comments | 1 | 2021-03-15T10:30:41Z | 2021-03-17T16:17:36Z | https://github.com/gpac/gpac/issues/1708 | 831,667,839 | 1,708 |
[
"gpac",
"gpac"
] | Hello all GPAC Coders and Contributors,
Platform: Win10 x64
Release of GPAC where the bug has been observed : since at least dev1.1.0 rev506. tested also 587 and 588 (latest today)
Release known to be working: dev1.1.0 rev447
## Description of the bug
A certain file that can be demuxed with previous versions of Mp4box can not be demuxed anymore, with an error (see below).
## link to the file
https://www.mediafire.com/file/w4589c5dhn4nivl/DJI_0136.rar/file
## Command line used
"C:\Program Files\StaxRip\Apps\Support\MP4Box\MP4Box.exe" -single 2 -out "C:\Temp\_StaxRip\DJI_0136_temp\ID1 English {DJI.AAC}.m4a" "D:\Downloads\_IDM Downloads\DJI_0136.MP4"
## Error description
[isom] invalid tag size in Xtra !
[isom] not enough bytes in box Xtra: 177 left, reading 536576 (file ..\..\src\isomedia\box_code_base.c, line 12440)
[iso file] Read Box "Xtra" (start 90900445) failed (Invalid IsoMedia File) - skipping
[iso file] Read Box "udta" (start 90900043) failed (Invalid IsoMedia File) - skipping
[iso file] Read Box "moov" (start 90899927) failed (Invalid IsoMedia File) - skipping
Error opening file D:\Downloads\_IDM Downloads\DJI_0136.MP4: Invalid IsoMedia File
| DEV: Error demuxing audio with mp4box, dev1.1.0 since rev506, Windows x64 | https://api.github.com/repos/gpac/gpac/issues/1707/comments | 3 | 2021-03-12T18:10:52Z | 2021-03-13T05:09:14Z | https://github.com/gpac/gpac/issues/1707 | 830,343,944 | 1,707 |
[
"gpac",
"gpac"
] | null | null dereference issue with MP4Box | https://api.github.com/repos/gpac/gpac/issues/1706/comments | 0 | 2021-03-12T06:50:09Z | 2023-09-22T06:13:06Z | https://github.com/gpac/gpac/issues/1706 | 829,813,689 | 1,706 |
[
"gpac",
"gpac"
] | null | [Security]memory leak with MP4Box | https://api.github.com/repos/gpac/gpac/issues/1705/comments | 1 | 2021-03-12T02:25:29Z | 2023-09-22T06:16:27Z | https://github.com/gpac/gpac/issues/1705 | 829,695,046 | 1,705 |
[
"gpac",
"gpac"
] | How do mp4box decide a version number of `MOOF/TRAF/TFDT` atom in segment files?
Currently I get `tfdt.version=0` so a timestamp field is 32bit value. I would like to have `tfdt.version=1` because later I need to manipulate timestamp values and need 64bit value range. | Dashing segments force TFDT version=1 (ver0=32bit, ver1=64bit) basemediacodetime value? | https://api.github.com/repos/gpac/gpac/issues/1704/comments | 3 | 2021-03-11T14:53:53Z | 2021-03-23T08:16:03Z | https://github.com/gpac/gpac/issues/1704 | 829,227,888 | 1,704 |
[
"gpac",
"gpac"
] | null | [Security]heap buffer overflow issue with gpac MP4Box | https://api.github.com/repos/gpac/gpac/issues/1703/comments | 0 | 2021-03-11T08:32:34Z | 2023-09-22T06:12:25Z | https://github.com/gpac/gpac/issues/1703 | 828,921,799 | 1,703 |
[
"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 GPAC Team,
The is a null pointer bug.
GPAC version 0.5.2-426-gc5ad4e4+dfsg5-5
System info: Ubuntu 20.04.1 LTS, x64 , gcc 9.3.0
## Compile Command:
```
$ CC="gcc -fsanitize=address -g" CXX="g++ -fsanitize=address -g" ./configure
$ make
```
## Run Command:
```
$ MP4Box -def poc.mp4
```
## file
[poc.mp4.zip](https://github.com/gpac/gpac/files/6119931/poc.mp4.zip)
## gdb info:
```
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff73b0ed5 in MergeTrack (trak=<optimized out>, traf=<optimized out>, moof_box=<optimized out>, moof_offset=<optimized out>,
compressed_diff=<optimized out>, cumulated_offset=<optimized out>, is_first_merge=<optimized out>) at isomedia/track.c:1086
1086 if (size > key_info[3])
(gdb) bt
#0 0x00007ffff73b0ed5 in MergeTrack (trak=<optimized out>, traf=<optimized out>, moof_box=<optimized out>, moof_offset=<optimized out>,
compressed_diff=<optimized out>, cumulated_offset=<optimized out>, is_first_merge=<optimized out>) at isomedia/track.c:1086
#1 0x00007ffff72f4226 in MergeFragment (moof=0x4b8580, mov=<optimized out>) at isomedia/isom_intern.c:90
#2 0x00007ffff72f8071 in gf_isom_parse_movie_boxes_internal (mov=<optimized out>, boxType=0x0, bytesMissing=<optimized out>,
progressive_mode=GF_FALSE) at isomedia/isom_intern.c:622
#3 gf_isom_parse_movie_boxes (mov=<optimized out>, boxType=0x0, bytesMissing=<optimized out>, progressive_mode=GF_FALSE)
at isomedia/isom_intern.c:747
#4 0x00007ffff72f91da in gf_isom_open_file (
fileName=0x7fffffffe6d4 "out_mp4box_wrl/default/crashes/id:000178,sig:11,src:002654,time:6287616,op:havoc,rep:4",
OpenMode=GF_ISOM_OPEN_READ, tmp_dir=0x0) at isomedia/isom_intern.c:867
#5 0x000000000042b599 in mp4boxMain (argc=<optimized out>, argv=<optimized out>) at main.c:5670
#6 0x00007ffff6d750b3 in __libc_start_main (main=0x4362a0 <main>, argc=3, argv=0x7fffffffe448, init=<optimized out>,
fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffe438) at ../csu/libc-start.c:308
#7 0x000000000040e98e in _start ()
```
## ASAN info:
```
AddressSanitizer:DEADLYSIGNAL
=================================================================
==3432849==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000038 (pc 0x7f13f563a3da bp 0x7fff8e5d0fa0 sp 0x7fff8e5d0c80 T0)
==3432849==The signal is caused by a WRITE memory access.
==3432849==Hint: address points to the zero page.
#0 0x7f13f563a3da in MergeTrack /home/topsec/Downloads/gpac/src/isomedia/track.c:1087:21
#1 0x7f13f54db5c8 in MergeFragment /home/topsec/Downloads/gpac/src/isomedia/isom_intern.c:90:7
#2 0x7f13f54e190f in gf_isom_parse_movie_boxes_internal /home/topsec/Downloads/gpac/src/isomedia/isom_intern.c:622:9
#3 0x7f13f54e190f in gf_isom_parse_movie_boxes /home/topsec/Downloads/gpac/src/isomedia/isom_intern.c:747:6
#4 0x7f13f54e3dea in gf_isom_open_file /home/topsec/Downloads/gpac/src/isomedia/isom_intern.c:867:19
#5 0x4f0f92 in mp4boxMain /home/topsec/Downloads/gpac/applications/mp4box/main.c:5670:12
#6 0x7f13f46b70b2 in __libc_start_main /build/glibc-eX1tMB/glibc-2.31/csu/../csu/libc-start.c:308:16
#7 0x4289ed in _start (/home/topsec/Downloads/gpac/afl_build/bin/gcc/MP4Box+0x4289ed)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /home/topsec/Downloads/gpac/src/isomedia/track.c:1087:21 in MergeTrack
==3432849==ABORTING
```
---------------------------------------------
HX from **Topsec alpha Security Team** | A NULL pointer dereference in the function MergeTrack in isomedia/track.c:1087:21 | https://api.github.com/repos/gpac/gpac/issues/1702/comments | 3 | 2021-03-11T02:05:00Z | 2021-04-29T05:20:07Z | https://github.com/gpac/gpac/issues/1702 | 828,599,474 | 1,702 |
[
"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 GPAC Team,
I found a heap UAF bug in GPAC version 1.1.0-DEV-rev561-g2c13bbf42-master
System info: Ubuntu 20.04.1 LTS, x64 , gcc 9.3.0
### Compile Command:
```
$ CC="gcc -fsanitize=address -g" CXX="g++ -fsanitize=address -g" ./configure
$ make
```
### Run Command:
```
$ MP4Box -p poc.mp4 -out /dev/null
```
### poc file:
[poc.mp4.zip](https://github.com/gpac/gpac/files/6112348/poc.mp4.zip)
### gdb info:
```
Program received signal SIGSEGV, Segmentation fault.
__GI___libc_free (mem=0x10002) at malloc.c:3102
3102 malloc.c: No such file or directory.
(gdb) bt
#0 __GI___libc_free (mem=0x10002) at malloc.c:3102
#1 0x00007ffff6ffa551 in gf_list_del () from /home/topsec/Downloads/gpac/bin/gcc/libgpac.so.10
#2 0x00007ffff700a98d in gf_cfg_clear () from /home/topsec/Downloads/gpac/bin/gcc/libgpac.so.10
#3 0x00007ffff700aa38 in gf_cfg_new () from /home/topsec/Downloads/gpac/bin/gcc/libgpac.so.10
#4 0x00007ffff701b719 in gf_init_global_config () from /home/topsec/Downloads/gpac/bin/gcc/libgpac.so.10
#5 0x00007ffff6ff6d2a in gf_sys_init () from /home/topsec/Downloads/gpac/bin/gcc/libgpac.so.10
#6 0x0000000000422b0e in mp4boxMain (argc=3, argv=0x7fffffffe488) at main.c:5428
#7 0x00007ffff6d780b3 in __libc_start_main (main=0x4362a0 <main>, argc=3, argv=0x7fffffffe488, init=<optimized out>,
fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffe478) at ../csu/libc-start.c:308
#8 0x000000000040e98e in _start ()
```
### ASAN info:
```
=================================================================
==42473==ERROR: AddressSanitizer: heap-use-after-free on address 0x603000000558 at pc 0x7f47c9fd6cc6 bp 0x7ffc04633140 sp 0x7ffc04633138
READ of size 8 at 0x603000000558 thread T0
#0 0x7f47c9fd6cc5 in gf_cfg_clear /home/topsec/Downloads/gpac/src/utils/configfile.c:76:15
#1 0x7f47c9fd6e35 in gf_cfg_new /home/topsec/Downloads/gpac/src/utils/configfile.c:282:3
#2 0x7f47ca03d1bd in gf_cfg_init /home/topsec/Downloads/gpac/src/utils/os_config_init.c:902:9
#3 0x7f47ca03d1bd in gf_init_global_config /home/topsec/Downloads/gpac/src/utils/os_config_init.c:1004:24
#4 0x7f47c9f7935e in gf_sys_init /home/topsec/Downloads/gpac/src/utils/os_divers.c:1348:3
#5 0x4e9319 in mp4boxMain /home/topsec/Downloads/gpac/applications/mp4box/main.c:5428:2
#6 0x7f47c98230b2 in __libc_start_main /build/glibc-eX1tMB/glibc-2.31/csu/../csu/libc-start.c:308:16
#7 0x4289ed in _start (/home/topsec/Downloads/gpac/afl_build/bin/gcc/MP4Box+0x4289ed)
0x603000000558 is located 8 bytes inside of 24-byte region [0x603000000550,0x603000000568)
freed by thread T0 here:
#0 0x4a0ead in free (/home/topsec/Downloads/gpac/afl_build/bin/gcc/MP4Box+0x4a0ead)
#1 0x7f47c9fd6895 in gf_cfg_parse_config_file /home/topsec/Downloads/gpac/src/utils/configfile.c:198:5
#2 0x7f47c9fd6e29 in gf_cfg_new /home/topsec/Downloads/gpac/src/utils/configfile.c:281:6
#3 0x7f47c9f7935e in gf_sys_init /home/topsec/Downloads/gpac/src/utils/os_divers.c:1348:3
#4 0x4e9319 in mp4boxMain /home/topsec/Downloads/gpac/applications/mp4box/main.c:5428:2
#5 0x7f47c98230b2 in __libc_start_main /build/glibc-eX1tMB/glibc-2.31/csu/../csu/libc-start.c:308:16
previously allocated by thread T0 here:
#0 0x4a112d in malloc (/home/topsec/Downloads/gpac/afl_build/bin/gcc/MP4Box+0x4a112d)
#1 0x7f47c9fd6daf in gf_cfg_new /home/topsec/Downloads/gpac/src/utils/configfile.c:274:32
#2 0x7f47c9f7935e in gf_sys_init /home/topsec/Downloads/gpac/src/utils/os_divers.c:1348:3
#3 0x4e9319 in mp4boxMain /home/topsec/Downloads/gpac/applications/mp4box/main.c:5428:2
#4 0x7f47c98230b2 in __libc_start_main /build/glibc-eX1tMB/glibc-2.31/csu/../csu/libc-start.c:308:16
SUMMARY: AddressSanitizer: heap-use-after-free /home/topsec/Downloads/gpac/src/utils/configfile.c:76:15 in gf_cfg_clear
Shadow bytes around the buggy address:
0x0c067fff8050: 00 00 06 fa fa fa 00 00 00 02 fa fa 00 00 05 fa
0x0c067fff8060: fa fa 00 00 02 fa fa fa 00 00 05 fa fa fa 00 00
0x0c067fff8070: 04 fa fa fa 00 00 00 01 fa fa 00 00 06 fa fa fa
0x0c067fff8080: 00 00 01 fa fa fa 00 00 02 fa fa fa 00 00 00 01
0x0c067fff8090: fa fa 00 00 05 fa fa fa 00 00 04 fa fa fa 00 00
=>0x0c067fff80a0: 02 fa fa fa 00 00 00 03 fa fa fd[fd]fd fa fa fa
0x0c067fff80b0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c067fff80c0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c067fff80d0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c067fff80e0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c067fff80f0: 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
==42473==ABORTING
``` | heap-use-after-free utils/configfile.c:76:15 in gf_cfg_clear | https://api.github.com/repos/gpac/gpac/issues/1701/comments | 1 | 2021-03-10T01:03:24Z | 2021-03-10T12:41:47Z | https://github.com/gpac/gpac/issues/1701 | 826,885,642 | 1,701 |
[
"gpac",
"gpac"
] | I can't use any import option in Self mode with mp4box. I've tried several options that are marked with an `S` in the [documentation](https://github.com/gpac/gpac/wiki/mp4box-import-opts)
Example from the docs:
`MP4Box -add self:moovts=-1:noedit src.mp4`
Gives me the following:
`[Importer] Cannot load filter for input file "self"`
Is this faulty behavior or am I doing something wrong? | [MP4Box] Import options are not working in Self mode | https://api.github.com/repos/gpac/gpac/issues/1700/comments | 5 | 2021-03-05T11:52:42Z | 2021-03-05T12:53:02Z | https://github.com/gpac/gpac/issues/1700 | 823,014,498 | 1,700 |
[
"gpac",
"gpac"
] | Hello,
- I can remove SEI messages in a H264 bitstream upon extracting it:
`gpac -i input.mp4#video rfnalu:nosei @ -o raw.264`
- I can also remove SEI messages upon importing a raw stream directly:
`mp4box -add raw.264:nosei -new output.mp4`
- I can't remove SEI messages upon importing a stream from an existing .mp4 container, with mp4box (I get no errors but `nosei` option is ignored):
```
mp4box -add input.mp4:nosei -new output.mp4
mp4box -add input.mp4#video:nosei -new output.mp4
```
- I can't remove SEI units in-place by using the "self" mode with mp4box (`nosei `option is not marked with an "S" in the [documentation](https://github.com/gpac/gpac/wiki/mp4box-import-opts), which if I understand correctly means it cannot be used in this mode, but as a side note I can't use "self" mode with any option at all, even with the example in the docs, I always get `[Importer] Cannot load filter for input file "self"`)
`mp4box -add self:nosei src.mp4`
- I can however remove the SEI upon importing a stream from an existing .mp4 container with gpac:
`gpac -i input.mp4#video rfnalu:nosei @ -o output.mp4`
How can I remove SEI messages in-place (if even possible)?
In the last command how can I apply the rfnalu filter to a video stream but also passthrough/stream-copy all other tracks to the output file? The above only adds the video stream to output.mp4.
| Remove SEI messages in-place? | https://api.github.com/repos/gpac/gpac/issues/1699/comments | 3 | 2021-03-04T20:35:49Z | 2021-03-05T13:17:57Z | https://github.com/gpac/gpac/issues/1699 | 822,485,845 | 1,699 |
[
"gpac",
"gpac"
] | In case the 'btrt' (or equivalent) is missing, GPAC emits this warning:
```
[Dasher] No bitrate property assigned to PID output.mp4, defaulting to 1Mbps
Try specifying bitrate property after your source, e.g. -i source.raw:#Bitrate=VAL
```
Since most contents don't contain this information, this is a regression for most users. I propose we recompute a bitrate when missing. @jeanlf proposes to add this in the isobmff demuxer.
The bitrate cannot be reliably estimated until a sufficient amount of data is available. This could be an issue with low latency: in this case the manifest is written once one packet for input stream was received. | DASHer: compute average bitrate when no bitrate pid property | https://api.github.com/repos/gpac/gpac/issues/1698/comments | 1 | 2021-03-04T14:55:21Z | 2021-03-05T19:01:11Z | https://github.com/gpac/gpac/issues/1698 | 822,209,081 | 1,698 |
[
"gpac",
"gpac"
] | I need to create DASH with multiple renditions. As a source I have some (mostly random) video files. The algorithm is as follows:
1) Create MP4 file from source:
`ffmpeg -y -i r207997.mov -movflags +faststart -force_key_frames expr:gte(t,n_forced*0.96) -map 0:v:0 -c:v:0 libx264 -preset:v:0 ultrafast -r:v:0 25.000 -s:v:0 960x540 -level:v:0 3.0 -b:v:0 1800000 -minrate:v:0 1440000 -maxrate:v:0 2160000 -bufsize:v:0 3240000 -profile:v:0 main -bf:v:0 1 -b_strategy:v:0 0 -sc_threshold:v:0 0 -pix_fmt:v:0 yuv420p -map 0:v:0 -c:v:1 libx264 -preset:v:1 ultrafast -r:v:1 25.000 -s:v:1 1280x720 -level:v:1 4.0 -b:v:1 3584000 -minrate:v:1 2867200 -maxrate:v:1 4300800 -bufsize:v:1 6451200 -profile:v:1 high -bf:v:1 1 -b_strategy:v:1 0 -sc_threshold:v:1 0 -pix_fmt:v:1 yuv420p -map 0:v:0 -c:v:2 libx264 -preset:v:2 ultrafast -r:v:2 25.000 -s:v:2 1920x1080 -level:v:2 4.0 -b:v:2 8000000 -minrate:v:2 6400000 -maxrate:v:2 9600000 -bufsize:v:2 14400000 -profile:v:2 high -bf:v:2 1 -b_strategy:v:2 0 -sc_threshold:v:2 0 -pix_fmt:v:2 yuv420p intermediate-video.mp4`
`ffmpeg -y -i r207997.mov -map 0:a:0 -c:a:0 libfdk_aac -profile:a:0 aac_he -b:a:0 128000 /mnt/nemo-ssai-shared/r207997.mov/intermediate-audio.mp4`
(I need separate audio and video for some other reasons)
2) Package to DASH:
`MP4Box -dash 1920 -frag 1920 -rap -bs-switching no intermediate-video.mp4#trackID=1 intermediate-video-1.mp4#trackID=2 intermediate-video-2.mp4#trackID=3 intermediate-audio.mp4#trackID=1 -single-file -single-segment -out output/manifest.mpd`
you see there - intermediate-video-1.mp4, intermediate-video-2.mp4 - they should be either symlinks or copies of intermediate-video.mp4 - otherwise it just doesn't work and the result contains only 1 rendition. I just cannot use the same file! It was not a problem with symlinks, but now we moved to the NFS storage and they are not an option anymore. Copying the file is too slow.
Is there a way to use one source mp4 file to get multiple renditions in the manifest?
Thanks for reporting your issue. Please make sure these boxes are checked before submitting your issue - thank you!
- [ v ] I looked for a similar issue and couldn't find any.
- [ v ] I tried with the latest version of GPAC. Installers available at http://gpac.io/downloads/gpac-nightly-builds/
- [ v ] 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/
| Create DASH with multiple renditions from single mp4 file | https://api.github.com/repos/gpac/gpac/issues/1696/comments | 12 | 2021-03-03T13:12:24Z | 2021-04-06T17:00:29Z | https://github.com/gpac/gpac/issues/1696 | 821,097,285 | 1,696 |
[
"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/ -->
### Environment
~~~
C:\>MP4Box -version
MP4Box - GPAC version 1.1.0-DEV-rev540-g741a7d1a-master
(c) 2000-2021 Telecom Paris distributed under LGPL v2.1+
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: (static configuration file)
Features: GPAC_CONFIG_WIN32 GPAC_64_BITS GPAC_MEMORY_TRACKING GPAC_HAS_SSL 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_OPENSVC GPAC_HAS_JP2 GPAC_HAS_OPENHEVC GPAC_HAS_THEORA GPAC_HAS_VORBIS GPAC_HAS_XVID GPAC_HAS_GLU
~~~
### Steps to reproduce
~~~
MP4Box -lf GOPR0178-mp4box-bug-log.txt -logs all@debug -split-size 51200 GOPR0178.MP4
~~~
#### Actual result
~~~
C:\>MP4Box -lf GOPR0178-mp4box-bug-log.txt -logs all@debug -split-size 51200 GOPR0178.MP4
[Console] Detected Windows shell, will use SetConsoleTextAttribute for coloring
[Core] Open file GOPR0178-mp4box-bug-log.txt in mode wt
[Core] file "GOPR0178-mp4box-bug-log.txt" opened in mode "wt" - 1 file handles
~~~
[GOPR0178-mp4box-bug-log.txt](https://github.com/gpac/gpac/files/6073276/GOPR0178-mp4box-bug-log.txt)
Every output file has the same duration as the input file:

#### Expected result
The sum of durations of all output files equals to the duration of the input file:

### Additional information
`ffmpeg` works OK:
~~~
ffmpeg -i GOPR0178.MP4 -codec copy -ss 00:00:00 -fs 52428800 GOPR0178_001.MP4
ffmpeg -i GOPR0178.MP4 -codec copy -ss 00:00:13 -fs 52428800 GOPR0178_002.MP4
~~~
| MP4Box sets wrong output duration when splits some files [bug] | https://api.github.com/repos/gpac/gpac/issues/1695/comments | 3 | 2021-03-03T02:41:20Z | 2021-03-09T15:44:24Z | https://github.com/gpac/gpac/issues/1695 | 820,582,863 | 1,695 |
[
"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/
Hello everybody,
I tried to change the language and name of audio tracks using mp4box (–lang 2=Eng -name 2="Surround 5.1").
The tool does indeed set the language but the track name stays the same (title0). Did I do something wrong, is it the tools fault or is it simply not possible to change names in mp4box.
Edit: For my desired use case I can't use ffmpeg (or at least it won't work with the video codec)... | Audio track name change did not apply | https://api.github.com/repos/gpac/gpac/issues/1694/comments | 1 | 2021-02-28T12:34:21Z | 2021-03-01T13:20:39Z | https://github.com/gpac/gpac/issues/1694 | 818,196,453 | 1,694 |
[
"gpac",
"gpac"
] | We have successfully compiled the gpac on ARM/ARM_V7/x86 using Android NDK.
We created a new Android Studio 4.1 project compatible with the newest Android tools, by following the **mp4box_android** sample project.
The new Android project can be downloaded from [here](https://drive.google.com/file/d/1R0iV5oK9KSArBYV0CsFCU1CYwXQ9RBrp/view?usp=sharing).
We granted the **write_external_storage** runtime permission and set `android:requestLegacyExternalStorage="true"` in the AndroidManifest.xml since we are using `compileSdkVersion 30`
We added the sample video onto device file within the Android Download folder [legend.mp4](https://drive.google.com/file/d/122-BJc9lJOHssyM_hLFHObi8XrZlHgoT/view?usp=sharing)
Within the Android app we have tried to load successfully all the .so libs compiled
Within the Android project we have tried to execute the following command for mp4box: "`MP4Box -frag 240000 /storage/emulated/0/Download/legend.mp4 -out /storage/emulated/0/Download/legend_frag.mp4`"
We get the following console output:
```
2021-02-28 13:26:29.592 9274-9349/com.enst.mp4box V/WRAPPER_JNI: mp4terminal::start
2021-02-28 13:26:29.593 9274-9349/com.enst.mp4box V/WRAPPER_JNI: mp4terminal::command get back ok
2021-02-28 13:26:29.593 9274-9349/com.enst.mp4box V/WRAPPER_JNI: Convert command line done
2021-02-28 13:26:29.622 9274-9349/com.enst.mp4box V/WRAPPER_JNI: mp4terminal::end
```
**Current** result:
- no output video file
**Expected** result:
- /storage/emulated/0/Download/legend_frag.mp4 should be created
We have tried different command lines but with no good result.
One thing I have to note here, when doing -frag or some other command lines, the terminal should pop the message `WRAPPER_JNI: mp4terminal::end` only after ~10seconds since the video processing takes a while, depending of how long the input video is. Currently `mp4terminal::end` comes right after `mp4terminal::start` no matter which command line is executed
Moreover we put the .so files in the osmo4 project and is working fine | [Need Info] Android MP4box command line seems to do nothing | https://api.github.com/repos/gpac/gpac/issues/1693/comments | 13 | 2021-02-28T11:32:10Z | 2021-03-17T16:17:56Z | https://github.com/gpac/gpac/issues/1693 | 818,184,952 | 1,693 |
[
"gpac",
"gpac"
] | Hi,
I'm trying to use mp4box to generate growing and timeshiftable dash output that can be played in browser (currently trying shaka/video.js).
Application generating mp4 source is ffmpeg with empty_moov+omit_tfhd_offset+frag_keyframe+default_base_moof movflags set (25 frame GOP) and tried various other settings.
Currently using node-gpac-dash to serve the dash content and a small node.js based webserver for the video.js/shaka test page.
The result is playing back ok in chrome but mp4box doesn't seem to be handling the growing mp4 file, so the browser is never able to play beyond the duration of the clip at the time mp4box was run, I've seen suggestions to loop mp4box in shell script or similar eg. issue https://github.com/gpac/gpac/issues/835 but am not clear how to prevent it re-dashing media that was previously dashed or if there's a way to do this natively in mp4box or mp4box.js?
This is the mp4box command (and output below): ./MP4Box -dash-live 1000 -frag 1000 -profile live -mpd-refresh 1000 -time-shift 7200 -out /opt/node-gpac-dash/dash.mpd /tmp/source.mp4
Live DASH-ing - press 'q' to quit, 's' to save context and quit
[iso file] Box "tmcd" (start 1344) has 2 extra bytes
[IsoMedia] Track 3 is disabled, ignoring track - you may retry by specifying alltk option
[Dasher] No template assigned, using $File$_dash$FS$$Number$
[MPD] Generating MPD at time 2021-02-26T10:18:28.195Z
[Dasher] Segment 1 duration 1.72 more than 3/2 DASH duration, consider reencoding or using segment timeline
[Dasher] AS-1 Rep 1 segment 1 done 1601 ms before UTC due time
[Dasher] updated period DID1 duration 1720 MPD time 1720
[Dasher] First CTS 43000 in segment 2 drifting by 0.72 (more than half a segment duration) from segment time, consider reencoding or using segment timeline
[Dasher] updated period DID1 duration 1880 MPD time 1880
[Dasher] updated period DID1 duration 1920 MPD time 1920
[Dasher] updated period DID1 duration 1920 MPD time 1920
[MPD] Generating MPD at time 2021-02-26T10:18:28.338Z
Slept for 1772 ms before generation, dash cumulated time 1963
Slept for 0 ms before generation, dash cumulated time 1965
Slept for 0 ms before generation, dash cumulated time 1966
etc. (it sleeps forever after this).
In an ideal world I think it would be cleaner not to have to write dash media to the disk (to avoid having to housekeep etc) so wonder if I could use mp4box.js to avoid this step by passing boxes directly to browser over websockets but I think it may have a similar issue and in any case feels like we need to resolve the growing mp4 issue first.
Any Help Appreciated!
James
| mp4box with growing .mp4 source | https://api.github.com/repos/gpac/gpac/issues/1692/comments | 11 | 2021-02-26T10:48:05Z | 2023-04-25T13:47:05Z | https://github.com/gpac/gpac/issues/1692 | 817,249,494 | 1,692 |
[
"gpac",
"gpac"
] | I am trying to compile the .so libs for an android project, unsuccessful because Text Relocation issue on newer android sdk
It seems this it needs to be fixed in x86 libs
| Text relocation error for Android+x86 architecture | https://api.github.com/repos/gpac/gpac/issues/1691/comments | 21 | 2021-02-25T14:11:08Z | 2021-03-16T15:03:09Z | https://github.com/gpac/gpac/issues/1691 | 816,472,921 | 1,691 |
[
"gpac",
"gpac"
] | I have followed the tutorial from:
https://github.com/gpac/gpac/wiki/GPAC-Build-Guide-for-Android
I have successfully built for NDK:
`<GPAC_ROOT_DIR>/deps_android/build/android$ ./gpac_build_all_extra_libs /opt/android-ndk` having the following .so libs compiled:
```
duna@duna-VirtualBox:~/gpac_public/extra_lib/lib/android/armeabi$ ls
libavcodec.so libavformat.so libfaad.so libjs_osmo.so libpng.so libswscale.so
libavdevice.so libavutil.so libft2.so libmad.so libstlport_shared.so libz.so
libavfilter.so libeditline.so libjpegdroid.so libopenjpeg.so libswresample.so
```
The main issue is I do not manage to get libmp4box.so compiled file on Android.
I executed the command line:
`<GPAC_ROOT_DIR>/gpac_public/build/android/jni$ ./gpac_build_android -ndk=/opt/android-ndk -sdk=/opt/android-sdk -jdk=/usr/lib/jvm/java-8-openjdk-amd64 -force_rebuild`
Built the library for armeabi but the output is:
```
duna@duna-VirtualBox:~/gpac_public/applications/mp4box_android/libs/armeabi$ ls
libeditline.so libgpac.so libjs_osmo.so libpng.so
libft2.so libjpegdroid.so libopenjpeg.so libz.so
```
| Failed to get libmp4box.so compiled for Android | https://api.github.com/repos/gpac/gpac/issues/1690/comments | 2 | 2021-02-25T08:18:20Z | 2021-02-25T08:50:52Z | https://github.com/gpac/gpac/issues/1690 | 816,200,699 | 1,690 |
[
"gpac",
"gpac"
] | The Android project is 10 years old, sadly. The main issue is here: gpac/applications/mp4box_android/jni/ - Android Studio does not recognise this type of project. We need an updated project compatible with latest Android Studio: 4.1
I managed to compile android libraries folowing the android tutorial on ubuntu 18. This is the list of so files:
```
libeditline.so libgpac.so libjs_osmo.so libpng.so
libft2.so libjpegdroid.so libopenjpeg.so libz.so
```
The other issue is the libraries cannot be loaded due to text relocations | Android studio 4.1 support and libraries compatibility with Android 10 [text relocations] | https://api.github.com/repos/gpac/gpac/issues/1689/comments | 7 | 2021-02-18T08:24:47Z | 2021-02-25T14:12:32Z | https://github.com/gpac/gpac/issues/1689 | 810,875,686 | 1,689 |
[
"gpac",
"gpac"
] | ERROR: aom >= 0.1.0 not found using pkg-config
I am following this tutorial: https://github.com/gpac/gpac/wiki/GPAC-Build-Guide-for-Android
<GPAC_ROOT_DIR>/deps_android/build/android$ ./gpac_build_all_extra_libs /opt/android-ndk
Using Ubuntu 18 x64
| ERROR: aom >= 0.1.0 not found using pkg-config | https://api.github.com/repos/gpac/gpac/issues/1688/comments | 12 | 2021-02-17T12:06:09Z | 2021-02-23T09:29:35Z | https://github.com/gpac/gpac/issues/1688 | 810,125,428 | 1,688 |
[
"gpac",
"gpac"
] | This is not a bug, I just tried to compile on Big Sur using latest NSK21 and NDK12 and got issues like below:
`/Users/duna/Downloads/android-ndk-r12b/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: cannot find -lft2`
Can anyone share a link with precompiled mp4box libraries in order to include them in an mp4box_android sample project jni? | [NOT A BUG] Prebuilt Android .so libraries | https://api.github.com/repos/gpac/gpac/issues/1687/comments | 4 | 2021-02-16T10:56:29Z | 2021-02-17T14:33:03Z | https://github.com/gpac/gpac/issues/1687 | 809,207,749 | 1,687 |
[
"gpac",
"gpac"
] | Presumably the same also applies when importing other kinds of tracks, but I've only tested it with subtitles.
I have an .mp4 container with 1 video stream and 3 audio streams (info is taken via MediaInfo):
```
Video, StreamOrder:0, ID:1
Audio (eng), StreamOrder:1, ID:2
Audio (ita), StreamOrder:2, ID:3
Audio (fre), StreamOrder:3, ID:4
```
This is what happens when I add a subtitle via ffmpeg:
`ffmpeg -i in.mp4 -i subtitles.srt -map 0 -map 1 -c copy -c:s mov_text out.mp4`
```
Video, StreamOrder:0, ID:1
Audio (eng), StreamOrder:1, ID:2
Audio (ita), StreamOrder:2, ID:3
Audio (fre), StreamOrder:3, ID:4
Text, StreamOrder:4, ID:5
```
And this is the end result when importing the same subtitle to the same .mp4 with mp4box:
`mp4box -add subtitles.srt in.mp4`
```
Video, StreamOrder:3, ID:1
Audio (fre), StreamOrder:0, ID:4
Audio (ita), StreamOrder:1, ID:3
Audio (eng), StreamOrder:2, ID:2
Text, StreamOrder:4, ID:5
```
So all existing streams have changed positions while retaining their IDs, the last stream became first, the penultimate stream became second, and so on. Is this behavior wanted for some reason? | mp4box changes positions of existing streams upon importing subtitle track | https://api.github.com/repos/gpac/gpac/issues/1686/comments | 2 | 2021-02-14T19:06:09Z | 2021-02-15T10:24:56Z | https://github.com/gpac/gpac/issues/1686 | 808,024,258 | 1,686 |
[
"gpac",
"gpac"
] | I'm trying to compile a static build of MP4Box by using the following:
`git clone https://github.com/gpac/gpac.git gpac
cd gpac
./configure --static-mp4box --enable-static-bin --use-zlib=no
make -j4`
However, the resulting MP4Box binary is still dynamically linked to some libraries:
` file bin/gcc/MP4Box
bin/gcc/MP4Box: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, BuildID[sha1]=116d5d167807300dc3c1685156e0d91dfa66783c, not stripped `
`ldd bin/gcc/MP4Box
linux-vdso.so.1 (0x00007fff794af000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fa853c74000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fa853a55000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fa853851000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fa853460000)
/lib64/ld-linux-x86-64.so.2 (0x00007fa854a25000)`
I'm trying on a Ubuntu 18.04.5, with GNU make 4.1
I had to manually edit config.mak file and add "-static" at the end of LDFLAGS variable.
This raises few errors:
`../../bin/gcc/libgpac_static.a(vrml_js.o): In function `qjs_module_loader':
vrml_js.c:(.text+0x7bc1): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
../../bin/gcc/libgpac_static.a(os_net.o): In function `gf_sk_get_ipv6_addr':
os_net.c:(.text+0x98): warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
make[2]: Leaving directory '/home/user/git/gpac/applications/gpac'
make[2]: Entering directory '/home/user/git/gpac/applications/mp4box'
../../bin/gcc/libgpac_static.a(dec_nvdec_sdk.o): In function `cuInit':
dec_nvdec_sdk.c:(.text+0xc2): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
../../bin/gcc/libgpac_static.a(os_net.o): In function `gf_sk_get_ipv6_addr':
os_net.c:(.text+0x98): warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking`
But now, the MP4Box binary is statically linked:
`bin/gcc/MP4Box: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), statically linked, for GNU/Linux 3.2.0, BuildID[sha1]=159d1b7f87feca3a55747995fb655244cb596819, with debug_info, not stripped`
- [X] I looked for a similar issue and couldn't find any.
- [X] I tried with the latest version of GPAC. Installers available at http://gpac.io/downloads/gpac-nightly-builds/
- [ ] I give enough information for contributors to reproduce my issue (meaningful title, github labels, platform and compiler, command-line ...). I can share files anonymously with this dropbox: https://www.mediafire.com/filedrop/filedrop_hosted.php?drop=eec9e058a9486fe4e99c33021481d9e1826ca9dbc242a6cfaab0fe95da5e5d95
Detailed guidelines: http://gpac.io/2013/07/16/how-to-file-a-bug-properly/
| Failed to build statically linked MP4Box | https://api.github.com/repos/gpac/gpac/issues/1685/comments | 13 | 2021-02-12T20:08:23Z | 2021-03-05T11:02:40Z | https://github.com/gpac/gpac/issues/1685 | 807,514,952 | 1,685 |
[
"gpac",
"gpac"
] | When trying to encapsulate H.266/VVC content into an MPEG-TS file, there seems to be 2 problems with the output:
1) Access unit delimiter appears without the stop bit (00 00 00 01 00 a1 **a0**), This appears throughout the stream (Gpac adds aud units to every frame)
2) Stream type seems to be off, according to "ISO/IEC 13818-1:2019 DAM 2 Carriage of VVC in MPEG-2 TS", it should be 0x32, whereas GPAC creates 0x33 (And from looking at the source code, it can choose between 0x33 or 0x34)
*) GPAC version used: 1.1.0-DEV-rev499-g3c03581d-master
Steps to reproduce:
1) Download a YUV file
2) Encode several frames by using a reference encoder (verified with VQ analyzer)
3) Pack to .ts file by using: gpac -i suzie_16_frames.266 m2tsmx:pes_pack=none:first_pts=1000000 @ -o suzie_16_frames_new.ts
4) Observe faulty stream type and access unit delimiter lacking stop bit by viewing hex dump / ts analyzer
Snippet from notepad++:

The aud should end with 0xa8, according to the standard. Once this value is manually changed, the analyzer can open the bitstream (Once it's stripped back from .ts to .266, maintaining the aud units)
| Problem when creating an MPEG-TS file from a VVC content | https://api.github.com/repos/gpac/gpac/issues/1684/comments | 2 | 2021-02-11T08:42:56Z | 2021-02-23T13:43:39Z | https://github.com/gpac/gpac/issues/1684 | 806,186,321 | 1,684 |
[
"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 creating MPEG-DASH-SRD content using following guide.
https://github.com/gpac/gpac/wiki/HEVC-Tile-based-adaptation-guide
I have different versions available in DASH content and I'm creating a final video by selecting appropriate quality for particular tile by concatenating the tracks on the base.
MP4Client is playing the final video properly as per my requirement.
But codec information is missing in the metadata.
As per steps in the above mentioned guide codec information is present in the hvc file.
After performing following step codec information is not added in the mp4 video.
MP4Box -add video_tiled.hvc:split_tiles -new video_tiled.mp4
Do I need to follow some other steps which are not mentioned in the guide during the packaging of the video? | Codec information missing after packaging of HEVC video | DASH | 360 video | https://api.github.com/repos/gpac/gpac/issues/1683/comments | 33 | 2021-01-26T11:29:01Z | 2021-03-25T06:18:57Z | https://github.com/gpac/gpac/issues/1683 | 794,156,530 | 1,683 |
[
"gpac",
"gpac"
] | Am compiling and installing FFMPEG on Raspberry Pi 4
Have installed all the other depnedenices and then I enter the following:
cd ~/ffmpeg_sources && wget -O ffmpeg-snapshot.tar.bz2 https://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2 && tar xjvf ffmpeg-snapshot.tar.bz2 && cd ffmpeg && PATH="$HOME/bin:$PATH" PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" ./configure --prefix="$HOME/ffmpeg_build" --pkg-config-flags="--static" --extra-cflags="-I$HOME/ffmpeg_build/include" --extra-ldflags="-L$HOME/ffmpeg_build/lib" --extra-libs="-lpthread -lm" --bindir="$HOME/bin" --enable-gpl --enable-gnutls --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libsvtav1 --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-nonfree && PATH="$HOME/bin:$PATH" make && make install && hash -r
and at the end am getting the following error,
In file included from libavfilter/vf_mcdeint.c:54:
./libavcodec/avcodec.h:1781:35: note: declared here
attribute_deprecated AVFrame *coded_frame;
^~~~~~~~~~~
CC libavfilter/vf_median.o
CC libavfilter/vf_mergeplanes.o
CC libavfilter/vf_mestimate.o
CC libavfilter/vf_midequalizer.o
CC libavfilter/vf_minterpolate.o
CC libavfilter/vf_misc_vaapi.o
CC libavfilter/vf_mix.o
CC libavfilter/vf_mpdecimate.o
CC libavfilter/vf_neighbor.o
CC libavfilter/vf_nlmeans.o
CC libavfilter/vf_nnedi.o
libavfilter/vf_nnedi.c:819:13: error: conflicting types for ‘read’
static void read(float *dst, size_t n, const float **data)
^~~~
In file included from ./libavutil/timer.h:35,
from ./libavutil/internal.h:42,
from ./libavutil/common.h:532,
from libavfilter/vf_nnedi.c:24:
/usr/include/unistd.h:360:16: note: previous declaration of ‘read’ was here
extern ssize_t read (int __fd, void *__buf, size_t __nbytes) __wur;
^~~~
make: *** [ffbuild/common.mak:67: libavfilter/vf_nnedi.o] Error 1 | make: *** [ffbuild/common.mak:67: libavfilter/vf_nnedi.o] Error 1 | https://api.github.com/repos/gpac/gpac/issues/1682/comments | 1 | 2021-01-20T03:42:19Z | 2021-01-20T08:02:28Z | https://github.com/gpac/gpac/issues/1682 | 789,600,228 | 1,682 |
[
"gpac",
"gpac"
] | Hello, I am trying to package and DASHify an IMSC1 profile ttml file using the following commands:
# To wrap the ttml file around and the mp4 container:
mp4box -add <imsc1_file>.ttml -new <imsc1_ttml>.mp4
#To segment the mp4 file into 1s segments:
mp4box -dash 1000 -profile live -rap <imsc1_file>.mp4 -out <output_dir>/MPD.mpd
I understand that MP4Box currently supports only the EBU-TTD-TTML profile. As I mentioned earlier, my document has the IMSC1 profile and consists of several regions active at the same time to test various ttml parameters.
The problem I am encountering is that MP4Box currently repeats the entire document in each sample without a different start and end time and without the ‘redundant’ flag. This means the player does not know that it should just extend the presentation of the previous sample.
In practice this can impose a lot of strain on the decoder since it will have to parse and decode the same TTML document repeatedly. In theory I could break the TTML document into smaller ones but that requires a lot of overhead in order to break it up and package each file individually.
[mp4box_ttml.log](https://github.com/gpac/gpac/files/5836744/mp4box_ttml.log)
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/
| MP4Box not handling complex IMSC1 profile ttml caption files | https://api.github.com/repos/gpac/gpac/issues/1681/comments | 4 | 2021-01-19T15:19:12Z | 2021-01-26T10:07:38Z | https://github.com/gpac/gpac/issues/1681 | 789,113,098 | 1,681 |
[
"gpac",
"gpac"
] | I am a VR developer. I want to play high resolution video in vr headest,so I found the gpac.
I read this build/android/README file,this file guid how to make a gpac apk.
Q: how to complie gpac library for android?
| How do I use gpac in my own android app | https://api.github.com/repos/gpac/gpac/issues/1680/comments | 2 | 2021-01-14T03:47:50Z | 2021-01-14T09:21:50Z | https://github.com/gpac/gpac/issues/1680 | 785,626,786 | 1,680 |
[
"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
Hello,
It might not be an issue but I was wondering if it's possible to actually merge those segments of similar m3u8 as :
https://content-ause2-ur-discovery1.uplynk.com/ce6f6a0e4c0c440ca22f05e5e14a82a4/f.m3u8?pbs=294fa09c22a04e4fba447b20c5ee7f0c
into one mp4.
Those segments are AES 128 encrypted with IV in every segment.
I tried using MP4Box following what was written in here "https://github.com/gpac/gpac/issues/1236" but I was unsuccessful with it.
Any Help would be appreciated.
Thanks in advance
| Unable to merge segments to mp4 | https://api.github.com/repos/gpac/gpac/issues/1679/comments | 1 | 2021-01-12T03:17:46Z | 2021-01-14T11:44:05Z | https://github.com/gpac/gpac/issues/1679 | 783,872,386 | 1,679 |
[
"gpac",
"gpac"
] | In function gf_isom_rtp_set_timescale(), gf_isom_rtp_set_time_offset() and gf_isom_rtp_set_time_sequence_offset() in src/isomedia/hint_track.c, hdesc should be checked before used in case it's NULL.
https://github.com/gpac/gpac/blob/9f143de8c6180be433259329ecfac302f39e5df1/src/isomedia/hint_track.c#L233-L238
https://github.com/gpac/gpac/blob/9f143de8c6180be433259329ecfac302f39e5df1/src/isomedia/hint_track.c#L264-L269
https://github.com/gpac/gpac/blob/9f143de8c6180be433259329ecfac302f39e5df1/src/isomedia/hint_track.c#L296-L301
| potential NULL pointer dereference in isomedia/hint_track.c | https://api.github.com/repos/gpac/gpac/issues/1677/comments | 0 | 2021-01-07T02:26:17Z | 2021-01-07T09:57:51Z | https://github.com/gpac/gpac/issues/1677 | 780,977,268 | 1,677 |
[
"gpac",
"gpac"
] | In function filelist_next_url() in /src/filters/filelist.c, fentry should be checked before used in case it's NULL.
https://github.com/gpac/gpac/blob/9f143de8c6180be433259329ecfac302f39e5df1/src/filters/filelist.c#L439-L446 | potential NULL pointer dereference in filters/filelist.c | https://api.github.com/repos/gpac/gpac/issues/1676/comments | 1 | 2021-01-07T02:26:13Z | 2021-01-07T09:53:20Z | https://github.com/gpac/gpac/issues/1676 | 780,977,246 | 1,676 |
[
"gpac",
"gpac"
] | In function gf_isom_get_meta_item_info() and gf_isom_extract_meta_item_intern() in src/isomedia/meta.c, a should be checked before used in case it's NULL.
https://github.com/gpac/gpac/blob/9f143de8c6180be433259329ecfac302f39e5df1/src/isomedia/meta.c#L176-L184
https://github.com/gpac/gpac/blob/9f143de8c6180be433259329ecfac302f39e5df1/src/isomedia/meta.c#L272-L280 | potential NULL pointer dereference in isomedia/meta.c | https://api.github.com/repos/gpac/gpac/issues/1675/comments | 0 | 2021-01-07T02:26:08Z | 2021-01-07T09:57:51Z | https://github.com/gpac/gpac/issues/1675 | 780,977,211 | 1,675 |
[
"gpac",
"gpac"
] | In function gf_isom_get_track_switch_parameter() in src/isomedia/isom_read.c, tsel should be checked before used in case it's NULL.
https://github.com/gpac/gpac/blob/9f143de8c6180be433259329ecfac302f39e5df1/src/isomedia/isom_read.c#L4051-L4059 | potential NULL pointer dereference in isomedia/isom_read.c | https://api.github.com/repos/gpac/gpac/issues/1674/comments | 0 | 2021-01-07T02:26:00Z | 2021-01-07T09:57:50Z | https://github.com/gpac/gpac/issues/1674 | 780,977,149 | 1,674 |
[
"gpac",
"gpac"
] | i want add ABR (bolao ) to choose the high quality or low quality
Is there a template? | How to use libgpac.py add ABR algorithm | https://api.github.com/repos/gpac/gpac/issues/1672/comments | 1 | 2021-01-06T00:30:25Z | 2021-01-06T16:24:51Z | https://github.com/gpac/gpac/issues/1672 | 779,785,405 | 1,672 |
[
"gpac",
"gpac"
] | I follow the instructions from https://github.com/gpac/gpac/wiki/HEVC-Tile-based-adaptation-guide,
and when I use MP4Client to playback the video by input "MP4Client xxx.mp4", it shows that
No filter chain found for PID V1 in filter mp4dmx to any loaded filters - NOT CONNECTED
No filter chain found for PID V2 in filter mp4dmx to any loaded filters - NOT CONNECTED
No filter chain found for PID V3 in filter mp4dmx to any loaded filters - NOT CONNECTED
No filter chain found for PID V4 in filter mp4dmx to any loaded filters - NOT CONNECTED
No filter chain found for PID V5 in filter mp4dmx to any loaded filters - NOT CONNECTED
No filter chain found for PID V6 in filter mp4dmx to any loaded filters - NOT CONNECTED
No filter chain found for PID V7 in filter mp4dmx to any loaded filters - NOT CONNECTED
No filter chain found for PID V8 in filter mp4dmx to any loaded filters - NOT CONNECTED
No filter chain found for PID V9 in filter mp4dmx to any loaded filters - NOT CONNECTED
No filter chain found for PID V10 in filter mp4dmx to any loaded filters - NOT CONNECTED
Then, I test the configure by using "MP4Client /usr/local/share/gpac/res/gpac_cfg_test.mp4", the result is

and I install gpac-1.01 again and again, the results are the same!!
What should I do, I need your helps!!
Thanks a lot!
| Ubuntu20.10: some questions about gpac and mp4client! | https://api.github.com/repos/gpac/gpac/issues/1671/comments | 0 | 2021-01-02T12:32:26Z | 2021-01-02T13:28:26Z | https://github.com/gpac/gpac/issues/1671 | 777,453,387 | 1,671 |
[
"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/
| Some questions | https://api.github.com/repos/gpac/gpac/issues/1670/comments | 0 | 2021-01-02T12:11:35Z | 2021-01-02T12:11:52Z | https://github.com/gpac/gpac/issues/1670 | 777,450,852 | 1,670 |
[
"gpac",
"gpac"
] | In function qcpdmx_configure_pid() in file filters/reframe_qcp.c, ctx->opid should be checked before passed to gf_filter_pid_remove in case of potential NULL pointer dereference.
https://github.com/gpac/gpac/blob/4228658a9b7dcc50622dcbbe8d14cd63bfeaa460/src/filters/reframe_qcp.c#L82-L96
A similar fix is in [https://github.com/gpac/gpac/commit/570b527cf9b64a9a50672c1395d3dd8f5aafe143](url).
I've already submitted a pull request. [https://github.com/gpac/gpac/pull/1668](url) | fix potential NULL pointer dereference in filters/reframe_qcp.c | https://api.github.com/repos/gpac/gpac/issues/1669/comments | 1 | 2020-12-31T09:21:58Z | 2021-01-04T11:06:17Z | https://github.com/gpac/gpac/issues/1669 | 776,888,957 | 1,669 |
[
"gpac",
"gpac"
] | Happy New Year
mp4box -info input_1280x720.266
```
[VVC] Picture header in slice header incomplete support, cannot guess slice type
Import probing results for input.266:
File has 1 tracks
Duration: 1 s
Track 1 type: Video Codec VVC Video (ID 1987470112)
Size 95x79 @ 25 FPS
```
https://github.com/fraunhoferhhi/vvenc/issues/16
VVEncoderApp.exe -v 5 -t 4 -s 1280x720 -r 30 -c yuv420 -b 8 -g 16 --preset medium --profile main10 --level 6.3 --tier high -i input.yuv -o output.266
Input screenshot
https://vcgit.hhi.fraunhofer.de/jvet/VVCSoftware_VTM
```
[VVC] Picture header in slice header incomplete support, cannot guess slice type
Import probing results for output.266:
File has 1 tracks
Duration: 1 s
Track 1 type: Video Codec VVC Video (ID 1987470112)
???
```
EncoderApp.exe --SummaryVerboseness --InputFile=image_21447_24bit.yuv --BitstreamFile=image_21447_24bit.266 --SourceWidth=1563 --SourceHeight=1558 --FrameRate=25.000 --InputBitDepth=8 --OutputBitDepth=8 --MSBExtendedBitDepth=8 --MatrixCoefficients=0 --InputColorPrimaries=-1 --LMCSSignalType=2 --ConformanceWindowMode=1 --FramesToBeEncoded=1 --HashME=1 --IBC=1 --DecodingRefreshType=1 --Profile=auto --InputSampleRange=1 --AspectRatioInfoPresent=1 --ChromaLocInfoPresent=1 --MaxCUWidth=16 --MaxCUHeight=16 --CTUSize=32 --MaxBTLumaISlice=32 --MaxBTChromaISlice=32 --MaxBTNonISlice=32 --MaxTTLumaISlice=32 --MaxTTChromaISlice=32 --MaxTTNonISlice=32 --CostMode=lossless --InputChromaFormat=444 --ChromaFormatIDC=444 --QP=0 --BDPCM=1 --ColorTransform=1 --VideoFullRange=1 --ChromaTS=1 --DepQuant=0 --LMCSEnable=0 --RDOQ=0 --RDOQTS=0 --SBT=0 --ISP=0 --MTS=0 --LFNST=0 --JointCbCr=0 --LoopFilterDisable=1 --SAO=0 --TransformSkip=1 --TransformSkipFast=1 --TransformSkipLog2MaxSize=5 --SAOLcuBoundary=0 --Log2MaxTbSize=5 --ALF=0 --CCALF=0 --BIO=0 --PROF=0 --InternalBitDepth=0 --IntraPeriod=1 --GOPSize=1 --SearchRange=64 --QpInValCb="17 22 34 42" --QpOutValCb="17 23 35 39" --BCW=0 --BcwFast=0 --BIO=0 --CIIP=0 --Geo=0 --AffineAmvr=0 --LMCSUpdateCtrl=1 --LMCSOffset=0 --DMVR=0 --SMVD=0 --PROF=0 --ISPFast=1 --FastMIP=1 --FastLFNST=1 --FastLocalDualTreeMode=0 --AffineAmvrEncOpt=0 --MmvdDisNum=8 --OnePictureOnlyConstraintFlag=1 --GciPresentFlag=1 --Level=15.5 --Tier=high --RateControl=0 --SubpicDecodedPictureHash=1 --MaxLayers=1 --CbQpOffset=1 --CrQpOffset=1 --TemporalSubsampleRatio=1 --LCTUFast=1 --TemporalFilter=0 --DualITree=1 --MinQTLumaISlice=8 --MinQTChromaISliceInChromaSamples=4 --MinQTNonISlice=8 --MaxMTTHierarchyDepth=3 --MaxMTTHierarchyDepthISliceL=3 --MaxMTTHierarchyDepthISliceC=3 --MMVD=1 --Affine=1 --SbTMVP=1 --MaxNumMergeCand=6 --LMChroma=1 --IMV=1 --MRL=1 --IBC=0 --AllowDisFracMMVD=1 --MIP=1 --PBIntraFast=1 --FastMrg=1 --AMaxBT=1 --HadamardME=1 --FEN=1 --FDM=1 --VerCollocatedChroma=1 --EnableDecodingCapabilityInformation=1 --EnableOperatingPointInformation=1 --DefaultPtlDpbHrdMaxTidFlag=1
https://github.com/mpeg5/xeve
```
Import probing results for output.266:
File has no selectable tracks
```
xeve_app.exe -i "input.yuv" -o "output.266" -v 2 -q 0 -d 8 -w 1280 -h 720 -z 30 -f 200 --profile 1 --level 6.2 --amvr 1
| Problem with image size VVC | https://api.github.com/repos/gpac/gpac/issues/1667/comments | 4 | 2020-12-30T15:15:44Z | 2021-01-06T20:16:09Z | https://github.com/gpac/gpac/issues/1667 | 776,503,956 | 1,667 |
[
"gpac",
"gpac"
] | How do I dump the sidx of a mp4 file ?
Thanks! | SIDX DUMP | https://api.github.com/repos/gpac/gpac/issues/1664/comments | 3 | 2020-12-16T18:42:28Z | 2020-12-16T21:33:21Z | https://github.com/gpac/gpac/issues/1664 | 769,181,708 | 1,664 |
[
"gpac",
"gpac"
] | Importing and exporting files with UNC paths is not working. Example:
mp4box.exe -add \\server\d\video.264 \\server\d\muxed.mp4
results in error:
[Importer] No valid track to import in input file "\\server\d\video.264"
Error importing \\server\d\video.264: Feature Not Supported
This used to work in an older version which I have: 0.7.0-rev0-gbd5c9af-master
Checked with both gpac-1.0.1-rev0-gd8538e8a-master-x64.exe and gpac-1.1.0-DEV-latest-master-x64.exe.
(In my original post, there are two backslashes before "server" as required. The editor removes one)
| Windows UNC not working | https://api.github.com/repos/gpac/gpac/issues/1663/comments | 1 | 2020-12-15T17:11:19Z | 2020-12-17T14:56:36Z | https://github.com/gpac/gpac/issues/1663 | 767,846,991 | 1,663 |
[
"gpac",
"gpac"
] | System info:
Ubuntu 16.04.6 LTS, X64, gcc 5.4.0, gpac (latest master c4f8bc6e and latest V1.0.1 d8538e8)
I think it is probably due to an imcomplete fix of [#1483](https://github.com/gpac/gpac/issues/1483)
Compile Command:
```
$ CC="gcc -fsanitize=address -g" CXX="g++ -fsanitize=address -g" ./configure --static-mp4box --extra-ldflags="-ldl -g"
$ make
```
Run Command:
```
$ MP4Box -hint $gp_rtp_builder_do_avc-hepo -out /dev/null
```
POC file:
https://github.com/Clingto/POC/blob/master/gpac-MP4Box/gpac-c4f8bc6e_poc/gp_rtp_builder_do_avc-hepo
ASAN info:
```C
==39148==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x60300000dca9 at pc 0x000000fe1693 bp 0x7ffc75309fc0 sp 0x7ffc75309fb0
READ of size 1 at 0x60300000dca9 thread T0
#0 0xfe1692 in gp_rtp_builder_do_avc ietf/rtp_pck_mpeg4.c:436
#1 0x92b813 in gf_hinter_track_process media_tools/isom_hinter.c:796
#2 0x418d5d in HintFile /opt/data/yyp/fuzzsequence/test/0-day/SRC_asan/applications/mp4box/main.c:1446
#3 0x42bdc7 in mp4boxMain /opt/data/yyp/fuzzsequence/test/0-day/SRC_asan/applications/mp4box/main.c:6641
#4 0x7fac0705783f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2083f)
#5 0x417638 in _start (/opt/data/yyp/fuzzsequence/test/0-day/SRC_asan/build/bin/MP4Box+0x417638)
0x60300000dca9 is located 0 bytes to the right of 25-byte region [0x60300000dc90,0x60300000dca9)
allocated by thread T0 here:
#0 0x7fac07fff602 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98602)
#1 0x7b69e5 in Media_GetSample isomedia/media.c:573
#2 0x7602dc in gf_isom_get_sample_ex isomedia/isom_read.c:1808
#3 0x92b36d in gf_hinter_track_process media_tools/isom_hinter.c:721
#4 0x418d5d in HintFile /opt/data/yyp/fuzzsequence/test/0-day/SRC_asan/applications/mp4box/main.c:1446
#5 0x42bdc7 in mp4boxMain /opt/data/yyp/fuzzsequence/test/0-day/SRC_asan/applications/mp4box/main.c:6641
#6 0x7fac0705783f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2083f)
SUMMARY: AddressSanitizer: heap-buffer-overflow ietf/rtp_pck_mpeg4.c:436 gp_rtp_builder_do_avc
Shadow bytes around the buggy address:
0x0c067fff9b40: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c067fff9b50: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c067fff9b60: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c067fff9b70: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c067fff9b80: fa fa fa fa fa fa fa fa fa fa fa fa 00 00 04 fa
=>0x0c067fff9b90: fa fa 00 00 00[01]fa fa fd fd fd fa fa fa fd fd
0x0c067fff9ba0: fd fa fa fa fd fd fd fa fa fa fd fd fd fa fa fa
0x0c067fff9bb0: fd fd fd fa fa fa fd fd fd fa fa fa fd fd fd fa
0x0c067fff9bc0: fa fa fd fd fd fa fa fa fd fd fd fa fa fa fd fd
0x0c067fff9bd0: fd fa fa fa fd fd fd fa fa fa fd fd fd fa fa fa
0x0c067fff9be0: fd fd fd fa fa fa fd fd fd fa fa fa fd fd fd 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
Heap right redzone: fb
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack partial redzone: f4
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
==39148==ABORTING
```
Addition: This bug was found with our fuzzer, which is based on AFL. Our fuzzer is developed by Yuanpingyu(cfenicey@gmail.com) 、Xiangkun Jia(xiangkun@iscas.ac.cn) 、Marsman1996(lqliuyuwei@outlook.com) and Yanhao. | AddressSanitizer: heap-buffer-overflow in gp_rtp_builder_do_avc ietf/rtp_pck_mpeg4.c:436 | https://api.github.com/repos/gpac/gpac/issues/1662/comments | 0 | 2020-12-15T12:02:59Z | 2021-01-04T11:04:52Z | https://github.com/gpac/gpac/issues/1662 | 767,522,021 | 1,662 |
[
"gpac",
"gpac"
] | System info:
Ubuntu 16.04.6 LTS, X64, gcc 5.4.0, gpac (latest master c4f8bc6e and the latest V1.0.1 d8538e8)
I think it is probably due to an imcomplete fix of [#1340](https://github.com/gpac/gpac/issues/1340) 、[#1440](https://github.com/gpac/gpac/issues/1440) and [#1332](https://github.com/gpac/gpac/issues/1332).
Compile Command:
```
$ CC="gcc -fsanitize=address -g" CXX="g++ -fsanitize=address -g" ./configure --static-mp4box --extra-ldflags="-ldl -g"
$ make
```
Run Command:
```
$ MP4Box -hint $gf_isom_box_del-UAF -out /dev/null
```
POC file:
https://github.com/Clingto/POC/blob/master/gpac-MP4Box/gpac-c4f8bc6e_poc/gf_isom_box_del-UAF
gdb info:
```C
Program received signal SIGSEGV, Segmentation fault.
__GI___libc_free (mem=0x7ffff6867010) at malloc.c:2958
2958 malloc.c: No such file or directory.
(gdb) bt
#0 __GI___libc_free (mem=0x7ffff6867010) at malloc.c:2958
#1 0x00000000008d8557 in co64_box_del ()
#2 0x000000000053f9d4 in gf_isom_box_del ()
#3 0x000000000053fa07 in gf_isom_box_del ()
#4 0x000000000053fa07 in gf_isom_box_del ()
#5 0x000000000053fa07 in gf_isom_box_del ()
#6 0x000000000053fa07 in gf_isom_box_del ()
#7 0x000000000053fa07 in gf_isom_box_del ()
#8 0x0000000000541407 in gf_isom_box_array_del ()
#9 0x000000000054ab73 in gf_isom_delete_movie ()
#10 0x000000000054d89d in gf_isom_close ()
#11 0x00000000004171c3 in mp4boxMain ()
#12 0x00007ffff6ec7840 in __libc_start_main (main=0x409dc0 <main>, argc=5, argv=0x7fffffffdf78, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffdf68) at ../csu/libc-start.c:291
#13 0x0000000000409df9 in _start ()
```
ASAN info:
```C
==17415==ERROR: AddressSanitizer: heap-use-after-free on address 0x60600000e7f8 at pc 0x000000736277 bp 0x7fff80125400 sp 0x7fff801253f0
READ of size 8 at 0x60600000e7f8 thread T0
#0 0x736276 in gf_isom_box_del isomedia/box_funcs.c:1696
#1 0x7361e6 in gf_isom_box_array_reset isomedia/box_funcs.c:346
#2 0x7361e6 in gf_isom_box_array_del isomedia/box_funcs.c:352
#3 0x7361e6 in gf_isom_box_del isomedia/box_funcs.c:1707
#4 0x7361e6 in gf_isom_box_array_reset isomedia/box_funcs.c:346
#5 0x7361e6 in gf_isom_box_array_del isomedia/box_funcs.c:352
#6 0x7361e6 in gf_isom_box_del isomedia/box_funcs.c:1707
#7 0x7361e6 in gf_isom_box_array_reset isomedia/box_funcs.c:346
#8 0x7361e6 in gf_isom_box_array_del isomedia/box_funcs.c:352
#9 0x7361e6 in gf_isom_box_del isomedia/box_funcs.c:1707
#10 0x7361e6 in gf_isom_box_array_reset isomedia/box_funcs.c:346
#11 0x7361e6 in gf_isom_box_array_del isomedia/box_funcs.c:352
#12 0x7361e6 in gf_isom_box_del isomedia/box_funcs.c:1707
#13 0x7361e6 in gf_isom_box_array_reset isomedia/box_funcs.c:346
#14 0x7361e6 in gf_isom_box_array_del isomedia/box_funcs.c:352
#15 0x7361e6 in gf_isom_box_del isomedia/box_funcs.c:1707
#16 0x738e3e in gf_isom_box_array_reset isomedia/box_funcs.c:346
#17 0x738e3e in gf_isom_box_array_del isomedia/box_funcs.c:352
#18 0x7545bd in gf_isom_delete_movie isomedia/isom_intern.c:908
#19 0x75bf4e in gf_isom_close isomedia/isom_read.c:618
#20 0x42c0c0 in mp4boxMain /opt/data/yyp/fuzzsequence/test/0-day/SRC_asan/applications/mp4box/main.c:6718
#21 0x7f6c5505883f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2083f)
#22 0x417638 in _start (/opt/data/yyp/fuzzsequence/test/0-day/SRC_asan/build/bin/MP4Box+0x417638)
0x60600000e7f8 is located 24 bytes inside of 56-byte region [0x60600000e7e0,0x60600000e818)
freed by thread T0 here:
#0 0x7f6c560002ca in __interceptor_free (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x982ca)
#1 0x7361af in gf_isom_box_del isomedia/box_funcs.c:1703
#2 0x78000e in CleanWriters isomedia/isom_store.c:105
#3 0x78000e in WriteInterleaved isomedia/isom_store.c:1728
#4 0x7811f2 in WriteToFile isomedia/isom_store.c:1885
#5 0x75ba6e in gf_isom_write isomedia/isom_read.c:592
#6 0x75bf43 in gf_isom_close isomedia/isom_read.c:616
#7 0x42c0c0 in mp4boxMain /opt/data/yyp/fuzzsequence/test/0-day/SRC_asan/applications/mp4box/main.c:6718
#8 0x7f6c5505883f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2083f)
previously allocated by thread T0 here:
#0 0x7f6c56000602 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98602)
#1 0x102065d in co64_box_new isomedia/box_code_base.c:65
#2 0x735fdf in gf_isom_box_new_ex isomedia/box_funcs.c:1582
#3 0x735fdf in gf_isom_box_new isomedia/box_funcs.c:1605
#4 0x7feec4 in stbl_AddOffset isomedia/stbl_write.c:1989
#5 0x7feec4 in stbl_SetChunkAndOffset isomedia/stbl_write.c:2090
#6 0x77f65a in DoInterleave isomedia/isom_store.c:1537
#7 0x780197 in WriteInterleaved isomedia/isom_store.c:1665
#8 0x7811f2 in WriteToFile isomedia/isom_store.c:1885
#9 0x75ba6e in gf_isom_write isomedia/isom_read.c:592
#10 0x75bf43 in gf_isom_close isomedia/isom_read.c:616
#11 0x42c0c0 in mp4boxMain /opt/data/yyp/fuzzsequence/test/0-day/SRC_asan/applications/mp4box/main.c:6718
#12 0x7f6c5505883f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2083f)
SUMMARY: AddressSanitizer: heap-use-after-free isomedia/box_funcs.c:1696 gf_isom_box_del
Shadow bytes around the buggy address:
0x0c0c7fff9ca0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c0c7fff9cb0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c0c7fff9cc0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c0c7fff9cd0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c0c7fff9ce0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
=>0x0c0c7fff9cf0: fa fa fa fa fa fa fa fa fa fa fa fa fd fd fd[fd]
0x0c0c7fff9d00: fd fd fd fa fa fa fa fa fd fd fd fd fd fd fd fa
0x0c0c7fff9d10: fa fa fa fa 00 00 00 00 00 00 00 fa fa fa fa fa
0x0c0c7fff9d20: fd fd fd fd fd fd fd fd fa fa fa fa fd fd fd fd
0x0c0c7fff9d30: fd fd fd fa fa fa fa fa fd fd fd fd fd fd fd fd
0x0c0c7fff9d40: fa fa fa fa fd fd fd fd fd fd fd fd 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
Heap right redzone: fb
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack partial redzone: f4
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
==17415==ABORTING
```
Addition: This bug was found with our fuzzer, which is based on AFL. Our fuzzer is developed by Yuanpingyu(cfenicey@gmail.com) 、Xiangkun Jia(xiangkun@iscas.ac.cn) 、Marsman1996(lqliuyuwei@outlook.com) and Yanhao. | AddressSanitizer: heap-use-after-free in gf_isom_box_del isomedia/box_funcs.c:1696 | https://api.github.com/repos/gpac/gpac/issues/1661/comments | 0 | 2020-12-15T12:01:23Z | 2021-01-04T11:04:52Z | https://github.com/gpac/gpac/issues/1661 | 767,520,741 | 1,661 |
[
"gpac",
"gpac"
] | System info:
Ubuntu 16.04.6 LTS, X64, gcc 5.4.0, gpac (latest master c4f8bc6e and the latest V1.0.1 d8538e8)
Compile Command:
```
$ CC="gcc -fsanitize=address -g" CXX="g++ -fsanitize=address -g" ./configure --static-mp4box --extra-ldflags="-ldl -g"
$ make
```
Run Command:
```
$ MP4Box -hint $gf_hinter_track_finalize-null-pointer -out /dev/null
```
POC file:
https://github.com/Clingto/POC/blob/master/gpac-MP4Box/gpac-c4f8bc6e_poc/gf_hinter_track_finalize-null-pointer
gdb info:
```C
Program received signal SIGSEGV, Segmentation fault.
0x000000000060eab8 in gf_hinter_track_finalize ()
(gdb) bt
#0 0x000000000060eab8 in gf_hinter_track_finalize ()
#1 0x000000000040ad7c in HintFile ()
#2 0x00000000004172b2 in mp4boxMain ()
#3 0x00007ffff6ec7840 in __libc_start_main (main=0x409dc0 <main>, argc=5, argv=0x7fffffffdf68, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffdf58) at ../csu/libc-start.c:291
#4 0x0000000000409df9 in _start ()
```
ASAN info:
```C
Hinting file with Path-MTU 1450 Bytes
Hinting track ID 1 - Type "avc1:avc1" (H264) - BW 3 kbps
ASAN:SIGSEGV
=================================================================
==20754==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000003 (pc 0x00000092e516 bp 0x7fffe5a7ede0 sp 0x7fffe5a79300 T0)
#0 0x92e515 in gf_hinter_track_finalize media_tools/isom_hinter.c:970
#1 0x418f85 in HintFile /opt/data/yyp/fuzzsequence/test/0-day/SRC_asan/applications/mp4box/main.c:1448
#2 0x42bdc7 in mp4boxMain /opt/data/yyp/fuzzsequence/test/0-day/SRC_asan/applications/mp4box/main.c:6641
#3 0x7fd6bcc3b83f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2083f)
#4 0x417638 in _start (/opt/data/yyp/fuzzsequence/test/0-day/SRC_asan/build/bin/MP4Box+0x417638)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV media_tools/isom_hinter.c:970 gf_hinter_track_finalize
==20754==ABORTING
```
Addition: This bug was found with our fuzzer, which is based on AFL. Our fuzzer is developed by Yuanpingyu(cfenicey@gmail.com) 、Xiangkun Jia(xiangkun@iscas.ac.cn) 、Marsman1996(lqliuyuwei@outlook.com) and Yanhao. | A NULL pointer dereference in the function gf_hinter_track_finalize in media_tools/isom_hinter.c:970 | https://api.github.com/repos/gpac/gpac/issues/1660/comments | 0 | 2020-12-15T11:59:14Z | 2021-01-04T11:04:52Z | https://github.com/gpac/gpac/issues/1660 | 767,519,058 | 1,660 |
[
"gpac",
"gpac"
] | System info:
Ubuntu 16.04.6 LTS, X64, gcc 5.4.0, gpac (latest master c4f8bc6e and the latest V1.0.1 d8538e8)
I think it is probably due to an imcomplete fix of [#1485](https://github.com/gpac/gpac/issues/1485)
Compile Command:
```
$ CC="gcc -fsanitize=address -g" CXX="g++ -fsanitize=address -g" ./configure --static-mp4box --extra-ldflags="-ldl -g"
$ make
```
Run Command:
```
$ MP4Box -hint $SetupWriters-null-pointer -out /dev/null
```
POC file:
https://github.com/Clingto/POC/blob/master/gpac-MP4Box/gpac-c4f8bc6e_poc/SetupWriters-null-pointer
gdb info:
```C
Program received signal SIGSEGV, Segmentation fault.
0x00000000005570be in SetupWriters ()
(gdb) bt
#0 0x00000000005570be in SetupWriters ()
#1 0x0000000000559c36 in WriteInterleaved ()
#2 0x000000000055a57f in WriteToFile ()
#3 0x000000000054d70f in gf_isom_write ()
#4 0x000000000054d893 in gf_isom_close ()
#5 0x00000000004171c3 in mp4boxMain ()
#6 0x00007ffff6ec7840 in __libc_start_main (main=0x409dc0 <main>, argc=5, argv=0x7fffffffdf78, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffdf68) at ../csu/libc-start.c:291
#7 0x0000000000409df9 in _start ()
```
ASAN info:
```C
ASAN:SIGSEGV
=================================================================
==27206==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000028 (pc 0x000000778288 bp 0x7ffccf34fdd0 sp 0x7ffccf34fd40 T0)
#0 0x778287 in SetupWriters isomedia/isom_store.c:171
#1 0x77fd9c in WriteInterleaved isomedia/isom_store.c:1611
#2 0x7811f2 in WriteToFile isomedia/isom_store.c:1885
#3 0x75ba6e in gf_isom_write isomedia/isom_read.c:592
#4 0x75bf43 in gf_isom_close isomedia/isom_read.c:616
#5 0x42c0c0 in mp4boxMain /opt/data/yyp/fuzzsequence/test/0-day/SRC_asan/applications/mp4box/main.c:6718
#6 0x7f218ddaf83f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2083f)
#7 0x417638 in _start (/opt/data/yyp/fuzzsequence/test/0-day/SRC_asan/build/bin/MP4Box+0x417638)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV isomedia/isom_store.c:171 SetupWriters
==27206==ABORTING
```
Addition: This bug was found with our fuzzer, which is based on AFL. Our fuzzer is developed by Yuanpingyu(cfenicey@gmail.com) 、Xiangkun Jia(xiangkun@iscas.ac.cn) 、Marsman1996(lqliuyuwei@outlook.com) and Yanhao. | A NULL pointer dereference in the function SetupWriters isomedia/isom_store.c:171 | https://api.github.com/repos/gpac/gpac/issues/1659/comments | 0 | 2020-12-15T11:57:41Z | 2021-01-04T11:04:51Z | https://github.com/gpac/gpac/issues/1659 | 767,517,846 | 1,659 |
[
"gpac",
"gpac"
] | - [x] 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/
- [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
Step to reproduce:
1. create an random audio file
```
ffmpeg -f lavfi -i "sine=frequency=1000:duration=10" -ac 8 test.mp4
```
2. use that audio file to create mpd and output
```
MP4Box -dash 2000 -rap -frag-rap -bs-switching no -profile "onDemand" "test.m4a" -out "output1.mpd"
```
```
mv test_dashinit.mp4 test_dashinit.mp4.bak
```
```
MP4Box -dash 2000 -rap -frag-rap -bs-switching no -profile "onDemand" "test.m4a" -out "output2.mpd"
```
I've notice that md5 of `test_dashinit.mp4` and `test_dashinit.mp4.bak` are not identical, I've assumed we use some sort of timestamp when create dashinit.
Is there anyway I could eliminate that timestamp and make it identical ?
Thank you very much. | MP4Box dash return different output with the same input | https://api.github.com/repos/gpac/gpac/issues/1657/comments | 2 | 2020-12-12T22:55:16Z | 2020-12-13T14:50:36Z | https://github.com/gpac/gpac/issues/1657 | 764,531,097 | 1,657 |
[
"gpac",
"gpac"
] | I am trying to insert subtitles from a `children.srt` file into an mp4 file using a command like this:
```
mp4box.exe -add input.mp4 -add children.srt:hdlr=sbtl:group=2:layer=-1:name=MyCaptions -new output.mp4
```
You can use any mp4 file for this example. The `children.srt` file contains:
```
1
00:00:00,000 --> 00:00:05,000
We have the words "children" and "Group" here.
2
00:00:05,000 --> 00:00:13,000
We have the words "children" and "OrderedGroup" here.
3
00:00:13,000 --> 00:00:22,000
We have the words "children" and "Layer2D" here.
4
00:00:22,000 --> 00:00:32,000
We have the words "children" and "Layer3D" here.
```
The problem is that mp4box uses the `btplay` filter to read the SRT file because of the probe code in `load_bt_xml.c`.
```c
} else if ( strstr(probe_data, "children") &&
(strstr(probe_data, "Group") || strstr(probe_data, "OrderedGroup") || strstr(probe_data, "Layer2D") || strstr(probe_data, "Layer3D"))
) {
mime_type = "application/x-bt";
```
It should be using the `txtin` filter (which it uses for `*.srt` files).
There are several ways to fix this problem. For example, if a file has the `.srt` extension then you might prefer the `txtin` filter over `btplay`. | Problems inserting subtitle (*.srt) files that contain certain pairs of words (e.g. "children", "Group") | https://api.github.com/repos/gpac/gpac/issues/1656/comments | 3 | 2020-12-10T19:51:16Z | 2020-12-10T22:54:13Z | https://github.com/gpac/gpac/issues/1656 | 761,561,701 | 1,656 |
[
"gpac",
"gpac"
] | Thanks for reporting your issue. Please make sure these boxes are checked before submitting your issue - thank you!
- [x] I looked for a similar issue and couldn't find any.
- [ ] I tried with the latest version of GPAC. Installers available at 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/
platform: windows 10
compiler: mingw-w64 x86_64 gcc compiler from msys2
errors out with
```c
C:/MinGW64/build/gpac-git/src/quickjs/quickjs.c: At top level:
C:/MinGW64/build/gpac-git/src/quickjs/quickjs.c:53736:5: error: unknown type name 'pthread_cond_t'
53736 | pthread_cond_t cond;
| ^~~~~~~~~~~~~~
C:/MinGW64/build/gpac-git/src/quickjs/quickjs.c:53740:8: error: unknown type name 'pthread_mutex_t'
53740 | static pthread_mutex_t js_atomics_mutex = PTHREAD_MUTEX_INITIALIZER;
| ^~~~~~~~~~~~~~~
C:/MinGW64/build/gpac-git/src/quickjs/quickjs.c:53740:43: error: 'PTHREAD_MUTEX_INITIALIZER' undeclared here (not in a function)
53740 | static pthread_mutex_t js_atomics_mutex = PTHREAD_MUTEX_INITIALIZER;
| ^~~~~~~~~~~~~~~~~~~~~~~~~
```
full log:
[ab-suite.make.log](https://github.com/gpac/gpac/files/5648344/ab-suite.make.log)
relevant lines start from 5092
trying to look at the file in question, my best intuition guess is due to pthread.h being defined out if `WIN32`, I can try compiling after changing it to `_MSC_VER` instead
related: https://github.com/m-ab-s/media-autobuild_suite/issues/1875 | mingw-w64 compilation failed quickjs.c:53736:5: error: unknown type name 'pthread_cond_t' | https://api.github.com/repos/gpac/gpac/issues/1655/comments | 1 | 2020-12-06T05:35:30Z | 2020-12-06T15:27:38Z | https://github.com/gpac/gpac/issues/1655 | 757,852,734 | 1,655 |
[
"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
Hello,
I appreciate the quick fix in https://github.com/gpac/gpac/issues/1650 but, sadly the timestamps still seem broken
The .srt timestamps should be in the form of
[hours]: [minutes]: [seconds], [milliseconds]
While the output I get from Mp4box with -srt flag are in that form missing the Hours part and the "." should be "," :
00:06.000 --> 00:06.040
they should be :
00:00:06,000 --> 00:00:06,040
Also for the embedded webvtt, the Timestamps seems broken:
00:06.000 --> 00:06.040 position:10%,start line:85% size:80%
they should be:
00:00:04.040 --> 00:00:06.040 position:10%,start line:85% size:80%
Thanks again !
| Final Srt/webvtt timestamps are not correct | https://api.github.com/repos/gpac/gpac/issues/1652/comments | 1 | 2020-12-03T11:01:23Z | 2020-12-03T11:04:17Z | https://github.com/gpac/gpac/issues/1652 | 756,092,802 | 1,652 |
[
"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/
The entire compilation environment is too old!
Can you adapt NDK-r21b before you can compile arm64
| Android compilation environment is too old | https://api.github.com/repos/gpac/gpac/issues/1651/comments | 8 | 2020-12-01T12:15:14Z | 2021-01-05T14:23:58Z | https://github.com/gpac/gpac/issues/1651 | 754,345,641 | 1,651 |
[
"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
Good day,
`
<AdaptationSet id="0" contentType="text" lang="en" segmentAlignment="true">
<Role schemeIdUri="urn:mpeg:dash:role:2011" value="subtitle"/>
<Representation id="0" bandwidth="794" codecs="wvtt" mimeType="application/mp4">
<SegmentTemplate timescale="1000" initialization="xxx_caption_DFXP/vtt_init.m4v" media="xxx_caption_DFXP/seg_$Number$.m4s" startNumber="1">
<SegmentTimeline>
<S t="0" d="6000" r="23"/>
<S t="144000" d="2146"/>
</SegmentTimeline>
</SegmentTemplate>
</Representation>
</AdaptationSet>`
Subtitles_Mp4: http://www.mediafire.com/file/u98nb4cfpw18s45/subs.mp4/file
I'm basically an issue extracting the webvtt from that webvtt dash subtitles. I tried "MP4Box -srt Subs.mp4" but the final .srt is incorrect.
I also tried : "MP4Box -raw 1 subs.mp4" but the generated vtt have wrong end timestamps.
I keep on getting a warning message whenever I try to extract the subtitles saying :
"[iso file] Unknown box type vlab in parent wvtt"
Can you help me generateing .srt or webvtt for it?
Thanks a lot | Final srt subtitles are incorrect | https://api.github.com/repos/gpac/gpac/issues/1650/comments | 11 | 2020-11-30T19:33:52Z | 2020-12-05T09:34:37Z | https://github.com/gpac/gpac/issues/1650 | 753,745,083 | 1,650 |
[
"gpac",
"gpac"
] | Hello,
I've found a sample xml file for testing & then created a dash manifest and played it = no issue, it worked PERFECTLY !.
My question is : How do I produce the xml file ? (to avoid using one I found online..)
Is there a tool to use or is it all manual ? And if so, please, how to proceed ?
Sorry for this dumb question but it's been 3 days and haven't been able to find specific docs about it other than [this one](https://github.com/gpac/gpac/wiki/Common-Encryption) that explains what it is, but not how to produce one :/
Btw, I'm looking to produce a "CENC AES-CTR" xml one, not a commercial DRM or anything ^^"
Thanks and sorry for the issue :x | -Not really an issue- How to generate the xml file ? Is there a tool ? | https://api.github.com/repos/gpac/gpac/issues/1649/comments | 1 | 2020-11-28T11:10:17Z | 2020-11-29T10:26:18Z | https://github.com/gpac/gpac/issues/1649 | 752,655,160 | 1,649 |
[
"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/
Hello,
I am trying to create live dash streaming of tiled HEVC. I have been doing extensive reading, and I believe I might be on the right path, but I cannot correctly dash this.
I am doing the following every X seconds (loop) => **[ffmpeg records video from /dev/videox] -> [kvazaar tiles] -> [MP4Box packages it]**
```
rm -R dash_output/*
i=0
while true;
do
ffmpeg -f v4l2 -framerate 30 -video_size 3840x2160 -i /dev/video0 -an -f rawvideo -pix_fmt yuvj420p -t 00:00:02 - | kvazaar -i - --input-res 3840x2160 -o videos/hevc_live_output.hevc --tiles 3x3 --slices tiles --mv-constraint frametilemargin --bitrate 128000 --period 30 --input-fps 30
MP4Box -add videos/hevc_live_output.hevc:split_tiles -fps 30 -new videos/live_video_tiled.mp4
done
```
By the end of this, I have a new MP4 file I want to dash:
```
MP4Box -dash-ctx dash_output/dash-live.txt -dash-live 2000 -run-for 2000 -profile live \
-mpd-title "DASH-LIVE stream" -ast-offset 12 -no-frags-default -rap -frag-rap \
-insert-utc -mpd-refresh 2000 -time-shift 1200 -min-buffer 2000 -bs-switching no \
-out dash_output/dash.mpd -subsegs-per-sidx -1 videos/live_video_tiled.mp4:role=main
```
_I am running this on a loop for video recordings of **2 seconds each**._
**At the output of each dash run I get:**
```
[Dasher] No template assigned, using $File$_dash$FS$$Number$
[Dasher] First CTS 204000 in segment 35 drifting by -61.2 (more than half a segment duration) from segment time, consider reencoding or using segment timeline
[Dasher] Segment 35 duration 0.2 less than half DASH duration, consider reencoding or using segment timeline
[Dasher] AS-1 Rep 1_2 segment 35 done TOO LATE by 29695 ms
[Dasher] updated period DID3 duration 7000 MPD time 7000
[Dasher] updated period DID3 duration 7000 MPD time 7000
[MPD] Generating MPD at time 2020-11-26T12:20:20.700Z
Done running, computing static MPD(DASH time 7000 ms)
```
Finally, when I try to play this MPD back on gpac I always get the same error:
```
[DASH] File /media/psf/Home/Projects/linux_shell/dash_output/live_video_tiled_dash_trackX_Y.m4s not found on disk
[DASH] File /media/psf/Home/Projects/linux_shell/dash_output/live_video_tiled_dash_trackX_(Y+1).m4s not found on disk
[DASH] File /media/psf/Home/Projects/linux_shell/dash_output/live_video_tiled_dash_trackX_(Y+2).m4s not found on disk
.
.
.
[DASH] File /media/psf/Home/Projects/linux_shell/dash_output/live_video_tiled_dash_trackX_(Y+N).m4s not found on disk
```
Is this the correct way of doing this? Is this simply not supported?
**Thank you for your great work!**
**GPAC**: version 1.1.0-DEV-rev276-g8f79ec5ab-master
**Kvazaar** v2.0.0-43-g4d41f417 2020-11-03
| Live Tiled Dash Streaming, No Segment Increment :: MP4Box and Kvazaar | https://api.github.com/repos/gpac/gpac/issues/1648/comments | 23 | 2020-11-26T12:44:47Z | 2020-12-04T18:34:58Z | https://github.com/gpac/gpac/issues/1648 | 751,563,101 | 1,648 |
[
"gpac",
"gpac"
] | Hi, can you please specify in your website, in/for which Linux distributions (versions included) the releases are built?
Actually, gpac 1.0.1-rev0-gd8538e8a-master (.deb) seems broken for Debian stretch (oldstable, available libav\*57 are older than the ones required), Debian buster (available libav\*58 are too new for gpac), ubuntu > 18.04 (same problems).
*So, the .deb link should only report Ubuntu and *18.04*, if possible.*
## Reproducibility
The following is the only working docker image able to install gpac (it should be the same for complete OSes)
```Dockerfile
FROM ubuntu:18.04
WORKDIR /tmp/
ADD http://download.tsi.telecom-paristech.fr/gpac/release/1.0.1/gpac_1.0.1-rev0-gd8538e8a-master_amd64.deb ./
RUN apt-get update && apt-get install -y ./gpac*.deb
```
Replacing the base image tag with 19.04, 19.10, 20.04, 20.10 shows how gpac cannot be installed there.
The same happens using either debian:stretch or debian:buster, with the `contrib non-free` source repositories enabled. | Specify Linux distributions with versions and environments on which realeases are built | https://api.github.com/repos/gpac/gpac/issues/1646/comments | 3 | 2020-11-21T18:40:26Z | 2023-01-03T13:41:37Z | https://github.com/gpac/gpac/issues/1646 | 748,075,483 | 1,646 |
[
"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/
| Specify in which version the .deb (at least) builds are done | https://api.github.com/repos/gpac/gpac/issues/1645/comments | 0 | 2020-11-21T18:25:26Z | 2020-11-21T18:40:36Z | https://github.com/gpac/gpac/issues/1645 | 748,072,911 | 1,645 |
[
"gpac",
"gpac"
] | ```
} else if ((s32) ptr->entries[i].sampleDelta < 0) {
GF_LOG(GF_LOG_WARNING, GF_LOG_CONTAINER, ("[iso file] stts entry %d has negative duration %d - forbidden ! Fixing to 1, sync may get lost (consider reimport raw media)\n", i, (s32) ptr->entries[i].sampleDelta ));
ptr->entries[i].sampleDelta = 1;
}
```
There are samples involving TTML where the first sample contains the UTC time (yeap). The msb is 1 and we don't want to fix it, right? | don't fix stts sample_delta when msb is set to 1 | https://api.github.com/repos/gpac/gpac/issues/1644/comments | 1 | 2020-11-21T14:17:04Z | 2020-11-22T14:38:25Z | https://github.com/gpac/gpac/issues/1644 | 748,028,258 | 1,644 |
[
"gpac",
"gpac"
] | Hello,
I have been trying to use cbcs encryption on fmp4 content to be played by Apple devices. Testing it in Safari with jwplayer
Basically player isn't playing with error: "An error occurred when attempting to decrypt the Fairplay stream with the session key. Equivalent to Safari's "webkitkeyerror" event."
I checked with another packager, using the same keys and encryption, and the content plays out fine. I also check the content inside mdat and it is exactly equal to MP4box output, every byte.
This leads me to believe it may be something related with the header boxes before mdat?
senc box seems a match too, so I don't understand what might be the problem with the key in mp4box
Could some important config on drm.xml be missing? I tried to look for info on it but didn't find anything that pointed to a problem in my drm.xml
I also tried to decrypt the file output from -crypt with -decrypt and got the error:
**mp4box.exe -decrypt drm_cbcs.xml -init-seg 01.mp4 cbcs_constantIV.m4s -out decrypt_cbcs.m4s**
_[iso file] Unknown top-level box type 00020034
[iso file] Unknown top-level box type 001C0000
Error IsoMedia File is truncated while instantiating filter mp4dmx
[Decrypter] Cannot load demux filter for source file
Error: IsoMedia File is truncated_
Attached the drm.xml, the clear header file, clear chunk, mp4box cbcs chunk and the comparison chunk that works.
I can attach content for a complete playout if needed.
Using nightly build MP4Box - GPAC version 1.1.0-DEV-rev90-g98d790119-master
Thank you for the help
[cbcs_constantIV.zip](https://github.com/gpac/gpac/files/5559711/cbcs_constantIV.zip)
| MacOS decryption error with CBCS | https://api.github.com/repos/gpac/gpac/issues/1643/comments | 5 | 2020-11-18T11:37:54Z | 2020-11-18T17:10:16Z | https://github.com/gpac/gpac/issues/1643 | 745,584,374 | 1,643 |
[
"gpac",
"gpac"
] |
Is there any way to get IV from DRM Clear key ASE-128 CTR encrypted file.
how do we manually decrypt this file from client. | Question : DRM decryption from client ? | https://api.github.com/repos/gpac/gpac/issues/1642/comments | 1 | 2020-11-18T05:16:54Z | 2020-11-18T11:02:06Z | https://github.com/gpac/gpac/issues/1642 | 745,338,561 | 1,642 |
[
"gpac",
"gpac"
] | Hi,
when creating an mp4 I get the following error.

| Errormessage: Cannot create directory... gpac_cache | https://api.github.com/repos/gpac/gpac/issues/1641/comments | 1 | 2020-11-17T12:02:36Z | 2020-11-17T14:06:33Z | https://github.com/gpac/gpac/issues/1641 | 744,673,946 | 1,641 |
[
"gpac",
"gpac"
] |
the input hevc file is 3789 frames. but the output test.mp4 is 3788 frames.
MP4Box -add /test.265 -tmp /test/ -new /test.mp4
| mux hevc es data to mp4 file,the result is missing 1 frames | https://api.github.com/repos/gpac/gpac/issues/1640/comments | 1 | 2020-11-17T01:34:48Z | 2020-11-18T06:47:18Z | https://github.com/gpac/gpac/issues/1640 | 744,333,413 | 1,640 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.