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"
] |
Namely udptsseg on openSUSE Tumbleweed.
Using gpac 1.0.0, see [log snippet](https://github.com/gpac/gpac/files/4840545/udptsseg.txt).
|
Can't build test app
|
https://api.github.com/repos/gpac/gpac/issues/1527/comments
| 5 |
2020-06-27T12:45:52Z
|
2020-07-16T17:09:21Z
|
https://github.com/gpac/gpac/issues/1527
| 646,676,413 | 1,527 |
[
"gpac",
"gpac"
] |
- [x] I looked for a similar issue and couldn't find any.
- [x] I tried with the latest version of GPAC. Installers available at http://gpac.io/downloads/gpac-nightly-builds/
- [x] I give enough information for contributors to reproduce my issue (meaningful title, github labels, platform and compiler, command-line ...). I can share files anonymously with this dropbox: https://www.mediafire.com/filedrop/filedrop_hosted.php?drop=eec9e058a9486fe4e99c33021481d9e1826ca9dbc242a6cfaab0fe95da5e5d95
---
I regularly use `:forcesync` (in MP4Box) and `GF_IMPORT_FORCE_SYNC` (in my own code) flags to force the creation of sync samples for HEVC files that would otherwise only be created with one (apparently for [this reason](https://github.com/gpac/gpac/issues/463#issuecomment-200816181)).
This worked until version 1.0 and subsequent commits, now my x265 encoded files are created with only one sync sample regardless of the flags used. Seeking in such files is fine with libav but very slow with Apple's decoder.
Reproduce:
```bash
#ffmpeg -i BigBuckBunny.mkv -c:v libx265 -crf 18 -an -sn BigBuckBunny.hevc
MP4Box -add BigBuckBunny.hevc:forcesync -new BigBuckBunny.mp4
# check number of sync samples:
#MP4Box -info BigBuckBunny.mp4
```
|
forcesync no longer working
|
https://api.github.com/repos/gpac/gpac/issues/1526/comments
| 2 |
2020-06-26T22:05:20Z
|
2020-06-30T09:45:59Z
|
https://github.com/gpac/gpac/issues/1526
| 646,534,959 | 1,526 |
[
"gpac",
"gpac"
] |
We are using MP42TS to create transport stream and we have this requirement to have the timeline of different tick rate for the same fps video. By default timeline will have a tick rate equal to the frame rate . Can this be set or changed in any way?
|
TEMI timescale for transport stream
|
https://api.github.com/repos/gpac/gpac/issues/1525/comments
| 5 |
2020-06-24T05:25:41Z
|
2020-06-29T13:46:40Z
|
https://github.com/gpac/gpac/issues/1525
| 644,328,499 | 1,525 |
[
"gpac",
"gpac"
] |
- [x] I looked for a similar issue and couldn't find any.
- [x] I tried with the latest version of GPAC. Installers available at http://gpac.io/downloads/gpac-nightly-builds/
- [x] I give enough information for contributors to reproduce my issue (meaningful title, github labels, platform and compiler, command-line ...). I can share files anonymously with this dropbox: https://www.mediafire.com/filedrop/filedrop_hosted.php?drop=eec9e058a9486fe4e99c33021481d9e1826ca9dbc242a6cfaab0fe95da5e5d95
---
As of gpac 1.0 I'm no longer able to pack single-frame HEVC streams into HEIC or MP4 using either `MP4Box` or gpac as a library. Here's a command which worked on gpac 0.8 but not on 1.0, along with its output:
```
$ MP4Box -add-image Lenna.hvc:primary -new Lenna.heic
Track Importing HEVC - Width 1024 Height 1024 FPS 1/1 SAR 0/0
HEVC Import results: 1 samples (6 NALUs) - Slices: 1 I 0 P 0 B - 1 SEI - 1 IDR
Warning sample description index for sync sample differ from config
No sample found for requested time
Error: Bad Parameter
```
This same command works if the stream is contained in an MP4 (`-add-image Lenna.mp4`) but not with the raw stream.
Alternatively trying to create an MP4 from the same image with the following command on 1.0:
```bash
MP4Box -add Lenna.hvc -new Lenna.mp4
```
emits no errors but creates a 774-byte file with metadata and no image data.
Tested on macOS 10.15.5 using gpac 1.0 compiled with clang. [Here is a sample HEVC stream](https://send.firefox.com/download/eb0ebba04f55be31/#xvwHe7t_-mCk2_zK7vaUVQ), but I've had the same results with every single-frame HEVC stream I've tried.
|
Unable to create HEIC or MP4 from raw single-frame HEVC streams
|
https://api.github.com/repos/gpac/gpac/issues/1524/comments
| 2 |
2020-06-23T21:00:01Z
|
2020-06-25T01:36:03Z
|
https://github.com/gpac/gpac/issues/1524
| 644,143,065 | 1,524 |
[
"gpac",
"gpac"
] |
Is it expected that both co-exist?
|
GF_ISOM_MEDIA_TMCD and GF_ISOM_MEDIA_TIMECODE
|
https://api.github.com/repos/gpac/gpac/issues/1522/comments
| 1 |
2020-06-23T08:46:50Z
|
2020-06-23T09:49:32Z
|
https://github.com/gpac/gpac/issues/1522
| 643,650,584 | 1,522 |
[
"gpac",
"gpac"
] |
Hello,
I'd like to use existing segments to create a DASH MPD. I'm being fed these segments from a parallel, chunk based, transcoder. The folder structure is as follows.
```
source.mp4
source.aac
segments/
source/
0.mp4
1.mp4
1080p/
0.mp4
1.mp4
```
Right now I have to concatenate the segments into a single file before I can use them to generate an MPD.
```
ffmpeg -i 1080p.txt -f concat -c copy 1080p.mp4
```
Is it possible to skip the concatenation step and send the segments directly to MP4Box? Ideally I would like to use the exact same segments. I have the source file on hand too, if more metadata is needed.
|
Generate MPD from existing segments
|
https://api.github.com/repos/gpac/gpac/issues/1521/comments
| 6 |
2020-06-23T02:17:25Z
|
2020-07-04T10:03:04Z
|
https://github.com/gpac/gpac/issues/1521
| 643,476,099 | 1,521 |
[
"gpac",
"gpac"
] |
I'm using MBAS (https://github.com/m-ab-s/media-autobuild_suite) and it fails building the latest version this was reported there (https://github.com/m-ab-s/media-autobuild_suite/issues/1716) and seems like it's a bug in the gpac code.
|
Building MP4Box using MBAS/mingw fails
|
https://api.github.com/repos/gpac/gpac/issues/1520/comments
| 2 |
2020-06-21T08:47:02Z
|
2020-06-22T15:34:58Z
|
https://github.com/gpac/gpac/issues/1520
| 642,522,919 | 1,520 |
[
"gpac",
"gpac"
] |
MP4Box 1.0.0 writes the tag "EXT-X-ENDLIST" to the end of the Master HLS playlist file, but this tag is only specified to belong to Media playlists, not Master playlists:
https://tools.ietf.org/html/draft-pantos-hls-rfc8216bis-07
As far as I can see, this tag has no meaning in a Master playlist and its presence is erroneous there.
The presence of this tag [causes Google's Shaka player](https://github.com/google/shaka-player/blob/76c4c674dc02c4b6dd166f2f75857b5e1c9cb037/lib/hls/manifest_text_parser.js#L287) to misidentify the Master playlist as a Media playlist, since it knows that this tag may only appear in Media playlists, and this prevents it from playing the video.
|
MP4Box writes "EXT-X-ENDLIST" tag to Master HLS playlist
|
https://api.github.com/repos/gpac/gpac/issues/1519/comments
| 1 |
2020-06-21T04:11:30Z
|
2020-06-22T10:39:58Z
|
https://github.com/gpac/gpac/issues/1519
| 642,490,897 | 1,519 |
[
"gpac",
"gpac"
] |
Since updating from 0.8.0 to 1.0.0 (both `gpac-1.0.0-rev0-ga99c032b-master` and `gpac-1.0.0-rev14-g86a34cad-master`) to try out the new dual mpd/m3u8 writing capabilities, I can no longer get MP4box to generate an .mpd file for my project in -dash mode. Reverting to 0.8.0 makes the same command work successfully.
I'm testing using the Standard 2D, Full HD (1080p), 30fps Big Buck Bunny file:
http://bbb3d.renderfarming.net/download.html
http://distribution.bbb3d.renderfarming.net/video/mp4/bbb_sunflower_1080p_30fps_normal.mp4
These are my command lines, can anybody spot what I'm doing wrong here?
```bash
# Render audio:
ffmpeg -y -i bbb_sunflower_1080p_30fps_normal.mp4 -c:a aac -b:a 128k -vn -t 30 audio_128k.mp4
# Render video:
ffmpeg -n -i "bbb_sunflower_1080p_30fps_normal.mp4" -s 426x240 -c:v libx264 -b:v 400k -x264opts "keyint=30:min-keyint=30:no-scenecut" -an -t 30 "angle1_426x240_400k.mp4"
ffmpeg -n -i "bbb_sunflower_1080p_30fps_normal.mp4" -s 1920x1080 -c:v libx264 -b:v 4500k -x264opts "keyint=30:min-keyint=30:no-scenecut" -an -t 30 "angle1_1920x1080_4500k.mp4"
# Create DASH file
MP4Box \
-dash 2000 -single-file -rap -profile dashavc264:onDemand \
-mpd-title TestVideo \
-out dash.mpd \
audio_128k.mp4#audio \
angle1_426x240_400k.mp4#video \
angle1_1920x1080_4500k.mp4#video
```
The `_dashinit.mp4` files are written for each of the source files as expected, but no `dash.mpd` file is written. The output from MP4Box ends like so:
```
Dashing P1 AS#1.1(A) seg #10 0.30s (15.20 %) AS#2.1(V) seg #15 0.43s (21.67 %) AS#2.2(V) seg #15 0.43s (2Dashing P1 AS#1.1(A) seg #10 0.45s (22.67 %) AS#2.1(V) seg #15 0.67s (33.33 %) AS#2.2(V) seg #15 0.67s (3Dashing P1 AS#1.1(A) seg #10 0.60s (30.13 %) AS#2.1(V) seg #15 0.90s (45.00 %) AS#2.2(V) seg #15 0.90s (4Dashing P1 AS#1.1(A) seg #10 0.90s (45.07 %) AS#2.1(V) seg #15 1.37s (68.33 %) AS#2.2(V) seg #15 1.37s (6Dashing P1 AS#1.1(A) seg #10 1.05s (52.53 %) AS#2.1(V) seg #15 1.60s (80.00 %) AS#2.2(V) seg #15 1.60s (8Dashing P1 AS#1.1(A) seg #10 1.20s (60.00 %) AS#2.1(V) seg #15 1.83s (91.67 %) AS#2.2(V) seg #15 1.83s (9[FileOut] re-opening in write mode output file angle1_426x240_400k_dashinit.mp4, content overwrite
[FileOut] re-opening in write mode output file angle1_1920x1080_4500k_dashinit.mp4, content overwrite
[FileOut] re-opening in write mode output file audio_128k_dashinit.mp4, content overwrite
[FileOut] re-opening in write mode output file audio_128k_dashinit.mp4, content overwrite
[FileOut] re-opening in write mode output file audio_128k_dashinit.mp4, content overwrite
[FileOut] re-opening in write mode output file audio_128k_dashinit.mp4, content overwrite
[FileOut] re-opening in write mode output file audio_128k_dashinit.mp4, content overwrite
[FileOut] re-opening in write mode output file audio_128k_dashinit.mp4, content overwrite
[FileOut] re-opening in write mode output file audio_128k_dashinit.mp4, content overwrite
```
If I change the -out to `-out dash.mpd:dual` then I get these additional errors printed at the end of MP4Box's execution:
```
[Dasher] timeout 46 segment info still pending but no event from muxer after 1000000 us, aborting
Error DASHing file: Internal Service Error
make: *** [dash.mpd] Error 1
```
I've tried this on both macOS and Ubuntu Bionic and got the same result.
|
Dash .mpd file not written to disk with 1.0.0
|
https://api.github.com/repos/gpac/gpac/issues/1518/comments
| 2 |
2020-06-20T21:07:25Z
|
2020-06-22T11:01:20Z
|
https://github.com/gpac/gpac/issues/1518
| 642,445,723 | 1,518 |
[
"gpac",
"gpac"
] |
Hello.
mp4box does not cross-compiles under mingw64 (in ubuntu) for target Win10 x64, any more. This only came to light as I tried to build it after a week or so absence.
I had to swap to use commit ce9a843ffcd941d3d17a7bab20749b94a8e3c43c which is the prevailing top of the tree 'legacy' and that did cross-compile successfully.
So, it's the new master branch in which has lot has changed, that causes mp4box to no longer cross-compile.
By the way, thanks for fixing the case in 'Windows.h' and 'WinBase.h' to lowercase ... I didn't realise what else was going on as the original "breaking" change appeared to come from a very old commit (April 8th) and yet it had build successfully more recently, which threw me since I do not track this git.
The failed mp4box cross-compilaton console log is attached.
I may be doing something wrong under "old build scheme assumptions", in which case please just let me know.
Advice on "where to next" would be very much welcomed.
Thank you.
[mp4box.log](https://github.com/gpac/gpac/files/4805359/mp4box.log)
|
mp4box no longer cross-compiles
|
https://api.github.com/repos/gpac/gpac/issues/1517/comments
| 3 |
2020-06-19T15:26:45Z
|
2020-06-20T02:20:37Z
|
https://github.com/gpac/gpac/issues/1517
| 642,050,819 | 1,517 |
[
"gpac",
"gpac"
] |
Seems safe to me, but I need another pair of eyes to ensure it is not the current condition or default value which is broken.
|
Investigate removal of needs_split in stbl_write.c::stbl_AddChunkOffset()
|
https://api.github.com/repos/gpac/gpac/issues/1516/comments
| 1 |
2020-06-19T14:59:30Z
|
2020-06-22T11:05:34Z
|
https://github.com/gpac/gpac/issues/1516
| 642,034,058 | 1,516 |
[
"gpac",
"gpac"
] |
Hello, it looks like inconsistent capitalisation may be causing build failures under mingw64.
During the build, "Windows.h" cannot be found.
In almost all of gpac source lowercase windows.h is present and is found, whereas in these three files
```
include/gpac/thread.h
src/filters/dec_nvdec_sdk.c
src/filters/dec_nvdec_sdk.h
```
the first letter is capitalised, i.e. `Windows.h`
Can you please make these three lowercase to be consistent with the rest ?
Thank you.
|
cross-compiling under mingw64 failing
|
https://api.github.com/repos/gpac/gpac/issues/1515/comments
| 3 |
2020-06-19T13:04:53Z
|
2020-06-19T14:19:18Z
|
https://github.com/gpac/gpac/issues/1515
| 641,954,475 | 1,515 |
[
"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/
|
Generating and playing a live MPD based stream.
|
https://api.github.com/repos/gpac/gpac/issues/1514/comments
| 6 |
2020-06-17T23:58:58Z
|
2021-01-25T09:32:01Z
|
https://github.com/gpac/gpac/issues/1514
| 640,812,380 | 1,514 |
[
"gpac",
"gpac"
] |
Take
http://www.mediafire.com/file/b83yw4dicwl3cl2/audio.mp4/file
http://www.mediafire.com/file/h2ky74i1ypyr685/video-720p.mp4/file
http://www.mediafire.com/file/z5i76qrzteva1tg/drm_file_gpac_clear.xml/file
create encrypted audio:
mp4box -encrypt drm_file_gpac_clear.xml audio.mp4
create encrypted video:
mp4box -encrypt drm_file_gpac_clear.xml video-720p.mp4
create DASH:
mp4box -dash 3000 audio_enc.mp4 video-720p_enc.mp4
Trying to play the resulting encrypted DASH package with mp4client will fail.
console output with logging turned on
No filter chain found for PID AS1 in filter dashin to any loaded filters - NOT CONNECTED
No filter chain found for PID AS2 in filter dashin to any loaded filters - NOT CONNECTED
I also tested:
- mp4 playback works
- encrypted mp4 playback works
- DASH playback works
- encrypted DASH does NOT work.
|
mp4client does not playback encrypted DASH
|
https://api.github.com/repos/gpac/gpac/issues/1513/comments
| 2 |
2020-06-17T20:15:52Z
|
2020-06-19T13:20:08Z
|
https://github.com/gpac/gpac/issues/1513
| 640,713,482 | 1,513 |
[
"gpac",
"gpac"
] |
dh_link must be called without DESTDIR otherwise the link is created in teh wrong path
debian/gpac/src/gpac-1.0.1/debian/tmp/usr/share/pixmaps/gpac.png
Otherwise this call to dh_link is really necessary ?
````
--- a/Makefile
+++ b/Makefile
@@ -168,7 +168,7 @@ ifeq ($(IS_DEB_MAKE),undefined)
ln -sf $(DESTDIR)$(prefix)/share/gpac/res/gpac.png $(DESTDIR)/usr/share/pixmaps/gpac.png
$(INSTALL) $(INSTFLAGS) -m 644 $(SRC_PATH)/share/gpac.desktop "$(DESTDIR)/usr/share/applications/"
else
- dh_link $(DESTDIR)$(prefix)/share/gpac/res/gpac.png $(DESTDIR)$(prefix)/share/pixmaps/gpac.png
+ dh_link $(prefix)/share/gpac/res/gpac.png $(prefix)/share/pixmaps/gpac.png
$(INSTALL) $(INSTFLAGS) -m 644 $(SRC_PATH)/share/gpac.desktop "$(DESTDIR)$(prefix)/share/applications/"
endif
````
|
Bad call to dh_link in main Makefile
|
https://api.github.com/repos/gpac/gpac/issues/1512/comments
| 2 |
2020-06-17T16:41:52Z
|
2020-06-18T07:05:28Z
|
https://github.com/gpac/gpac/issues/1512
| 640,588,426 | 1,512 |
[
"gpac",
"gpac"
] |
powerpc Debian unstable, gcc 9.3.0 (Debian 9.3.0-13)
````
evg/raster_yuv.c: In function ‘overmask_yuv420p_10’:
evg/raster_yuv.c:1294:55: error: ‘ptr’ undeclared (first use in this function)
1294 | #define get_u16_le(val, _ptr) { val = ((u32) (*(u8 *) ptr+1)<< 8) | *(u8 *) ptr; }
| ^~~
evg/raster_yuv.c:1329:2: note: in expansion of macro ‘get_u16_le’
1329 | get_u16_le(dstc, dst);
| ^~~~~~~~~~
evg/raster_yuv.c:1294:55: note: each undeclared identifier is reported only once for each function it appears in
1294 | #define get_u16_le(val, _ptr) { val = ((u32) (*(u8 *) ptr+1)<< 8) | *(u8 *) ptr; }
| ^~~
evg/raster_yuv.c:1329:2: note: in expansion of macro ‘get_u16_le’
1329 | get_u16_le(dstc, dst);
| ^~~~~~~~~~
evg/raster_yuv.c: In function ‘evg_yuv420p_10_flush_uv_const’:
evg/raster_yuv.c:1294:55: error: ‘ptr’ undeclared (first use in this function)
1294 | #define get_u16_le(val, _ptr) { val = ((u32) (*(u8 *) ptr+1)<< 8) | *(u8 *) ptr; }
| ^~~
evg/raster_yuv.c:1376:5: note: in expansion of macro ‘get_u16_le’
1376 | get_u16_le(dst, s_ptr_u);
| ^~~~~~~~~~
evg/raster_yuv.c: In function ‘evg_yuv420p_10_flush_uv_var’:
evg/raster_yuv.c:1294:55: error: ‘ptr’ undeclared (first use in this function)
1294 | #define get_u16_le(val, _ptr) { val = ((u32) (*(u8 *) ptr+1)<< 8) | *(u8 *) ptr; }
| ^~~
evg/raster_yuv.c:1537:5: note: in expansion of macro ‘get_u16_le’
1537 | get_u16_le(cdst, pU);
| ^~~~~~~~~~
evg/raster_yuv.c: In function ‘evg_nv12_10_flush_uv_const’:
evg/raster_yuv.c:1294:55: error: ‘ptr’ undeclared (first use in this function)
1294 | #define get_u16_le(val, _ptr) { val = ((u32) (*(u8 *) ptr+1)<< 8) | *(u8 *) ptr; }
| ^~~
evg/raster_yuv.c:1727:5: note: in expansion of macro ‘get_u16_le’
1727 | get_u16_le(dst, pU);
| ^~~~~~~~~~
evg/raster_yuv.c: In function ‘evg_nv12_10_flush_uv_var’:
evg/raster_yuv.c:1294:55: error: ‘ptr’ undeclared (first use in this function)
1294 | #define get_u16_le(val, _ptr) { val = ((u32) (*(u8 *) ptr+1)<< 8) | *(u8 *) ptr; }
| ^~~
evg/raster_yuv.c:1769:5: note: in expansion of macro ‘get_u16_le’
1769 | get_u16_le(cdst, pU);
| ^~~~~~~~~~
evg/raster_yuv.c: In function ‘evg_yuv422p_10_flush_uv_const’:
evg/raster_yuv.c:1294:55: error: ‘ptr’ undeclared (first use in this function)
1294 | #define get_u16_le(val, _ptr) { val = ((u32) (*(u8 *) ptr+1)<< 8) | *(u8 *) ptr; }
| ^~~
evg/raster_yuv.c:1907:5: note: in expansion of macro ‘get_u16_le’
1907 | get_u16_le(dst, s_ptr_u);
| ^~~~~~~~~~
evg/raster_yuv.c: In function ‘evg_yuv422p_10_flush_uv_var’:
evg/raster_yuv.c:1294:55: error: ‘ptr’ undeclared (first use in this function)
1294 | #define get_u16_le(val, _ptr) { val = ((u32) (*(u8 *) ptr+1)<< 8) | *(u8 *) ptr; }
| ^~~
evg/raster_yuv.c:1941:5: note: in expansion of macro ‘get_u16_le’
1941 | get_u16_le(cdst, pU);
| ^~~~~~~~~~
make[2]: *** [../config.mak:159: evg/raster_yuv.o] Error 1
````
|
Fail to build for ppc bigendian
|
https://api.github.com/repos/gpac/gpac/issues/1511/comments
| 18 |
2020-06-17T13:11:26Z
|
2020-06-19T13:36:04Z
|
https://github.com/gpac/gpac/issues/1511
| 640,430,977 | 1,511 |
[
"gpac",
"gpac"
] |
- [x ] I looked for a similar issue and couldn't find any.
- [ x] I tried with the latest version of GPAC. Installers available at http://gpac.io/downloads/gpac-nightly-builds/
- [ x] I give enough information for contributors to reproduce my issue (meaningful title, github labels, platform and compiler, command-line ...).
Hi,
I commented on the #1508 issue, but it was closed too soon. I confronted some lack of documentation that led me to another issue that i already resolved myself (this setup issue due to BAD documentation)
I got this error when I did "make install":
dh_link /usr/local/share/gpac/res/gpac.png /usr/local/share/pixmaps/gpac.png
make: dh_link: Command not found
Makefile:114: recipe for target 'install' failed
make: *** [install] Error 127
Always
As said, I had a Fedora ,
`#uname -a
Linux pc-01 4.11.12-100.fc24.x86_64 #1 SMP Fri Jul 21 17:35:20 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
#cat /etc/fedora-release
Generic release 24 (Generic)`
### So the solution was to simply install correctly debhelper package in Fedora
This solved my issue in linux, please update required packages...
`dnf install debhelper`
And particularly I had to restart procedure all over because for a dash chunked generation I had this message while performing it (another problem I might be opening issue)
`Adaptation` sets in period are of unequal duration min 545.994 max 937.96 seconds `
(in loop and of course varying the quantity of the the min/max)
So a regression against MP4Box - GPAC version 0.8.0-rev267-gd9d3533-master? but I have to be more sure Install is good with all extra dep for linux...
I am trying a correct full install also because if I didn't, then the old 0.62 MP4Box version in this old Fedora (or something like that) in the system was taking over.
**TY very much for the change of the Upgrading Versions Documentation already**
BTW, you could also improve DOCUMENTATION adding this optional command:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/root/gpac_public/bin/gcc
And Deleting this web page or section: https://github.com/gpac/gpac/wiki/GPAC-build-MP4Box-only-all-platforms
Or PLEASE specify which versions deserves it.
Regards,
|
DOCUMENTATION for build 1.0.0 still needs update (completion)
|
https://api.github.com/repos/gpac/gpac/issues/1510/comments
| 4 |
2020-06-16T18:51:57Z
|
2020-06-22T11:14:50Z
|
https://github.com/gpac/gpac/issues/1510
| 639,898,912 | 1,510 |
[
"gpac",
"gpac"
] |
tons of references to '/Users/lefeuvre'
in
https://github.com/gpac/gpac/blob/master/src/modules/dektec_out/dektec_video_decl.dep
make build fail
with:
commit 9cc751217bd951cdfa5b32ea2d54e9fd370a3b5f (HEAD, tag: v1.0.1)
my build script looks like this
```
### MP4Box
if echo "$args" | grep -q -i -w -E 'all|mp4box'
then
git clone https://github.com/gpac/gpac build
cd build
git checkout $(git tag --list | sort -V | tail -1)
./configure --static-mp4box \
--disable-wx \
--disable-alsa \
--disable-jack \
--disable-pulseaudio \
--disable-x11 \
--disable-ssl \
--use-js=no \
--use-faad=no \
--use-mad=no \
--use-xvid=no \
--use-ffmpeg=no \
--use-ogg=no \
--use-vorbis=no \
--use-theora=no \
--use-openjpeg=no \
--use-a52=no
make $MAKEFLAGS || true
strip bin/gcc/MP4Box
cp -f bin/gcc/MP4Box ..
cd ..
rm -rf build
fi
```
and it fails with:
```
+ grep -q -i -w -E 'all|mp4box'
+ git clone https://github.com/gpac/gpac build
Cloning into 'build'...
remote: Enumerating objects: 173, done.
remote: Counting objects: 100% (173/173), done.
remote: Compressing objects: 100% (150/150), done.
remote: Total 139583 (delta 52), reused 70 (delta 17), pack-reused 139410
Receiving objects: 100% (139583/139583), 111.55 MiB | 11.41 MiB/s, done.
Resolving deltas: 100% (113463/113463), done.
+ cd build
++ git tag --list
++ sort -V
++ tail -1
+ git checkout v1.0.1
Note: checking out 'v1.0.1'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b <new-branch-name>
HEAD is now at 9cc751217 fixed changelog for 1.0
+ ./configure --static-mp4box --disable-wx --disable-alsa --disable-jack --disable-pulseaudio --disable-x11 --disable-ssl --use-js=no --use-faad=no --use-mad=no --use-xvid=no --use-ffmpeg=no --use-ogg=no --use-vorbis=no --use-theora=no --use-openjpeg=no --use-a52=no
diff: ./include/gpac/revision.h: No such file or directory
revision has changed
rm: cannot remove './include/gpac/revision.h': No such file or directory
** System Configuration
Install prefix: /usr/local
Source path: /home/selur/workspace/HybridTools/tools/build
C compiler: gcc
C++ compiler: g++
make: make
CPU: x86_64
Big Endian: no
** GPAC 1.0.0 rev Core Configuration **
debug version: no
GProf enabled: no
Static build enabled: yes
Memory tracking enabled: no
Sanitizer enabled: no
Fixed-Point Version: no
IPV6 Support: yes
Static Modules: no
QuickJS Support: yes
** Detected libraries **
zlib: system
OSS Audio: yes
ALSA Audio: no
Jack Audio: no
PulseAudio Audio: no
DirectFB support: no
SDL Support: no
OpenGL support: no
TinyGL support: no
OpenSSL support: no
DVB Support: yes
** Extra Libraries used **
FreeType: no
JPEG: no
OpenJPEG: no
PNG: no
MAD: no
FAAD: no
XVID: no
FFMPEG: no
LZMA: yes
Xiph OGG: no
Platinum UPnP: no
AVCap: no
A52 (AC3): no
OpenSVCDecoder: no
OpenHEVCDecoder: no
Freenect: no
Creating config.mak
Check config.log for detection failures
Done - type 'make help' for make info, 'make' to build
+ make -j4
make -C src all
make[1]: Entering directory '/home/selur/workspace/HybridTools/tools/build/src'
cat .deps/utils/os_divers.dep .deps/utils/os_file.dep .deps/utils/list.dep .deps/utils/bitstream.dep .deps/utils/constants.dep .deps/utils/error.dep .deps/utils/alloc.dep .deps/utils/url.dep .deps/utils/configfile.dep .deps/utils/gltools.dep .deps/utils/gzio.dep .deps/utils/sha1.dep .deps/utils/base_encoding.dep .deps/utils/math.dep .deps/utils/os_net.dep .deps/utils/os_thread.dep .deps/utils/os_config_init.dep .deps/utils/cache.dep .deps/utils/downloader.dep .deps/utils/xml_parser.dep .deps/utils/utf.dep .deps/utils/token.dep .deps/utils/color.dep .deps/utils/Remotery.dep .deps/utils/os_module.dep .deps/utils/path2d.dep .deps/utils/path2d_stroker.dep .deps/utils/module.dep .deps/utils/uni_bidi.dep .deps/utils/unicode.dep .deps/crypto/g_crypt.dep .deps/crypto/g_crypt_openssl.dep .deps/crypto/g_crypt_tinyaes.dep .deps/crypto/tiny_aes.dep .deps/scenegraph/base_scenegraph.dep .deps/scenegraph/mpeg4_animators.dep .deps/scenegraph/commands.dep .deps/scenegraph/mpeg4_nodes.dep .deps/scenegraph/mpeg4_valuator.dep .deps/scenegraph/vrml_interpolators.dep .deps/scenegraph/vrml_proto.dep .deps/scenegraph/vrml_route.dep .deps/scenegraph/vrml_script.dep .deps/scenegraph/vrml_js.dep .deps/scenegraph/vrml_tools.dep .deps/scenegraph/x3d_nodes.dep .deps/scenegraph/svg_attributes.dep .deps/scenegraph/svg_types.dep .deps/scenegraph/svg_js.dep .deps/scenegraph/smil_anim.dep .deps/scenegraph/smil_timing.dep .deps/scenegraph/svg_properties.dep .deps/scenegraph/dom_events.dep .deps/scenegraph/dom_js.dep .deps/scenegraph/xml_ns.dep .deps/ietf/rtcp.dep .deps/ietf/rtp.dep .deps/ietf/rtp_packetizer.dep .deps/ietf/rtp_pck_3gpp.dep .deps/ietf/rtp_pck_mpeg12.dep .deps/ietf/rtp_pck_mpeg4.dep .deps/ietf/rtsp_command.dep .deps/ietf/rtsp_common.dep .deps/ietf/rtsp_response.dep .deps/ietf/rtsp_session.dep .deps/ietf/sdp.dep .deps/ietf/rtp_depacketizer.dep .deps/ietf/rtp_streamer.dep .deps/bifs/arith_decoder.dep .deps/bifs/bifs_codec.dep .deps/bifs/bifs_node_tables.dep .deps/bifs/com_dec.dep .deps/bifs/com_enc.dep .deps/bifs/conditional.dep .deps/bifs/field_decode.dep .deps/bifs/field_encode.dep .deps/bifs/memory_decoder.dep .deps/bifs/predictive_mffield.dep .deps/bifs/quantize.dep .deps/bifs/script_dec.dep .deps/bifs/script_enc.dep .deps/bifs/unquantize.dep .deps/isomedia/avc_ext.dep .deps/isomedia/box_code_3gpp.dep .deps/isomedia/box_code_apple.dep .deps/isomedia/box_code_base.dep .deps/isomedia/box_code_drm.dep .deps/isomedia/box_code_meta.dep .deps/isomedia/box_dump.dep .deps/isomedia/box_funcs.dep .deps/isomedia/data_map.dep .deps/isomedia/drm_sample.dep .deps/isomedia/isom_intern.dep .deps/isomedia/isom_read.dep .deps/isomedia/isom_store.dep .deps/isomedia/isom_write.dep .deps/isomedia/media.dep .deps/isomedia/media_odf.dep .deps/isomedia/meta.dep .deps/isomedia/movie_fragments.dep .deps/isomedia/sample_descs.dep .deps/isomedia/stbl_read.dep .deps/isomedia/stbl_write.dep .deps/isomedia/track.dep .deps/isomedia/tx3g.dep .deps/isomedia/iff.dep .deps/isomedia/hint_track.dep .deps/isomedia/hinting.dep .deps/isomedia/box_code_adobe.dep .deps/odf/desc_private.dep .deps/odf/descriptors.dep .deps/odf/odf_code.dep .deps/odf/odf_codec.dep .deps/odf/odf_command.dep .deps/odf/qos.dep .deps/odf/slc.dep .deps/odf/ipmpx_code.dep .deps/odf/oci_codec.dep .deps/odf/ipmpx_dump.dep .deps/odf/ipmpx_parse.dep .deps/odf/odf_dump.dep .deps/odf/odf_parse.dep .deps/media_tools/isom_tools.dep .deps/media_tools/dash_segmenter.dep .deps/media_tools/av_parsers.dep .deps/media_tools/atsc_dmx.dep .deps/media_tools/img.dep .deps/media_tools/media_import.dep .deps/media_tools/mpegts.dep .deps/media_tools/m3u8.dep .deps/media_tools/mpd.dep .deps/media_tools/dash_client.dep .deps/media_tools/media_export.dep .deps/media_tools/m2ts_mux.dep .deps/media_tools/avilib.dep .deps/media_tools/mpeg2_ps.dep .deps/media_tools/gpac_ogg.dep .deps/media_tools/crypt_tools.dep .deps/media_tools/isom_hinter.dep .deps/media_tools/saf.dep .deps/media_tools/vobsub.dep .deps/media_tools/webvtt.dep .deps/scene_manager/scene_manager.dep .deps/scene_manager/text_to_bifs.dep .deps/scene_manager/loader_bt.dep .deps/scene_manager/loader_xmt.dep .deps/scene_manager/loader_isom.dep .deps/scene_manager/loader_qt.dep .deps/scene_manager/loader_svg.dep .deps/scene_manager/swf_parse.dep .deps/scene_manager/swf_bifs.dep .deps/scene_manager/swf_svg.dep .deps/scene_manager/scene_dump.dep .deps/scene_manager/scene_stats.dep .deps/scene_manager/scene_engine.dep .deps/scene_manager/encode_isom.dep .deps/terminal/terminal.dep .deps/compositor/audio_input.dep .deps/compositor/audio_mixer.dep .deps/compositor/audio_render.dep .deps/compositor/bindable.dep .deps/compositor/camera.dep .deps/compositor/compositor.dep .deps/compositor/compositor_2d.dep .deps/compositor/compositor_3d.dep .deps/compositor/compositor_node_init.dep .deps/compositor/drawable.dep .deps/compositor/events.dep .deps/compositor/font_engine.dep .deps/compositor/hc_flash_shape.dep .deps/compositor/hardcoded_protos.dep .deps/compositor/mesh.dep .deps/compositor/mesh_collide.dep .deps/compositor/mesh_tesselate.dep .deps/compositor/mpeg4_animstream.dep .deps/compositor/mpeg4_audio.dep .deps/compositor/mpeg4_background.dep .deps/compositor/mpeg4_background2d.dep .deps/compositor/mpeg4_bitmap.dep .deps/compositor/mpeg4_composite.dep .deps/compositor/mpeg4_form.dep .deps/compositor/mpeg4_geometry_2d.dep .deps/compositor/mpeg4_geometry_3d.dep .deps/compositor/mpeg4_geometry_ifs2d.dep .deps/compositor/mpeg4_geometry_ils2d.dep .deps/compositor/mpeg4_gradients.dep .deps/compositor/mpeg4_grouping.dep .deps/compositor/mpeg4_grouping_2d.dep .deps/compositor/mpeg4_grouping_3d.dep .deps/compositor/mpeg4_layer_2d.dep .deps/compositor/mpeg4_layer_3d.dep .deps/compositor/mpeg4_layout.dep .deps/compositor/mpeg4_lighting.dep .deps/compositor/mpeg4_path_layout.dep .deps/compositor/mpeg4_sensors.dep .deps/compositor/mpeg4_sound.dep .deps/compositor/mpeg4_text.dep .deps/compositor/mpeg4_textures.dep .deps/compositor/mpeg4_timesensor.dep .deps/compositor/mpeg4_viewport.dep .deps/compositor/navigate.dep .deps/compositor/offscreen_cache.dep .deps/compositor/svg_base.dep .deps/compositor/svg_filters.dep .deps/compositor/svg_font.dep .deps/compositor/svg_geometry.dep .deps/compositor/svg_grouping.dep .deps/compositor/svg_media.dep .deps/compositor/svg_paint_servers.dep .deps/compositor/svg_text.dep .deps/compositor/texturing.dep .deps/compositor/texturing_gl.dep .deps/compositor/visual_manager.dep .deps/compositor/visual_manager_2d.dep .deps/compositor/visual_manager_2d_draw.dep .deps/compositor/visual_manager_3d.dep .deps/compositor/visual_manager_3d_gl.dep .deps/compositor/x3d_geometry.dep .deps/compositor/clock.dep .deps/compositor/mpeg4_inputsensor.dep .deps/compositor/mpeg4_mediacontrol.dep .deps/compositor/media_object.dep .deps/compositor/mpeg4_mediasensor.dep .deps/compositor/mpeg4_inline.dep .deps/compositor/scene_ns.dep .deps/compositor/object_manager.dep .deps/compositor/scene.dep .deps/compositor/svg_external.dep .deps/compositor/scene_node_init.dep .deps/laser/lsr_enc.dep .deps/laser/lsr_dec.dep .deps/laser/lsr_tables.dep .deps/evg/ftgrays.dep .deps/evg/raster3d.dep .deps/evg/raster_565.dep .deps/evg/raster_argb.dep .deps/evg/raster_rgb.dep .deps/evg/raster_yuv.dep .deps/evg/stencil.dep .deps/evg/surface.dep .deps/filter_core/filter_pck.dep .deps/filter_core/filter_pid.dep .deps/filter_core/filter_props.dep .deps/filter_core/filter_queue.dep .deps/filter_core/filter_session.dep .deps/filter_core/filter_register.dep .deps/filter_core/filter.dep .deps/filters/bsrw.dep .deps/filters/compose.dep .deps/filters/dasher.dep .deps/filters/dec_ac52.dep .deps/filters/dec_bifs.dep .deps/filters/dec_faad.dep .deps/filters/dec_img.dep .deps/filters/dec_j2k.dep .deps/filters/dec_laser.dep .deps/filters/dec_mad.dep .deps/filters/dec_mediacodec.dep .deps/filters/dec_nvdec.dep .deps/filters/dec_nvdec_sdk.dep .deps/filters/dec_odf.dep .deps/filters/dec_theora.dep .deps/filters/dec_ttml.dep .deps/filters/dec_ttxt.dep .deps/filters/dec_vorbis.dep .deps/filters/dec_vtb.dep .deps/filters/dec_webvtt.dep .deps/filters/dec_xvid.dep .deps/filters/decrypt_cenc_isma.dep .deps/filters/dmx_avi.dep .deps/filters/dmx_dash.dep .deps/filters/dmx_gsf.dep .deps/filters/dmx_m2ts.dep .deps/filters/dmx_mpegps.dep .deps/filters/dmx_nhml.dep .deps/filters/dmx_nhnt.dep .deps/filters/dmx_ogg.dep .deps/filters/dmx_saf.dep .deps/filters/dmx_vobsub.dep .deps/filters/enc_jpg.dep .deps/filters/enc_png.dep .deps/filters/encrypt_cenc_isma.dep .deps/filters/ff_common.dep .deps/filters/ff_avf.dep .deps/filters/ff_dec.dep .deps/filters/ff_dmx.dep .deps/filters/ff_enc.dep .deps/filters/ff_rescale.dep .deps/filters/ff_mx.dep .deps/filters/filelist.dep .deps/filters/hevcmerge.dep .deps/filters/hevcsplit.dep .deps/filters/in_atsc.dep .deps/filters/in_dvb4linux.dep .deps/filters/in_file.dep .deps/filters/in_http.dep .deps/filters/in_pipe.dep .deps/filters/in_rtp.dep .deps/filters/in_rtp_rtsp.dep .deps/filters/in_rtp_sdp.dep .deps/filters/in_rtp_signaling.dep .deps/filters/in_rtp_stream.dep .deps/filters/in_sock.dep .deps/filters/inspect.dep .deps/filters/isoffin_load.dep .deps/filters/isoffin_read.dep .deps/filters/isoffin_read_ch.dep .deps/filters/jsfilter.dep .deps/filters/load_bt_xmt.dep .deps/filters/load_svg.dep .deps/filters/load_text.dep .deps/filters/mux_avi.dep .deps/filters/mux_gsf.dep .deps/filters/mux_isom.dep .deps/filters/mux_ts.dep .deps/filters/out_audio.dep .deps/filters/out_file.dep .deps/filters/out_http.dep .deps/filters/out_pipe.dep .deps/filters/out_rtp.dep .deps/filters/out_rtsp.dep .deps/filters/out_sock.dep .deps/filters/out_video.dep .deps/filters/reframer.dep .deps/filters/reframe_ac3.dep .deps/filters/reframe_adts.dep .deps/filters/reframe_latm.dep .deps/filters/reframe_amr.dep .deps/filters/reframe_av1.dep .deps/filters/reframe_flac.dep .deps/filters/reframe_h263.dep .deps/filters/reframe_img.dep .deps/filters/reframe_mp3.dep .deps/filters/reframe_mpgvid.dep .deps/filters/reframe_nalu.dep .deps/filters/reframe_prores.dep .deps/filters/reframe_qcp.dep .deps/filters/reframe_rawvid.dep .deps/filters/reframe_rawpcm.dep .deps/filters/resample_audio.dep .deps/filters/tileagg.dep .deps/filters/tssplit.dep .deps/filters/unit_test_filter.dep .deps/filters/rewind.dep .deps/filters/rewrite_adts.dep .deps/filters/rewrite_mp4v.dep .deps/filters/rewrite_nalu.dep .deps/filters/rewrite_obu.dep .deps/filters/vflip.dep .deps/filters/vcrop.dep .deps/filters/write_generic.dep .deps/filters/write_nhml.dep .deps/filters/write_nhnt.dep .deps/filters/write_qcp.dep .deps/filters/write_vtt.dep .deps/../modules/dektec_out/dektec_video_decl.dep .deps/filters/dec_opensvc.dep .deps/quickjs/cutils.dep .deps/quickjs/libbf.dep .deps/quickjs/libregexp.dep .deps/quickjs/libunicode.dep .deps/quickjs/quickjs.dep .deps/jsmods/evg.dep .deps/jsmods/scene_js.dep .deps/jsmods/storage.dep .deps/jsmods/webgl.dep .deps/jsmods/xhr.dep > ".depend"
CC utils/os_file.c
CC utils/os_divers.c
CC utils/list.c
CC utils/bitstream.c
CC utils/constants.c
CC utils/error.c
CC utils/alloc.c
CC utils/url.c
CC utils/configfile.c
CC utils/gltools.c
CC utils/gzio.c
CC utils/sha1.c
CC utils/base_encoding.c
CC utils/math.c
CC utils/os_net.c
CC utils/os_thread.c
CC utils/os_config_init.c
CC utils/cache.c
CC utils/downloader.c
CC utils/xml_parser.c
CC utils/utf.c
CC utils/token.c
CC utils/color.c
CC utils/Remotery.c
CC utils/os_module.c
CC utils/path2d.c
CC utils/path2d_stroker.c
CC utils/module.c
CC utils/uni_bidi.c
CC utils/unicode.c
CC ietf/rtcp.c
CC ietf/rtp.c
CC ietf/rtp_packetizer.c
CC ietf/rtp_pck_3gpp.c
CC ietf/rtp_pck_mpeg12.c
CC ietf/rtp_pck_mpeg4.c
CC ietf/rtsp_command.c
CC ietf/rtsp_common.c
CC ietf/rtsp_response.c
CC ietf/rtsp_session.c
CC ietf/sdp.c
CC ietf/rtp_depacketizer.c
CC ietf/rtp_streamer.c
CC bifs/arith_decoder.c
CC bifs/bifs_codec.c
CC bifs/bifs_node_tables.c
CC bifs/com_dec.c
CC bifs/com_enc.c
CC bifs/conditional.c
CC bifs/field_decode.c
CC bifs/field_encode.c
CC bifs/memory_decoder.c
CC bifs/predictive_mffield.c
CC bifs/quantize.c
CC bifs/script_dec.c
CC bifs/script_enc.c
CC bifs/unquantize.c
CC odf/desc_private.c
CC odf/descriptors.c
CC odf/odf_code.c
CC odf/odf_codec.c
CC odf/odf_command.c
CC odf/qos.c
CC odf/slc.c
CC odf/ipmpx_code.c
CC odf/oci_codec.c
CC odf/ipmpx_dump.c
CC odf/ipmpx_parse.c
CC odf/odf_dump.c
CC odf/odf_parse.c
CC laser/lsr_enc.c
CC laser/lsr_dec.c
CC laser/lsr_tables.c
CC isomedia/avc_ext.c
CC isomedia/box_code_3gpp.c
CC isomedia/box_code_apple.c
CC isomedia/box_code_base.c
CC isomedia/box_code_drm.c
CC isomedia/box_code_meta.c
CC isomedia/box_dump.c
CC isomedia/box_funcs.c
CC isomedia/data_map.c
CC isomedia/drm_sample.c
CC isomedia/isom_intern.c
CC isomedia/isom_read.c
CC isomedia/isom_store.c
CC isomedia/isom_write.c
CC isomedia/media.c
CC isomedia/media_odf.c
CC isomedia/meta.c
CC isomedia/movie_fragments.c
CC isomedia/sample_descs.c
CC isomedia/stbl_read.c
CC isomedia/stbl_write.c
CC isomedia/track.c
CC isomedia/tx3g.c
CC isomedia/iff.c
CC isomedia/hint_track.c
CC isomedia/hinting.c
CC isomedia/box_code_adobe.c
CC scene_manager/scene_manager.c
CC scene_manager/text_to_bifs.c
CC scene_manager/loader_bt.c
CC scene_manager/loader_xmt.c
CC scene_manager/loader_isom.c
CC scene_manager/loader_qt.c
CC scene_manager/loader_svg.c
CC scene_manager/swf_parse.c
CC scene_manager/swf_bifs.c
CC scene_manager/swf_svg.c
CC scene_manager/scene_dump.c
CC scene_manager/scene_stats.c
CC scene_manager/scene_engine.c
CC scene_manager/encode_isom.c
CC terminal/terminal.c
CC compositor/audio_input.c
CC compositor/audio_mixer.c
CC compositor/audio_render.c
CC compositor/bindable.c
CC compositor/camera.c
CC compositor/compositor.c
CC compositor/compositor_2d.c
CC compositor/compositor_3d.c
CC compositor/compositor_node_init.c
CC compositor/drawable.c
CC compositor/events.c
CC compositor/font_engine.c
CC compositor/hc_flash_shape.c
CC compositor/hardcoded_protos.c
CC compositor/mesh.c
CC compositor/mesh_collide.c
CC compositor/mesh_tesselate.c
CC compositor/mpeg4_animstream.c
CC compositor/mpeg4_audio.c
CC compositor/mpeg4_background.c
CC compositor/mpeg4_background2d.c
CC compositor/mpeg4_bitmap.c
CC compositor/mpeg4_composite.c
CC compositor/mpeg4_form.c
CC compositor/mpeg4_geometry_2d.c
CC compositor/mpeg4_geometry_3d.c
CC compositor/mpeg4_geometry_ifs2d.c
CC compositor/mpeg4_geometry_ils2d.c
CC compositor/mpeg4_gradients.c
CC compositor/mpeg4_grouping.c
CC compositor/mpeg4_grouping_2d.c
CC compositor/mpeg4_grouping_3d.c
CC compositor/mpeg4_layer_2d.c
CC compositor/mpeg4_layer_3d.c
CC compositor/mpeg4_layout.c
CC compositor/mpeg4_lighting.c
CC compositor/mpeg4_path_layout.c
CC compositor/mpeg4_sensors.c
CC compositor/mpeg4_sound.c
CC compositor/mpeg4_text.c
CC compositor/mpeg4_textures.c
CC compositor/mpeg4_timesensor.c
CC compositor/mpeg4_viewport.c
CC compositor/navigate.c
CC compositor/offscreen_cache.c
CC compositor/svg_base.c
CC compositor/svg_filters.c
CC compositor/svg_font.c
CC compositor/svg_geometry.c
CC compositor/svg_grouping.c
CC compositor/svg_media.c
CC compositor/svg_paint_servers.c
CC compositor/svg_text.c
CC compositor/texturing.c
CC compositor/texturing_gl.c
CC compositor/visual_manager.c
CC compositor/visual_manager_2d.c
CC compositor/visual_manager_2d_draw.c
CC compositor/visual_manager_3d.c
CC compositor/visual_manager_3d_gl.c
CC compositor/x3d_geometry.c
CC compositor/clock.c
CC compositor/mpeg4_inputsensor.c
CC compositor/mpeg4_mediacontrol.c
CC compositor/media_object.c
CC compositor/mpeg4_mediasensor.c
CC compositor/mpeg4_inline.c
CC compositor/scene_ns.c
CC compositor/object_manager.c
CC compositor/scene.c
CC compositor/svg_external.c
CC compositor/scene_node_init.c
CC scenegraph/base_scenegraph.c
CC scenegraph/mpeg4_animators.c
CC scenegraph/commands.c
CC scenegraph/mpeg4_nodes.c
CC scenegraph/mpeg4_valuator.c
CC scenegraph/vrml_interpolators.c
CC scenegraph/vrml_proto.c
CC scenegraph/vrml_route.c
CC scenegraph/vrml_script.c
CC scenegraph/vrml_js.c
CC scenegraph/vrml_tools.c
CC scenegraph/x3d_nodes.c
CC scenegraph/svg_attributes.c
CC scenegraph/svg_types.c
CC scenegraph/svg_js.c
CC scenegraph/smil_anim.c
CC scenegraph/smil_timing.c
CC scenegraph/svg_properties.c
CC scenegraph/dom_events.c
CC scenegraph/dom_js.c
CC scenegraph/xml_ns.c
CC media_tools/isom_tools.c
CC media_tools/dash_segmenter.c
CC media_tools/av_parsers.c
CC media_tools/atsc_dmx.c
CC media_tools/img.c
CC media_tools/media_import.c
CC media_tools/mpegts.c
CC media_tools/m3u8.c
CC media_tools/mpd.c
CC media_tools/dash_client.c
CC media_tools/media_export.c
CC media_tools/m2ts_mux.c
CC media_tools/avilib.c
CC media_tools/mpeg2_ps.c
CC media_tools/gpac_ogg.c
CC media_tools/crypt_tools.c
CC media_tools/isom_hinter.c
CC media_tools/saf.c
CC media_tools/vobsub.c
CC media_tools/webvtt.c
CC crypto/g_crypt.c
CC crypto/g_crypt_openssl.c
CC crypto/g_crypt_tinyaes.c
CC crypto/tiny_aes.c
CC filter_core/filter_pck.c
CC filter_core/filter_pid.c
CC filter_core/filter_props.c
CC filter_core/filter_queue.c
CC filter_core/filter_session.c
CC filter_core/filter_register.c
CC filter_core/filter.c
CC filters/bsrw.c
CC filters/compose.c
CC filters/dasher.c
CC filters/dec_ac52.c
CC filters/dec_bifs.c
CC filters/dec_faad.c
CC filters/dec_img.c
CC filters/dec_j2k.c
CC filters/dec_mad.c
CC filters/dec_laser.c
CC filters/dec_mediacodec.c
CC filters/dec_nvdec.c
CC filters/dec_nvdec_sdk.c
CC filters/dec_odf.c
CC filters/dec_theora.c
CC filters/dec_ttml.c
CC filters/dec_ttxt.c
CC filters/dec_vorbis.c
CC filters/dec_vtb.c
CC filters/dec_webvtt.c
CC filters/dec_xvid.c
CC filters/decrypt_cenc_isma.c
CC filters/dmx_avi.c
CC filters/dmx_dash.c
CC filters/dmx_gsf.c
CC filters/dmx_m2ts.c
CC filters/dmx_mpegps.c
CC filters/dmx_nhml.c
CC filters/dmx_nhnt.c
CC filters/dmx_ogg.c
CC filters/dmx_saf.c
CC filters/dmx_vobsub.c
CC filters/enc_jpg.c
CC filters/enc_png.c
CC filters/encrypt_cenc_isma.c
CC filters/ff_common.c
CC filters/ff_avf.c
CC filters/ff_dec.c
CC filters/ff_dmx.c
CC filters/ff_enc.c
CC filters/ff_rescale.c
CC filters/ff_mx.c
CC filters/filelist.c
CC filters/hevcmerge.c
CC filters/hevcsplit.c
CC filters/in_atsc.c
CC filters/in_dvb4linux.c
CC filters/in_file.c
CC filters/in_http.c
CC filters/in_pipe.c
CC filters/in_rtp.c
CC filters/in_rtp_rtsp.c
CC filters/in_rtp_sdp.c
CC filters/in_rtp_signaling.c
CC filters/in_rtp_stream.c
CC filters/in_sock.c
CC filters/inspect.c
CC filters/isoffin_load.c
CC filters/isoffin_read.c
CC filters/isoffin_read_ch.c
CC filters/jsfilter.c
CC filters/load_bt_xmt.c
CC filters/load_svg.c
CC filters/load_text.c
CC filters/mux_avi.c
CC filters/mux_gsf.c
CC filters/mux_isom.c
CC filters/mux_ts.c
CC filters/out_audio.c
CC filters/out_file.c
CC filters/out_http.c
CC filters/out_pipe.c
CC filters/out_rtp.c
CC filters/out_rtsp.c
CC filters/out_sock.c
CC filters/out_video.c
CC filters/reframer.c
CC filters/reframe_ac3.c
CC filters/reframe_adts.c
CC filters/reframe_latm.c
CC filters/reframe_amr.c
CC filters/reframe_av1.c
CC filters/reframe_flac.c
CC filters/reframe_h263.c
CC filters/reframe_img.c
CC filters/reframe_mp3.c
CC filters/reframe_mpgvid.c
CC filters/reframe_nalu.c
CC filters/reframe_prores.c
CC filters/reframe_qcp.c
CC filters/reframe_rawvid.c
CC filters/reframe_rawpcm.c
CC filters/resample_audio.c
CC filters/tileagg.c
CC filters/tssplit.c
CC filters/unit_test_filter.c
CC filters/rewind.c
CC filters/rewrite_adts.c
CC filters/rewrite_mp4v.c
CC filters/rewrite_nalu.c
CC filters/rewrite_obu.c
CC filters/vflip.c
CC filters/vcrop.c
CC filters/write_generic.c
CC filters/write_nhml.c
CC filters/write_nhnt.c
CC filters/write_qcp.c
make[1]: *** No rule to make target '/Users/lefeuvre/code/gpac/include/gpac/filters.h', needed by '../modules/dektec_out/dektec_video_decl.o'. Stop.
make[1]: *** Waiting for unfinished jobs....
CC filters/write_vtt.c
make[1]: Leaving directory '/home/selur/workspace/HybridTools/tools/build/src'
Makefile:13: recipe for target 'all' failed
make: *** [all] Error 2
```
|
build fails due to '/Users/lefeuvre' dependencies,...
|
https://api.github.com/repos/gpac/gpac/issues/1509/comments
| 5 |
2020-06-16T15:48:25Z
|
2020-06-16T16:37:14Z
|
https://github.com/gpac/gpac/issues/1509
| 639,780,431 | 1,509 |
[
"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/
Local developer path in distributed tree:
```
make[1]: *** No rule to make target '/Users/lefeuvre/code/gpac/include/gpac/filters.h', needed by '../modules/dektec_out/dektec_video_decl.o'. Stop.
```
Building gpac 1.0.0 on openSUSE Tumbleweed linux. More details available if needed.
|
1.0.0 build fails
|
https://api.github.com/repos/gpac/gpac/issues/1508/comments
| 12 |
2020-06-16T08:38:19Z
|
2020-06-17T10:57:31Z
|
https://github.com/gpac/gpac/issues/1508
| 639,481,656 | 1,508 |
[
"gpac",
"gpac"
] |
On the current master code I am receiving these errors when building:
```
CC isomedia/avc_ext.c
isomedia/avc_ext.c:2247:24: error: no member named 'dovi_config' in
'GF_MPEGVisualSampleEntryBox'
if (!entry || !entry->dovi_config) return NULL;
~~~~~ ^
isomedia/avc_ext.c:2248:38: error: no member named 'dovi_config' in
'GF_MPEGVisualSampleEntryBox'
return DOVI_DuplicateConfig(&entry->dovi_config->DOVIConfig);
~~~~~ ^
isomedia/avc_ext.c:2671:2: warning: implicit declaration of function
'gf_av1_reset_state' is invalid in C99 [-Wimplicit-function-declaration]
gf_av1_reset_state(&state);
^
1 warning and 2 errors generated.
make[1]: *** [isomedia/avc_ext.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [all] Error 2
```
After running the last command of the follow sequence:
```
make distclean
./configure --static-mp4box --use-zlib=no
make -j4
```
Building on Linux (Ubuntu) appears to have no issues. Is there any other debug/system info I can provide? Thanks.
|
Build error on OSX related to dovi_config
|
https://api.github.com/repos/gpac/gpac/issues/1507/comments
| 2 |
2020-06-09T15:23:20Z
|
2020-06-09T15:41:21Z
|
https://github.com/gpac/gpac/issues/1507
| 635,532,432 | 1,507 |
[
"gpac",
"gpac"
] |
Dear All,
I have one query about search the previous sync sample. Why set cts and dts with start time when using GF_ISOM_SEARCH_SYNC_BACKWARD mode? I think it should not set as start time, because start time maybe any time, it is not sync sample's dts and cts. Why not use the sync sample's dts?
exsiting gpac code snapshot as below:
1. in `init_reader` function, mode use `GF_ISOM_SEARCH_SYNC_BACKWARD` when disable seek.

2. set cts and dts with start time in `init_reader` function:

3. in `isor_reader_get_sample` function, it set cts and dts with start time also:

Thanks.
|
Query about search the previous sync sample
|
https://api.github.com/repos/gpac/gpac/issues/1506/comments
| 2 |
2020-06-09T03:10:42Z
|
2020-06-10T12:08:13Z
|
https://github.com/gpac/gpac/issues/1506
| 635,075,946 | 1,506 |
[
"gpac",
"gpac"
] |
Is there any support for the below requirement ?
Given a video file containing audio and video.
Generate mpd and m4s files.
The m4s files should have audio and video muxed and also encrypted using using clear key.
|
Support for generating dash based encrypted m4s files with muxed audio and video
|
https://api.github.com/repos/gpac/gpac/issues/1505/comments
| 2 |
2020-06-08T05:30:55Z
|
2020-06-09T08:27:11Z
|
https://github.com/gpac/gpac/issues/1505
| 634,171,417 | 1,505 |
[
"gpac",
"gpac"
] |
MP4Box (filters branch) emits a wrong warning when processing the attached file [gradient.mp4.zip](https://github.com/gpac/gpac/files/4726849/gradient.mp4.zip)
:
```
[AV1] incoherent color characteristics primaries 0 transfer 0 matrix 0 color range 0
```
Relevant code is here:
https://github.com/gpac/gpac/blob/filters/src/media_tools/isom_tools.c#L3746-L3790
The state is initialized to 0, then supposed to be overwritten by the sequence header OBU in the av1c->config field. But if the file does not contain an OBU in the config field, the color fields remain 0, reaching the 'else' statement.
Either the OBU should be fetched from the media or the color fields should be initialize to 2 instead of 0.
|
Invalid AV1 warning about color characteristics
|
https://api.github.com/repos/gpac/gpac/issues/1504/comments
| 1 |
2020-06-04T00:41:40Z
|
2020-06-04T20:06:51Z
|
https://github.com/gpac/gpac/issues/1504
| 630,423,586 | 1,504 |
[
"gpac",
"gpac"
] |
Add mediacodec audio hardware decoding
|
https://api.github.com/repos/gpac/gpac/issues/1503/comments
| 0 |
2020-06-01T08:20:45Z
|
2020-06-01T08:20:45Z
|
https://github.com/gpac/gpac/issues/1503
| 628,244,994 | 1,503 |
|
[
"gpac",
"gpac"
] |
I need to do a project where there is a local server and multiple users will read video, audio content from this local server.
To avoid performance struggle, I would like to make it as video on demand, but in local environment.
It is simple, to display few videos on a local html and users can consume those videos.
Any "Hello world" project for it would be very helpful
|
Some help for implementation and some guidance
|
https://api.github.com/repos/gpac/gpac/issues/1502/comments
| 1 |
2020-05-31T16:14:15Z
|
2020-06-09T08:40:37Z
|
https://github.com/gpac/gpac/issues/1502
| 627,994,111 | 1,502 |
[
"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/
|
Just to know if this project would help my project.
|
https://api.github.com/repos/gpac/gpac/issues/1501/comments
| 0 |
2020-05-31T16:11:19Z
|
2020-06-09T08:40:49Z
|
https://github.com/gpac/gpac/issues/1501
| 627,993,615 | 1,501 |
[
"gpac",
"gpac"
] |
hello
Does dec_mediacodec.c support audio hard decoding, and if not, are there other supported methods
|
Does dec_mediacodec.c support audio hard decoding?
|
https://api.github.com/repos/gpac/gpac/issues/1500/comments
| 3 |
2020-05-29T08:26:34Z
|
2020-06-01T08:21:04Z
|
https://github.com/gpac/gpac/issues/1500
| 627,094,161 | 1,500 |
[
"gpac",
"gpac"
] |
- there is a lack of tools to process mp4 containers directly from python.
- many python users rely on the conda package manager to install non-python packages.
- [conda-forge](https://conda-forge.org/) allows to distribute these packages so that they are installable from conda
It would be great to add mp4box builds for win/mac/linux to conda-forge. While this could be done by any user, it would be great if the code-owners of mp4box could provide some help or possibly offer the ability to maintain such a package.
What do you think?
|
Add conda-forge builds of mp4box
|
https://api.github.com/repos/gpac/gpac/issues/1499/comments
| 1 |
2020-05-28T14:41:02Z
|
2020-09-04T12:11:05Z
|
https://github.com/gpac/gpac/issues/1499
| 626,568,211 | 1,499 |
[
"gpac",
"gpac"
] |
I have this requirement where the PTS has to start at 4958860037 for the transport stream, but the -pcr-offset option for the MP42TS command seem to be taking maximum offset of 2147483647. If not with -pcr-offset, is there any way with which I can have PTS starting at 4958860037 ?
|
MP42TS : PTS Start time value
|
https://api.github.com/repos/gpac/gpac/issues/1498/comments
| 12 |
2020-05-28T07:36:52Z
|
2020-06-29T19:14:34Z
|
https://github.com/gpac/gpac/issues/1498
| 626,287,606 | 1,498 |
[
"gpac",
"gpac"
] |
System info:
Ubuntu 16.04.2 LTS, X64, gcc 5.4.0, gpac (exist in latest 0.8.0 master 3ff11e5 and latest 0.9.0-development master 0523ad9)
Compile Command:
```
$ CC="gcc -fsanitize=address -g" CXX="g++ -fsanitize=address -g" ./configure --static-mp4box
$ make
```
Run Command:
```
$ MP4Box -hint $gf_isom_datamap_open -out /dev/null
```
POC file:
https://github.com/Clingto/POC/blob/master/gpac-MP4Box/gpac-3ff11e5-crashes/gf_isom_datamap_open
For the poc file $gf_isom_datamap_open
gdb info:
```C
build/bin/MP4Box -hint ./crash-526/gf_isom_datamap_open -out /dev/null
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[iso file] Unknown box type dref in parent minf
[iso file] Unknown box type 73749173 in parent stbl
[iso file] Box "stsz" (start 1151) has 48 extra bytes
[iso file] Read Box type 00000000 (0x00000000) at position 1247 has size 0 but is not at root/file level, skipping
[iso file] Box "stbl" (start 809) has 12 extra bytes
Hinting file with Path-MTU 1450 Bytes
Hinting track ID 1 - Type "avc1:avc1" (H264) - BW 0 kbps
Program received signal SIGSEGV, Segmentation fault.
0x0000000000516c3d in gf_isom_datamap_open ()
(gdb) bt
#0 0x0000000000516c3d in gf_isom_datamap_open ()
#1 0x000000000053b6de in Media_GetSample ()
#2 0x0000000000521c8c in gf_isom_get_sample ()
#3 0x0000000000618aa6 in gf_hinter_track_process ()
#4 0x000000000040fb9d in HintFile ()
#5 0x000000000041b2c7 in mp4boxMain ()
#6 0x00007ffff70cb830 in __libc_start_main (main=0x40f0f0 <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 0x000000000040f129 in _start ()```
For $gf_isom_datamap_open
ASAN info:
```C
Hinting track ID 1 - Type "avc1:avc1" (H264) - BW 0 kbps
AddressSanitizer:DEADLYSIGNAL
=================================================================
==15008==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000018 (pc 0x000000a1663f bp 0x607000000170 sp 0x7fffffff1450 T0)
==15008==The signal is caused by a READ memory access.
==15008==Hint: address points to the zero page.
#0 0xa1663e in gf_isom_datamap_open /src/isomedia/data_map.c:215:53
#1 0xaf73f7 in Media_GetSample /src/isomedia/media.c:472:7
#2 0xa52f3a in gf_isom_get_sample /src/isomedia/isom_read.c:1612:6
#3 0xf38193 in gf_hinter_track_process /src/media_tools/isom_hinter.c:708:10
#4 0x5163f2 in HintFile /applications/mp4box/main.c:1189:7
#5 0x560dec in mp4boxMain /applications/mp4box/main.c:5833:7
#6 0x7ffff6aa982f in __libc_start_main /build/glibc-LK5gWL/glibc-2.23/csu/../csu/libc-start.c:291
#7 0x41bc38 in _start (/build/bin/MP4Box+0x41bc38)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /src/isomedia/data_map.c:215:53 in gf_isom_datamap_open
==15008==ABORTING
```
|
AddressSanitizer: NULL pointer dereference in gf_isom_datamap_open /src/isomedia/data_map.c:215:53
|
https://api.github.com/repos/gpac/gpac/issues/1497/comments
| 1 |
2020-05-25T19:56:15Z
|
2020-05-27T10:02:55Z
|
https://github.com/gpac/gpac/issues/1497
| 624,463,039 | 1,497 |
[
"gpac",
"gpac"
] |
System info:
Ubuntu 16.04.2 LTS, X64, gcc 5.4.0, gpac (exist in latest 0.8.0 master 3ff11e5 and latest 0.9.0-development master 0523ad9)
Compile Command:
```
$ CC="gcc -fsanitize=address -g" CXX="g++ -fsanitize=address -g" ./configure --static-mp4box
$ make
```
Run Command:
```
$ MP4Box -hint $gf_hinter_track_new -out /dev/null
```
POC file:
https://github.com/Clingto/POC/blob/master/gpac-MP4Box/gpac-3ff11e5-crashes/gf_hinter_track_new
For the poc file $gf_hinter_track_new
gdb info:
```C
/build/bin/MP4Box -hint ./crash-526/gf_hinter_track_new -out /dev/null
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[iso file] Unknown box type avcC in parent hvc1
Hinting file with Path-MTU 1450 Bytes
Program received signal SIGSEGV, Segmentation fault.
0x0000000000618536 in gf_hinter_track_new ()
(gdb) bt
#0 0x0000000000618536 in gf_hinter_track_new ()
#1 0x000000000040faef in HintFile ()
#2 0x000000000041b2c7 in mp4boxMain ()
#3 0x00007ffff70cb830 in __libc_start_main (main=0x40f0f0 <main>, argc=5, argv=0x7fffffffdf78, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffdf68) at ../csu/libc-start.c:291
#4 0x000000000040f129 in _start ()
```
For $gf_hinter_track_new
ASAN info:
```C
==15178==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000025 (pc 0x000000f344c1 bp 0x7fffffff1960 sp 0x7fffffff1340 T0)
==15178==The signal is caused by a READ memory access.
==15178==Hint: address points to the zero page.
#0 0xf344c0 in gf_hinter_track_new /src/media_tools/isom_hinter.c:479:27
#1 0x516217 in HintFile /applications/mp4box/main.c:1166:12
#2 0x560dec in mp4boxMain /applications/mp4box/main.c:5833:7
#3 0x7ffff6aa982f in __libc_start_main /build/glibc-LK5gWL/glibc-2.23/csu/../csu/libc-start.c:291
#4 0x41bc38 in _start (/build/bin/MP4Box+0x41bc38)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /src/media_tools/isom_hinter.c:479:27 in gf_hinter_track_new
==15178==ABORTING
```
|
AddressSanitizer: NULL pointer dereference in gf_hinter_track_new /src/media_tools/isom_hinter.c:479:27
|
https://api.github.com/repos/gpac/gpac/issues/1496/comments
| 1 |
2020-05-25T19:54:31Z
|
2020-05-27T12:26:29Z
|
https://github.com/gpac/gpac/issues/1496
| 624,462,508 | 1,496 |
[
"gpac",
"gpac"
] |
When directfb is installed on the system (tested on Debian), the build fails. The module needs to be upgraded to filters new APIs.
|
Filters: add directfb
|
https://api.github.com/repos/gpac/gpac/issues/1495/comments
| 0 |
2020-05-22T15:56:25Z
|
2020-05-23T10:21:19Z
|
https://github.com/gpac/gpac/issues/1495
| 623,308,478 | 1,495 |
[
"gpac",
"gpac"
] |
When freenect is installed on the system (tested on Debian), the build fails. The module needs to be upgraded to filters new APIs.
|
Filters: add freenect
|
https://api.github.com/repos/gpac/gpac/issues/1494/comments
| 1 |
2020-05-22T15:56:17Z
|
2020-05-23T10:27:06Z
|
https://github.com/gpac/gpac/issues/1494
| 623,308,376 | 1,494 |
[
"gpac",
"gpac"
] |
Using the latest nightly OSX build (gpac-0.8.0-rev1-gc1990d5c-master) I am running the following command:
`mp4box -dash 1000 -frag 1000 -rap hd.mp4`
The video above has 360 frames total (100% I-Frames) and is 1fps. The DASHed output mp4 correctly has 360 frames and 1fps timing, but the resulting mpd file only contains 359 segments.
I was originally using a much older build (though not sure from exactly when) that does not exhibit this issue. Is this the expected behavior, or is this possibly a bug?
Here are the test files - https://www.dropbox.com/sh/31qccctsnw9moum/AACwP48pnKrWbg564kNL7NoBa?dl=0
|
Missing SegmentURL on segmentation
|
https://api.github.com/repos/gpac/gpac/issues/1493/comments
| 1 |
2020-05-18T20:46:07Z
|
2020-05-27T13:55:24Z
|
https://github.com/gpac/gpac/issues/1493
| 620,495,632 | 1,493 |
[
"gpac",
"gpac"
] |
I used mcdec filter(MediaCodec decoder) to decode some hevc stream,when the input is end,the filter inputEOS was set to true and set the flags AMEDIACODEC_BUFFER_FLAG_END_OF_STREAM.
```
ctx->inputEOS = GF_TRUE;
flags = AMEDIACODEC_BUFFER_FLAG_END_OF_STREAM;
```
But the outputbuffer still had some pck remaining to be decoded, but the gpac exited and destroyed the session ,so the pck in the output buffer was lost.
Here is the log :
```
[0xc32ff970]:Filter MediaCodec hardware HEVC|H265 PID PID1 destroying packet CTS 1096000
[0xc32ff970]:Filter MediaCodec hardware HEVC|H265 PID PID1 has 0 shared packets out
[0xc32ff970]:[Filter] fovexporter removed from scheduler - blocking 0
[0xc32ff970]:Filter MediaCodec hardware HEVC|H265 process
[0xc32ff970]:[Filter] MediaCodec hardware HEVC|H265 removed from scheduler - blocking 0
[0xc32ff970]:Session stop
[0xc32ff970]:Session destroy begin
```
|
[Bug]Mediacodec loss frame
|
https://api.github.com/repos/gpac/gpac/issues/1492/comments
| 4 |
2020-05-18T10:04:22Z
|
2020-05-28T07:47:21Z
|
https://github.com/gpac/gpac/issues/1492
| 620,079,962 | 1,492 |
[
"gpac",
"gpac"
] |
Hi community:
While i am using MP4Client(build on `filters` branch) to play mpd file which contains two representations(bit rates 256k and 48k). The player has a black screen and the terminal does not have any warnings or errors.
I have followed the instrutions on [https://github.com/gpac/gpac/wiki/Tiled-Streaming](https://github.com/gpac/gpac/wiki/Tiled-Streaming).
I created two versions of video, their bit rates are 256k and 48k:
`kvazaar -i BestVR.yuv --input-res 1280x720 -o BestVR-48k.hvc --tiles 3x3 --slices tiles --mv-constraint frametilemargin --bitrate 48000`
`kvazaar -i BestVR.yuv --input-res 1280x720 -o BestVR-256k.hvc --tiles 3x3 --slices tiles --mv-constraint frametilemargin --bitrate 256000`
Then i use MP4Box(build on `filters` branch) to split tiles:
`MP4Box -add BestVR-48k.hvc:split_tiles -fps 30 -new BestVR-tiled-48k.mp4`
`MP4Box -add BestVR-256k.hvc:split_tiles -fps 30 -new BestVR-tiled-256k.mp4`
Then to generate MPD file:
`MP4Box -dash 3000 -rap -frag-rap -profile live -out BestVR.mpd ../BestVR-tiled-256k.mp4 ../BestVR-tiled-48k.mp4`
While i am using the MP4Client, i got a black screen:
`MP4Client BestVR.mpd`
I log the dash@bebug, attached are the log file.
[bestvr.log](https://github.com/gpac/gpac/files/4643320/bestvr.log)
Appreciate for any help on this issue.
|
Unable to play tile-based hevc video with muti-representations
|
https://api.github.com/repos/gpac/gpac/issues/1491/comments
| 23 |
2020-05-18T09:51:55Z
|
2023-07-31T09:12:35Z
|
https://github.com/gpac/gpac/issues/1491
| 620,071,317 | 1,491 |
[
"gpac",
"gpac"
] |
With 0.8.0 couldn't find any notation of change of supported Windows operating systems, used PETools to peek how 0.8.0 exes were compiled, was for Windows 6 which is Vista - was that intentional or a mistake? I patched mp4box back to Windows 5.1 (XP) and it runs in XP - except I don't know if the DLLs contain Vista+ Windows API calls and will choke.
Personally, I like to encourage use of Windows 7 SDK documentation so code remains compatible with most versions of Windows - Microsoft makes additions into the Windows API that often I find are not really necessary and if used, serve only to break Vista, XP, etc compatibility.
|
Windows XP - gpac-0.8.0-rev1-gc1990d5c-master-win32.exe
|
https://api.github.com/repos/gpac/gpac/issues/1490/comments
| 4 |
2020-05-16T02:31:25Z
|
2020-06-25T13:07:51Z
|
https://github.com/gpac/gpac/issues/1490
| 619,358,963 | 1,490 |
[
"gpac",
"gpac"
] |
In filters branch, dec_mediacodec_jni.c line 176:
```
surfaceTex->texture_id = tex_id;
// create objects
otmp = (*env)->NewObject(env, cSurfaceTexture, mSurfaceTexConstructor, surfaceTex->texture_id);
surfaceTex->oSurfaceTex = (jobject) (*env)->NewGlobalRef(env,otmp);
if(!surfaceTex->oSurfaceTex) goto create_surface_failed;
oSurface = (*env)->NewObject(env, cSurface, mSurfaceConstructor, surfaceTex->oSurfaceTex);
if(!oSurface) goto create_surface_failed;
*window = ANativeWindow_fromSurface(env, oSurface);
*surface_rendering = (*window) ? GF_TRUE : GF_FALSE;
(*env)->CallVoidMethod(env, oSurface, mSurfaceRelease);
if ((*env)->ExceptionCheck(env)) {
HandleJNIError(env);
}
```
**Why you release the surface after window is created?
And because the surface is released( is invalid), when you call AMediaCodec_releaseOutputBuffer function, there is no surface , so Where is the image rendered?**
I create a new filter and init OpenGL in it , how can I render the iamge from mediacodec filter with my own filter(maybe these two filter in different thread)?
Thanks!
|
Why is surface destroyed immediately after creation?
|
https://api.github.com/repos/gpac/gpac/issues/1489/comments
| 1 |
2020-05-15T15:43:11Z
|
2020-07-16T17:21:36Z
|
https://github.com/gpac/gpac/issues/1489
| 619,068,987 | 1,489 |
[
"gpac",
"gpac"
] |
Thanks for reporting your issue. Please make sure these boxes are checked before submitting your issue - thank you!
- [y] I looked for a similar issue and couldn't find any.
- [y] I tried with the latest version of GPAC. Installers available at http://gpac.io/downloads/gpac-nightly-builds/
- [y] 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
**Describe the bug**
A NULL pointer dereference in the function stbl_AppendSize at isomedia/stbl_write.c.
**To Reproduce**
Steps to reproduce the behavior:
1. Compile according to the default configuration
```
$ CC="gcc -fsanitize=address -g" CXX="g++ -fsanitize=address -g" ./configure --static-mp4box
$ make
```
2. Execute command
```
MP4Box -hint $poc
```
**Expected behavior**
An attacker can exploit this vulnerability by submitting a malicious media file that exploits this issue.
This will result in a Denial of Service (DoS) when the application attempts to process the file.
**Screenshots**
ASAN Info
```
=================================================================
==37275==ERROR: AddressSanitizer: SEGV on unknown address 0x00000000002c (pc 0x00000076fbe3 bp 0x000000000001 sp 0x7ffda8c8d4b0 T0)
#0 0x76fbe2 in stbl_AppendSize isomedia/stbl_write.c:1472
#1 0x777669 in MergeTrack isomedia/track.c:517
#2 0x6dd203 in MergeFragment isomedia/isom_intern.c:88
#3 0x6df183 in gf_isom_parse_movie_boxes isomedia/isom_intern.c:425
#4 0x6e0bf3 in gf_isom_parse_movie_boxes isomedia/isom_intern.c:200
#5 0x6e0bf3 in gf_isom_open_file isomedia/isom_intern.c:621
#6 0x43382d in mp4boxMain /home/xinbaoer/Desktop/gpac/applications/mp4box/main.c:4818
#7 0x7fc98dcc582f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
#8 0x41e6c8 in _start (/usr/local/bin/MP4Box+0x41e6c8)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV isomedia/stbl_write.c:1472 stbl_AppendSize
==37275==ABORTING
```
gdb Info
```
Program received signal SIGSEGV, Segmentation fault.
0x000000000076fbe3 in stbl_AppendSize (stbl=0x611000009f00, size=size@entry=0x30303030, nb_pack=0x1) at isomedia/stbl_write.c:1472
1472 if (!stbl->SampleSize->sampleCount) {
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[ registers ]────
$rax 0x0000000000000000 $rbx 0x0000611000009f00 $rcx 0x0000000000000000 $rdx 0x0000000000000007 $rsp 0x00007fffffff8110
$rbp 0x0000000000000001 $rsi 0x0000000030303030 $rdi 0x000000000000002c $rip 0x000000000076fbe3 $r8 0x0000000000000000
$r9 0x00007ffff6725540 $r10 0x0000000000000001 $r11 0x0000000000000246 $r12 0x0000000030303030 $r13 0x0000611000009f48
$r14 0x000060700000d300 $r15 0x0000610000007f40 $cs 0x0000000000000033 $ss 0x000000000000002b $ds 0x0000000000000000
$es 0x0000000000000000 $fs 0x0000000000000000 $gs 0x0000000000000000 $eflags 66118
Flags: [carry PARITY adjust ZERO sign trap INTERRUPT direction overflow RESUME virtualx86 identification]
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[ stack ]────
0x00007fffffff8110│+0x00: 0xcc ← $rsp
0x00007fffffff8118│+0x08: 0x00007fffffff8180 → 0x0000604000000001 → 0x00
0x00007fffffff8120│+0x10: 0x0000000000fd5ee0 → 0x46383700666f6f6d ("moof"?)
0x00007fffffff8128│+0x18: 0x000060300000ef04 → 0x00
0x00007fffffff8130│+0x20: 0x000060300000eef0 → 0x3030303000000000
0x00007fffffff8138│+0x28: 0x043030
0x00007fffffff8140│+0x30: 0x00
0x00007fffffff8148│+0x38: 0x000060700000d300 → 0x000000007472756e ("nurt"?)
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[ code:i386:x86-64 ]────
0x76fbd4 <stbl_AppendSize+84> add edx, 0x3
0x76fbd7 <stbl_AppendSize+87> cmp dl, cl
0x76fbd9 <stbl_AppendSize+89> jl 0x76fbe3 <stbl_AppendSize+99>
0x76fbdb <stbl_AppendSize+91> test cl, cl
0x76fbdd <stbl_AppendSize+93> jne 0x76ff96 <stbl_AppendSize+1046>
0x76fbe3 <stbl_AppendSize+99> mov edx, DWORD PTR [rax+0x2c] ← $pc
0x76fbe6 <stbl_AppendSize+102> test edx, edx
0x76fbe8 <stbl_AppendSize+104> je 0x76fd48 <stbl_AppendSize+456>
0x76fbee <stbl_AppendSize+110> lea rcx, [rax+0x28]
0x76fbf2 <stbl_AppendSize+114> mov rsi, rcx
0x76fbf5 <stbl_AppendSize+117> shr rsi, 0x3
───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[ threads ]────
[#0] Id 1, Name: "MP4Box", stopped, reason: SIGSEGV
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
gef➤ bt
#0 0x000000000076fbe3 in stbl_AppendSize (stbl=0x611000009f00, size=size@entry=0x30303030, nb_pack=0x1) at isomedia/stbl_write.c:1472
#1 0x000000000077766a in MergeTrack (trak=trak@entry=0x610000007f40, traf=traf@entry=0x60d00000cdd0, moof_offset=<optimized out>, cumulated_offset=cumulated_offset@entry=0x7fffffff84a0,
is_first_merge=<optimized out>) at isomedia/track.c:517
#2 0x00000000006dd204 in MergeFragment (moof=<optimized out>, mov=mov@entry=0x61200000bec0) at isomedia/isom_intern.c:88
#3 0x00000000006df184 in gf_isom_parse_movie_boxes (mov=mov@entry=0x61200000bec0, bytesMissing=bytesMissing@entry=0x7fffffff8730, progressive_mode=progressive_mode@entry=GF_FALSE)
at isomedia/isom_intern.c:425
#4 0x00000000006e0bf4 in gf_isom_parse_movie_boxes (progressive_mode=GF_FALSE, bytesMissing=<optimized out>, mov=0x61200000bec0) at isomedia/isom_intern.c:200
#5 gf_isom_open_file (fileName=0x7fffffffe74f "/home/xinbaoer/Desktop/pocs/id:000905,sig:11,src:011842,op:fa-core-havoc,rep:4", OpenMode=0x3, tmp_dir=<optimized out>) at isomedia/isom_intern.c:621
#6 0x000000000043382e in mp4boxMain (argc=<optimized out>, argv=<optimized out>) at main.c:4818
#7 0x00007ffff6380830 in __libc_start_main (main=0x41d680 <main>, argc=0x3, argv=0x7fffffffe4a8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffe498)
at ../csu/libc-start.c:291
#8 0x000000000041e6c9 in _start ()
```
In gdb, we printed the value of **stbl->SampleSize->sampleCount** and found that it is a null pointer
```
gef➤ p stbl->SampleSize
$1 = (GF_SampleSizeBox *) 0x0
gef➤ p stbl->SampleSize->sampleCount
Cannot access memory at address 0x2c
```
Possible causes of vulnerabilitie is in the function stbl_AppendSize at isomedia/stbl_write.c.
Due to lack of null pointer check, in line 1472 **stbl->SampleSize->sampleCount** may result in null pointer.
**Here is line 1472's crash file:**
[Poc in line 1472](https://github.com/DuckRui/vul-/blob/master/stbl_write1472)
```
1467void stbl_AppendSize(GF_SampleTableBox *stbl, u32 size, u32 nb_pack)
1468{
1469 u32 i;
1470 if (!nb_pack) nb_pack = 1;
1471
1472 if (!stbl->SampleSize->sampleCount) {
1473 stbl->SampleSize->sampleSize = size;
1474 stbl->SampleSize->sampleCount += nb_pack;
1475 return;
1476 }
```
**System (please complete the following information):**
- OS version : Ubuntu 16.04
- GPAC Version : GPAC 0.8.0-e10d39d-master branch
|
A NULL pointer dereference in the function stbl_AppendSize at isomedia/stbl_write.c.
|
https://api.github.com/repos/gpac/gpac/issues/1488/comments
| 1 |
2020-05-15T03:31:56Z
|
2020-06-11T13:23:28Z
|
https://github.com/gpac/gpac/issues/1488
| 618,672,648 | 1,488 |
[
"gpac",
"gpac"
] |
Thanks for reporting your issue. Please make sure these boxes are checked before submitting your issue - thank you!
- [y] I looked for a similar issue and couldn't find any.
- [y] I tried with the latest version of GPAC. Installers available at http://gpac.io/downloads/gpac-nightly-builds/
- [y] 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
**Describe the bug**
A NULL pointer dereference in the function stbl_AppendSampleToChunk at isomedia/stbl_write.c.
**To Reproduce**
Steps to reproduce the behavior:
1. Compile according to the default configuration
```
$ CC="gcc -fsanitize=address -g" CXX="g++ -fsanitize=address -g" ./configure --static-mp4box
$ make
```
2. Execute command
```
MP4Box -hint $poc
```
**Expected behavior**
An attacker can exploit this vulnerability by submitting a malicious media file that exploits this issue.
This will result in a Denial of Service (DoS) when the application attempts to process the file.
**Screenshots**
ASAN Info
```
=================================================================
==37191==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000034 (pc 0x0000007707e5 bp 0x000000000018 sp 0x7ffec9f4c9d0 T0)
#0 0x7707e4 in stbl_AppendSampleToChunk isomedia/stbl_write.c:1558
#1 0x777831 in MergeTrack isomedia/track.c:543
#2 0x6dd203 in MergeFragment isomedia/isom_intern.c:88
#3 0x6df183 in gf_isom_parse_movie_boxes isomedia/isom_intern.c:425
#4 0x6e0bf3 in gf_isom_parse_movie_boxes isomedia/isom_intern.c:200
#5 0x6e0bf3 in gf_isom_open_file isomedia/isom_intern.c:621
#6 0x43382d in mp4boxMain /home/xinbaoer/Desktop/gpac/applications/mp4box/main.c:4818
#7 0x7fa8b6d7a82f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
#8 0x41e6c8 in _start (/usr/local/bin/MP4Box+0x41e6c8)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV isomedia/stbl_write.c:1558 stbl_AppendSampleToChunk
==37191==ABORTING
```
gdb Info
```
Program received signal SIGSEGV, Segmentation fault.
0x00000000007707e5 in stbl_AppendSampleToChunk (stbl=<optimized out>, DescIndex=DescIndex@entry=0x1, samplesInChunk=0x18) at isomedia/stbl_write.c:1558
1558 if (stsc->nb_entries) {
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[ registers ]────
$rax 0x0000000000000007 $rbx 0x0000000000000000 $rcx 0x000060700000dca0 $rdx 0x0000000000000000 $rsp 0x00007fffffff8110
$rbp 0x0000000000000018 $rsi 0x0000000000000001 $rdi 0x000060600000e5c8 $rip 0x00000000007707e5 $r8 0x00000000006c5eff
$r9 0x00000000000063ee $r10 0x00007fffffff78c0 $r11 0x00007fffffff78c0 $r12 0x0000000000000001 $r13 0x0000000000000001
$r14 0x0000000000000034 $r15 0x0000610000007f40 $cs 0x0000000000000033 $ss 0x000000000000002b $ds 0x0000000000000000
$es 0x0000000000000000 $fs 0x0000000000000000 $gs 0x0000000000000000 $eflags 66118
Flags: [carry PARITY adjust ZERO sign trap INTERRUPT direction overflow RESUME virtualx86 identification]
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[ stack ]────
0x00007fffffff8110│+0x00: 0x3030303030303040 ("0000000@"?) ← $rsp
0x00007fffffff8118│+0x08: 0x0000000000770482 → 0x770482 <stbl_AppendChunk+882> cmp BYTE PTR [rbx+0x7fff8000], 0x0
0x00007fffffff8120│+0x10: 0x00007fffffff8150 → 0x0000610000007f40 → 0x000000007472616b ("kart"?)
0x00007fffffff8128│+0x18: 0x000060300000ee44 → 0x00
0x00007fffffff8130│+0x20: 0x000060300000ee30 → 0x3030303000000000
0x00007fffffff8138│+0x28: 0x0000000030303030 ("0000"?)
0x00007fffffff8140│+0x30: 0x00
0x00007fffffff8148│+0x38: 0x000060700000cab0 → 0x000000007472756e ("nurt"?)
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[ code:i386:x86-64 ]────
0x7707d6 <stbl_AppendSampleToChunk+134> add eax, 0x3
0x7707d9 <stbl_AppendSampleToChunk+137> cmp al, dl
0x7707db <stbl_AppendSampleToChunk+139> jl 0x7707e5 <stbl_AppendSampleToChunk+149>
0x7707dd <stbl_AppendSampleToChunk+141> test dl, dl
0x7707df <stbl_AppendSampleToChunk+143> jne 0x770ae4 <stbl_AppendSampleToChunk+916>
0x7707e5 <stbl_AppendSampleToChunk+149> mov eax, DWORD PTR [rbx+0x34] ← $pc
0x7707e8 <stbl_AppendSampleToChunk+152> test eax, eax
0x7707ea <stbl_AppendSampleToChunk+154> je 0x770978 <stbl_AppendSampleToChunk+552>
0x7707f0 <stbl_AppendSampleToChunk+160> lea r15, [rbx+0x28]
0x7707f4 <stbl_AppendSampleToChunk+164> mov rdx, r15
0x7707f7 <stbl_AppendSampleToChunk+167> shr rdx, 0x3
───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[ threads ]────
[#0] Id 1, Name: "MP4Box", stopped, reason: SIGSEGV
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
gef➤ bt
#0 0x00000000007707e5 in stbl_AppendSampleToChunk (stbl=<optimized out>, DescIndex=DescIndex@entry=0x1, samplesInChunk=0x18) at isomedia/stbl_write.c:1558
#1 0x0000000000777832 in MergeTrack (trak=trak@entry=0x610000007f40, traf=traf@entry=0x60d00000cd00, moof_offset=<optimized out>, cumulated_offset=cumulated_offset@entry=0x7fffffff84a0,
is_first_merge=<optimized out>) at isomedia/track.c:543
#2 0x00000000006dd204 in MergeFragment (moof=<optimized out>, mov=mov@entry=0x61200000bec0) at isomedia/isom_intern.c:88
#3 0x00000000006df184 in gf_isom_parse_movie_boxes (mov=mov@entry=0x61200000bec0, bytesMissing=bytesMissing@entry=0x7fffffff8730, progressive_mode=progressive_mode@entry=GF_FALSE)
at isomedia/isom_intern.c:425
#4 0x00000000006e0bf4 in gf_isom_parse_movie_boxes (progressive_mode=GF_FALSE, bytesMissing=<optimized out>, mov=0x61200000bec0) at isomedia/isom_intern.c:200
#5 gf_isom_open_file (fileName=0x7fffffffe74f "/home/xinbaoer/Desktop/pocs/id:000158,sig:11,src:000596,op:fa-core-havoc,rep:4", OpenMode=0x3, tmp_dir=<optimized out>) at isomedia/isom_intern.c:621
#6 0x000000000043382e in mp4boxMain (argc=<optimized out>, argv=<optimized out>) at main.c:4818
#7 0x00007ffff6380830 in __libc_start_main (main=0x41d680 <main>, argc=0x3, argv=0x7fffffffe4a8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffe498)
at ../csu/libc-start.c:291
#8 0x000000000041e6c9 in _start ()
```
In gdb, we printed the value of **stsc->nb_entries** and found that it is a null pointer
```
gef➤ p stsc->nb_entries
Cannot access memory at address 0x34
```
Possible causes of vulnerabilitie is in the function stbl_AppendSampleToChunk at isomedia/stbl_write.c.
Due to lack of null pointer check, in line 1558 **stsc->nb_entries** may result in null pointer.
**Here is line 1558's crash file:**
[Poc in line 1558](https://github.com/DuckRui/vul-/blob/master/stbl_write1558)
```
1550void stbl_AppendSampleToChunk(GF_SampleTableBox *stbl, u32 DescIndex, u32 samplesInChunk)
1551{
1552 u32 nextChunk;
1553 GF_SampleToChunkBox *stsc= stbl->SampleToChunk;
1554 GF_StscEntry *ent;
1555
1556 nextChunk = ((GF_ChunkOffsetBox *) stbl->ChunkOffset)->nb_entries;
1557
1558 if (stsc->nb_entries) {
1559 ent = &stsc->entries[stsc->nb_entries-1];
```
**System (please complete the following information):**
- OS version : Ubuntu 16.04
- GPAC Version : GPAC 0.8.0-e10d39d-master branch
|
A NULL pointer dereference in the function stbl_AppendSampleToChunk at isomedia/stbl_write.c.
|
https://api.github.com/repos/gpac/gpac/issues/1487/comments
| 1 |
2020-05-15T03:27:52Z
|
2020-06-11T14:59:45Z
|
https://github.com/gpac/gpac/issues/1487
| 618,671,425 | 1,487 |
[
"gpac",
"gpac"
] |
Thanks for reporting your issue. Please make sure these boxes are checked before submitting your issue - thank you!
- [y] I looked for a similar issue and couldn't find any.
- [y] I tried with the latest version of GPAC. Installers available at http://gpac.io/downloads/gpac-nightly-builds/
- [y] 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
**Describe the bug**
A NULL pointer dereference in the function GetMoovAndMetaSize at isomedia/isom_store.
**To Reproduce**
Steps to reproduce the behavior:
1. Compile according to the default configuration
```
$ CC="gcc -fsanitize=address -g" CXX="g++ -fsanitize=address -g" ./configure --static-mp4box
$ make
```
2. Execute command
```
MP4Box -hint $poc
```
**Expected behavior**
An attacker can exploit this vulnerability by submitting a malicious media file that exploits this issue. This will result in a Denial of Service (DoS) when the application attempts to process the file.
**Screenshots**
ASAN Info
```
=================================================================
==36906==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000008 (pc 0x0000006ffc8c bp 0x000000000653 sp 0x7ffd1868ed80 T0)
#0 0x6ffc8b in GetMoovAndMetaSize isomedia/isom_store.c:360
#1 0x70601e in WriteInterleaved isomedia/isom_store.c:1356
#2 0x707272 in WriteToFile isomedia/isom_store.c:1500
#3 0x6e7601 in gf_isom_write isomedia/isom_read.c:483
#4 0x6e7992 in gf_isom_close isomedia/isom_read.c:507
#5 0x430b5f in mp4boxMain /home/xinbaoer/Desktop/gpac/applications/mp4box/main.c:5901
#6 0x7f895df2a82f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
#7 0x41e6c8 in _start (/usr/local/bin/MP4Box+0x41e6c8)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV isomedia/isom_store.c:360 GetMoovAndMetaSize
==36906==ABORTING
```
gdb Info
```
Program received signal SIGSEGV, Segmentation fault.
GetMoovAndMetaSize (movie=movie@entry=0x61200000bec0, writers=writers@entry=0x60200000e730) at isomedia/isom_store.c:359
359 size -= writer->stbl->SampleToChunk->size;
───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[ registers ]────
$rax 0x0000000000000000 $rbx 0x00000c10000014ee $rcx 0x0000000000000001 $rdx 0x0000000000000003 $rsp 0x00007fffffff8400 $rbp 0x0000000000000653 $rsi 0x00000c0c00001d99
$rdi 0x0000000000000008 $rip 0x00000000006ffc8c $r8 0x000000000000000c $r9 0x00000c167fff95d2 $r10 0x0000000000000422 $r11 0x0000611000009dc0 $r12 0x000060800000a6f0
$r13 0x000060800000a6a0 $r14 0x0000000000000010 $r15 0x000060800000a778 $cs 0x0000000000000033 $ss 0x000000000000002b $ds 0x0000000000000000 $es 0x0000000000000000
$fs 0x0000000000000000 $gs 0x0000000000000000 $eflags 66118
Flags: [carry PARITY adjust ZERO sign trap INTERRUPT direction overflow RESUME virtualx86 identification]
───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[ stack ]────
0x00007fffffff8400│+0x00: 0x000060700000d9c8 → 0x000060700000d8b0 → 0x000000006d696e66 ("fnim"?) ← $rsp
0x00007fffffff8408│+0x08: 0x10
0x00007fffffff8410│+0x10: 0x000060200000e730 → 0x000060700000c880 → 0x000060800000a720 → 0x3030303000000001
0x00007fffffff8418│+0x18: 0x00007fffffff8460 → 0x0000606000000002 → 0x00
0x00007fffffff8420│+0x20: 0x000061200000bec0 → 0x00
0x00007fffffff8428│+0x28: 0x00007fffffff8440 → 0x41b58ab3
0x00007fffffff8430│+0x30: 0x00000ffffffff088 → 0x00
0x00007fffffff8438│+0x38: 0x00007fffffff8440 → 0x41b58ab3
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[ code:i386:x86-64 ]────
0x6ffc74 <GetMoovAndMetaSize+420> mov rcx, rdi
0x6ffc77 <GetMoovAndMetaSize+423> shr rcx, 0x3
0x6ffc7b <GetMoovAndMetaSize+427> cmp BYTE PTR [rcx+0x7fff8000], 0x0
0x6ffc82 <GetMoovAndMetaSize+434> jne 0x6ffeb2 <GetMoovAndMetaSize+994>
0x6ffc88 <GetMoovAndMetaSize+440> lea r12, [r13+0x50]
0x6ffc8c <GetMoovAndMetaSize+444> mov rax, QWORD PTR [rax+0x8] ← $pc
0x6ffc90 <GetMoovAndMetaSize+448> mov rbx, r12
0x6ffc93 <GetMoovAndMetaSize+451> shr rbx, 0x3
0x6ffc97 <GetMoovAndMetaSize+455> mov QWORD PTR [rsp+0x8], rax
0x6ffc9c <GetMoovAndMetaSize+460> cmp BYTE PTR [rbx+0x7fff8000], 0x0
0x6ffca3 <GetMoovAndMetaSize+467> jne 0x6ffeaa <GetMoovAndMetaSize+986>
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[ threads ]────
[#0] Id 1, Name: "MP4Box", stopped, reason: SIGSEGV
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
gef➤ bt
#0 GetMoovAndMetaSize (movie=movie@entry=0x61200000bec0, writers=writers@entry=0x60200000e730) at isomedia/isom_store.c:359
#1 0x000000000070601f in WriteInterleaved (mw=mw@entry=0x7fffffff86a0, bs=bs@entry=0x60800000a7a0, drift_inter=drift_inter@entry=GF_TRUE) at isomedia/isom_store.c:1356
#2 0x0000000000707273 in WriteToFile (movie=movie@entry=0x61200000bec0) at isomedia/isom_store.c:1500
#3 0x00000000006e7602 in gf_isom_write (movie=movie@entry=0x61200000bec0) at isomedia/isom_read.c:483
#4 0x00000000006e7993 in gf_isom_close (movie=0x61200000bec0) at isomedia/isom_read.c:507
#5 0x0000000000430b60 in mp4boxMain (argc=<optimized out>, argv=<optimized out>) at main.c:5901
#6 0x00007ffff6380830 in __libc_start_main (main=0x41d680 <main>, argc=0x3, argv=0x7fffffffe4a8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffe498) at ../csu/libc-start.c:291
#7 0x000000000041e6c9 in _start ()
```
In gdb, we printed the value of **writer->stbl->SampleToChunk->size** and found that it is a null pointer
```
gef➤ p writer->stbl->SampleToChunk
$1 = (GF_SampleToChunkBox *) 0x0
gef➤ p writer->stbl->SampleToChunk->size
Cannot access memory at address 0x8
```
Possible causes of vulnerabilitie is in the function GetMoovAndMetaSize at isomedia/isom_store.
Due to lack of null pointer check, in line 359 **writer->stbl->SampleToChunk->size** may result in null pointer.
**Here is line 359's crash file:**
[Poc in line 359](https://github.com/DuckRui/vul-/blob/master/isom_store359)
```
344u64 GetMoovAndMetaSize(GF_ISOFile *movie, GF_List *writers)
345{
346 u32 i;
347 u64 size;
348 TrackWriter *writer;
349
350 size = 0;
351 if (movie->moov) {
352 gf_isom_box_size((GF_Box *)movie->moov);
353 size = movie->moov->size;
354 if (size > 0xFFFFFFFF) size += 8;
355
356 i=0;
357 while ((writer = (TrackWriter*)gf_list_enum(writers, &i))) {
358 size -= writer->stbl->ChunkOffset->size;
359 size -= writer->stbl->SampleToChunk->size;
360 gf_isom_box_size((GF_Box *)writer->stsc);
361 gf_isom_box_size(writer->stco);
362 size += writer->stsc->size;
363 size += writer->stco->size;
364 }
365 }
```
**System (please complete the following information):**
- OS version : Ubuntu 16.04
- GPAC Version : GPAC 0.8.0-e10d39d-master branch
|
A NULL pointer dereference in the function GetMoovAndMetaSize at isomedia/isom_store.c
|
https://api.github.com/repos/gpac/gpac/issues/1486/comments
| 1 |
2020-05-15T03:20:37Z
|
2020-06-11T15:00:03Z
|
https://github.com/gpac/gpac/issues/1486
| 618,669,095 | 1,486 |
[
"gpac",
"gpac"
] |
Thanks for reporting your issue. Please make sure these boxes are checked before submitting your issue - thank you!
- [y] I looked for a similar issue and couldn't find any.
- [y] I tried with the latest version of GPAC. Installers available at http://gpac.io/downloads/gpac-nightly-builds/
- [y] 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
**Describe the bug**
A NULL pointer dereference in the function SetupWriters at isomedia/isom_store.c
**To Reproduce**
Steps to reproduce the behavior:
1. Compile according to the default configuration
```
$ CC="gcc -fsanitize=address -g" CXX="g++ -fsanitize=address -g" ./configure --static-mp4box
$ make
```
2. Execute command
```
MP4Box -hint $poc
```
**Expected behavior**
An attacker can exploit this vulnerability by submitting a malicious media file that exploits this issue. This will result in a Denial of Service (DoS) when the application attempts to process the file.
**Screenshots**
ASAN Info
```
=================================================================
==33159==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000028 (pc 0x0000006ff608 bp 0x000000000001 sp 0x7fff2ff5aa50 T0)
#0 0x6ff607 in SetupWriters isomedia/isom_store.c:163
#1 0x705ed0 in WriteInterleaved isomedia/isom_store.c:1331
#2 0x707272 in WriteToFile isomedia/isom_store.c:1500
#3 0x6e7601 in gf_isom_write isomedia/isom_read.c:483
#4 0x6e7992 in gf_isom_close isomedia/isom_read.c:507
#5 0x430b5f in mp4boxMain /home/xinbaoer/Desktop/gpac/applications/mp4box/main.c:5901
#6 0x7fe4a352782f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
#7 0x41e6c8 in _start (/usr/local/bin/MP4Box+0x41e6c8)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV isomedia/isom_store.c:163 SetupWriters
==33159==ABORTING
```
gdb Info
```
Program received signal SIGSEGV, Segmentation fault.
0x00000000006ff608 in SetupWriters (mw=mw@entry=0x7fffffff86a0, writers=writers@entry=0x60200000eb50, interleaving=interleaving@entry=0x1) at isomedia/isom_store.c:163
163 if (writer->stbl->SampleSize->sampleSize)
───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[ registers ]────
$rax 0x0000611000009dc0 $rbx 0x000060800000b3e0 $rcx 0x0000000000000000 $rdx 0x0000000000000000 $rsp 0x00007fffffff8450 $rbp 0x0000000000000001 $rsi 0x0000000000000000
$rdi 0x0000000000000028 $rip 0x00000000006ff608 $r8 0x0000000030303030 $r9 0x00000c107fff9680 $r10 0x000060800000b3a0 $r11 0x00007ffff7fa6ee8 $r12 0x000060800000b3d8
$r13 0x0000610000007f40 $r14 0x000061200000bec0 $r15 0x000060800000b3a0 $cs 0x0000000000000033 $ss 0x000000000000002b $ds 0x0000000000000000 $es 0x0000000000000000
$fs 0x0000000000000000 $gs 0x0000000000000000 $eflags 66118
Flags: [carry PARITY adjust ZERO sign trap INTERRUPT direction overflow RESUME virtualx86 identification]
───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[ stack ]────
0x00007fffffff8450│+0x00: 0x39df72e3 ← $rsp
0x00007fffffff8458│+0x08: 0x00007fffffff86a0 → 0x00
0x00007fffffff8460│+0x10: 0x000060200000eb50 → 0x00
0x00007fffffff8468│+0x18: 0x00000c24000017e0 → 0x00
0x00007fffffff8470│+0x20: 0x000000010100e480 → 0x00
0x00007fffffff8478│+0x28: 0x000061200000beed → 0x04
0x00007fffffff8480│+0x30: 0x00000c24000017dd → 0x00
0x00007fffffff8488│+0x38: 0x00000ffffffff0d7 → 0x00
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[ code:i386:x86-64 ]────
0x6ff5f2 <SetupWriters+1122> movzx esi, BYTE PTR [rsi+0x7fff8000]
0x6ff5f9 <SetupWriters+1129> test sil, sil
0x6ff5fc <SetupWriters+1132> je 0x6ff608 <SetupWriters+1144>
0x6ff5fe <SetupWriters+1134> cmp sil, 0x3
0x6ff602 <SetupWriters+1138> jle 0x6ffa75 <SetupWriters+2277>
0x6ff608 <SetupWriters+1144> mov edx, DWORD PTR [rdx+0x28] ← $pc
0x6ff60b <SetupWriters+1147> test edx, edx
0x6ff60d <SetupWriters+1149> je 0x6ff613 <SetupWriters+1155>
0x6ff60f <SetupWriters+1151> mov DWORD PTR [r15+0x14], edx
0x6ff613 <SetupWriters+1155> lea rdi, [rax+0x20]
0x6ff617 <SetupWriters+1159> mov rsi, rdi
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[ threads ]────
[#0] Id 1, Name: "MP4Box", stopped, reason: SIGSEGV
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
gef➤ bt
#0 0x00000000006ff608 in SetupWriters (mw=mw@entry=0x7fffffff86a0, writers=writers@entry=0x60200000eb50, interleaving=interleaving@entry=0x1) at isomedia/isom_store.c:163
#1 0x0000000000705ed1 in WriteInterleaved (mw=mw@entry=0x7fffffff86a0, bs=bs@entry=0x60800000b420, drift_inter=drift_inter@entry=GF_TRUE) at isomedia/isom_store.c:1331
#2 0x0000000000707273 in WriteToFile (movie=movie@entry=0x61200000bec0) at isomedia/isom_store.c:1500
#3 0x00000000006e7602 in gf_isom_write (movie=movie@entry=0x61200000bec0) at isomedia/isom_read.c:483
#4 0x00000000006e7993 in gf_isom_close (movie=0x61200000bec0) at isomedia/isom_read.c:507
#5 0x0000000000430b60 in mp4boxMain (argc=<optimized out>, argv=<optimized out>) at main.c:5901
#6 0x00007ffff6380830 in __libc_start_main (main=0x41d680 <main>, argc=0x3, argv=0x7fffffffe4a8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffe498) at ../csu/libc-start.c:291
#7 0x000000000041e6c9 in _start ()
```
In gdb, we printed the value of **writer->stbl->SampleSize->sampleSize** and found that it is a null pointer
```
gef➤ p writer->stbl->SampleSize
$1 = (GF_SampleSizeBox *) 0x0
gef➤ p writer->stbl->SampleSize->sampleSize
Cannot access memory at address 0x28
```
Possible causes of vulnerabilitie is in the function SetupWriters at isomedia/isom_store.c.
Although in line 151, we have checked whether **writer** is a null pointer.
But in line 154 we do **writer->stbl = trak->Media->information->sampleTable**.
Since, we don't check whether **trak->Media->information->sampleTable** is a null pointer.
So in line 163 **writer->stbl->SampleSize->sampleSize** may result in null pointer.
**Here is line 163's crash file:**
[Poc in line 163](https://github.com/DuckRui/vul-/blob/master/isom_store163)
```
136 GF_Err SetupWriters(MovieWriter *mw, GF_List *writers, u8 interleaving)
137 {
138 u32 i, trackCount;
139 TrackWriter *writer;
140 GF_TrackBox *trak;
141 GF_ISOFile *movie = mw->movie;
142
143 mw->total_samples = mw->nb_done = 0;
144 if (!movie->moov) return GF_OK;
145
146 trackCount = gf_list_count(movie->moov->trackList);
147 for (i = 0; i < trackCount; i++) {
148 trak = gf_isom_get_track(movie->moov, i+1);
149
150 GF_SAFEALLOC(writer, TrackWriter);
151 if (!writer) goto exit;
152 writer->sampleNumber = 1;
153 writer->mdia = trak->Media;
154 writer->stbl = trak->Media->information->sampleTable;
155 writer->timeScale = trak->Media->mediaHeader->timeScale;
156 writer->all_dref_mode = Media_SelfContainedType(writer->mdia);
157
158 writer->isDone = 0;
159 writer->DTSprev = 0;
160 writer->chunkDur = 0;
161 writer->chunkSize = 0;
162 writer->constant_size = writer->constant_dur = 0;
163 if (writer->stbl->SampleSize->sampleSize)
164 writer->constant_size = writer->stbl->SampleSize->sampleSize;
165 if (writer->stbl->TimeToSample->nb_entries==1) {
166 writer->constant_dur = writer->stbl->TimeToSample->entries[0].sampleDelta;
167 if (writer->constant_dur>1) writer->constant_dur = 0;
168 }
169 if (!writer->constant_dur || !writer->constant_size || (writer->constant_size>=10))
170 writer->constant_size = writer->constant_dur = 0;
171
172 writer->stsc = (GF_SampleToChunkBox *) gf_isom_box_new(GF_ISOM_BOX_TYPE_STSC);
173 if (writer->stbl->ChunkOffset->type == GF_ISOM_BOX_TYPE_STCO) {
174 writer->stco = gf_isom_box_new(GF_ISOM_BOX_TYPE_STCO);
175 } else {
176 writer->stco = gf_isom_box_new(GF_ISOM_BOX_TYPE_CO64);
177 }
```
In addition to what’s mentioned above, there are similar vulnerabilitie in the function SetupWriters.
In line 165, **writer->stbl->TimeToSample->nb_entries** may result in null pointer.
In line 173, **writer->stbl->ChunkOffset->type** may result in null pointer.
**Here is line 165's crash file:**
[Poc in line 165](https://github.com/DuckRui/vul-/blob/master/isom_store165)
**Here is line 173's crash file:**
[Poc in line 173](https://github.com/DuckRui/vul-/blob/master/isom_store173)
**System (please complete the following information):**
- OS version : Ubuntu 16.04
- GPAC Version : GPAC 0.8.0-e10d39d-master branch
|
A NULL pointer dereference in the function SetupWriters at isomedia/isom_store.c.
|
https://api.github.com/repos/gpac/gpac/issues/1485/comments
| 2 |
2020-05-15T03:19:04Z
|
2021-04-12T05:43:58Z
|
https://github.com/gpac/gpac/issues/1485
| 618,668,597 | 1,485 |
[
"gpac",
"gpac"
] |
- [ y] I looked for a similar issue and couldn't find any.
- [ y] I tried with the latest version of GPAC. Installers available at http://gpac.io/downloads/gpac-nightly-builds/
- [ y] 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
**Describe the bug**
A heap-based buffer overflow was discovered in libgpac, during array 'nalu' access a invalid address. The issue is being triggered in the function gp_rtp_builder_do_avc() at ietf/rtp_pck_mpeg4.c
**To Reproduce**
Steps to reproduce the behavior:
1. Compile according to the default configuration
```bash
$ CC="gcc -fsanitize=address -g" CXX="g++ -fsanitize=address -g" ./configure --static-mp4box
$ make
```
2. execute command
```bash
MP4Box -hint $poc
```
[poc](https://github.com/14isnot40/vul_discovery/blob/master/gp_rtp_builder_do_avc) can be found here.
**Expected behavior**
An attacker can exploit this vulnerability by submitting a malicious media file that exploits this issue. This will result in a Denial of Service (DoS) and potentially Information Exposure when the application attempts to process the file.
**Screenshots**
ASAN Reports
```bash
==69913==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x60200000e5b6 at pc 0x000000aa4f31 bp 0x7ffd5bf2d4d0 sp 0x7ffd5bf2d4c0
READ of size 1 at 0x60200000e5b6 thread T0
#0 0xaa4f30 in gp_rtp_builder_do_avc ietf/rtp_pck_mpeg4.c:435
#1 0x915cce in gf_hinter_track_process media_tools/isom_hinter.c:779
#2 0x41e0dc in HintFile (/usr/local/bin/MP4Box+0x41e0dc)
#3 0x429806 in mp4boxMain (/usr/local/bin/MP4Box+0x429806)
#4 0x7f015314c82f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
#5 0x41d668 in _start (/usr/local/bin/MP4Box+0x41d668)
0x60200000e5b6 is located 0 bytes to the right of 6-byte region [0x60200000e5b0,0x60200000e5b6)
allocated by thread T0 here:
#0 0x7f0153ef0602 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98602)
#1 0x7185f2 in Media_GetSample isomedia/media.c:490
SUMMARY: AddressSanitizer: heap-buffer-overflow ietf/rtp_pck_mpeg4.c:435 gp_rtp_builder_do_avc
Shadow bytes around the buggy address:
0x0c047fff9c60: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff9c70: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff9c80: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff9c90: fa fa fa fa fa fa 00 00 fa fa 00 00 fa fa 00 00
0x0c047fff9ca0: fa fa 00 00 fa fa 00 00 fa fa 00 00 fa fa 00 00
=>0x0c047fff9cb0: fa fa 00 fa fa fa[06]fa fa fa fd fa fa fa fd fa
0x0c047fff9cc0: fa fa fd fa fa fa fd fa fa fa fd fd fa fa fd fd
0x0c047fff9cd0: fa fa fd fd fa fa fd fd fa fa fd fd fa fa fd fa
0x0c047fff9ce0: fa fa 00 00 fa fa 00 00 fa fa 00 00 fa fa 00 00
0x0c047fff9cf0: fa fa 00 00 fa fa 00 00 fa fa fd fd fa fa fd fd
0x0c047fff9d00: fa fa fd fd fa fa fd fd fa fa fd fd fa fa fd fd
Shadow byte legend (one shadow byte represents 8 application bytes):
Addressable: 00
Partially addressable: 01 02 03 04 05 06 07
Heap left redzone: fa
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
==69913==ABORTING
```
We found that the call stack reported by asan is not accurate, the complete call stack should be as shown in the gdb debug below:
```bash
Program received signal SIGSEGV, Segmentation fault.
0xffffffffcd404790 in ?? ()
[ Legend: Modified register | Code | Heap | Stack | String ]
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── registers ────
$rax : 0x0
$rbx : 0x0
$rcx : 0x6
$rdx : 0x6
$rsp : 0x00007fffffff8cb8 → 0x0000000000aa4f31 → <gp_rtp_builder_do_avc+3265> call 0x403d50 <__asan_report_load8@plt>
$rbp : 0x59e
$rsi : 0x0
$rdi : 0x000060200000e5b6 → 0x0000000000000000
$rip : 0xffffffffcd404790
$r8 : 0x00007ffff7fcf778 → 0x0000000000000000
$r9 : 0x74d1
$r10 : 0x000060200000e4b0 → 0x0000000000000000
$r11 : 0x00007fffffff82e0 → 0x00007ffff6f02603 → <malloc+227> mov edi, DWORD PTR [r13+0x0]
$r12 : 0x000060200000e5b6 → 0x0000000000000000
$r13 : 0x1
$r14 : 0x0
$r15 : 0x000061600000ea80 → 0x0000000000000100
$eflags: [carry PARITY adjust zero sign trap INTERRUPT direction overflow RESUME virtualx86 identification]
$cs: 0x0033 $ss: 0x002b $ds: 0x0000 $es: 0x0000 $fs: 0x0000 $gs: 0x0000
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── stack ────
0x00007fffffff8cb8│+0x0000: 0x0000000000aa4f31 → <gp_rtp_builder_do_avc+3265> call 0x403d50 <__asan_report_load8@plt> ← $rsp
0x00007fffffff8cc0│+0x0008: 0x00007fffffff8dc0 → 0x0000000000000001
0x00007fffffff8cc8│+0x0010: 0x000061600000ec98 → 0x0000000000000000
0x00007fffffff8cd0│+0x0018: 0x000060800000b66c → 0x0000000000000000
0x00007fffffff8cd8│+0x0020: 0x000060800000b670 → 0x0000000000000000
0x00007fffffff8ce0│+0x0028: 0x00007fffffff8ee0 → 0x0000000000000001
0x00007fffffff8ce8│+0x0030: 0x00000ffffffff1a6 → 0x0000000000000000
0x00007fffffff8cf0│+0x0038: 0x00007fffffff8d20 → 0x0000000041b58ab3
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── code:x86:64 ────
[!] Cannot disassemble from $PC
[!] Cannot access memory at address 0xffffffffcd404790
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── threads ────
[#0] Id 1, Name: "MP4Box", stopped, reason: SIGSEGV
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── trace ────
───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
gef➤ bt
#0 0xffffffffcd404790 in ?? ()
#1 0x0000000000aa4f31 in gp_rtp_builder_do_avc (builder=0x61600000ea80, nalu=0x60200000e5b6 "", nalu_size=0x0, IsAUEnd=<optimized out>, FullAUSize=<optimized out>) at ietf/rtp_pck_mpeg4.c:435
#2 0x0000000000a97ef4 in gf_rtp_builder_process (builder=<optimized out>, data=data@entry=0x60200000e5b6 "", data_size=<optimized out>, IsAUEnd=<optimized out>, FullAUSize=<optimized out>, duration=duration@entry=0x1, descIndex=0x82) at ietf/rtp_packetizer.c:109
#3 0x0000000000915ccf in gf_hinter_track_process (tkHint=0x60700000cf80) at media_tools/isom_hinter.c:779
#4 0x000000000041e0dd in HintFile ()
#5 0x0000000000429807 in mp4boxMain ()
#6 0x00007ffff615e830 in __libc_start_main () from /lib/x86_64-linux-gnu/libc.so.6
#7 0x000000000041d669 in _start ()
```
Possible causes of vulnerabilitie
Array 'nalu' access an invalid address
```cpp
if (!builder->bytesInPacket) {
builder->rtp_header.PayloadType = builder->PayloadType;
builder->rtp_header.TimeStamp = (u32) builder->sl_header.compositionTimeStamp;
builder->rtp_header.SequenceNumber += 1;
builder->OnNewPacket(builder->cbk_obj, &builder->rtp_header);
builder->avc_non_idr = GF_TRUE;
}
/*check NAL type to see if disposable or not*/
nal_type = nalu[0] & 0x1F;
```
**System (please complete the following information):**
- OS version : Ubuntu 16.04
- GPAC Version : GPAC 0.8.0-e10d39d-master branch
|
Heap-buffer-overflow ietf/rtp_pck_mpeg4.c:435 in gp_rtp_builder_do_avc()
|
https://api.github.com/repos/gpac/gpac/issues/1483/comments
| 1 |
2020-05-13T01:42:32Z
|
2020-06-11T15:00:41Z
|
https://github.com/gpac/gpac/issues/1483
| 617,076,403 | 1,483 |
[
"gpac",
"gpac"
] |
- [ y] I looked for a similar issue and couldn't find any.
- [ y] I tried with the latest version of GPAC. Installers available at http://gpac.io/downloads/gpac-nightly-builds/
- [ y] 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
**Describe the bug**
A heap-based buffer overflow was discovered in libgpac, during structure GF_SampleSizeBox 'stsz' member 'sizes' points to an invalid address. The issue is being triggered in the function stbl_GetSampleSize() at isomedia/stbl_read.c
**To Reproduce**
Steps to reproduce the behavior:
1. Compile according to the default configuration
```bash
$ CC="gcc -fsanitize=address -g" CXX="g++ -fsanitize=address -g" ./configure --static-mp4box
$ make
```
2. execute command
```bash
MP4Box -hint $poc
```
[poc](https://github.com/14isnot40/vul_discovery/blob/master/stbl_GetSampleSize_hbo) can be found here.
**Expected behavior**
An attacker can exploit this vulnerability by submitting a malicious media file that exploits this issue. This will result in a Denial of Service (DoS) and potentially Information Exposure when the application attempts to process the file.
**Screenshots**
ASAN Reports
```bash
==94786==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x61400000fdd0 at pc 0x000000744231 bp 0x7fffffff83c0 sp 0x7fffffff83b0
READ of size 4 at 0x61400000fdd0 thread T0
#0 0x744230 in stbl_GetSampleSize isomedia/stbl_read.c:135
#1 0x717f3d in Media_GetSample isomedia/media.c:418
#2 0x6cd966 in gf_isom_get_sample_info isomedia/isom_read.c:1692
#3 0x912ed8 in gf_media_get_sample_average_infos media_tools/isom_hinter.c:54
#4 0x913d43 in gf_hinter_track_new media_tools/isom_hinter.c:560
#5 0x41e02e in HintFile (/usr/local/bin/MP4Box+0x41e02e)
#6 0x429806 in mp4boxMain (/usr/local/bin/MP4Box+0x429806)
#7 0x7ffff615e82f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
#8 0x41d668 in _start (/usr/local/bin/MP4Box+0x41d668)
0x61400000fdd0 is located 0 bytes to the right of 400-byte region [0x61400000fc40,0x61400000fdd0)
allocated by thread T0 here:
#0 0x7ffff6f02961 in realloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98961)
#1 0x7516dd in stbl_AppendSize isomedia/stbl_write.c:1487
SUMMARY: AddressSanitizer: heap-buffer-overflow isomedia/stbl_read.c:135 stbl_GetSampleSize
Shadow bytes around the buggy address:
0x0c287fff9f60: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c287fff9f70: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c287fff9f80: fa fa fa fa fa fa fa fa 00 00 00 00 00 00 00 00
0x0c287fff9f90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c287fff9fa0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
=>0x0c287fff9fb0: 00 00 00 00 00 00 00 00 00 00[fa]fa fa fa fa fa
0x0c287fff9fc0: fa fa fa fa fa fa fa fa fd fd fd fd fd fd fd fd
0x0c287fff9fd0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
0x0c287fff9fe0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
0x0c287fff9ff0: fd fd fd fd fd fd fd fd fd fd fd fd fa fa fa fa
0x0c287fffa000: 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
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
==94786==ABORTING
```
Possible causes of vulnerabilities
structure GF_SampleSizeBox 'stsz' member 'sizes' points to an invalid address
```cpp
GF_Err stbl_GetSampleSize(GF_SampleSizeBox *stsz, u32 SampleNumber, u32 *Size)
{
if (!stsz || !SampleNumber || SampleNumber > stsz->sampleCount) return GF_BAD_PARAM;
(*Size) = 0;
if (stsz->sampleSize && (stsz->type != GF_ISOM_BOX_TYPE_STZ2)) {
(*Size) = stsz->sampleSize;
} else if (stsz->sizes) {
(*Size) = stsz->sizes[SampleNumber - 1];
}
return GF_OK;
}
```
**System (please complete the following information):**
- OS version : Ubuntu 16.04
- GPAC Version : GPAC 0.8.0-e10d39d-master branch
|
Heap-buffer-overflow isomedia/stbl_read.c:135 in stbl_GetSampleSize()
|
https://api.github.com/repos/gpac/gpac/issues/1482/comments
| 3 |
2020-05-13T01:17:29Z
|
2021-09-27T17:40:58Z
|
https://github.com/gpac/gpac/issues/1482
| 617,067,875 | 1,482 |
[
"gpac",
"gpac"
] |
- [ y] I looked for a similar issue and couldn't find any.
- [ y] I tried with the latest version of GPAC. Installers available at http://gpac.io/downloads/gpac-nightly-builds/
- [ y] 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
**Describe the bug**
A heap-based buffer overflow was discovered in libgpac. The issue is being triggered in the function OD_ReadUTF8String() at odf_code.c
**To Reproduce**
Steps to reproduce the behavior:
1. Compile according to the default configuration
```bash
$ CC="gcc -fsanitize=address -g" CXX="g++ -fsanitize=address -g" ./configure --static-mp4box
$ make
```
2. execute command
```bash
MP4Box -hint $poc
```
[poc](https://github.com/14isnot40/vul_discovery/blob/master/OD_ReadUTF8String_hbo) can be found here.
**Expected behavior**
An attacker can exploit this vulnerability by submitting a malicious media file that exploits this issue. This will result in a Denial of Service (DoS) and potentially Information Exposure when the application attempts to process the file.
**Screenshots**
ASAN Reports
```bash
==42612==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x60200000ef51 at pc 0x7ffff6eda20b bp 0x7fffffff8b60 sp 0x7fffffff8308
READ of size 2 at 0x60200000ef51 thread T0
#0 0x7ffff6eda20a in __interceptor_strlen (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x7020a)
#1 0x79532f in OD_SizeUTF8String odf/odf_code.c:49
#2 0x79532f in gf_odf_size_sup_cid odf/odf_code.c:3208
#3 0x79739d in gf_odf_desc_size odf/odf_codec.c:364
#4 0xac28c0 in iods_Size isomedia/box_code_base.c:2818
#5 0x6aa2f7 in gf_isom_box_size_listing isomedia/box_funcs.c:1588
#6 0x6aa2f7 in gf_isom_box_size isomedia/box_funcs.c:1601
#7 0xac6157 in moov_Size isomedia/box_code_base.c:3833
#8 0x6aa2f7 in gf_isom_box_size_listing isomedia/box_funcs.c:1588
#9 0x6aa2f7 in gf_isom_box_size isomedia/box_funcs.c:1601
#10 0x6e1599 in GetMoovAndMetaSize isomedia/isom_store.c:352
#11 0x6e7a1e in WriteInterleaved isomedia/isom_store.c:1356
#12 0x6e8be9 in WriteToFile isomedia/isom_store.c:1498
#13 0x6c9001 in gf_isom_write isomedia/isom_read.c:483
#14 0x6c9392 in gf_isom_close isomedia/isom_read.c:507
#15 0x429a8e in mp4boxMain (/usr/local/bin/MP4Box+0x429a8e)
#16 0x7ffff615e82f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
#17 0x41d668 in _start (/usr/local/bin/MP4Box+0x41d668)
0x60200000ef51 is located 0 bytes to the right of 1-byte region [0x60200000ef50,0x60200000ef51)
allocated by thread T0 here:
#0 0x7ffff6f02602 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98602)
#1 0x79525c in OD_ReadUTF8String odf/odf_code.c:40
#2 0x79525c in gf_odf_read_sup_cid odf/odf_code.c:3197
SUMMARY: AddressSanitizer: heap-buffer-overflow ??:0 __interceptor_strlen
Shadow bytes around the buggy address:
0x0c047fff9d90: fa fa 00 00 fa fa 00 00 fa fa 00 fa fa fa 01 fa
0x0c047fff9da0: fa fa 00 00 fa fa 01 fa fa fa 00 00 fa fa 00 00
0x0c047fff9db0: fa fa 00 00 fa fa 00 00 fa fa 00 00 fa fa 00 00
0x0c047fff9dc0: fa fa 01 fa fa fa 00 00 fa fa 00 00 fa fa 01 fa
0x0c047fff9dd0: fa fa 00 00 fa fa 01 fa fa fa fd fd fa fa fd fa
=>0x0c047fff9de0: fa fa fd fd fa fa fd fd fa fa[01]fa fa fa 01 fa
0x0c047fff9df0: fa fa fd fd fa fa 00 00 fa fa 00 04 fa fa 00 00
0x0c047fff9e00: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff9e10: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff9e20: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff9e30: 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
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
==42612==ABORTING
[Inferior 1 (process 42612) exited with code 01]
```
**System (please complete the following information):**
- OS version : Ubuntu 16.04
- GPAC Version : GPAC 0.8.0-e10d39d-master branch
|
Heap-buffer-overflow in OD_ReadUTF8String() odf_code.c
|
https://api.github.com/repos/gpac/gpac/issues/1481/comments
| 1 |
2020-05-12T18:18:19Z
|
2020-06-11T15:01:32Z
|
https://github.com/gpac/gpac/issues/1481
| 616,861,182 | 1,481 |
[
"gpac",
"gpac"
] |
- [ y] I looked for a similar issue and couldn't find any.
- [ y] I tried with the latest version of GPAC. Installers available at http://gpac.io/downloads/gpac-nightly-builds/
- [ y] 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
**Describe the bug**
A heap-based buffer overflow was discovered in libgpac, during MergeTrack opeation. The issue is being triggered in the function stbl_AppendSize() at stble_write.c.
**To Reproduce**
Steps to reproduce the behavior:
1. Compile gpac according to the default configuration
```bash
./configure --extra-cflags="-fsanitize=address,undefined -g" --extra-ldflags="-fsanitize=address,undefined -ldl -g"
```
2. execute command
```bash
MP4Box -hint $poc
```
[poc](https://github.com/14isnot40/vul_discovery/blob/master/MergeTrack_hbo) can be found here.
**Expected behavior**
An attacker can exploit this vulnerability by submitting a malicious media file that exploits this issue. This will result in a Denial of Service (DoS) and potentially Information Exposure when the application attempts to process the file.
**Screenshots**
ASAN Reports
```bash
==45163==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x614000010218 at pc 0x7ffff400044f bp 0x7fffffff8990 sp 0x7fffffff8980
WRITE of size 4 at 0x614000010218 thread T0
#0 0x7ffff400044e in stbl_AppendSize (/usr/local/lib/libgpac.so.8+0x20b744e)
#1 0x7ffff4010658 in MergeTrack (/usr/local/lib/libgpac.so.8+0x20c7658)
#2 0x7ffff3ecc939 in MergeFragment (/usr/local/lib/libgpac.so.8+0x1f83939)
#3 0x7ffff3ed0b9d in gf_isom_parse_movie_boxes (/usr/local/lib/libgpac.so.8+0x1f87b9d)
#4 0x7ffff3ed42f9 in gf_isom_open_file (/usr/local/lib/libgpac.so.8+0x1f8b2f9)
#5 0x41b234 in mp4boxMain (/usr/local/bin/MP4Box+0x41b234)
#6 0x7ffff1b9f82f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
#7 0x40dc18 in _start (/usr/local/bin/MP4Box+0x40dc18)
AddressSanitizer can not describe address in more detail (wild memory access suspected).
SUMMARY: AddressSanitizer: heap-buffer-overflow ??:0 stbl_AppendSize
Shadow bytes around the buggy address:
0x0c287fff9ff0: 00 00 00 00 00 00 00 00 00 00 fa fa fa fa fa fa
0x0c287fffa000: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c287fffa010: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c287fffa020: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c287fffa030: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
=>0x0c287fffa040: fa fa fa[fa]fa fa fa fa fa fa fa fa fa fa fa fa
0x0c287fffa050: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c287fffa060: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c287fffa070: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c287fffa080: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c287fffa090: 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
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
==45163==ABORTING
[Inferior 1 (process 45163) exited with code 01]
```
**System (please complete the following information):**
- OS version : Ubuntu 16.04
- GPAC Version : GPAC 0.8.0-e10d39d-master branch
|
Heap-buffer-overflow in stbl_AppendSize() stble_write.c
|
https://api.github.com/repos/gpac/gpac/issues/1480/comments
| 1 |
2020-05-12T17:17:42Z
|
2020-06-11T15:01:54Z
|
https://github.com/gpac/gpac/issues/1480
| 616,824,157 | 1,480 |
[
"gpac",
"gpac"
] |
- [ y] I looked for a similar issue and couldn't find any.
- [ y] I tried with the latest version of GPAC. Installers available at http://gpac.io/downloads/gpac-nightly-builds/
- [ y] 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
**Describe the bug**
A heap-based buffer overflow was discovered in libgpac, during the pointer ptr points to the wrong memory area operation. The issue is being triggered in the function gf_hinter_track_process() at isom_hinter_track_process.c.
**To Reproduce**
Steps to reproduce the behavior:
1. Compile gpac according to the default configuration
```bash
./configure --extra-cflags="-fsanitize=address,undefined -g" --extra-ldflags="-fsanitize=address,undefined -ldl -g"
```
2. execute command
```bash
MP4Box -hint $poc
```
[poc](https://github.com/14isnot40/vul_discovery/blob/master/gf_hinter_track_process_hbo) can be found here.
**Expected behavior**
An attacker can exploit this vulnerability by submitting a malicious media file that exploits this issue. This will result in a Denial of Service (DoS) and potentially Information Exposure when the application attempts to process the file.
**Screenshots**
ASAN Reports
```bash
==32436==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x60200000e7f9 at pc 0x7ffff44178c2 bp 0x7fffffff8de0 sp 0x7fffffff8dd0
READ of size 1 at 0x60200000e7f9 thread T0
#0 0x7ffff44178c1 in gf_hinter_track_process (/usr/local/lib/libgpac.so.8+0x24ce8c1)
#1 0x40e68c in HintFile (/usr/local/bin/MP4Box+0x40e68c)
#2 0x419db6 in mp4boxMain (/usr/local/bin/MP4Box+0x419db6)
#3 0x7ffff1b9f82f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
#4 0x40dc18 in _start (/usr/local/bin/MP4Box+0x40dc18)
0x60200000e7f9 is located 0 bytes to the right of 9-byte region [0x60200000e7f0,0x60200000e7f9)
allocated by thread T0 here:
#0 0x7ffff6f02602 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98602)
#1 0x7ffff3f83fb8 in Media_GetSample (/usr/local/lib/libgpac.so.8+0x203afb8)
SUMMARY: AddressSanitizer: heap-buffer-overflow ??:0 gf_hinter_track_process
Shadow bytes around the buggy address:
0x0c047fff9ca0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff9cb0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff9cc0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff9cd0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff9ce0: fa fa fa fa fa fa fa fa fa fa 00 00 fa fa 00 00
=>0x0c047fff9cf0: fa fa 00 00 fa fa 00 00 fa fa 00 00 fa fa 00[01]
0x0c047fff9d00: fa fa fd fd fa fa fd fd fa fa fd fd fa fa fd fd
0x0c047fff9d10: fa fa fd fd fa fa fd fd fa fa fd fd fa fa fd fd
0x0c047fff9d20: fa fa fd fd fa fa fd fd fa fa fd fd fa fa fd fd
0x0c047fff9d30: fa fa fd fd fa fa fd fd fa fa fd fd fa fa fd fd
0x0c047fff9d40: fa fa fd fd fa fa fd fd fa fa 04 fa fa fa fd fd
Shadow byte legend (one shadow byte represents 8 application bytes):
Addressable: 00
Partially addressable: 01 02 03 04 05 06 07
Heap left redzone: fa
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
==32436==ABORTING
```
Possible causes of vulnerabilities is in the function gf_hinter_track_process() at isom_hinter_track_process.c.
```cpp
while (remain) {
size = 0;
v = tkHint->avc_nalu_size;
while (v) {
size |= (u8) *ptr;
ptr++;
remain--;
v-=1;
if (v) size<<=8;
}
```
**System (please complete the following information):**
- OS version : Ubuntu 16.04
- GPAC Version : GPAC 0.8.0-e10d39d-master branch
|
Heap buffer overflow in isom_hinter.c:766 in gf_hinter_track_process()
|
https://api.github.com/repos/gpac/gpac/issues/1479/comments
| 2 |
2020-05-12T16:22:14Z
|
2021-09-27T18:50:43Z
|
https://github.com/gpac/gpac/issues/1479
| 616,789,021 | 1,479 |
[
"gpac",
"gpac"
] |
i wrote this command in bash script to dashified a mp4 encoded in different bitrate . while writing in this same file to produce live stream , all thing going good . but when client starting playback MP4Box stop dashing file . only the stream who have being register during latency are playing
```java
#!/bin/bash
ls -f /tmp/dash/*.flv | while read -r file;
do
name="${file%.*}"
endpoint=$(basename "${file}" .flv)
MP4Box -dash 10000 -frag 10000 -mem-frags -rap
-mpd-refresh 10 -min-buffer 30000 -profile live
-profile-ext "urn:hbbtv:dash:profile:isoff-live:2012"
-bs-switching no -sample-groups-traf -single-traf
-subsegs-per-sidx 1 -segment-name "live_$RepresentationID$_"
-segment-timeline
-out $name/index.mpd $name/64k.mp4 $name/128k.mp4 $name/256k.mp4
done
```
is it possible to produce MPD for live streaming while writing in the file at the same time ?
|
is it possible to produce MPD for live streaming while writing in the file at the same time ?
|
https://api.github.com/repos/gpac/gpac/issues/1478/comments
| 7 |
2020-05-11T20:12:44Z
|
2020-06-09T08:46:47Z
|
https://github.com/gpac/gpac/issues/1478
| 616,152,904 | 1,478 |
[
"gpac",
"gpac"
] |
Can somebody provide an example of using dasher with `-max-chain=0`? I have been trying for the last few hours to take a (once this is working, live) MPEG-TS stream containing h.264 and AAC, and turn it into a DASH stream, and all I've been receiving are hangs, errors and segfaults. For example:
```
> ./gpac/result/bin/gpac -max-chain=0 src=/home/shell/Downloads/big_buck_bunny_480p_stereo.ts m2tsdmx:#Representation=1 rfnalu rfadts dasher:dmode=dynamic:profile=live:muxtype=mp4 mp4mx dst=live.mpd
Dynamic resolution of filter connections disabled
[Dasher] No bitrate property assigned to PID PID256, defaulting to 1Mbps
Try specifying bitrate property after your source, e.g. -i source.raw:#Bitrate=VAL
[Dasher] No bitrate property assigned to PID PID257, defaulting to 1Mbps
Try specifying bitrate property after your source, e.g. -i source.raw:#Bitrate=VAL
No filter chain found for PID PID257 in filter mp4mx to any loaded filters - NOT CONNECTED
^Ccatched SIGINT - flush session before exit ? (Y/n):
n
session last connect error Filter not found for the desired type
```
Tested with commit 818f6e9. I've uploaded a copy of the relevant file to https://www.mediafire.com/file/gwh79qwg7f56vdf/big_buck_bunny_480p_stereo.ts/file.
- [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/
|
Unable to use dasher with max-chain=0
|
https://api.github.com/repos/gpac/gpac/issues/1477/comments
| 3 |
2020-05-10T18:52:24Z
|
2020-05-11T16:08:04Z
|
https://github.com/gpac/gpac/issues/1477
| 615,452,859 | 1,477 |
[
"gpac",
"gpac"
] |
Thanks for reporting your issue. Please make sure these boxes are checked before submitting your issue - thank you!
- [x] I looked for a similar issue and couldn't find any.
- [x] I tried with the latest version of GPAC. Installers available at http://gpac.io/downloads/gpac-nightly-builds/
- [x] I give enough information for contributors to reproduce my issue (meaningful title, github labels, platform and compiler, command-line ...). I can share files anonymously with this dropbox: https://www.mediafire.com/filedrop/filedrop_hosted.php?drop=eec9e058a9486fe4e99c33021481d9e1826ca9dbc242a6cfaab0fe95da5e5d95
Detailed guidelines: http://gpac.io/2013/07/16/how-to-file-a-bug-properly/
I'm trying to get ClearKey encryption of a DASH stream working. I have the video working well, but when it comes to the audio files, I'm running into an error.
Here are the steps to reporduce.
1. Get an Opus audio file (this [example one](https://people.xiph.org/~giles/2012/opus/ehren-paper_lights-96.opus) from the opus website works)
2. Add the Opus audio to an MP4 container
```
MP4Box -add ehren-paper_lights-96.opus opus.mp4
```
3. Attempt to encrypt the file
```
MP4Box -crypt drm_file.xml opus.mp4 -out opus-enc.mp4
```
Using this drm_file.xml
```
<GPACDRM type="CENC AES-CTR">
<DRMInfo type="pssh" version="1">
<BS ID128="1077efecc0b24d02ace33c1e52e2fb4b"/>
<BS bits="32" value="1"/>
<BS ID128="cd7eb9ff88f34caeb06185b00024e4c2"/>
</DRMInfo>
<CrypTrack IV_size="8" first_IV="0xbb5738fe08f11341" isEncrypted="1" saiSavedBox="senc" trackID="1">
<key KID="0xcd7eb9ff88f34caeb06185b00024e4c2" value="0x63cb5f7184dd4b689a5c5ff11ee6a328"/>
</CrypTrack>
</GPACDRM>
```
This yields an error:
```
[CENC] Cannot create CENC protection: Bad Parameter
Error: Bad Parameter
```
Is encrypted Opus audio not supported? Or, is there a work around that I don't know about?
I tried adding the video and audio to the same file and then encrypting that. But, when I dashed it the MPD only had a `<ContentProtection ... />` element in the video `<AdapationSet ... />` and not the audio one, so I'm guessing the audio was never encrypted.
|
Encryption of Opus audio failing
|
https://api.github.com/repos/gpac/gpac/issues/1476/comments
| 12 |
2020-05-03T22:09:47Z
|
2020-05-12T05:54:49Z
|
https://github.com/gpac/gpac/issues/1476
| 611,519,540 | 1,476 |
[
"gpac",
"gpac"
] |
I am testing gpac for mp4box to excrypt using the xml, tested using below
|
PBKDF2 encryption
|
https://api.github.com/repos/gpac/gpac/issues/1475/comments
| 0 |
2020-04-26T02:32:55Z
|
2020-04-26T14:15:12Z
|
https://github.com/gpac/gpac/issues/1475
| 606,900,968 | 1,475 |
[
"gpac",
"gpac"
] |
Hey everyone,
While compiling GPAC with GCC 9, I encountered the format-overflow warning in multiple places, for example here: https://github.com/gpac/gpac/blob/master/src/utils/os_config_init.c#L610
gui_path is 4096 bytes max, and so is szPath.
So sprintf(gui_path, "%s%cgui.bt", szPath, GF_PATH_SEPARATOR) can be, at most:
- 4095 bytes (szPath minus its termination char)
- plus 1 byte for the separator
- plus gui.bt (7 bytes counting its \0)
Which would lead to a nasty overflow.
Possible fixes:
1. use snprintf instead of sprintf https://en.cppreference.com/w/c/io/fprintf and check for truncations
2. pre-check before sprintf
--------
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/
|
[Filters] String formatting overflow possible in multiple places
|
https://api.github.com/repos/gpac/gpac/issues/1474/comments
| 4 |
2020-04-22T08:31:25Z
|
2021-01-05T18:17:09Z
|
https://github.com/gpac/gpac/issues/1474
| 604,562,894 | 1,474 |
[
"gpac",
"gpac"
] |
- [x] I looked for a similar issue and couldn't find any.
- [x] I tried with the latest version of GPAC. Installers available at http://gpac.io/downloads/gpac-nightly-builds/
- [x] I give enough information for contributors to reproduce my issue (meaningful title, github labels, platform and compiler, command-line ...). I share the original file anonymously with this dropbox: https://cloud.disroot.org/s/fBeePRoA4JGZNMB
Hi,
on my Canon PowerShot A2200 I have some movies in Quicktime format.
I can compress them 5x without any visible quality lost.
When I copy them back to the camera, they are no more playable on the
camera. Damn, I wanted to save space on the memory card.
Does anyone have an idea, How I can convert the compressed video to a
compatible format for my camera?
See my example in above disroot cloud: `MVI_1324.MOV`
I can compress it by factor 5 with (see result in disroot cloud):
```
ffmpeg -i MVI_1324.MOV MVI_1324_comp.mov
```
To start simple, I did a copy without transcoding with (see result in disroot cloud):
```
ffmpeg -i MVI_1324.MOV -c:v copy -c:a copy -movflags +faststart MVI_1324_copy_fast.mov
```
Then I adapted the brands and injected the mandatory udta box from the original (see in disroot cloud) with:
```
MP4Box MVI_1324_copy_fast.mov -brand "qt :0x20070900" -ab "CAEP" -patch MVI_1324_udta.xml -out MVI_1324_copy_fast_CAEP_udta.mov
```
This file is still not playable in the camera, but at least the thumbnail image (contained in udta box) is shown on the display.
Can one give me hints, how I could transform the video (first the copy, and after the compressed one), so it becomes playable in the camera?
|
How to compress .MOV file compatible to Canon camera
|
https://api.github.com/repos/gpac/gpac/issues/1473/comments
| 9 |
2020-04-21T19:27:06Z
|
2022-05-30T15:15:07Z
|
https://github.com/gpac/gpac/issues/1473
| 604,228,215 | 1,473 |
[
"gpac",
"gpac"
] |
Building on Raspberry Pi 3 running Manjaro archlinux
$ uname -a
Linux alarmpi 5.4.18-udlv7+ #1 SMP Sun Feb 16 10:11:01 CST 2020 armv7l GNU/Linux
$ git checkout filters
$ make distclean
$ ./configure
$ make -j4
runs for a while and then craps out here:
CC filters/write_vtt.c
CC ../modules/dektec_out/dektec_video_decl.c
CC filters/dec_openhevc.c
In file included from ../modules/dektec_out/dektec_video_decl.c:27:
../modules/dektec_out/dektec_video.h:47:12: fatal error: emmintrin.h: No such file or directory
47 | # include <emmintrin.h>
| ^~~~~~~~~~~~~
compilation terminated.
make[1]: *** [../config.mak:157: ../modules/dektec_out/dektec_video_decl.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/home/alarm/gpac/src'
make: *** [Makefile:13: all] Error 2
|
unable to compile gpac v0.9.0 on rpi3
|
https://api.github.com/repos/gpac/gpac/issues/1472/comments
| 2 |
2020-04-20T15:55:48Z
|
2020-04-20T18:15:46Z
|
https://github.com/gpac/gpac/issues/1472
| 603,346,072 | 1,472 |
[
"gpac",
"gpac"
] |
I'm piping the output of a USB ATSC tuner tuned with a zap tool to a named fifo pipe.
When feeding this pipe into MP42TS I receive the following:
[alarm@alarmpi record]$ MP42TS -src /home/alarm/local-channels/pipe.ts -segment-dir /tmp/live/
Error opening /home/alarm/local-channels/pipe.ts - not a supported input media, skipping.
Error: Destination argument not found
Error: No Programs are available
The source is valid. The following url is a short sample of the captured terrestrial broadcast. Any idea how to segment this in a live mode?
https://file.io/aeJmUM7X
|
MP42TS unable to segment live ATSC source
|
https://api.github.com/repos/gpac/gpac/issues/1471/comments
| 11 |
2020-04-20T14:04:35Z
|
2020-04-23T08:17:03Z
|
https://github.com/gpac/gpac/issues/1471
| 603,264,852 | 1,471 |
[
"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 share the original file anonymously with this dropbox: https://cloud.disroot.org/s/fBeePRoA4JGZNMB
Hi, I have this output:
```
$ MP4Box -v MVI_1324.MOV
[iso file] Starting to parse a top-level box at position 0
[iso file] Read Box type ftyp size 24 start 0
[iso file] Starting to parse a top-level box at position 24
[iso file] Read Box type moov size 98280 start 24
[iso file] Read Box type udta size 65596 start 32
[iso file] Read Box type CNCV size 20 start 40
[iso file] Read Box type CNDM size 12 start 60
[iso file] Read Box type CNTH size 65552 start 72
[iso file] Read Box type CNDA size 9452 start 0
[iso file] Read Box type 4CF2D149 size 3078257872 start 9452
[iso file] Delete box type UNKN
[iso file] Delete box type UNKN
[iso file] Read Box type mvhd size 108 start 65628
[.....]
```
The udta box is from 32 to 65627.
Inside this box there are 5 boxes. The first 3 boxes I can see in hex view from 40 to 65623, but not the last 2. Instead there is a gap of 4 bytes before the following mvhd box, starting at 65628:
```
00065600 DB AE 5B F0 46 FE AF E8 A8 2E 0D 5C E0 7F E7 D5 72 E9 27 4B E0 26 02 23 00 00 00 00 00 00 00 6C Û®[ðFþ¯è¨..\à.çÕré'Kà&.#.......l
00065632 6D 76 68 64 00 00 00 00 DA 60 D3 57 DA 60 D3 57 00 00 75 30 00 0D 51 A8 00 01 00 00 01 00 00 00 mvhd....Ú`ÓWÚ`ÓW..u0..Q¨........
```
So my question is: What is the meaning of this 2 additional invisible boxes?
"start 0" for CNDA box seems also weird!
|
Can not find listed boxes in hex view
|
https://api.github.com/repos/gpac/gpac/issues/1470/comments
| 4 |
2020-04-19T09:58:28Z
|
2020-09-03T14:28:41Z
|
https://github.com/gpac/gpac/issues/1470
| 602,673,690 | 1,470 |
[
"gpac",
"gpac"
] |
By muxing YouTube video and audio streams in XP SP2 or SP3 with MP4Box from GPAC v0.8.0 sometimes I get videos which report double duration time. In some cases that can be solved by changing full path length of MP4Box.exe, setting it to run in Win98 compatibility mode, by setting duration time of video stream... but there are no rules, all this may or may not work. It's even possible to get one video with correctly recorded duration time and another with doubled one by using the same command line for the same streams in different command prompts?! I haven't noticed any problem in Win7. I wonder what causes the problem and if there is some simple workaround?
|
Incorrect video duration time in XP
|
https://api.github.com/repos/gpac/gpac/issues/1469/comments
| 4 |
2020-04-19T07:49:01Z
|
2021-02-01T21:42:19Z
|
https://github.com/gpac/gpac/issues/1469
| 602,649,455 | 1,469 |
[
"gpac",
"gpac"
] |
Hi, I encountered a crash while trying the transcoding pipeline with the filters branch.
Here is the command:
```
gpac -i sound.aac enc:c=vorbis @ -o test.ogg
gpac: filters/ff_enc.c:590: ffenc_audio_append_samples: Assertion `ctx->samples_in_audio_buffer + nb_samples <= (u32) ctx->encoder->frame_size' failed.
Abandon (core dumped)
```
Here is the stack trace:
```
#0 0x00007ffff7397ce5 in raise () from /usr/lib/libc.so.6
#1 0x00007ffff7381857 in abort () from /usr/lib/libc.so.6
#2 0x00007ffff7381727 in __assert_fail_base.cold () from /usr/lib/libc.so.6
#3 0x00007ffff7390426 in __assert_fail () from /usr/lib/libc.so.6
#4 0x00007ffff7b5c4bd in ffenc_audio_append_samples (ctx=0x5555555c1b30,
data=0x555555685f50 "t\377\v\274T\377\253\273_\377 <o\377\020\274F\377\271\273P\377/<b\177\236\274\030\377\347\274d\377\233\272\017\377\360\273\060\377O\273{\377\204<\006\177z\274j\177\026\275_?\241\274\"\377ݼ%\277ڼ \377_\273\006\377y\273w\377\b\274#\377ܻY\377\246\273,\377\323;\\\377\243;)\377\326;0\277\317<]\377\242<\026\177i<&\177\332<s\277\214<)\377V<\006\177\372<\030\177\347<\b\177w<>\177A<3\377L<b\277\235<\003\277\374<T?,=E?;=g\377\030=>\277\301<~\377\001<~\177\001\274^\177\"\274K\377\064<M\277\262<@\377\277:4\377˺\"\377\335;"..., size=8192, sample_offset=64, nb_samples=960) at filters/ff_enc.c:590
#5 0x00007ffff7b5cf63 in ffenc_process_audio (filter=0x5555555c0fe0, ctx=0x5555555c1b30) at filters/ff_enc.c:721
#6 0x00007ffff7b5d3ba in ffenc_process (filter=0x5555555c0fe0) at filters/ff_enc.c:800
#7 0x00007ffff7ae1314 in gf_filter_process_task (task=0x5555555bd1f0) at filter_core/filter.c:2072
#8 0x00007ffff7ad3687 in gf_fs_thread_proc (sess_thread=0x5555555a8df0) at filter_core/filter_session.c:1432
#9 0x00007ffff7ad3fe3 in gf_fs_run (fsess=0x5555555a8d60) at filter_core/filter_session.c:1669
#10 0x000055555555df8b in gpac_main (argc=7, argv=0x7fffffffdc78) at main.c:1953
#11 0x000055555555e25d in main (argc=7, argv=0x7fffffffdc78) at main.c:2008
```
Here is the aac file: https://www.mediafire.com/file/rfix2uay3xdrjh5/sound.aac/file
Note: transcoding aac -> aac and aac -> mp3 works, so it doesn't seem to be related to the input
Note: executed from a66b6eeeffc18f3ed9913369c2fff5882b20a48f compiled in debug
-----------------------------
- [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
|
[Filters] Crash while transcoding aac to vorbis
|
https://api.github.com/repos/gpac/gpac/issues/1468/comments
| 1 |
2020-04-17T19:53:19Z
|
2020-04-20T13:58:33Z
|
https://github.com/gpac/gpac/issues/1468
| 602,199,046 | 1,468 |
[
"gpac",
"gpac"
] |
1. I downloaded the latest filters branch code , and follow the
"GPAC Build Guide for Linux ---> MP4Box only " ,and install the MP4Box successfully.
OS: Centos 6
2. Dash command:
MP4Box -dash 1000 -frag 1000 -rap -frag-rap -profile live -segment-name my /home/my.aac -out /home/my.mpd
3. Command result:

......
[DASH] Cannot open file /home/my.aac for dashing: Feature Not Supported
DASH Setup Error: Feature Not Supported
4. But I can dash some MP4 file successfully, why does dash aac failed? Thanks
|
MP4Box dash aac failed
|
https://api.github.com/repos/gpac/gpac/issues/1467/comments
| 10 |
2020-04-16T07:19:26Z
|
2020-06-09T08:48:11Z
|
https://github.com/gpac/gpac/issues/1467
| 600,805,593 | 1,467 |
[
"gpac",
"gpac"
] |
- [✔ ] 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
I using vs2012 compiled Release-MP4Box_only in version 0.8.0 of windows,generated libgpac_static.lib.
**The following is my call example:**
`#include "stdafx.h"
#define GPAC_MP4BOX_MINI
extern "C" {
#include <gpac/setup.h>
#include <./gpac/isomedia.h>
#include <./gpac/constants.h>
#include <./gpac/internal/media_dev.h>
}
#pragma comment(lib, "libgpac_static.lib")
int _tmain(int argc, _TCHAR* argv[])
{
GF_ISOFile *File = NULL;
File = gf_isom_open("./test.h264", GF_ISOM_OPEN_WRITE, NULL);
if (NULL == File)
return 0;
return 0;
}
’
**Many errors are output:**
libgpac_static.lib(isom_read.obj) : error LNK2001: unresolved external symbol _gf_media_nalu_next_start_code
libgpac_static.lib(box_funcs.obj) : error LNK2001: unresolved external symbol _grpl_Write
libgpac_static.lib(box_funcs.obj) : error LNK2001: unresolved external symbol _grpl_Size
libgpac_static.lib(box_funcs.obj) : error LNK2001: unresolved external symbol _auxc_New
libgpac_static.lib(box_funcs.obj) : error LNK2001: unresolved external symbol _auxc_del
libgpac_static.lib(box_funcs.obj) : error LNK2001: unresolved external symbol _auxc_Read
libgpac_static.lib(box_funcs.obj) : error LNK2001: unresolved external symbol _auxc_Write
libgpac_static.lib(box_funcs.obj) : error LNK2001: unresolved external symbol _auxc_Size
libgpac_static.lib(box_funcs.obj) : error LNK2001: unresolved external symbol _oinf_New
libgpac_static.lib(box_funcs.obj) : error LNK2001: unresolved external symbol _oinf_del
libgpac_static.lib(box_funcs.obj) : error LNK2001: unresolved external symbol _oinf_Read
libgpac_static.lib(box_funcs.obj) : error LNK2001: unresolved external symbol _oinf_Write
libgpac_static.lib(box_funcs.obj) : error LNK2001: unresolved external symbol _oinf_Size
libgpac_static.lib(box_funcs.obj) : error LNK2001: unresolved external symbol _tols_New
libgpac_static.lib(box_funcs.obj) : error LNK2001: unresolved external symbol _tols_del
libgpac_static.lib(box_funcs.obj) : error LNK2001: unresolved external symbol _tols_Read
libgpac_static.lib(box_funcs.obj) : error LNK2001: unresolved external symbol _tols_Write
libgpac_static.lib(box_funcs.obj) : error LNK2001: unresolved external symbol _tols_Size
libgpac_static.lib(box_funcs.obj) : error LNK2001: unresolved external symbol _auxi_New
libgpac_static.lib(box_funcs.obj) : error LNK2001: unresolved external symbol _auxi_del
libgpac_static.lib(box_funcs.obj) : error LNK2001: unresolved external symbol _auxi_Read
libgpac_static.lib(box_funcs.obj) : error LNK2001: unresolved external symbol _auxi_Write
libgpac_static.lib(box_funcs.obj) : error LNK2001: unresolved external symbol _auxi_Size
libgpac_static.lib(box_funcs.obj) : error LNK2001: unresolved external symbol _grptype_New
libgpac_static.lib(box_funcs.obj) : error LNK2001: unresolved external symbol _grptype_del
libgpac_static.lib(box_funcs.obj) : error LNK2001: unresolved external symbol _grptype_Read
libgpac_static.lib(box_funcs.obj) : error LNK2001: unresolved external symbol _grptype_Write
libgpac_static.lib(box_funcs.obj) : error LNK2001: unresolved external symbol _grptype_Size
libgpac_static.lib(box_funcs.obj) : error LNK2001: unresolved external symbol _ispe_New
libgpac_static.lib(box_funcs.obj) : error LNK2001: unresolved external symbol _ispe_del
libgpac_static.lib(box_funcs.obj) : error LNK2001: unresolved external symbol _ispe_Read
........
Is my calling method correct?help me
|
Reference to libgpac_static problem --- windows
|
https://api.github.com/repos/gpac/gpac/issues/1465/comments
| 2 |
2020-04-16T02:59:37Z
|
2020-09-10T13:55:23Z
|
https://github.com/gpac/gpac/issues/1465
| 600,711,112 | 1,465 |
[
"gpac",
"gpac"
] |
I follow the guide in wiki, but make failed .
Maybe I miss some depend lib?
|
how to install mp4box on centos?
|
https://api.github.com/repos/gpac/gpac/issues/1464/comments
| 2 |
2020-04-14T12:12:07Z
|
2020-04-15T00:56:11Z
|
https://github.com/gpac/gpac/issues/1464
| 599,526,225 | 1,464 |
[
"gpac",
"gpac"
] |
I'm using this command line:
`mp4box.exe -add "TTXTchapters.ttxt:chap:lang=sr:name=Поглавља" video.mp4`
Content of TTXTchapters.ttxt (Names of chapters are in Serbian Cyrillic letters)
```
<?xml version="1.0" encoding="UTF-8"?>
<!-- GPAC 3GPP Text Stream -->
<TextStream version="1.1">
<TextStreamHeader width="0" height="0" translation_x="0" translation_y="0" layer="0">
<TextSampleDescription horizontalJustification="left" backColor="00 00 00 00" scroll="None">
<TextBox top="0" left="0" bottom="0" right="0"/>
</TextSampleDescription>
</TextStreamHeader>
<TextSample sampleTime="00:00:40.900">4. питање са Колоквијума, 17. јун 2018.</TextSample>
<TextSample sampleTime="00:06:40.900">4. питање са Колоквијума, 16. јун 2019.</TextSample>
<TextSample sampleTime="00:16:29.900">4. питање са Колоквијума, 22. април 2018.</TextSample>
<TextSample sampleTime="00:23:03.900">3. питање са Колоквијума, 23. април 2017.</TextSample>
<TextSample sampleTime="00:32:46.900">2. задатак са Колоквијума, 12. мај 2019.</TextSample>
<TextSample sampleTime="00:52:03.900">Домаћи задатак #2</TextSample>
</TextStream>
```
After that additional one new chapter (with a blank name) is created as a 1st chapter at 00:00:00.000
When extracted `mp4box.exe -ttxt 3 video.mp4` gives:
```
<?xml version="1.0" encoding="UTF-8" ?>
<!-- GPAC 3GPP Text Stream -->
<TextStream version="1.1">
<TextStreamHeader width="0" height="0" layer="0" translation_x="0" translation_y="0">
<TextSampleDescription horizontalJustification="left" verticalJustification="bottom" backColor="0 0 0 0" verticalText="no" fillTextRegion="no" continuousKaraoke="no" scroll="None">
<FontTable>
<FontTableEntry fontName="Serif" fontID="1"/>
</FontTable>
<TextBox top="0" left="0" bottom="0" right="0"/>
<Style styles="Normal" fontID="1" fontSize="18" color="0 0 0 0"/>
</TextSampleDescription>
</TextStreamHeader>
<TextSample sampleTime="00:00:00.000" sampleDescriptionIndex="1" xml:space="preserve"></TextSample>
<TextSample sampleTime="00:00:40.900" sampleDescriptionIndex="1" xml:space="preserve">4. питање са Колоквијума, 17. јун 2018.</TextSample>
<TextSample sampleTime="00:06:40.900" sampleDescriptionIndex="1" xml:space="preserve">4. питање са Колоквијума, 16. јун 2019.</TextSample>
<TextSample sampleTime="00:16:29.900" sampleDescriptionIndex="1" xml:space="preserve">4. питање са Колоквијума, 22. април 2018.</TextSample>
<TextSample sampleTime="00:23:03.900" sampleDescriptionIndex="1" xml:space="preserve">3. питање са Колоквијума, 23. април 2017.</TextSample>
<TextSample sampleTime="00:32:46.900" sampleDescriptionIndex="1" xml:space="preserve">2. задатак са Колоквијума, 12. мај 2019.</TextSample>
<TextSample sampleTime="00:52:03.900" sampleDescriptionIndex="1" xml:space="preserve">Домаћи задатак #2</TextSample>
<TextSample sampleTime="01:11:20.900" text="" />
</TextStream>
```
and an other chapter (01:11:20.900) at the end is also created. It exceeds original duration.
It seems that's not a chapter but some kind of mark of the end of the video - I'm not sure.
After that the length of video is extend by 13 min. from 00:58:15.533 to 01:11:20.900 reported by MPC, SMPlayer, Windows Media Player. While mp4box --info (and MediaInfo, too) reports both durations:
```
* Movie Info *
Timescale 600 - 3 tracks
Computed Duration 01:11:20.900 - Indicated Duration 01:11:20.900
Fragmented File: no
File suitable for progressive download (moov before mdat)
File Brand isom - version 1
Compatible brands: isom
Created: GMT Sun Apr 12 15:32:54 2020
Modified: GMT Sun Apr 12 15:32:54 2020
File has root IOD (9 bytes)
Scene PL 0xff - Graphics PL 0xff - OD PL 0xff
Visual PL: ISO Reserved Profile (0x15)
Audio PL: AAC Profile @ Level 2 (0x29)
No streams included in root OD
iTunes Info:
Encoder Software: MP4Box - GPAC version 0.8.0-rev230-g4ee02fbb-master
1 UDTA types: meta (1)
Track # 1 Info - TrackID 1 - TimeScale 30000
Media Duration 00:58:15.533 - Indicated Duration 00:58:15.533
Track has 1 edit lists: track duration is 00:58:15.533
Media Info: Language "Serbian (srp)" - Type "vide:avc1" - 104866 samples
Visual Info: width=1920 height=1080 (depth=24 bits)
Visual Track layout: x=0 y=0 width=1920 height=1080
MPEG-4 Config: Visual Stream - ObjectTypeIndication 0x21
AVC/H264 Video - Visual Size 1920 x 1080
AVC Info: 1 SPS - 1 PPS - Profile High @ Level 4
NAL Unit length bits: 32
Chroma format YUV 4:2:0 - Luma bit depth 8 - chroma bit depth 8
SPS#1 hash: A1C28156BFFAB9EDE58A15E5314AE9C9C10344D1
PPS#1 hash: 01051778C185587EBC63CCB0AC8C532730648FF5
Self-synchronized
RFC6381 Codec Parameters: avc1.640028
Average GOP length: 238 samples
Track # 2 Info - TrackID 2 - TimeScale 44100
Media Duration 00:58:15.531 - Indicated Duration 00:58:15.531
Track has 2 edit lists: track duration is 00:58:15.533
Media Info: Language "Serbian (srp)" - Type "soun:mp4a" - 150540 samples
MPEG-4 Config: Audio Stream - ObjectTypeIndication 0x40
MPEG-4 Audio AAC LC (AOT=2 implicit) - 2 Channel(s) - SampleRate 44100
Synchronized on stream 1
RFC6381 Codec Parameters: mp4a.40.2
All samples are sync
Track # 3 Info - TrackID 3 - TimeScale 1000
Media Duration 01:11:20.900 - Indicated Duration 01:11:20.900
Track is disabled
Media Info: Language "Serbian (srp)" - Type "text:tx3g" - 7 samples
Unknown Text Stream
Size 0 x 0 - Translation X=0 Y=0 - Layer 0
RFC6381 Codec Parameters: tx3g
All samples are sync
```
I don't want any chapter at position 00:00:00.000 but I'm forced by mp4box. Is it a bug?
And why mp4box, in .ttxt, creates wrong time stamp "01:11:20.900" for the end of the video when it is "00:58:15.533"? If I use a workaround for the last added chapter - to manually always put the original length of video like:
`<TextSample sampleTime="00:58:15.533" text="" />`
- it works just fine.
My system: Windows 10 Pro, 1909, x64
mp4box -version
```
MP4Box - GPAC version 0.8.0-rev230-g4ee02fbb-master
(c) Telecom ParisTech 2000-2018 - Licence LGPL v2
GPAC Configuration: (static configuration file)
Features: GPAC_64_BITS GPAC_MEMORY_TRACKING GPAC_HAS_SSL GPAC_HAS_SPIDERMONKEY GPAC_HAS_JPEG GPAC_HAS_PNG
```
|
Adding TTXT/chapters to .mp4 creates additional new blank chapter at 00:00:00.000 and extend the length of video by 13 min.
|
https://api.github.com/repos/gpac/gpac/issues/1463/comments
| 1 |
2020-04-12T16:15:27Z
|
2020-07-31T09:50:21Z
|
https://github.com/gpac/gpac/issues/1463
| 598,519,208 | 1,463 |
[
"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 seeing a strange issue with Opus audio. It might be a bug in MP4Box or elsewhere, so I apologize if this is the wrong place for this. Here is what I'm seeing:
1. Take this [example opus file](https://people.xiph.org/~giles/2012/opus/ehren-paper_lights-96.opus) and then put it into an MP4 containers like this:
```
MP4Box -add ehren-paper_lights-96.opus opus.mp4
```
2. DASH the MP4 and create a manifest
```
MP4Box -dash 8000 opus.mp4
```
3. The manifest has a section like this: `<Representation id="1" mimeType="audio/mp4" codecs="Opus" audioSamplingRate="48000" bandwidth="92408">`.
4. The problem is that Firefox (and Chromium from a little testing) doesn't think it can play this stream. If I run `MediaSource.isTypeSupported('audio/mp4; codecs="Opus"');` it returns `false`, but if I change `Opus` to `opus`, it returns `true`, and Firefox will play the DASH stream (I tested with dash.js). I see the same capitalized codec if I run `MP4Box -info opus.mp4`.
On the face of it I would assume this is a Firefox bug (be liberal in what you accept...), but since Chromium is doing the same thing, I thought I would post it here.
|
Capitalization of Opus mime type breaks playback?
|
https://api.github.com/repos/gpac/gpac/issues/1462/comments
| 3 |
2020-04-11T05:04:49Z
|
2020-06-09T08:54:01Z
|
https://github.com/gpac/gpac/issues/1462
| 598,192,255 | 1,462 |
[
"gpac",
"gpac"
] |
Hi,
Failed to build filters branch as missing file raster2d.h. I have copyed the file from master branch to the include path, then it build success.
The compiling error as below:
```
CC compositor/mpeg4_gradients.c
CC compositor/mpeg4_grouping.c
make[1]: *** No rule to make target '/home/gpac_public/include/gpac/modules/raster2d.h', needed by 'compositor/mpeg4_grouping_2d.o'. Stop.
make[1]: Leaving directory '/home/gpac_public/src'
Makefile:13: recipe for target 'all' failed
make: *** [all] Error 2
```
Just report this issue.
|
Failed to build filters branch as missing file raster2d.h
|
https://api.github.com/repos/gpac/gpac/issues/1460/comments
| 3 |
2020-04-09T07:33:38Z
|
2020-04-09T11:33:14Z
|
https://github.com/gpac/gpac/issues/1460
| 597,082,626 | 1,460 |
[
"gpac",
"gpac"
] |
1. Download the lastest gpac deb file gpac_0.9.0-DEV-rev3617-g36c21e0b-filters_amd64.deb;
2. Os information:
Ubuntu 18.04.4 LTS
Linux c3a605ff71fc 4.15.0-91-generic #92-Ubuntu SMP Fri Feb 28 11:09:48 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
3. Install command:
dpkg -i gpac_0.9.0-DEV-rev3617-g36c21e0b-filters_amd64.deb
4.Error message printed:
(Reading database ... 6749 files and directories currently installed.)
Preparing to unpack gpac_0.9.0-DEV-rev3617-g36c21e0b-filters_amd64.deb ...
Unpacking gpac (0.9.0-DEV-rev3617-g36c21e0b-filters) over (0.9.0-DEV-rev3617-g36c21e0b-filters) ...
dpkg: dependency problems prevent configuration of gpac:
gpac depends on liba52-0.7.4; however:
Package liba52-0.7.4 is not installed.
gpac depends on libfaad2 (>= 2.7); however:
Package libfaad2 is not installed.
gpac depends on libglu1-mesa | libglu1; however:
Package libglu1-mesa is not installed.
Package libglu1 is not installed.
gpac depends on libjpeg62 (>= 6b1); however:
Package libjpeg62 is not installed.
gpac depends on libmad0 (>= 0.15.1b-3); however:
Package libmad0 is not installed.
gpac depends on libpng12-0 (>= 1.2.13-4); however:
Package libpng12-0 is not installed.
gpac depends on libssl1.1 (>= 1.1.0); however:
Package libssl1.1 is not installed.
dpkg: error processing package gpac (--install):
dependency problems - leaving unconfigured
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Errors were encountered while processing:
gpac
So who can I fix this error?
Thanks
|
gpac deb install error
|
https://api.github.com/repos/gpac/gpac/issues/1459/comments
| 4 |
2020-04-08T00:24:09Z
|
2020-07-09T04:49:25Z
|
https://github.com/gpac/gpac/issues/1459
| 596,228,226 | 1,459 |
[
"gpac",
"gpac"
] |
According to the type definition `GF_PIFFProtectionSystemHeaderBox` and to the standard, the UUID box has a version byte and 3-byte flags field.
But when reading, this information is not read out by `gf_isom_full_box_read` - the "max_version_plus_one" is set to 0.
I tried just setting it to one, but then some length warnings appeared. Please, fix.
---
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/
|
UUID / PSSH should have a version field
|
https://api.github.com/repos/gpac/gpac/issues/1457/comments
| 1 |
2020-04-07T17:21:39Z
|
2020-04-07T17:22:33Z
|
https://github.com/gpac/gpac/issues/1457
| 596,029,246 | 1,457 |
[
"gpac",
"gpac"
] |
According to the type definition `GF_PIFFProtectionSystemHeaderBox` and to the standard, the UUID box has a version byte and 3-byte flags field.
But when reading, this information is not read out by `gf_isom_full_box_read` - the "max_version_plus_one" is set to 0.
I tried just setting it to one, but then some length warnings appeared. Please, fix.
---
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/
|
UUID is read incorrectly
|
https://api.github.com/repos/gpac/gpac/issues/1456/comments
| 23 |
2020-04-07T17:19:52Z
|
2020-04-10T12:50:03Z
|
https://github.com/gpac/gpac/issues/1456
| 596,028,296 | 1,456 |
[
"gpac",
"gpac"
] |
About half of the time when I run mp4box to edit metadata, the output file is garbage.
Here's an invocation:
```
$ -> mp4box 01\ Points\ of\ Departure.m4v -itags cover= -out 01\ Points\ of\ Departure.1.m4v
[iso file] Unknown box type cios in parent dref
[iso file] Unknown box type pinf in parent mp4a
[iso file] extra box UNKN found in mp4a, deleting
[iso file] Unknown box type cios in parent dref
[iso file] Unknown box type uuid in parent avc1
[iso file] Unknown box type pinf in parent avc1
[iso file] Unknown box type cios in parent dref
[iso file] Box "----" (start 965444) has 69 extra bytes
Setting up iTunes/iPod file...
Saving to 01 Points of Departure.1.m4v: 0.500 secs Interleaving
```
This succeeds, removing the cover image and outputting a 547 MB file.
Here's another:
```
$ -> mp4box 01\ Points\ of\ Departure.m4v -itags cover= -out 01\ Points\ of\ Departure.3.m4v
[iso file] Unknown box type cios in parent dref
[iso file] Unknown box type pinf in parent mp4a
[iso file] extra box UNKN found in mp4a, deleting
[iso file] Unknown box type cios in parent dref
[iso file] Unknown box type uuid in parent avc1
[iso file] Unknown box type pinf in parent avc1
[iso file] Unknown box type cios in parent dref
[iso file] Box "----" (start 965444) has 69 extra bytes
Setting up iTunes/iPod file...
Saving to 01 Points of Departure.3.m4v: 0.500 secs Interleaving
```
This outputs a 2 MB file.
Running 10 times, here's my directory:
$ -> ls -l
total 5454008
-rw-r--r-- 1 family staff 547074871 Apr 6 08:50 01 Points of Departure.0.m4v
-rw-r--r-- 1 family staff 547074871 Apr 6 08:50 01 Points of Departure.1.m4v
-rw-r--r-- 1 family staff 1966153 Apr 6 08:50 01 Points of Departure.2.m4v
-rw-r--r-- 1 family staff 547074871 Apr 6 08:50 01 Points of Departure.3.m4v
-rw-r--r-- 1 family staff 1966153 Apr 6 08:50 01 Points of Departure.4.m4v
-rw-r--r-- 1 family staff 547074871 Apr 6 08:50 01 Points of Departure.5.m4v
-rw-r--r-- 1 family staff 1966153 Apr 6 08:50 01 Points of Departure.6.m4v
-rw-r--r-- 1 family staff 1966153 Apr 6 08:50 01 Points of Departure.7.m4v
-rw-r--r-- 1 family staff 1966153 Apr 6 08:50 01 Points of Departure.8.m4v
-rw-r--r-- 1 family staff 1966153 Apr 6 08:50 01 Points of Departure.9.m4v
-rwxr--r-- 1 family staff 547361292 Apr 6 08:16 01 Points of Departure.m4v
4 good runs, 6 garbage runs.
One way I can tell the garbage output is coming is that the command finishes immediately, rather than showing a progress bar that takes a few seconds to complete.
I tried `-v`, didn't see anything notable.
I've seen the same behavior on multiple files.
My system: macOS 10.15.3, GPAC 0.8.0-rev224-g656aca0e-master
Am I missing something obvious? Any suggestions on how to further diagnose?
|
mp4box inconsistently outputs broken file
|
https://api.github.com/repos/gpac/gpac/issues/1455/comments
| 2 |
2020-04-06T15:00:43Z
|
2020-11-22T16:17:42Z
|
https://github.com/gpac/gpac/issues/1455
| 595,189,949 | 1,455 |
[
"gpac",
"gpac"
] |
- [x] I looked for a similar issue and couldn't find any.
- [x] I tried with the latest version of GPAC. Installers available at http://gpac.io/downloads/gpac-nightly-builds/
- [x] I give enough information for contributors to reproduce my issue (meaningful title, github labels, platform and compiler, command-line ...).
I added an additional alternative brand with:
```
<?xml version="1.0" encoding="UTF-8" />
<GPACBOXES>
<Box path="ftyp+">
<BS fcc="ftyp"/>
<BS data="71742020200709007174202043414550"/>
</Box>
<Box path="ftyp">
</Box>
</GPACBOXES>
```
Result:
```
00 00 00 18 66 74 79 70 71 74 20 20 20 07 09 00 71 74 20 20 43 41 45 50 00 00 18 78 6D 6F 6F 76 ....ftypqt ...qt CAEP...xmoov
00 00 00 6C 6D 76 68 64 00 00 00 00 00 00 00 00 00 00 00 00 00 00 75 30 00 0D 51 B0 00 01 00 00 ...lmvhd..............u0..Q°....
```
After I added a udta box with:
```
<?xml version="1.0" encoding="UTF-8" />
<GPACBOXES>
<Box path="moov.mvhd-">
<BS fcc="udta"/>
<BS dataFile="MVI_1324.udta" dataOffset="8" dataLength="65588"/>
</Box>
</GPACBOXES>
```
Now in the result the alternative brand "CAEP" was deleted:
```
00 00 00 14 66 74 79 70 71 74 20 20 00 00 02 00 71 74 20 20 00 01 18 B4 6D 6F 6F 76 00 01 00 3C ....ftypqt ....qt ...´moov...<
75 64 74 61 00 00 00 14 43 4E 43 56 43 61 6E 6F 6E 41 56 43 30 30 30 34 00 00 00 0C 43 4E 44 4D udta....CNCVCanonAVC0004....CNDM
```
|
Inserting udta box removes alternative brand
|
https://api.github.com/repos/gpac/gpac/issues/1453/comments
| 8 |
2020-04-03T23:16:00Z
|
2020-04-21T15:48:27Z
|
https://github.com/gpac/gpac/issues/1453
| 593,686,946 | 1,453 |
[
"gpac",
"gpac"
] |
Using command `mp4box.exe -crypt gp.xml videoin.mp4 -out videoout.mp4`
Here is my `gp.xml`:
```
<GPACDRM type="cenc">
<DRMInfo type="pssh" version="0" cypherMode="no">
<BS ID128="9A04F07998404286AB92E65BE0885F95" />
<BS data64="bAIAAAEAAQBiAjwAVwBSAE0ASABFAEEARABFAFIAIAB4AG0AbABuAHMAPQAiAGgAdAB0AHAAOgAvAC8AcwBjAGgAZQBtAGEAcwAuAG0AaQBjAHIAbwBzAG8AZgB0AC4AYwBvAG0ALwBEAFIATQAvADIAMAAwADcALwAwADMALwBQAGwAYQB5AFIAZQBhAGQAeQBIAGUAYQBkAGUAcgAiACAAdgBlAHIAcwBpAG8AbgA9ACIANAAuADAALgAwAC4AMAAiAD4APABEAEEAVABBAD4APABQAFIATwBUAEUAQwBUAEkATgBGAE8APgA8AEsARQBZAEwARQBOAD4AMQA2ADwALwBLAEUAWQBMAEUATgA+ADwAQQBMAEcASQBEAD4AQQBFAFMAQwBUAFIAPAAvAEEATABHAEkARAA+ADwALwBQAFIATwBUAEUAQwBUAEkATgBGAE8APgA8AEsASQBEAD4AdABsAFEAaQA3ADAAYwA3AFMARQBXADcANwBjAGcAUgB0AHcAcwB0AEcAZwA9AD0APAAvAEsASQBEAD4APABMAEEAXwBVAFIATAA+AGgAdAB0AHAAcwA6AC8ALwBuAGMAcABzAG0AZQBkAGkAYQAuAGsAZQB5AGQAZQBsAGkAdgBlAHIAeQAuAHcAZQBzAHQAZQB1AHIAbwBwAGUALgBtAGUAZABpAGEALgBhAHoAdQByAGUALgBuAGUAdAAvAFAAbABhAHkAUgBlAGEAZAB5AC8APAAvAEwAQQBfAFUAUgBMAD4APAAvAEQAQQBUAEEAPgA8AC8AVwBSAE0ASABFAEEARABFAFIAPgA=" />
</DRMInfo>
<CrypTrack first_IV="0x22ee7d4745d3a26a" saiSavedBox="uuid_psec">
<key KID="0xb65422ef473b4845bbedc811b70b2d1a" value="0x04030201060508070101010101010101" />
</CrypTrack>
</GPACDRM>
```
The result (using HxD):
```
...
A9 74 6F 6F 00 00 00 1D 64 61 74 61 00 00 00 01 ©too���data���
00 00 00 00 4C 61 76 66 35 38 2E 31 32 2E 31 30 ����Lavf58.12.10
30 00 00 02 8C 70 73 73 68 00 00 00 00 9A 04 F0 0��Њpssh����љр
79 98 40 42 86 AB 92 E6 5B E0 88 5F 95 00 00 02 y@B†«’ж[а€_•��
6C 6C 02 00 00 01 00 01 00 62 02 3C 00 57 00 52 ll����b<�W�R
00 4D 00 48 00 45 00 41 00 44 00 45 00 52 00 20 �M�H�E�A�D�E�R�
...
```
---
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/
|
SaiSavedBox writes to "pssh" instead of "uuid"
|
https://api.github.com/repos/gpac/gpac/issues/1452/comments
| 1 |
2020-04-03T18:20:21Z
|
2020-04-15T09:58:45Z
|
https://github.com/gpac/gpac/issues/1452
| 593,559,151 | 1,452 |
[
"gpac",
"gpac"
] |
Thanks for reporting your issue. Please make sure these boxes are checked before submitting your issue - thank you!
- [x] I looked for a similar issue and couldn't find any.
- [x] I tried with the latest version of GPAC. Installers available at http://gpac.io/downloads/gpac-nightly-builds/
- [x] I give enough information for contributors to reproduce my issue (meaningful title, github labels, platform and compiler, command-line ...).. I can share files if necessary.
Detailed guidelines: http://gpac.io/2013/07/16/how-to-file-a-bug-properly/
As I was not able to reopen a issue, I open a new one.
I have tried to insert a 65588 bytes udta box in a .MOV video, but only 1024 bytes were inserted.
For the details please see: https://github.com/gpac/gpac/issues/1431#issuecomment-607541897
|
MP4Box inserts only 1024 bytes of 65588
|
https://api.github.com/repos/gpac/gpac/issues/1451/comments
| 1 |
2020-04-02T20:24:09Z
|
2020-04-03T14:08:48Z
|
https://github.com/gpac/gpac/issues/1451
| 592,901,979 | 1,451 |
[
"gpac",
"gpac"
] |
Hi, I am using AgressiveSwitching for my ABR algorithm in MP4Client. I think it is switching faster, but I thought it would also switch fast and replace or discard the existing low bitrate segments by downloaidng high bitrate segments if the network bandwidth becomes better. But right now, I don't see any such discarding or redownloading of the same segment with better quality. Does MP4Client has this?
|
Segment replacement or discarding with AgressiveSwitching
|
https://api.github.com/repos/gpac/gpac/issues/1450/comments
| 1 |
2020-04-01T06:42:28Z
|
2020-04-15T10:13:01Z
|
https://github.com/gpac/gpac/issues/1450
| 591,667,847 | 1,450 |
[
"gpac",
"gpac"
] |
max buffer duration
|
https://api.github.com/repos/gpac/gpac/issues/1449/comments
| 0 |
2020-04-01T05:10:30Z
|
2020-04-01T05:10:52Z
|
https://github.com/gpac/gpac/issues/1449
| 591,627,970 | 1,449 |
|
[
"gpac",
"gpac"
] |
hi, im trying to make a compliant mp4 file with the following components:
1. AVC video
2. AAC-LC audiotrack as the first audio
3. E-AC3 audiotrack as the second audio
4. stpp (TTML) Sub track as the first track.
Version: MP4Box - GPAC version 0.8.0-rev217-g5b37b21ad-master
1. Mp4box doesnt seem to mux my e-ac3 track so i had to use ffmpeg to remux my TS to mp4. Am i doing something wrong?
2. Problem is that ffmpeg is complaining on my aac track and i had to extract it and remerge it via mp4box where it placed it self AFTER the e-ac3 track with a UND language as well
3.Tried to figure out how i can swap the track order, but the -swap.track-id just change the ID-string not the order
```
MP4Box -info test6.mp4
* Movie Info *
Timescale 1000 - 4 tracks
Computed Duration 02:09:12.234 - Indicated Duration 02:09:12.234
Fragmented File: no
File suitable for progressive download (moov before mdat)
File Brand isom - version 512
Compatible brands: isom iso2 avc1 mp41
Created: UNKNOWN DATE Modified: UNKNOWN DATE
File has root IOD (9 bytes)
Scene PL 0xff - Graphics PL 0xff - OD PL 0xff
Visual PL: ISO Reserved Profile (0x15)
Audio PL: AAC Profile @ Level 2 (0x29)
No streams included in root OD
iTunes Info:
Encoder Software: Lavf58.42.100
1 UDTA types: meta (1)
Track # 1 Info - TrackID 1 - TimeScale 90000
Media Duration 02:09:12.200 - Indicated Duration 02:09:12.200
Track has 1 edit lists: track duration is 02:09:12.200
Media Info: Language "Undetermined (und)" - Type "vide:avc1" - 193805 samples
Visual Info: width=1920 height=1080 (depth=24 bits)
Visual Track layout: x=0 y=0 width=1920 height=1080
MPEG-4 Config: Visual Stream - ObjectTypeIndication 0x21
AVC/H264 Video - Visual Size 1920 x 1080
AVC Info: 1 SPS - 1 PPS - Profile High @ Level 4.1
NAL Unit length bits: 32
Pixel Aspect Ratio 1:1 - Indicated track size 1920 x 1080
Chroma format YUV 4:2:0 - Luma bit depth 8 - chroma bit depth 8
SPS#1 hash: 9C41178E52936C4C2425E2AABBA0CBC9C5B0C529
PPS#1 hash: C1F6BE0ACBB8ADDB9680327BEEAF0D852C9D3146
Self-synchronized
RFC6381 Codec Parameters: avc1.640029
Average GOP length: 100 samples
Track # 2 Info - TrackID 3 - TimeScale 48000
Media Duration 02:09:12.224 - Indicated Duration 02:09:12.224
Track has 1 edit lists: track duration is 02:09:12.224
Media Info: Language "English (eng)" - Type "soun:ec-3" - 242257 samples
EC-3 stream - Sample Rate 48000 - 5.1 channel(s) - bitrate 448
RFC6381 Codec Parameters: ec-3
Alternate Group ID 1
All samples are sync
Track # 3 Info - TrackID 2 - TimeScale 48000
Media Duration 02:09:12.234 - Indicated Duration 02:09:12.234
Media Info: Language "Undetermined (und)" - Type "soun:mp4a" - 363386 samples
MPEG-4 Config: Audio Stream - ObjectTypeIndication 0x40
MPEG-4 Audio AAC LC (AOT=2 implicit) - 2 Channel(s) - SampleRate 48000
Synchronized on stream 1
RFC6381 Codec Parameters: mp4a.40.2
All samples are sync
Track # 4 Info - TrackID 4 - TimeScale 1000
Media Duration 02:09:02.400 - Indicated Duration 02:09:02.400
Media Info: Language "Norwegian (nor)" - Type "subt:stpp" - 1825 samples
XML Subtitle Stream - namespace http://www.w3.org/ns/ttml
Size 0 x 0 - Translation X=0 Y=0 - Layer 0
RFC6381 Codec Parameters: stpp
All samples are sync
```
|
E-AC3 support and the ability to swap Track order
|
https://api.github.com/repos/gpac/gpac/issues/1448/comments
| 4 |
2020-03-31T20:43:45Z
|
2020-09-02T13:59:16Z
|
https://github.com/gpac/gpac/issues/1448
| 591,413,398 | 1,448 |
[
"gpac",
"gpac"
] |
There is no "alltk" option in the mp4box documentation.
Command line: mp4box -frag 10000 foo.mp4
foo.mp4 had 5 tracks. Track 3 was a second audio track.
There was also a Track 5 that had Chapters info. It too was disabled.
How do I get all the tracks? I just want a straight-thru copy with fragmenting.
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/
|
[IsoMedia] Track 3 is disabled, ignoring track - you may retry by specifying alltk option
|
https://api.github.com/repos/gpac/gpac/issues/1447/comments
| 1 |
2020-03-30T20:04:13Z
|
2020-03-31T07:36:49Z
|
https://github.com/gpac/gpac/issues/1447
| 590,556,653 | 1,447 |
[
"gpac",
"gpac"
] |
Thanks for reporting your issue. Please make sure these boxes are checked before submitting your issue - thank you!
- [x] I looked for a similar issue and couldn't find any.
- [x] I tried with the latest version of GPAC. Installers available at http://gpac.io/downloads/gpac-nightly-builds/
- [x] I give enough information for contributors to reproduce my issue (meaningful title, github labels, platform and compiler, command-line ...). 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 stack buffer overflow bug (an invalid read of size 4) in GPAC 0.8.0 (the latest commit 5b37b21), as demonstrated by MP4Box, in gf_m2ts_get_adaptation_field in media_tools/mpegts.c that can cause a denial of service via a crafted MP4 file.
PoC: https://github.com/strongcourage/PoCs/blob/master/gpac_5b37b21/sbo_mpegts.c:3204
Command: MP4Box -info $PoC
ASAN says:
~~~
==10977==ERROR: AddressSanitizer: stack-buffer-overflow on address 0x7ffe0b6b7343 at pc 0x0000008a4d3d bp 0x7ffe0b6886a0 sp 0x7ffe0b688690
READ of size 1 at 0x7ffe0b6b7343 thread T0
#0 0x8a4d3c in gf_m2ts_get_adaptation_field /home/dungnguyen/fuzz/gpac/src/media_tools/mpegts.c:3204
#1 0x8afb53 in gf_m2ts_process_packet /home/dungnguyen/fuzz/gpac/src/media_tools/mpegts.c:3335
#2 0x8afb53 in gf_m2ts_process_data /home/dungnguyen/fuzz/gpac/src/media_tools/mpegts.c:3561
#3 0x893e07 in gf_import_mpeg_ts /home/dungnguyen/fuzz/gpac/src/media_tools/media_import.c:10024
#4 0x89cccb in gf_media_import /home/dungnguyen/fuzz/gpac/src/media_tools/media_import.c:11071
#5 0x452206 in convert_file_info /home/dungnguyen/fuzz/gpac/applications/mp4box/fileimport.c:124
#6 0x433b55 in mp4boxMain /home/dungnguyen/fuzz/gpac/applications/mp4box/main.c:4894
#7 0x7f29f554982f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
#8 0x41e4f8 in _start (/home/dungnguyen/PoCs/gpac_5b37b21/MP4Box_asan+0x41e4f8)
~~~
Valgrind says:
~~~
==7909== Invalid read of size 4
==7909== at 0x5D1994: on_m2ts_import_data (media_import.c:9161)
==7909== by 0x5E266E: gf_m2ts_process_pmt (mpegts.c:2636)
==7909== by 0x5DD101: gf_m2ts_section_complete (mpegts.c:1619)
==7909== by 0x5DD496: gf_m2ts_gather_section.isra.12 (mpegts.c:1749)
==7909== by 0x5DFABC: gf_m2ts_process_packet (mpegts.c:3500)
==7909== by 0x5DFABC: gf_m2ts_process_data (mpegts.c:3561)
==7909== by 0x5D39B8: gf_import_mpeg_ts.part.19 (media_import.c:10024)
==7909== by 0x5D8CC2: gf_media_import (media_import.c:11071)
==7909== by 0x42E170: convert_file_info (fileimport.c:124)
==7909== by 0x41C88F: mp4boxMain (main.c:4894)
==7909== by 0x57BC82F: (below main) (libc-start.c:291)
==7909== Address 0xc is not stack'd, malloc'd or (recently) free'd
~~~
Best,
MD
|
Stack buffer overflow in media_tools/mpegts.c
|
https://api.github.com/repos/gpac/gpac/issues/1446/comments
| 1 |
2020-03-28T10:46:51Z
|
2020-06-11T16:27:13Z
|
https://github.com/gpac/gpac/issues/1446
| 589,552,787 | 1,446 |
[
"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 buffer overflow bug (an invalid write of size 16) in GPAC 0.8.0 (the latest commit 5b37b21), as demonstrated by MP4Box, in gf_bs_read_data in utils/bitstream.c that can cause a denial of service via a crafted MP4 file.
PoC: https://github.com/strongcourage/PoCs/blob/master/gpac_5b37b21/hbo_bitstream.c:461
Command: MP4Box -info $PoC
ASAN says:
~~~
==4590==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x61300000dfe8 at pc 0x7fcbddd99964 bp 0x7ffe457e24c0 sp 0x7ffe457e1c68
WRITE of size 16 at 0x61300000dfe8 thread T0
#0 0x7fcbddd99963 in __asan_memcpy (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x8c963)
#1 0x471b45 in memcpy /usr/include/x86_64-linux-gnu/bits/string3.h:53
#2 0x471b45 in gf_bs_read_data /home/dungnguyen/fuzz/gpac/src/utils/bitstream.c:461
#3 0x7b3368 in gf_odf_read_ipmp_tool /home/dungnguyen/fuzz/gpac/src/odf/odf_code.c:3325
#4 0x79a643 in gf_odf_parse_descriptor /home/dungnguyen/fuzz/gpac/src/odf/descriptors.c:159
#5 0x7b2dd7 in gf_odf_read_ipmp_tool_list /home/dungnguyen/fuzz/gpac/src/odf/odf_code.c:3260
#6 0x79a643 in gf_odf_parse_descriptor /home/dungnguyen/fuzz/gpac/src/odf/descriptors.c:159
#7 0x7b46b6 in gf_odf_desc_read /home/dungnguyen/fuzz/gpac/src/odf/odf_codec.c:302
#8 0xadb543 in esds_Read /home/dungnguyen/fuzz/gpac/src/isomedia/box_code_base.c:1256
#9 0x6c77b4 in gf_isom_box_read /home/dungnguyen/fuzz/gpac/src/isomedia/box_funcs.c:1532
#10 0x6c77b4 in gf_isom_box_parse_ex /home/dungnguyen/fuzz/gpac/src/isomedia/box_funcs.c:210
#11 0x6c8004 in gf_isom_parse_root_box /home/dungnguyen/fuzz/gpac/src/isomedia/box_funcs.c:42
#12 0x6dd6b0 in gf_isom_parse_movie_boxes /home/dungnguyen/fuzz/gpac/src/isomedia/isom_intern.c:211
#13 0x6e0343 in gf_isom_parse_movie_boxes /home/dungnguyen/fuzz/gpac/src/isomedia/isom_intern.c:199
#14 0x6e0343 in gf_isom_open_file /home/dungnguyen/fuzz/gpac/src/isomedia/isom_intern.c:620
#15 0x43375d in mp4boxMain /home/dungnguyen/fuzz/gpac/applications/mp4box/main.c:4814
#16 0x7fcbdd00182f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
#17 0x41e4f8 in _start (/home/dungnguyen/PoCs/gpac_5b37b21/MP4Box+0x41e4f8)
0x61300000dfe8 is located 0 bytes to the right of 360-byte region [0x61300000de80,0x61300000dfe8)
allocated by thread T0 here:
#0 0x7fcbddda5662 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98662)
#1 0x7b30dd in gf_odf_new_ipmp_tool /home/dungnguyen/fuzz/gpac/src/odf/odf_code.c:3293
~~~
Best,
MD
|
Heap buffer overflow in utils/bitstream.c
|
https://api.github.com/repos/gpac/gpac/issues/1445/comments
| 1 |
2020-03-28T10:46:19Z
|
2020-06-11T16:31:23Z
|
https://github.com/gpac/gpac/issues/1445
| 589,552,706 | 1,445 |
[
"gpac",
"gpac"
] |
Hi,
I looking media_tools/dash_client.c to find the maximum buffer capacity. I found a function gf_dash_group_set_buffer_levels and the variable group->buffer_max_ms that I think are setting the buffer capacity. But it looks like this is being updated for every segment. Why so? Shouldn't the max buffer capacity be a constant in the beginning of the playback?
Any idea? Thank you.
|
Controlling max buffer duration in MP4Client
|
https://api.github.com/repos/gpac/gpac/issues/1444/comments
| 1 |
2020-03-28T07:09:10Z
|
2020-03-30T07:53:17Z
|
https://github.com/gpac/gpac/issues/1444
| 589,523,933 | 1,444 |
[
"gpac",
"gpac"
] |
I have downloaded your filters branch code and built it following the wiki. It shows that it is ok to use the MP4Client to play MP4 and MPD file. But when I drag the time line to seek during playing, both the MP4 and MPD with get stuck. And MP4 will resume after about 10 seconds, MPD will not.
So I want to confirm that does the MP4Client support seeking during playing or any plan to support it?
Thanks very much.
LULU
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/
|
Does MP4Client support seeking during playing at branch filters?
|
https://api.github.com/repos/gpac/gpac/issues/1443/comments
| 3 |
2020-03-26T07:39:24Z
|
2020-04-20T18:19:10Z
|
https://github.com/gpac/gpac/issues/1443
| 588,216,503 | 1,443 |
[
"gpac",
"gpac"
] |
- [x] I looked for a similar issue and couldn't find any.
- [x] I tried with the latest version of GPAC. Installers available at http://gpac.io/downloads/gpac-nightly-builds/
- [x] I give enough information for contributors to reproduce my issue (meaningful title, github labels, platform and compiler, command-line ...). I can share files anonymously with this dropbox: https://www.mediafire.com/filedrop/filedrop_hosted.php?drop=eec9e058a9486fe4e99c33021481d9e1826ca9dbc242a6cfaab0fe95da5e5d95
Hello,I'm using MP4box inside a web server to generate livestream.
I'm having trouble since it started.
ffmpeg encoding:
`ffmpeg -i E:/video/input.mp4 -threads 4 -preset veryfast -c:v libx264 -profile:v main -level 4.0 -s:v 640x360 -b:v 300k -pix_fmt yuv420p -refs 3 -bf 3 -g 75 -keyint_min 25 -b_strategy 1 -flags +cgop -sc_threshold 0 -movflags negative_cts_offsets+faststart -an -y dilida/input_video_360P.mp4`
mp4box encoding:
`MP4Box -dash 264600 -frag 264600 -dash-scale 44100 -bound -mem-frags -rap -profile dashavc264:live -min-buffer 12000 -bs-switching no -sample-groups-traf -single-traf -subsegs-per-sidx -1 -segment-name "input/$RepresentationID$/$Number$$Init=i$" -out E:/video/dilida/two/output.mpd E:/video/dilida/input_video_360P.mp4#trackID=1:id=360P:period=p0 E:/video/dilida/input_video_480P.mp4#trackID=1:id=480P:period=p0 E:/video/dilida/input_video_720P.mp4#trackID=1:id=720P:period=p0 E:/video/dilida/input_video_1080P.mp4#trackID=1:id=1080P:period=p0 E:/video/dilida/input_video_1080P+.mp4#trackID=1:id=1080P+:period=p0 E:/video/dilida/input_audio_128k.m4a#trackID=1:id=128k:period=p0`
All work fine on all common browsers,but set playback rate sometimes calls the wait event.
warning:
`[DASH] Files have non-proportional track layouts (640x360 vs 853x480) but sample size and aspect ratio match, assuming precision issue`
error:
`[DASH] Segment E:/video/dilida/two/input/360P/38.m4s (Number #38): drift between MPD timeline and tfdt exceeds 50% of segment duration (MPD time minus TFDT 3.031250 secs) - bitstream will not be compliant, try increasing segment duration or reencoding for better keyframe alignment [DASH] Segment E:/video/dilida/two/input/360P/50.m4s (Number #50): drift between MPD timeline and tfdt exceeds 50% of segment duration (MPD time minus TFDT 3.084375 secs) - bitstream will not be compliant, try increasing segment duration or reencoding for better keyframe alignment`
Thanks!
|
bitstream will not be compliant, try increasing segment duration or reencoding for better keyframe alignment
|
https://api.github.com/repos/gpac/gpac/issues/1442/comments
| 1 |
2020-03-25T17:20:25Z
|
2020-07-31T09:51:50Z
|
https://github.com/gpac/gpac/issues/1442
| 587,860,169 | 1,442 |
[
"gpac",
"gpac"
] |
Hello,I'm using MP4box inside a web server to generate livestream.
I'm having trouble since it started.
ffmpeg encoding:
`ffmpeg -i E:/video/input.mp4 -threads 4 -preset veryfast -c:v libx264 -profile:v main -level 4.0 -s:v 640x360 -b:v 300k -pix_fmt yuv420p -refs 3 -bf 3 -g 75 -keyint_min 25 -b_strategy 1 -flags +cgop -sc_threshold 0 -movflags negative_cts_offsets+faststart -an -y dilida/input_video_360P.mp4`
mp4box encoding:
`MP4Box -dash 264600 -frag 264600 -dash-scale 44100 -bound -mem-frags -rap -profile dashavc264:live -min-buffer 12000 -bs-switching no -sample-groups-traf -single-traf -subsegs-per-sidx -1 -segment-name "input/$RepresentationID$/$Number$$Init=i$" -out E:/video/dilida/two/output.mpd E:/video/dilida/input_video_360P.mp4#trackID=1:id=360P:period=p0 E:/video/dilida/input_video_480P.mp4#trackID=1:id=480P:period=p0 E:/video/dilida/input_video_720P.mp4#trackID=1:id=720P:period=p0 E:/video/dilida/input_video_1080P.mp4#trackID=1:id=1080P:period=p0 E:/video/dilida/input_video_1080P+.mp4#trackID=1:id=1080P+:period=p0 E:/video/dilida/input_audio_128k.m4a#trackID=1:id=128k:period=p0`
All work fine on all common browsers,but set playback rate sometimes calls the wait event.
warning:
`[DASH] Files have non-proportional track layouts (640x360 vs 853x480) but sample size and aspect ratio match, assuming precision issue`
error:
`[DASH] Segment E:/video/dilida/two/input/360P/38.m4s (Number #38): drift between MPD timeline and tfdt exceeds 50% of segment duration (MPD time minus TFDT 3.031250 secs) - bitstream will not be compliant, try increasing segment duration or reencoding for better keyframe alignment
[DASH] Segment E:/video/dilida/two/input/360P/50.m4s (Number #50): drift between MPD timeline and tfdt exceeds 50% of segment duration (MPD time minus TFDT 3.084375 secs) - bitstream will not be compliant, try increasing segment duration or reencoding for better keyframe alignment`
Thanks!
|
bitstream will not be compliant, try increasing segment duration or reencoding for better keyframe alignment
|
https://api.github.com/repos/gpac/gpac/issues/1441/comments
| 1 |
2020-03-25T16:57:49Z
|
2020-03-25T17:17:49Z
|
https://github.com/gpac/gpac/issues/1441
| 587,845,390 | 1,441 |
[
"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 3 new UAF bugs on the lastest commit 56eaea8 of GPAC version 0.8.0.
I think it is probably due to **an imcomplete fix** of the UAF bug https://github.com/gpac/gpac/issues/1340. Actually, these new bugs share the same buggy function which is `gf_isom_box_del()` in src/isomedia/box_funcs.c with https://github.com/gpac/gpac/issues/1340, but have different alloc function `esds_New()` in `src/isomedia/box_code_base.c` (instead of `stco_New()`).
Command: `MP4Box -info $POC` or `MP4Box -diso $POC`
#### 1) UAF Bug 1
PoC: https://github.com/strongcourage/PoCs/blob/master/gpac_56eaea8/uaf1
ASAN says:
~~~
=================================================================
==31565==ERROR: AddressSanitizer: heap-use-after-free on address 0x60400000dde8 at pc 0x0000006c601e bp 0x7fff726c3b70 sp 0x7fff726c3b60
READ of size 8 at 0x60400000dde8 thread T0
#0 0x6c601d in gf_isom_box_del /home/dungnguyen/fuzz/gpac/src/isomedia/box_funcs.c:1504
#1 0x6c5f5e in gf_isom_box_array_del /home/dungnguyen/fuzz/gpac/src/isomedia/box_funcs.c:272
#2 0x6c5f5e in gf_isom_box_del /home/dungnguyen/fuzz/gpac/src/isomedia/box_funcs.c:1520
#3 0x6c5f5e in gf_isom_box_array_del /home/dungnguyen/fuzz/gpac/src/isomedia/box_funcs.c:272
#4 0x6c5f5e in gf_isom_box_del /home/dungnguyen/fuzz/gpac/src/isomedia/box_funcs.c:1520
#5 0x6c5f5e in gf_isom_box_array_del /home/dungnguyen/fuzz/gpac/src/isomedia/box_funcs.c:272
#6 0x6c5f5e in gf_isom_box_del /home/dungnguyen/fuzz/gpac/src/isomedia/box_funcs.c:1520
#7 0x6c5f5e in gf_isom_box_array_del /home/dungnguyen/fuzz/gpac/src/isomedia/box_funcs.c:272
#8 0x6c5f5e in gf_isom_box_del /home/dungnguyen/fuzz/gpac/src/isomedia/box_funcs.c:1520
#9 0x6c72cd in gf_isom_box_array_read_ex /home/dungnguyen/fuzz/gpac/src/isomedia/box_funcs.c:1427
#10 0xae0b0f in mdia_Read /home/dungnguyen/fuzz/gpac/src/isomedia/box_code_base.c:3021
#11 0x6c6456 in gf_isom_box_read /home/dungnguyen/fuzz/gpac/src/isomedia/box_funcs.c:1532
#12 0x6c6456 in gf_isom_box_parse_ex /home/dungnguyen/fuzz/gpac/src/isomedia/box_funcs.c:210
#13 0x6c6e02 in gf_isom_box_array_read_ex /home/dungnguyen/fuzz/gpac/src/isomedia/box_funcs.c:1425
#14 0xaeffe8 in trak_Read /home/dungnguyen/fuzz/gpac/src/isomedia/box_code_base.c:7188
#15 0x6c6456 in gf_isom_box_read /home/dungnguyen/fuzz/gpac/src/isomedia/box_funcs.c:1532
#16 0x6c6456 in gf_isom_box_parse_ex /home/dungnguyen/fuzz/gpac/src/isomedia/box_funcs.c:210
#17 0x6c6e02 in gf_isom_box_array_read_ex /home/dungnguyen/fuzz/gpac/src/isomedia/box_funcs.c:1425
#18 0xae3444 in moov_Read /home/dungnguyen/fuzz/gpac/src/isomedia/box_code_base.c:3749
#19 0x6c7764 in gf_isom_box_read /home/dungnguyen/fuzz/gpac/src/isomedia/box_funcs.c:1532
#20 0x6c7764 in gf_isom_box_parse_ex /home/dungnguyen/fuzz/gpac/src/isomedia/box_funcs.c:210
#21 0x6c7fb4 in gf_isom_parse_root_box /home/dungnguyen/fuzz/gpac/src/isomedia/box_funcs.c:42
#22 0x6dd940 in gf_isom_parse_movie_boxes /home/dungnguyen/fuzz/gpac/src/isomedia/isom_intern.c:207
#23 0x6e05d3 in gf_isom_parse_movie_boxes /home/dungnguyen/fuzz/gpac/src/isomedia/isom_intern.c:195
#24 0x6e05d3 in gf_isom_open_file /home/dungnguyen/fuzz/gpac/src/isomedia/isom_intern.c:616
#25 0x43375d in mp4boxMain /home/dungnguyen/fuzz/gpac/applications/mp4box/main.c:4814
#26 0x7fca8b87382f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
#27 0x41e4f8 in _start (/home/dungnguyen/PoCs/gpac_new/MP4Box+0x41e4f8)
0x60400000dde8 is located 24 bytes inside of 48-byte region [0x60400000ddd0,0x60400000de00)
freed by thread T0 here:
#0 0x7fca8c61732a in __interceptor_free (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x9832a)
#1 0x6c5f9f in gf_isom_box_del /home/dungnguyen/fuzz/gpac/src/isomedia/box_funcs.c:1512
previously allocated by thread T0 here:
#0 0x7fca8c617662 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98662)
#1 0xadb68d in esds_New /home/dungnguyen/fuzz/gpac/src/isomedia/box_code_base.c:1287
SUMMARY: AddressSanitizer: heap-use-after-free /home/dungnguyen/fuzz/gpac/src/isomedia/box_funcs.c:1504 gf_isom_box_del
~~~
|
3 UAF bugs in box_funcs.c
|
https://api.github.com/repos/gpac/gpac/issues/1440/comments
| 4 |
2020-03-24T17:16:05Z
|
2020-03-26T19:28:46Z
|
https://github.com/gpac/gpac/issues/1440
| 587,134,103 | 1,440 |
[
"gpac",
"gpac"
] |
nt
|
https://api.github.com/repos/gpac/gpac/issues/1439/comments
| 0 |
2020-03-23T22:57:03Z
|
2020-03-23T23:24:40Z
|
https://github.com/gpac/gpac/issues/1439
| 586,570,904 | 1,439 |
|
[
"gpac",
"gpac"
] |
nt
|
https://api.github.com/repos/gpac/gpac/issues/1438/comments
| 0 |
2020-03-23T22:57:03Z
|
2020-03-23T23:39:02Z
|
https://github.com/gpac/gpac/issues/1438
| 586,570,896 | 1,438 |
|
[
"gpac",
"gpac"
] |
version: 0.9.0-DEV-rev3352-gaf6005729-filters
MP4Box -dash 4000 -profile dashavc264:live video.mp4#video audio.m4a#audio -out finalvideo.m3u8
This results in expected video playback but without an audio track. Adding :dual to the output produces an .mpd manifest that works as expected.
The audio track is referenced in the manifest:
#EXT-X-STREAM-INF:BANDWIDTH=196269,CODECS="mp4a.40.2"
finalvideo_2.m3u8
The contents of that file are never loaded.
|
.m3u8 video ignores audio track
|
https://api.github.com/repos/gpac/gpac/issues/1437/comments
| 3 |
2020-03-23T01:14:35Z
|
2020-03-25T07:58:13Z
|
https://github.com/gpac/gpac/issues/1437
| 585,863,126 | 1,437 |
[
"gpac",
"gpac"
] |
Hi,
avcodec_alloc_context3->avcodec_open2, then ffmpeg prints warnings:

According to ffmeg, the parameters such as width/height are wrong, I check ctx->decoder, its info like the pic shows:

when I set width/height, the same problem is still existing. How to fix it ? By the way, I run on win10.
|
ffdec filter: avcodec_open2 has warnings,when decoding with avcodec_decode_video2, there's error
|
https://api.github.com/repos/gpac/gpac/issues/1434/comments
| 5 |
2020-03-19T10:01:37Z
|
2020-04-20T18:27:02Z
|
https://github.com/gpac/gpac/issues/1434
| 584,294,625 | 1,434 |
[
"gpac",
"gpac"
] |
-mfra: insert movie fragment random offset when fragmenting file (ignored in dash mode)
Why -mfra does not supported in dash mode?
In mp4 file ,stss Box has the information of I-frame.

But when this file dashed, the I-frame information is missing in m4s file.
Is there some command in MP4Box can keep I-frame information into dashed file (m4s file)?
Thanks!
|
Why -mfra does not supported in dash mode?(MP4Box )
|
https://api.github.com/repos/gpac/gpac/issues/1433/comments
| 1 |
2020-03-18T11:03:30Z
|
2020-04-20T18:27:43Z
|
https://github.com/gpac/gpac/issues/1433
| 583,646,837 | 1,433 |
[
"gpac",
"gpac"
] |
**I have this infor about the mp4 file**
[iso file] Unknown box type senc in parent stbl
* Movie Info *
Timescale 1000 - 2 tracks
Computed Duration 00:21:00.233 - Indicated Duration 00:21:00.233
Fragmented File: no
File Brand isom - version 512
Compatible brands: isom iso2 avc1 mp41
Created: UNKNOWN DATE Modified: UNKNOWN DATE
File has no MPEG4 IOD/OD
iTunes Info:
Encoder Software: Lavf58.22.100
1 UDTA types: meta (1)
Track # 1 Info - TrackID 1 - TimeScale 16000
Media Duration 00:21:00.233 - Indicated Duration 00:21:00.233
Track has 1 edit lists: track duration is 00:21:00.233
Media Info: Language "Undetermined (und)" - Type "vide:encv" - 37807 samples
Visual Track layout: x=0 y=0 width=1600 height=900
MPEG-4 Config: Visual Stream - ObjectTypeIndication 0x21
AVC/H264 Video - Visual Size 1600 x 900
AVC Info: 1 SPS - 1 PPS - Profile High @ Level 4
NAL Unit length bits: 32
Chroma format YUV 4:2:0 - Luma bit depth 8 - chroma bit depth 8
SPS#1 hash: EDD294F245B490F4D26FD250F0CFD33EF72EDA97
PPS#1 hash: A3EE4CDCBCFE65012A7D3860B430E3AC70377532
Self-synchronized
*Encrypted stream - CENC scheme cenc (version: major=1, minor=0)
Initialization Vector size: 64 bits
RFC6381 Codec Parameters: avc1.640028
Average GOP length: 227 samples
Track # 2 Info - TrackID 2 - TimeScale 44100
Media Duration 00:21:00.169 - Indicated Duration 00:21:00.169
Track has 1 edit lists: track duration is 00:21:00.170
Media Info: Language "Undetermined (und)" - Type "soun:enca" - 54271 samples
MPEG-4 Config: Audio Stream - ObjectTypeIndication 0x40
MPEG-4 Audio AAC LC - 2 Channel(s) - SampleRate 44100
Synchronized on stream 1
*Encrypted stream - CENC scheme cenc (version: major=1, minor=0)
Initialization Vector size: 64 bits
RFC6381 Codec Parameters: mp4a.40.2
Alternate Group ID 1
All samples are sync
|
What DRM file i have to use for decrypt this mp4 file?
|
https://api.github.com/repos/gpac/gpac/issues/1432/comments
| 13 |
2020-03-18T00:43:47Z
|
2020-03-18T15:40:21Z
|
https://github.com/gpac/gpac/issues/1432
| 583,385,843 | 1,432 |
[
"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 used the current version from Ubuntu 18.04
- [x] I give enough information for contributors to reproduce my issue (meaningful title, github labels, platform and compiler, command-line ...). I can share files if necessary.
Detailed guidelines: http://gpac.io/2013/07/16/how-to-file-a-bug-properly/
I want to convert a mp4 file to make it playable in my Canon camera.
Here is the info of an original from the camera:
```
$ MP4Box -info -v MVI_1324.MOV
[iso file] Current top box start before parsing 0
[iso file] Read Box type ftyp size 24 start 0
[iso file] Current top box start before parsing 24
[iso file] Read Box type moov size 98280 start 24
[iso file] Read Box type udta size 65596 start 32
[iso file] Read Box type CNCV size 20 start 40
[iso file] Read Box type CNDM size 12 start 60
[iso file] Read Box type CNTH size 65552 start 72
[iso file] Read Box type mvhd size 108 start 65628
[iso file] Read Box type trak size 7767 start 65736
[iso file] Read Box type tkhd size 92 start 65744
[iso file] Read Box type mdia size 7667 start 65836
[iso file] Read Box type mdhd size 32 start 65844
[iso file] Read Box type hdlr size 33 start 65876
[iso file] Read Box type minf size 7594 start 65909
[iso file] Read Box type vmhd size 20 start 65917
[iso file] Read Box type hdlr size 33 start 65937
[iso file] Read Box type dinf size 36 start 65970
[iso file] Read Box type dref size 28 start 65978
[iso file] Read Box type alis size 12 start 65994
[iso file] Apple 'alis' box found, not supported - converting to self-pointing 'url '
[iso file] Read Box type stbl size 7497 start 66006
[iso file] Read Box type stsd size 173 start 66014
[iso file] Read Box type avc1 size 157 start 66030
[iso file] Read Box type colr size 18 start 66116
[iso file] Read Box type gama size 12 start 66134
[iso file] Read Box type avcC size 37 start 66146
[iso file] Read Box type VOID size 4 start 66183
[iso file] Read Box type stts size 24 start 66187
[iso file] Read Box type stss size 252 start 66211
[iso file] Read Box type stsc size 28 start 66463
[iso file] Read Box type stsz size 3508 start 66491
[iso file] Read Box type stco size 3504 start 69999
[iso file] Read Box type trak size 702 start 73503
[iso file] Read Box type tkhd size 92 start 73511
[iso file] Read Box type mdia size 602 start 73603
[iso file] Read Box type mdhd size 32 start 73611
[iso file] Read Box type hdlr size 33 start 73643
[iso file] Read Box type minf size 529 start 73676
[iso file] Read Box type smhd size 16 start 73684
[iso file] Read Box type hdlr size 33 start 73700
[iso file] Read Box type dinf size 36 start 73733
[iso file] Read Box type dref size 28 start 73741
[iso file] Read Box type alis size 12 start 73757
[iso file] Apple 'alis' box found, not supported - converting to self-pointing 'url '
[iso file] Read Box type stbl size 436 start 73769
[iso file] Read Box type stsd size 92 start 73777
[iso file] Read Box type raw size 76 start 73793
[iso file] Read Box type stts size 24 start 73869
[iso file] Read Box type stsc size 40 start 73893
[iso file] Read Box type stsz size 20 start 73933
[iso file] Read Box type stco size 252 start 73953
[iso file] Read Box type chan size 24 start 44
[iso file] Read Box type free size 24099 start 74205
[iso file] Current top box start before parsing 98304
[iso file] Read Box type mdat size 84830220 start 98304
* Movie Info *
Timescale 30000 - Duration 00:00:29.095
2 track(s)
Fragmented File: no
File suitable for progressive download (moov before mdat)
File Brand qt - version 537331968
Created: GMT Wed Feb 5 20:17:27 2020
Modified: GMT Wed Feb 5 20:17:27 2020
File has no MPEG4 IOD/OD
3 UDTA types: CNCV (1) CNDM (1) CNTH (1)
Track # 1 Info - TrackID 1 - TimeScale 30000 - Media Duration 00:00:29.095
Media Info: Language "und (und)" - Type "vide:avc1" - 872 samples
Visual Track layout: x=0 y=0 width=1280 height=720
MPEG-4 Config: Visual Stream - ObjectTypeIndication 0x21
AVC/H264 Video - Visual Size 1280 x 720
AVC Info: 1 SPS - 1 PPS - Profile Baseline @ Level 4.1
NAL Unit length bits: 32
SPS#1 hash: 58574513453B4B6BAC5B36691D580ED89FB8E2F5
PPS#1 hash: 7F4E64F60527715F38B21D7814E9A094754DBFF2
Self-synchronized
RFC6381 Codec Parameters: avc1.42e029
Average GOP length: 14 samples
Track # 2 Info - TrackID 2 - TimeScale 12000 - Media Duration 00:00:29.095
Media Info: Language "und (und)" - Type "soun:raw " - 349148 samples
Audio Track - Sample Rate 12000 - 1 channel(s)
[ISOM Tools] codec parameters not known - setting codecs string to default value "raw "
RFC6381 Codec Parameters: raw
All samples are sync
```
Here is the info of the file I want to convert:
```
$ MP4Box -info -v MVI_1324_copy_git.mov
[iso file] Current top box start before parsing 0
[iso file] Read Box type ftyp size 20 start 0
[iso file] Current top box start before parsing 20
[iso file] Read Box type wide size 8 start 20
[iso file] Current top box start before parsing 28
[iso file] Read Box type mdat size 84830220 start 28
[iso file] Current top box start before parsing 84830248
[iso file] Read Box type moov size 13326 start 84830248
[iso file] Read Box type mvhd size 108 start 84830256
[iso file] Read Box type trak size 9892 start 84830364
[iso file] Read Box type tkhd size 92 start 84830372
[iso file] Read Box type edts size 36 start 84830464
[iso file] Read Box type elst size 28 start 84830472
[iso file] Read Box type mdia size 9756 start 84830500
[iso file] Read Box type mdhd size 32 start 84830508
[iso file] Read Box type hdlr size 45 start 84830540
[iso file] Read Box type minf size 9671 start 84830585
[iso file] Read Box type vmhd size 20 start 84830593
[iso file] Read Box type hdlr size 44 start 84830613
[iso file] Read Box type dinf size 36 start 84830657
[iso file] Read Box type dref size 28 start 84830665
[iso file] Read Box type url size 12 start 84830681
[iso file] Read Box type stbl size 9563 start 84830693
[iso file] Read Box type stsd size 139 start 84830701
[iso file] Read Box type avc1 size 123 start 84830717
[iso file] Read Box type avcC size 37 start 84830803
[iso file] Read Box type stts size 24 start 84830840
[iso file] Read Box type stss size 252 start 84830864
[iso file] Read Box type stsc size 4216 start 84831116
[iso file] Read Box type stsz size 3508 start 84835332
[iso file] Read Box type stco size 1416 start 84838840
[iso file] Read Box type trak size 3285 start 84840256
[iso file] Read Box type tkhd size 92 start 84840264
[iso file] Read Box type edts size 36 start 84840356
[iso file] Read Box type elst size 28 start 84840364
[iso file] Read Box type mdia size 3149 start 84840392
[iso file] Read Box type mdhd size 32 start 84840400
[iso file] Read Box type hdlr size 45 start 84840432
[iso file] Read Box type minf size 3064 start 84840477
[iso file] Read Box type smhd size 16 start 84840485
[iso file] Read Box type hdlr size 44 start 84840501
[iso file] Read Box type dinf size 36 start 84840545
[iso file] Read Box type dref size 28 start 84840553
[iso file] Read Box type url size 12 start 84840569
[iso file] Read Box type stbl size 2960 start 84840581
[iso file] Read Box type stsd size 76 start 84840589
[iso file] Read Box type raw size 60 start 84840605
[iso file] Read Box type stts size 24 start 84840665
[iso file] Read Box type stsc size 1420 start 84840689
[iso file] Read Box type stsz size 20 start 84842109
[iso file] Read Box type stco size 1412 start 84842129
[iso file] Read Box type chan size 24 start 28
[iso file] Read Box type udta size 33 start 84843541
[iso file] Read Box type .swr size 25 start 84843549
* Movie Info *
Timescale 1000 - Duration 00:00:29.096
2 track(s)
Fragmented File: no
File Brand qt - version 512
Created: UNKNOWN DATE Modified: UNKNOWN DATE
File has no MPEG4 IOD/OD
1 UDTA types: .swr (1)
Track # 1 Info - TrackID 1 - TimeScale 30000 - Media Duration 00:00:29.095
Track has 1 edit lists: track duration is 00:00:29.096
Media Info: Language "und (und)" - Type "vide:avc1" - 872 samples
Visual Track layout: x=0 y=0 width=1280 height=720
MPEG-4 Config: Visual Stream - ObjectTypeIndication 0x21
AVC/H264 Video - Visual Size 1280 x 720
AVC Info: 1 SPS - 1 PPS - Profile Baseline @ Level 4.1
NAL Unit length bits: 32
SPS#1 hash: 58574513453B4B6BAC5B36691D580ED89FB8E2F5
PPS#1 hash: 7F4E64F60527715F38B21D7814E9A094754DBFF2
Self-synchronized
RFC6381 Codec Parameters: avc1.42e029
Average GOP length: 14 samples
Track # 2 Info - TrackID 2 - TimeScale 12000 - Media Duration 00:00:29.095
Track has 1 edit lists: track duration is 00:00:29.096
Media Info: Language "und (und)" - Type "soun:raw " - 349148 samples
Audio Track - Sample Rate 12000 - 1 channel(s)
[ISOM Tools] codec parameters not known - setting codecs string to default value "raw "
RFC6381 Codec Parameters: raw
Alternate Group ID 1
All samples are sync
```
As you can see there is a big udta box at the beginning inside the moov box. I have extracted this box into a file (attached). How can I insert this at the right place in my target?
[MVI_1324.udta.zip](https://github.com/gpac/gpac/files/4341042/MVI_1324.udta.zip)
Please feel free to ask for additional information.
|
How to insert a udta box into a moov box in a mp4 file
|
https://api.github.com/repos/gpac/gpac/issues/1431/comments
| 9 |
2020-03-17T01:33:48Z
|
2020-04-20T14:50:22Z
|
https://github.com/gpac/gpac/issues/1431
| 582,692,958 | 1,431 |
[
"gpac",
"gpac"
] |
When MP4Box imports an ADTS file that indicates that it contains an MPEG-2 AAC encoding, as opposed to an MPEG-4 AAC encoding, it writes it using object type indication 0x67 instead of object type indication 0x40, presumably in order to distinguish it as compatible with MPEG-2.
This in itself is problematic, because object type 0x67 is far less interoperable than object type 0x40, which is also capable of carrying MPEG-2 AAC encodings.
But even worse for interoperability, MP4Box writes object type 0x67 incorrectly. According to ISO/IEC 14496-3 § 9.D.2.1, for object types 0x66, 0x67, and 0x68 the decSpecificInfo is supposed to be an adif_Header(), the first four bytes of which are ‘ADIF’. But MP4Box is instead writing the same AudioSpecificConfig() that it writes for mp4a.40.2, correctly in that case but incorrectly in this case.
The best possible interoperability would be achieved if MP4Box were always to store AAC encodings using object type 0x40, regardless of whether they are imported from a file that indicates that they are compatible with MPEG-2.
Attaching an MPEG-2 AAC encoding in an ADTS file.
[Kimiko Ishizaka - Bach - Well-Tempered Clavier, Book 1 - 29 Prelude No. 15 in G major, BWV 860.FhG.MPEG-2.adts.zip](https://github.com/gpac/gpac/files/4333140/Kimiko.Ishizaka.-.Bach.-.Well-Tempered.Clavier.Book.1.-.29.Prelude.No.15.in.G.major.BWV.860.FhG.MPEG-2.adts.zip)
|
MP4Box writes audio object type 0x67 incorrectly
|
https://api.github.com/repos/gpac/gpac/issues/1430/comments
| 1 |
2020-03-14T18:13:15Z
|
2020-05-06T13:19:19Z
|
https://github.com/gpac/gpac/issues/1430
| 581,312,557 | 1,430 |
[
"gpac",
"gpac"
] |
I hope this is the proper place to ask this question I'm using MP4Box and FFmpeg to generate dash files everything seems to be working great but I'm generating 4 files but in .mpd only 3 are listed. Why am I getting a 4th file? I've separated the video and audio from the source .mp4 using FFmpeg then I dash those. Here is the commands I use. Yes the only way it works is if I specify MP4Box twice. I'm new to this so please forgive me if this isn't the correct way to do things.
MP4Box MP4Box -add test0.aac" -dash 10000 -frag 1000 -rap test1.mp4"
How do I verify that the files I'm using are streaming correctly? Is their ability to play enough?
Thanks ahead of time.
--calmchess
|
New to MP4Box expert advice requested
|
https://api.github.com/repos/gpac/gpac/issues/1429/comments
| 3 |
2020-03-11T00:55:52Z
|
2020-07-31T09:55:37Z
|
https://github.com/gpac/gpac/issues/1429
| 578,943,906 | 1,429 |
[
"gpac",
"gpac"
] |
I download it from http://gpac.sourceforge.net/ and install it, but when I open it, it meets some errors:
<img width="874" alt="屏幕快照 2020-03-09 下午7 20 05" src="https://user-images.githubusercontent.com/39023511/76208726-3204f680-623b-11ea-88ff-8480beefe604.png">
seems like because version of liblzma.5.dylib is too old, but how to update this library?
|
GPAC can't open in Mac OS
|
https://api.github.com/repos/gpac/gpac/issues/1428/comments
| 2 |
2020-03-09T11:27:43Z
|
2020-03-09T13:30:28Z
|
https://github.com/gpac/gpac/issues/1428
| 577,838,279 | 1,428 |
[
"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/
System info:
Ubuntu 18.04.6 LTS, X64, gcc version 7.4.0, gpac (latest [master](https://github.com/gpac/gpac/commit/8c5e847185d74462d674ee7d28fb46c29dae6dd2))
Compile Command:
```asm
$ CC="gcc -fsanitize=address -g" CXX="g++ -fsanitize=address -g" ./configure --static-mp4box
$ make
```
Run Command:
```asm
./MP4Box -dash 1000 crash_5
```
ASAN info:
```asm
==6600==ERROR: AddressSanitizer: heap-use-after-free on address 0x6070000002c0 at pc 0x55c1a8fcde72 bp 0x7ffc71eb5570 sp 0x7ffc71eb5560
READ of size 8 at 0x6070000002c0 thread T0
#0 0x55c1a8fcde71 in gf_m2ts_process_pmt media_tools/mpegts.c:2568
#1 0x55c1a8fbf58b in gf_m2ts_section_complete media_tools/mpegts.c:1619
#2 0x55c1a8fc0013 in gf_m2ts_gather_section media_tools/mpegts.c:1749
#3 0x55c1a8fc683e in gf_m2ts_process_packet media_tools/mpegts.c:3489
#4 0x55c1a8fc683e in gf_m2ts_process_data media_tools/mpegts.c:3550
#5 0x55c1a8fd61f6 in gf_m2ts_probe_file media_tools/mpegts.c:4689
#6 0x55c1a8efdb10 in gf_dash_segmenter_probe_input media_tools/dash_segmenter.c:5505
#7 0x55c1a8f2482a in gf_dasher_add_input media_tools/dash_segmenter.c:6669
#8 0x55c1a8affcce in mp4boxMain /home/dr3dd/fuzzing/gpac/applications/mp4box/main.c:4705
#9 0x7f9a1d848b96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
#10 0x55c1a8aee9a9 in _start (/home/dr3dd/fuzzing/gpac/bin/gcc/MP4Box+0x1659a9)
0x6070000002c0 is located 0 bytes inside of 72-byte region [0x6070000002c0,0x607000000308)
freed by thread T0 here:
#0 0x7f9a1e4d07b8 in __interceptor_free (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xde7b8)
#1 0x55c1a8fcb699 in gf_m2ts_process_pmt media_tools/mpegts.c:2560
previously allocated by thread T0 here:
#0 0x7f9a1e4d0b50 in __interceptor_malloc (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xdeb50)
#1 0x55c1a8fc18be in gf_m2ts_process_pat media_tools/mpegts.c:2695
SUMMARY: AddressSanitizer: heap-use-after-free media_tools/mpegts.c:2568 in gf_m2ts_process_pmt
Shadow bytes around the buggy address:
0x0c0e7fff8000: fa fa fa fa 00 00 00 00 00 00 00 00 00 fa fa fa
0x0c0e7fff8010: fa fa 00 00 00 00 00 00 00 00 00 00 fa fa fa fa
0x0c0e7fff8020: 00 00 00 00 00 00 00 00 00 00 fa fa fa fa fd fd
0x0c0e7fff8030: fd fd fd fd fd fd fd fd fa fa fa fa 00 00 00 00
0x0c0e7fff8040: 00 00 00 00 00 fa fa fa fa fa 00 00 00 00 00 00
=>0x0c0e7fff8050: 00 00 00 00 fa fa fa fa[fd]fd fd fd fd fd fd fd
0x0c0e7fff8060: fd fa fa fa fa fa 00 00 00 00 00 00 00 00 00 00
0x0c0e7fff8070: fa fa fa fa 00 00 00 00 00 00 00 00 00 fa fa fa
0x0c0e7fff8080: fa fa 00 00 00 00 00 00 00 00 00 00 fa fa fa fa
0x0c0e7fff8090: 00 00 00 00 00 00 00 00 00 fa fa fa fa fa 00 00
0x0c0e7fff80a0: 00 00 00 00 00 00 00 00 fa fa fa fa 00 00 00 00
Shadow byte legend (one shadow byte represents 8 application bytes):
Addressable: 00
Partially addressable: 01 02 03 04 05 06 07
Heap left redzone: fa
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack after return: f5
Stack use after scope: f8
Global redzone: f9
Global init order: f6
Poisoned by user: f7
Container overflow: fc
Array cookie: ac
Intra object redzone: bb
ASan internal: fe
Left alloca redzone: ca
Right alloca redzone: cb
==6600==ABORTING
```
crash file:
[crash_6.zip](https://github.com/gpac/gpac/files/4302461/crash_6.zip)
|
AddressSanitizer: heap-use-after-free media_tools/mpegts.c:2568 in gf_m2ts_process_pmt
|
https://api.github.com/repos/gpac/gpac/issues/1427/comments
| 2 |
2020-03-07T20:16:04Z
|
2020-06-11T17:18:49Z
|
https://github.com/gpac/gpac/issues/1427
| 577,394,374 | 1,427 |
[
"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/
System info:
Ubuntu 18.04.6 LTS, X64, gcc version 7.4.0, gpac (latest [master](https://github.com/gpac/gpac/commit/8c5e847185d74462d674ee7d28fb46c29dae6dd2))
Compile Command:
```asm
$ CC="gcc -fsanitize=address -g" CXX="g++ -fsanitize=address -g" ./configure --static-mp4box
$ make
```
Run Command:
```asm
./MP4Box -dash 1000 crash_5
```
ASAN info:
```asm
==6333==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x602000000796 at pc 0x557cdd6202fa bp 0x7ffef9b50cf0 sp 0x7ffef9b50ce0
READ of size 1 at 0x602000000796 thread T0
#0 0x557cdd6202f9 in gf_m2ts_process_pmt media_tools/mpegts.c:2260
#1 0x557cdd61158b in gf_m2ts_section_complete media_tools/mpegts.c:1619
#2 0x557cdd612013 in gf_m2ts_gather_section media_tools/mpegts.c:1749
#3 0x557cdd61883e in gf_m2ts_process_packet media_tools/mpegts.c:3489
#4 0x557cdd61883e in gf_m2ts_process_data media_tools/mpegts.c:3550
#5 0x557cdd54d132 in dasher_get_ts_demux media_tools/dash_segmenter.c:4651
#6 0x557cdd54fb43 in gf_dash_segmenter_probe_input media_tools/dash_segmenter.c:5508
#7 0x557cdd57682a in gf_dasher_add_input media_tools/dash_segmenter.c:6669
#8 0x557cdd151cce in mp4boxMain /home/dr3dd/fuzzing/gpac/applications/mp4box/main.c:4705
#9 0x7f4edd652b96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
#10 0x557cdd1409a9 in _start (/home/dr3dd/fuzzing/gpac/bin/gcc/MP4Box+0x1659a9)
0x602000000796 is located 0 bytes to the right of 6-byte region [0x602000000790,0x602000000796)
allocated by thread T0 here:
#0 0x7f4ede2dab50 in __interceptor_malloc (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xdeb50)
#1 0x557cdd610d38 in gf_m2ts_section_complete media_tools/mpegts.c:1559
SUMMARY: AddressSanitizer: heap-buffer-overflow media_tools/mpegts.c:2260 in gf_m2ts_process_pmt
Shadow bytes around the buggy address:
0x0c047fff80a0: fa fa 00 00 fa fa 00 00 fa fa 00 00 fa fa 00 00
0x0c047fff80b0: fa fa 00 00 fa fa 00 00 fa fa 00 00 fa fa 00 00
0x0c047fff80c0: fa fa 00 00 fa fa 00 00 fa fa 00 00 fa fa 00 00
0x0c047fff80d0: fa fa 00 00 fa fa 00 00 fa fa 00 00 fa fa 00 00
0x0c047fff80e0: fa fa 00 00 fa fa 00 01 fa fa 00 00 fa fa 00 00
=>0x0c047fff80f0: fa fa[06]fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8100: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8110: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8120: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8130: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8140: 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
==6333==ABORTING
```
crash file:
[crash_5.zip](https://github.com/gpac/gpac/files/4302456/crash_5.zip)
|
AddressSanitizer: heap-buffer-overflow media_tools/mpegts.c:2260 in gf_m2ts_process_pmt
|
https://api.github.com/repos/gpac/gpac/issues/1426/comments
| 1 |
2020-03-07T20:12:41Z
|
2020-06-11T17:19:03Z
|
https://github.com/gpac/gpac/issues/1426
| 577,393,979 | 1,426 |
[
"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/
System info:
Ubuntu 18.04.6 LTS, X64, gcc version 7.4.0, gpac (latest [master](https://github.com/gpac/gpac/commit/8c5e847185d74462d674ee7d28fb46c29dae6dd2))
Compile Command:
```asm
$ CC="gcc -fsanitize=address -g" CXX="g++ -fsanitize=address -g" ./configure --static-mp4box
$ make
```
Run Command:
```asm
./MP4Box -dash 1000 crash_4
```
ASAN info:
```asm
==3870==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x603000000084 at pc 0x5563f87acaa8 bp 0x7ffde8d66f50 sp 0x7ffde8d66f40
READ of size 1 at 0x603000000084 thread T0
#0 0x5563f87acaa7 in BS_ReadByte utils/bitstream.c:253
#1 0x5563f87acaa7 in gf_bs_read_bit utils/bitstream.c:287
#2 0x5563f87acc7d in gf_bs_read_int utils/bitstream.c:319
#3 0x5563f8ae9270 in gf_odf_read_cc_name odf/odf_code.c:1905
#4 0x5563f8ad7fb2 in gf_odf_parse_descriptor odf/descriptors.c:159
#5 0x5563f8ae17fe in gf_odf_read_iod odf/odf_code.c:505
#6 0x5563f8ad7fb2 in gf_odf_parse_descriptor odf/descriptors.c:159
#7 0x5563f8c2ac7d in gf_m2ts_process_pmt media_tools/mpegts.c:2196
#8 0x5563f8c1d58b in gf_m2ts_section_complete media_tools/mpegts.c:1619
#9 0x5563f8c1e013 in gf_m2ts_gather_section media_tools/mpegts.c:1749
#10 0x5563f8c2483e in gf_m2ts_process_packet media_tools/mpegts.c:3489
#11 0x5563f8c2483e in gf_m2ts_process_data media_tools/mpegts.c:3550
#12 0x5563f8c341f6 in gf_m2ts_probe_file media_tools/mpegts.c:4689
#13 0x5563f8b5bb10 in gf_dash_segmenter_probe_input media_tools/dash_segmenter.c:5505
#14 0x5563f8b8282a in gf_dasher_add_input media_tools/dash_segmenter.c:6669
#15 0x5563f875dcce in mp4boxMain /home/dr3dd/fuzzing/gpac/applications/mp4box/main.c:4705
#16 0x7fe2f4e87b96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
#17 0x5563f874c9a9 in _start (/home/dr3dd/fuzzing/gpac/bin/gcc/MP4Box+0x1659a9)
0x603000000084 is located 0 bytes to the right of 20-byte region [0x603000000070,0x603000000084)
allocated by thread T0 here:
#0 0x7fe2f5b0fb50 in __interceptor_malloc (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xdeb50)
#1 0x5563f8c1cd38 in gf_m2ts_section_complete media_tools/mpegts.c:1559
SUMMARY: AddressSanitizer: heap-buffer-overflow utils/bitstream.c:253 in BS_ReadByte
Shadow bytes around the buggy address:
0x0c067fff7fc0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c067fff7fd0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c067fff7fe0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c067fff7ff0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c067fff8000: fa fa 00 00 04 fa fa fa 00 00 07 fa fa fa 00 00
=>0x0c067fff8010:[04]fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c067fff8020: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c067fff8030: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c067fff8040: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c067fff8050: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c067fff8060: 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
==3870==ABORTING
```
here is crash file:
[crash_4.zip](https://github.com/gpac/gpac/files/4302450/crash_4.zip)
|
AddressSanitizer: heap-buffer-overflow utils/bitstream.c:253 in BS_ReadByte
|
https://api.github.com/repos/gpac/gpac/issues/1425/comments
| 1 |
2020-03-07T20:08:42Z
|
2020-06-11T17:19:15Z
|
https://github.com/gpac/gpac/issues/1425
| 577,393,487 | 1,425 |
[
"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/
System info:
Ubuntu 18.04.6 LTS, X64, gcc version 7.4.0, gpac (latest master 4a7a63)
Compile Command:
```asm
$ CC="gcc -fsanitize=address -g" CXX="g++ -fsanitize=address -g" ./configure --static-mp4box
$ make
```
Run Command:
```asm
./MP4Box -dash 1000 crash_3
```
ASAN info:
```asm
=================================================================
==13768==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000004 (pc 0x562656a3daf0 bp 0x000000000001 sp 0x7ffee325fef0 T0)
==13768==The signal is caused by a READ memory access.
==13768==Hint: address points to the zero page.
#0 0x562656a3daef in gf_dash_segmenter_probe_input media_tools/dash_segmenter.c:5264
#1 0x562656a6350a in gf_dasher_add_input media_tools/dash_segmenter.c:6669
#2 0x56265663ea6f in mp4boxMain /home/dr3dd/fuzzing/gpac/applications/mp4box/main.c:4704
#3 0x7fab411e9b96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
#4 0x56265662d7a9 in _start (/home/dr3dd/fuzzing/gpac/bin/gcc/MP4Box+0x1657a9)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV media_tools/dash_segmenter.c:5264 in gf_dash_segmenter_probe_input
==13768==ABORTING
```
gdb info:
```asm
(gdb) r -dash 1000 ~/gpac_poc/crash_3
Starting program: /home/dr3dd/fuzzing/gpac/bin/gcc/MP4Box -dash 1000 ~/gpac_poc/crash_2
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Program received signal SIGSEGV, Segmentation fault.
0x0000555555bf408c in gf_dash_segmenter_probe_input (io_dash_inputs=io_dash_inputs@entry=0x5555562c4978,
nb_dash_inputs=nb_dash_inputs@entry=0x5555562c4980, idx=idx@entry=0) at media_tools/dash_segmenter.c:5264
5264 if (esd && (esd->decoderConfig->objectTypeIndication == GPAC_OTI_VIDEO_HEVC || esd->decoderConfig->objectTypeIndication == GPAC_OTI_VIDEO_LHVC)) {
(gdb) bt
#0 0x0000555555bf408c in gf_dash_segmenter_probe_input (io_dash_inputs=io_dash_inputs@entry=0x5555562c4978,
nb_dash_inputs=nb_dash_inputs@entry=0x5555562c4980, idx=idx@entry=0) at media_tools/dash_segmenter.c:5264
#1 0x0000555555c2dabb in gf_dasher_add_input (dasher=0x5555562c4970, input=<optimized out>)
at media_tools/dash_segmenter.c:6669
#2 0x00005555555c88f5 in mp4boxMain (argc=<optimized out>, argv=<optimized out>) at main.c:4704
#3 0x00007ffff722bb97 in __libc_start_main () from /lib/x86_64-linux-gnu/libc.so.6
#4 0x00005555555a3e0a in _start () at main.c:5985
(gdb)
```
Here is crash file:
[crash_3.zip](https://github.com/gpac/gpac/files/4272293/crash_3.zip)
Thanks
dr3dd
|
AddressSanitizer: NULL pointer dereference in media_tools/dash_segmenter.c:5264 in gf_dash_segmenter_probe_input
|
https://api.github.com/repos/gpac/gpac/issues/1423/comments
| 1 |
2020-03-01T19:19:26Z
|
2020-06-11T17:19:33Z
|
https://github.com/gpac/gpac/issues/1423
| 573,599,771 | 1,423 |
[
"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/
System info:
Ubuntu 18.04.6 LTS, X64, gcc version 7.4.0, gpac (latest master 4a7a63)
Compile Command:
```asm
$ CC="gcc -fsanitize=address -g" CXX="g++ -fsanitize=address -g" ./configure --static-mp4box
$ make
```
Run Command:
```asm
./MP4Box -dash 1000 crash_2
```
ASAN info:
```asm
=================================================================
==12759==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x6020000000d3 at pc 0x55feb146edf3 bp 0x7fff627852e0 sp 0x7fff627852d0
READ of size 1 at 0x6020000000d3 thread T0
#0 0x55feb146edf2 in gf_m2ts_section_complete media_tools/mpegts.c:1471
#1 0x55feb146f3ab in gf_m2ts_gather_section media_tools/mpegts.c:1740
#2 0x55feb147524c in gf_m2ts_process_packet media_tools/mpegts.c:3440
#3 0x55feb147524c in gf_m2ts_process_data media_tools/mpegts.c:3507
#4 0x55feb1484886 in gf_m2ts_probe_file media_tools/mpegts.c:4641
#5 0x55feb13ac7f0 in gf_dash_segmenter_probe_input media_tools/dash_segmenter.c:5505
#6 0x55feb13d350a in gf_dasher_add_input media_tools/dash_segmenter.c:6669
#7 0x55feb0faea6f in mp4boxMain /home/dr3dd/fuzzing/gpac/applications/mp4box/main.c:4704
#8 0x7f1e4bd95b96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
#9 0x55feb0f9d7a9 in _start (/home/dr3dd/fuzzing/gpac/bin/gcc/MP4Box+0x1657a9)
0x6020000000d3 is located 0 bytes to the right of 3-byte region [0x6020000000d0,0x6020000000d3)
allocated by thread T0 here:
#0 0x7f1e4ca1df40 in realloc (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xdef40)
#1 0x55feb146f309 in gf_m2ts_gather_section media_tools/mpegts.c:1730
SUMMARY: AddressSanitizer: heap-buffer-overflow media_tools/mpegts.c:1471 in gf_m2ts_section_complete
Shadow bytes around the buggy address:
0x0c047fff7fc0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c047fff7fd0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c047fff7fe0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c047fff7ff0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c047fff8000: fa fa 02 fa fa fa 00 00 fa fa 00 00 fa fa 00 00
=>0x0c047fff8010: fa fa 00 00 fa fa 00 00 fa fa[03]fa fa fa fa fa
0x0c047fff8020: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8030: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8040: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8050: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8060: 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
==12759==ABORTING
```
gdb Info:
```asm
Program received signal SIGSEGV, Segmentation fault.
0x0000555555d45a2d in gf_m2ts_process_pmt (ts=<optimized out>, pmt=<optimized out>, sections=<optimized out>,
table_id=<optimized out>, ex_table_id=<optimized out>, version_number=<optimized out>,
last_section_number=<optimized out>, status=<optimized out>) at media_tools/mpegts.c:2535
2535 gf_list_add(pmt->program->streams, es);
(gdb) bt
#0 0x0000555555d45a2d in gf_m2ts_process_pmt (ts=<optimized out>, pmt=<optimized out>, sections=<optimized out>,
table_id=<optimized out>, ex_table_id=<optimized out>, version_number=<optimized out>,
last_section_number=<optimized out>, status=<optimized out>) at media_tools/mpegts.c:2535
#1 0x0000555555d35506 in gf_m2ts_section_complete (ts=ts@entry=0x5555562c5a40, sec=sec@entry=0x5555562d7440,
ses=ses@entry=0x5555562d7390) at media_tools/mpegts.c:1610
#2 0x0000555555d3638a in gf_m2ts_gather_section (ts=ts@entry=0x5555562c5a40, sec=0x5555562d7440,
ses=ses@entry=0x5555562d7390, data=0x7ffffffa6821 "", data@entry=0x7ffffffa681a "", data_size=<optimized out>,
hdr=<optimized out>, hdr=<optimized out>) at media_tools/mpegts.c:1740
#3 0x0000555555d3f3be in gf_m2ts_process_packet (data=0x7ffffffa681a "", ts=0x5555562c5a40)
at media_tools/mpegts.c:3446
#4 gf_m2ts_process_data (ts=ts@entry=0x5555562c5a40, data=data@entry=0x7ffffffa6700 "", data_size=<optimized out>)
at media_tools/mpegts.c:3507
#5 0x0000555555d54ca1 in gf_m2ts_probe_file (fileName=<optimized out>) at media_tools/mpegts.c:4641
#6 0x0000555555bf0844 in gf_dash_segmenter_probe_input (io_dash_inputs=io_dash_inputs@entry=0x5555562c4978,
nb_dash_inputs=nb_dash_inputs@entry=0x5555562c4980, idx=idx@entry=0) at media_tools/dash_segmenter.c:5505
#7 0x0000555555c2dabb in gf_dasher_add_input (dasher=0x5555562c4970, input=<optimized out>)
at media_tools/dash_segmenter.c:6669
#8 0x00005555555c88f5 in mp4boxMain (argc=<optimized out>, argv=<optimized out>) at main.c:4704
#9 0x00007ffff722bb97 in __libc_start_main () from /lib/x86_64-linux-gnu/libc.so.6
#10 0x00005555555a3e0a in _start () at main.c:5985
```
here is crash file:
[crash_2.zip](https://github.com/gpac/gpac/files/4272267/crash_2.zip)
Thanks
dr3dd
|
AddressSanitizer: heap-buffer-overflow media_tools/mpegts.c:1471 in gf_m2ts_section_complete
|
https://api.github.com/repos/gpac/gpac/issues/1422/comments
| 0 |
2020-03-01T18:58:01Z
|
2020-03-06T17:21:35Z
|
https://github.com/gpac/gpac/issues/1422
| 573,596,583 | 1,422 |
[
"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/
System info:
Ubuntu 18.04.6 LTS, X64, gcc version 7.4.0, gpac (latest master 4a7a63)
Compile Command:
```asm
$ CC="gcc -fsanitize=address -g" CXX="g++ -fsanitize=address -g" ./configure --static-mp4box
$ make
```
Run Command:
```asm
./MP4Box -dash 1000 crsh1
```
ASAN info:
```asm
=================================================================
==9568==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x602000000491 at pc 0x55a56f2ac689 bp 0x7fff440c4d00 sp 0x7fff440c4cf0
READ of size 1 at 0x602000000491 thread T0
#0 0x55a56f2ac688 in gf_m2ts_process_pmt media_tools/mpegts.c:2163
#1 0x55a56f29e975 in gf_m2ts_section_complete media_tools/mpegts.c:1610
#2 0x55a56f29f3ab in gf_m2ts_gather_section media_tools/mpegts.c:1740
#3 0x55a56f2a519e in gf_m2ts_process_packet media_tools/mpegts.c:3446
#4 0x55a56f2a519e in gf_m2ts_process_data media_tools/mpegts.c:3507
#5 0x55a56f2b4886 in gf_m2ts_probe_file media_tools/mpegts.c:4641
#6 0x55a56f1dc7f0 in gf_dash_segmenter_probe_input media_tools/dash_segmenter.c:5505
#7 0x55a56f20350a in gf_dasher_add_input media_tools/dash_segmenter.c:6669
#8 0x55a56eddea6f in mp4boxMain /home/dr3dd/fuzzing/gpac/applications/mp4box/main.c:4704
#9 0x7f56187cfb96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
#10 0x55a56edcd7a9 in _start (/home/dr3dd/fuzzing/gpac/bin/gcc/MP4Box+0x1657a9)
0x602000000491 is located 0 bytes to the right of 1-byte region [0x602000000490,0x602000000491)
allocated by thread T0 here:
#0 0x7f5619457b50 in __interceptor_malloc (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xdeb50)
#1 0x55a56f29dfb5 in gf_m2ts_section_complete media_tools/mpegts.c:1550
#2 0x55a56f664196 (/home/dr3dd/fuzzing/gpac/bin/gcc/MP4Box+0x9fc196)
SUMMARY: AddressSanitizer: heap-buffer-overflow media_tools/mpegts.c:2163 in gf_m2ts_process_pmt
Shadow bytes around the buggy address:
0x0c047fff8040: fa fa 00 00 fa fa 00 00 fa fa 00 00 fa fa 00 00
0x0c047fff8050: fa fa 00 00 fa fa 00 00 fa fa 00 00 fa fa 00 00
0x0c047fff8060: fa fa 00 00 fa fa 00 00 fa fa 00 00 fa fa 00 00
0x0c047fff8070: fa fa 00 00 fa fa 00 00 fa fa 00 00 fa fa 00 00
0x0c047fff8080: fa fa 00 00 fa fa 03 fa fa fa 00 00 fa fa 00 00
=>0x0c047fff8090: fa fa[01]fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff80a0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff80b0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff80c0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff80d0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff80e0: 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
==9568==ABORTING
```
gdb Info:
```asm
Program received signal SIGSEGV, Segmentation fault.
0x0000555555d47488 in gf_m2ts_process_pmt (ts=<optimized out>, pmt=<optimized out>, sections=<optimized out>, table_id=<optimized out>, ex_table_id=<optimized out>,
version_number=<optimized out>, last_section_number=<optimized out>, status=<optimized out>) at media_tools/mpegts.c:2541
2541 if (es->stream_type == GF_M2TS_VIDEO_HEVC) nb_hevc++;
(gdb) bt
#0 0x0000555555d47488 in gf_m2ts_process_pmt (ts=<optimized out>, pmt=<optimized out>, sections=<optimized out>, table_id=<optimized out>, ex_table_id=<optimized out>,
version_number=<optimized out>, last_section_number=<optimized out>, status=<optimized out>) at media_tools/mpegts.c:2541
#1 0x0000555555d35506 in gf_m2ts_section_complete (ts=ts@entry=0x5555562c5a40, sec=sec@entry=0x5555562d74a0, ses=ses@entry=0x5555562d73f0) at media_tools/mpegts.c:1610
#2 0x0000555555d3638a in gf_m2ts_gather_section (ts=ts@entry=0x5555562c5a40, sec=0x5555562d74a0, ses=ses@entry=0x5555562d73f0, data=0x7ffffffa680d "",
data@entry=0x7ffffffa67ef "", data_size=<optimized out>, hdr=<optimized out>, hdr=<optimized out>) at media_tools/mpegts.c:1740
#3 0x0000555555d3f3be in gf_m2ts_process_packet (data=0x7ffffffa67ef "", ts=0x5555562c5a40) at media_tools/mpegts.c:3446
#4 gf_m2ts_process_data (ts=ts@entry=0x5555562c5a40, data=data@entry=0x7ffffffa66e0 "\377\377\377\376zWCG@", data_size=<optimized out>) at media_tools/mpegts.c:3507
#5 0x0000555555d54ca1 in gf_m2ts_probe_file (fileName=<optimized out>) at media_tools/mpegts.c:4641
#6 0x0000555555bf0844 in gf_dash_segmenter_probe_input (io_dash_inputs=io_dash_inputs@entry=0x5555562c4978, nb_dash_inputs=nb_dash_inputs@entry=0x5555562c4980,
idx=idx@entry=0) at media_tools/dash_segmenter.c:5505
#7 0x0000555555c2dabb in gf_dasher_add_input (dasher=0x5555562c4970, input=<optimized out>) at media_tools/dash_segmenter.c:6669
#8 0x00005555555c88f5 in mp4boxMain (argc=<optimized out>, argv=<optimized out>) at main.c:4704
#9 0x00007ffff722bb97 in __libc_start_main () from /lib/x86_64-linux-gnu/libc.so.6
#10 0x00005555555a3e0a in _start () at main.c:5985
(gdb)
```
here is crash file:
[crsh1.zip](https://github.com/gpac/gpac/files/4271005/crsh1.zip)
|
AddressSanitizer: heap-buffer-overflow media_tools/mpegts.c:2163 in gf_m2ts_process_pmt
|
https://api.github.com/repos/gpac/gpac/issues/1421/comments
| 0 |
2020-02-29T21:56:39Z
|
2020-03-06T17:21:34Z
|
https://github.com/gpac/gpac/issues/1421
| 573,418,387 | 1,421 |
[
"gpac",
"gpac"
] |
I tried to find similar issue before writing this.
I have videos that are split up with associating caption file (TTML)
file1.mp4
file1.ttml
file2.mp4
file2.ttml
Combining videos (concat) works fine. My issue lies in the fact that when I concate ttml into the mp4 file. No matter which video/file, the first line of captions are always skipped then all captions plays beautifully.
I use this command line:
MP4Box -add file1.ttml file1.mp4
This imports captions but skips the first line of any video no matter how late the first line is being spoken in the video. I have no plans to covert to SRT because SRT loses important information. I want to preserve original caption positions in TTML file.
I tried with multiple different video sources and first line is always skipped. Therefore it is a bug. I hope this is something the developers would look into, please and thank you.
|
Always miss the first line of captions
|
https://api.github.com/repos/gpac/gpac/issues/1420/comments
| 4 |
2020-02-28T00:47:33Z
|
2020-09-03T14:04:22Z
|
https://github.com/gpac/gpac/issues/1420
| 572,450,013 | 1,420 |
[
"gpac",
"gpac"
] |
I have checked the documentation, finding out that we do have ways to read the metadata for a video, but the way to locate that whether the metadata is at the beginning or the end of the video is not clarified.
|
How to get the position of metadata?
|
https://api.github.com/repos/gpac/gpac/issues/1419/comments
| 4 |
2020-02-25T10:36:52Z
|
2020-03-02T16:57:15Z
|
https://github.com/gpac/gpac/issues/1419
| 570,472,402 | 1,419 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.