issue_owner_repo listlengths 2 2 | issue_body stringlengths 0 261k ⌀ | issue_title stringlengths 1 925 | issue_comments_url stringlengths 56 81 | issue_comments_count int64 0 2.5k | issue_created_at stringlengths 20 20 | issue_updated_at stringlengths 20 20 | issue_html_url stringlengths 37 62 | issue_github_id int64 387k 2.46B | issue_number int64 1 127k |
|---|---|---|---|---|---|---|---|---|---|
[
"gpac",
"gpac"
] | Hi,
I am trying to stream 360 tiled video content. I am streaming video from 360 camera with rtmp to nginx server and generating video content with this:
gpac -i rtmp://localhost/live ffsws:FID=S -+kvazaar-params=tiles=3x3,slices=tiles,mv-constraint=frametilemargin,rc-algorithm=lambda enc:SID=S:c=libkvazaar:b=1m:fintra=1:rc @ tilesplit:FID=1 enc:SID=S:c=libkvazaar:b=200k:fintra=1:rc @ tilesplit:FID=2 -o live.mpd:SID=1,2:dmode=dynamic
so this produces mpd file and a lot of m4s files. I would like to understand the background of this command (what are the proccesses between input file and mpd output) and I wasn't been able to find some documentation, so I am wondering if you could provide me some information or documentation file.
Secondly I would like to stream generated mpd file and play it in mp4client. I found this: https://github.com/gpac/gpac/wiki/Tiled-Streaming#how-to-stream-360-video-content, so if I understand correctly, all I should do is
m4pclient http://localhost/live.mpd#360LIVE
and this produces hls stream? So on the client side I would select an input http://localhost/live.mpd and it should play?
Thanks for all the information
| Streaming 360 video content | https://api.github.com/repos/gpac/gpac/issues/1870/comments | 4 | 2021-08-04T10:46:55Z | 2021-09-01T16:08:51Z | https://github.com/gpac/gpac/issues/1870 | 960,239,101 | 1,870 |
[
"gpac",
"gpac"
] | Hello,
I have a problem with hls playlists,I don't know if this is a bug, or if I am missing an option somewhere.
I tested with 1.0.1, and the last master version.
I tested this command
```bash
MP4Box -dash 4000 \
-profile onDemand \
transcoded_720.mp4#video \
transcoded_720.mp4#audio \
-out manifest.m3u8
```
I tried with the gpac tool directly too.
The resulting playlist is playable with vlc and ffplay for example.
But it fails with videojs or hls.js, only the first segment is played.
Here is the resulting playlist for the video track:
```
#EXTM3U
#EXT-X-TARGETDURATION:4
#EXT-X-VERSION:6
#EXT-X-MEDIA-SEQUENCE:1
#EXT-X-INDEPENDENT-SEGMENTS
#EXT-X-MAP:URI="transcoded_720_track1__dashinit.mp4",BYTERANGE="960@0"
#EXTINF:4
#EXT-X-BYTERANGE:930114@960
transcoded_720_track1__dashinit.mp4
#EXTINF:4
#EXT-X-BYTERANGE:743971@931074
transcoded_720_track1__dashinit.mp4
#EXTINF:4
#EXT-X-BYTERANGE:314098@1675045
transcoded_720_track1__dashinit.mp4
#EXTINF:4
#EXT-X-BYTERANGE:344031@1989143
transcoded_720_track1__dashinit.mp4
#EXTINF:4
#EXT-X-BYTERANGE:624362@2333174
transcoded_720_track1__dashinit.mp4
#EXTINF:4
#EXT-X-BYTERANGE:531460@2957536
transcoded_720_track1__dashinit.mp4
#EXTINF:4
#EXT-X-BYTERANGE:659193@3488996
transcoded_720_track1__dashinit.mp4
#EXTINF:4
#EXT-X-BYTERANGE:1333882@4148189
transcoded_720_track1__dashinit.mp4
#EXTINF:4
#EXT-X-BYTERANGE:711408@5482071
transcoded_720_track1__dashinit.mp4
#EXTINF:4
#EXT-X-BYTERANGE:293016@6193479
transcoded_720_track1__dashinit.mp4
#EXTINF:4
#EXT-X-BYTERANGE:447909@6486495
transcoded_720_track1__dashinit.mp4
#EXTINF:4
#EXT-X-BYTERANGE:246451@6934404
transcoded_720_track1__dashinit.mp4
#EXTINF:4
#EXT-X-BYTERANGE:314745@7180855
transcoded_720_track1__dashinit.mp4
#EXTINF:4
#EXT-X-BYTERANGE:544987@7495600
transcoded_720_track1__dashinit.mp4
#EXTINF:4
#EXT-X-BYTERANGE:514508@8040587
transcoded_720_track1__dashinit.mp4
#EXTINF:2.28
#EXT-X-BYTERANGE:258588@8555095
transcoded_720_track1__dashinit.mp4
#EXT-X-ENDLIST
```
If I analyze the file with your tool at https://gpac.github.io/mp4box.js/test/filereader.html,
In the segment view I get:
| Segment | referenced_size | segment offset |
|---------|-----------------|---------------|
| 0 | 930114 | 1836 |
| 1 | 743971 | 931950 |
| 2 | 314098 | 1675921 |
| 3 | 344031 | 1990019 |
| 4 | 624362 | 2334050 |
| 5 | 531460 | 2958412 |
| 6 | 659193 | 3489872 |
| 7 | 1333882 | 4149065 |
| 8 | 711408 | 5482947 |
| 9 | 293016 | 6194355 |
| 10 | 447909 | 6487371 |
| 11 | 246451 | 6935280 |
| 12 | 314745 | 7181731 |
| 13 | 544987 | 7496476 |
| 14 | 514508 | 8041463 |
| 15 | 258588 | 8555971 |
From what I see the segment offset from the online tool doesn't match with the byte range offsets in the playlist.
It seems to be missing 876 bytes for each range in the playlist.
If I replace the byte range starting offsets in the playlist with the ones reported by the online tool it works again
with videojs and hls.js.
Here is the xml mp4 box dump of the file:
[gpac.md](https://github.com/gpac/gpac/files/6915816/gpac.md)
Is it intended to be like that, or is there a specific option to make it work ?
Regards,
Romain
| Hls playlist byte range offset doesn't seems right | https://api.github.com/repos/gpac/gpac/issues/1869/comments | 5 | 2021-08-02T09:25:04Z | 2021-09-01T14:30:55Z | https://github.com/gpac/gpac/issues/1869 | 957,945,916 | 1,869 |
[
"gpac",
"gpac"
] | Hello,
I'm not sure if this is a bug, a missing feature or a user mistake.
1.0.1 MP4Box GPAC version is used (Windows 64 bits installer)
I'm trying to mux some files (1 video stream, 2 audio streams (eng/fre) and 2 subtitles streams (forced/regular, both fre)).
The target players are VLC (3.0.11 on Windows) and AppleTV app (iOS device (14.6)).
VLC player works as expected : It play the video track, the non-disabled audio track, and the forced subtitle by default.
iOS player play the video, an audio track and the regular subtitle : Forced subtitle is NOT shown (and don't appears in the dropdown list on the player, but this may be intented).
As far as I know (from [QuickTime File Format Specification](https://developer.apple.com/library/archive/documentation/QuickTime/QTFF/QTFFChap3/qtff3.html)) :
- A dedicated forced subtitle track must have "All samples are forced" display flag (resulting in `0xC0000000`) :
> If this flag is set, the subtitle media handler treats all samples as forced subtitles, regardless of the presence or absence of a 'frcd' atom. This flag’s value is 0x80000000. If this flag is set, the Some Samples Are Forced flag must also be set (making 0xC0000000).
- Because of the previous assertion, I don't try to set the "Subtitle Sample Data" to "frcd"
- Subtitle track must be a media type of "sbtl" :
> Subtitle media is used to store text data used for subtitles in QuickTime movies. It has a media type of 'sbtl'.
To try to achieve this, I'm using the following command :
```
MP4Box ^
-tmp .\ ^
-inter 1000 ^
-add tmp-video.h264:lang=ENG ^
-add tmp-audio-fr.aac:group=1:lang=FRE ^
-add tmp-audio-en.aac:group=1:lang=ENG:disabled ^
-add tmp-subs-fr-regular.srt:group=2:lang=FRE:hdlr=sbtl:disabled ^
-add tmp-subs-fr-forced.srt:group=2:lang=FRE:hdlr=sbtl:txtflags=0xC0000000 ^
-chap tmp-chapters.txt ^
-new out.mp4
```
Both audio tracks are in a dedicated group (group 1) because it seems to be a common practice.
Both subtitle tracks are in a dedicated group (group 2) because it seems to be a common practice.
A given audio track is disabled (mandatory, because all un-disabled audio tracks will play simultaneously in Quicktime/iOS).
The regular french subtitle track is disabled, because it should not be played by default.
The forced french subtitle track has the "All samples are forces" flag. This should be always played, regardless of the "subtitle off" option is trigger by the user.
Handler of subtitle streams are set to "sbtl" (see #1573 ).
This result in the following mediainfo :
```
General
Complete name : out.mp4
Format : MPEG-4
Format profile : Base Media
Codec ID : isom (isom/avc1)
File size : 18.7 MiB
Duration : 2 h 34 min
Overall bit rate mode : Variable
Overall bit rate : 17.0 kb/s
Encoded date : UTC 2021-08-01 14:11:54
Tagged date : UTC 2021-08-01 14:11:54
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.1
Format settings : CABAC / 4 Ref Frames
Format settings, CABAC : Yes
Format settings, Reference frames : 4 frames
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 1 min 0 s
Bit rate : 1 828 kb/s
Maximum bit rate : 3 844 kb/s
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 23.976 (24000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.037
Stream size : 13.1 MiB (70%)
Title : h264:lang=ENG@GPAC1.0.1-rev0-gd8538e8a-master
Writing library : x264 core 161 r3027 4121277
Encoding settings : cabac=1 / ref=4 / deblock=1:0:0 / analyse=0x3:0x133 / me=umh / subme=10 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=24 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=18 / lookahead_threads=3 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=8 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=240 / keyint_min=24 / scenecut=0 / intra_refresh=0 / rc_lookahead=60 / rc=crf / mbtree=1 / crf=21.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / vbv_maxrate=62500 / vbv_bufsize=78125 / crf_max=0.0 / nal_hrd=none / filler=0 / ip_ratio=1.40 / aq=1:1.00
Language : English
Encoded date : UTC 2021-08-01 14:11:54
Tagged date : UTC 2021-08-01 14:11:55
Color range : Limited
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709
Codec configuration box : avcC
Audio #1
ID : 2
Format : AAC LC
Format/Info : Advanced Audio Codec Low Complexity
Codec ID : mp4a-40-2
Duration : 1 min 0 s
Bit rate mode : Variable
Bit rate : 384 kb/s
Channel(s) : 6 channels
Channel layout : C L R Ls Rs LFE
Sampling rate : 48.0 kHz
Frame rate : 46.875 FPS (1024 SPF)
Compression mode : Lossy
Stream size : 2.75 MiB (15%)
Title : aac:group=1:lang=FRE@GPAC1.0.1-rev0-gd8538e8a-master
Language : French
Default : Yes
Alternate group : 1
Encoded date : UTC 2021-08-01 14:11:54
Tagged date : UTC 2021-08-01 14:11:55
Audio #2
ID : 3
Format : AAC LC
Format/Info : Advanced Audio Codec Low Complexity
Codec ID : mp4a-40-2
Duration : 1 min 0 s
Bit rate mode : Variable
Bit rate : 384 kb/s
Channel(s) : 6 channels
Channel layout : C L R Ls Rs LFE
Sampling rate : 48.0 kHz
Frame rate : 46.875 FPS (1024 SPF)
Compression mode : Lossy
Stream size : 2.75 MiB (15%)
Title : aac:group=1:lang=ENG:disabled@GPAC1.0.1-rev0-gd8538e8a-master
Language : English
Default : No
Alternate group : 1
Encoded date : UTC 2021-08-01 14:11:54
Tagged date : UTC 2021-08-01 14:11:55
Text #1
ID : 4
Format : Timed Text
Muxing mode : sbtl
Codec ID : tx3g
Duration : 2 h 34 min
Bit rate mode : Variable
Bit rate : 56 b/s
Stream size : 63.5 KiB (0%)
Title : srt:group=2:lang=FRE:hdlr=sbtl:disabled@GPAC1.0.1-rev0-gd8538e8a-master
Language : French
Default : No
Forced : No
Alternate group : 2
Encoded date : UTC 2021-08-01 14:11:54
Tagged date : UTC 2021-08-01 14:11:55
Text #2
ID : 5
Format : Timed Text
Muxing mode : sbtl
Codec ID : tx3g
Duration : 24 s 503 ms
Bit rate mode : Variable
Bit rate : 46 b/s
Stream size : 142 Bytes (0%)
Title : srt:group=2:lang=FRE:hdlr=sbtl:txtflags=0xC0000000@GPAC1.0.1-rev0-gd8538e8a-master
Language : French
Default : Yes
Forced : Yes
Alternate group : 2
Encoded date : UTC 2021-08-01 14:11:54
Tagged date : UTC 2021-08-01 14:11:55
Menu
```
MP4Box -info counterpart :
```
* Movie Info *
Timescale 600 - 5 tracks
Computed Duration 00:01:01.956 - Indicated Duration 00:01:01.956
Fragmented File: no
File suitable for progressive download (moov before mdat)
File Brand isom - version 1
Compatible brands: isom avc1
Created: GMT Sun Aug 1 14:14:48 2021
Modified: GMT Sun Aug 1 14:14:48 2021
File has root IOD (9 bytes)
Scene PL 0xff - Graphics PL 0xff - OD PL 0xff
Visual PL: AVC/H264 Profile (0x7f)
Audio PL: AAC Profile @ Level 6 (0x50)
No streams included in root OD
Chapters:
Chapter #1 - 00:00:00.000 - ""
1 UDTA types: chpl (1)
Track # 1 Info - TrackID 1 - TimeScale 96000
Media Duration 00:01:00.018 - Indicated Duration 00:01:00.018
Track has 1 edit lists: track duration is 00:01:00.016
Media Info: Language "English (eng)" - Type "vide:avc1" - 1439 samples
Visual Sample Entry 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: B8D75932BB34372D5A5BD747F5E00ED118FE4CF8
PPS#1 hash: E11F6AC3BBCF8CBE7E53539CED8F3E6F2E732D2D
Self-synchronized
RFC6381 Codec Parameters: avc1.640029
Average GOP length: 287 samples
Max sample duration: 4004 / 96000
Track # 2 Info - TrackID 2 - TimeScale 48000
Media Duration 00:01:00.032 - Indicated Duration 00:01:00.032
Media Info: Language "fre (fre)" - Type "soun:mp4a" - 2814 samples
MPEG-4 Config: Audio Stream - ObjectTypeIndication 0x40
MPEG-4 Audio AAC LC (AOT=2 implicit) - 6 Channel(s) - SampleRate 48000
Synchronized on stream 1
RFC6381 Codec Parameters: mp4a.40.2
Alternate Group ID 1
All samples are sync
Max sample duration: 1024 / 48000
Track # 3 Info - TrackID 3 - TimeScale 48000
Media Duration 00:01:00.032 - Indicated Duration 00:01:00.032
Track is disabled
Media Info: Language "English (eng)" - Type "soun:mp4a" - 2814 samples
MPEG-4 Config: Audio Stream - ObjectTypeIndication 0x40
MPEG-4 Audio AAC LC (AOT=2 implicit) - 6 Channel(s) - SampleRate 48000
Synchronized on stream 1
RFC6381 Codec Parameters: mp4a.40.2
Alternate Group ID 1
All samples are sync
Max sample duration: 1024 / 48000
Track # 4 Info - TrackID 4 - TimeScale 1000
Media Duration 00:01:01.958 - Indicated Duration 00:01:01.958
Track is disabled
Media Info: Language "fre (fre)" - Type "sbtl:tx3g" - 35 samples
Unknown Text Stream
Size 1920 x 1080 - Translation X=0 Y=0 - Layer 0
RFC6381 Codec Parameters: tx3g
Alternate Group ID 2
All samples are sync
Max sample duration: 14661 / 1000
Track # 5 Info - TrackID 5 - TimeScale 1000
Media Duration 00:00:24.504 - Indicated Duration 00:00:24.504
Media Info: Language "fre (fre)" - Type "sbtl:tx3g" - 7 samples
Unknown Text Stream
Size 1920 x 1080 - Translation X=0 Y=0 - Layer 0
RFC6381 Codec Parameters: tx3g
Alternate Group ID 2
All samples are sync
Max sample duration: 14661 / 1000
```
I don't know what I'm missing.
Any help, please ?
Regards, | MP4Box - Forced subtitle not shown on Quicktime/iOS | https://api.github.com/repos/gpac/gpac/issues/1868/comments | 1 | 2021-08-01T15:25:44Z | 2021-08-31T19:01:29Z | https://github.com/gpac/gpac/issues/1868 | 957,519,250 | 1,868 |
[
"gpac",
"gpac"
] | I am building GPAC on OSX.
When running `make` in directory gpac_public:
```
cd ../gpac_public
./configure --extra-cflags=-Wno-deprecated
make
sudo make install
```
I encounter an error called "filters/ff_dmx.c:249:16: error: no member named 'first_dts' in 'struct AVStream'"
I have already looked for `ff_dmx.c` and `libavformat/avformat.h` where "struct AVStream" is defined. I even include `libavformat/avformat.h` into `ff_dmx.c`. However, it does not solve the problem.
Can anyone encounter this error? How to fix it? | GPAC Build error: no member named 'first_dts' in 'struct AVStream' | https://api.github.com/repos/gpac/gpac/issues/1866/comments | 4 | 2021-07-29T14:23:48Z | 2021-07-30T12:40:01Z | https://github.com/gpac/gpac/issues/1866 | 955,897,982 | 1,866 |
[
"gpac",
"gpac"
] | How to DASH a mp4 video to regular DASH+SRD mode. Like this:
[http://download.tsi.telecom-paristech.fr/gpac/SRD/360/srd_360.mpd](http://download.tsi.telecom-paristech.fr/gpac/SRD/360/srd_360.mpd) | How to DASH a mp4 video to regular DASH+SRD mode | https://api.github.com/repos/gpac/gpac/issues/1865/comments | 2 | 2021-07-29T08:15:51Z | 2021-09-01T15:21:35Z | https://github.com/gpac/gpac/issues/1865 | 955,583,233 | 1,865 |
[
"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/
Video file https://www.mediafire.com/file/17ozreaf7xzflk4/thai-boxer.mp4/file (yes, that boxer, again).
So, following the instructions in the HowTos, I am trying to create a Python video player, and it looks like that the non blocking mode is not working.
This is the blocking version of the code, it works properly
```
import sys
sys.path.append('/usr/share/gpac/python')
import libgpac as gpac
gpac.init()
fs = gpac.FilterSession()
f1 = fs.load_src("thai-boxer.mp4") # the boxer file
f2 = fs.load("vout")
f3 = fs.load("aout")
fs.run()
```
This non-blocking version does not.
```
import sys
sys.path.append('/usr/share/gpac/python')
import libgpac as gpac
opts = [];
gpac.init()
opts.append("-no-block")
gpac.set_args(opts)
fs = gpac.FilterSession(gpac.GF_FS_FLAG_NO_MAIN_THREAD)
f1 = fs.load_src("thai-boxer.mp4") # the boxer file
f2 = fs.load("vout")
f3 = fs.load("aout")
while True:
print("step")
#call session
fs.run_step()
#if last task, GPAC session is done
if fs.last_task:
break
```
Bug present on 91d397ddce227a2559bb9b16528c8087e5425961 (master HEAD at the present time)
I hear a sound makes a brief pop, no video plays back, the break happens after 8 steps.
Bug happening on Ubuntu 20.04, Python 3.8.10
Here is the full log if you ever need it [non-blocking.log](https://github.com/gpac/gpac/files/6881184/non-blocking.log)
| Python: Non-blocking mode not working | https://api.github.com/repos/gpac/gpac/issues/1864/comments | 3 | 2021-07-26T20:39:57Z | 2021-08-04T20:32:02Z | https://github.com/gpac/gpac/issues/1864 | 953,269,692 | 1,864 |
[
"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
My m4a causes gpac to segfaults, for my use case this is easily worked around by using an aac file instead (many thanks for adding udta support to gpac 🥇 and making this easy).
```
$ gpac -i TOS-enAD.m4a inspect
Segmentation fault: 11
```
The inspect filter is only an example it segfaults when trying to remux too, we can see that MP4Box has no such problem:
```
$ MP4Box -info TOS-enAD.m4a
# Movie Info - 1 track - TimeScale 1000
Duration 00:00:12.032
Fragmented: no
Progressive (moov before mdat)
Major Brand M4A - version 1 - compatible brands: isom M4A mp42
Created: GMT Thu Jul 15 14:59:03 2021
File has root IOD (9 bytes)
Scene PL 0xff - Graphics PL 0xff - OD PL 0xff
Visual PL: No visual capability required (0xff)
Audio PL: AAC Profile @ Level 2 (0x29)
No streams included in root OD
# Track 1 Info - ID 1 - TimeScale 48000
Media Duration 00:00:12.074
Track has 1 edits: track duration is 00:00:12.032
Media Info: Language "English (eng)" - Type "soun:mp4a" - 566 samples
2 UDTA types:
tagc: public.accessibility.describes-video
name: English (describes video)
Alternate Group ID 1
MPEG-4 Audio AAC LC (AOT=2 implicit) - 2 Channel(s) - SampleRate 48000
RFC6381 Codec Parameters: mp4a.40.2
All samples are sync
Max sample duration: 1024 / 48000
```
The debug log doesn't look very helpful to me, it looks like it happily gets a long way then faults:
```
[Mutex Filtermp4dmxTasks] At 146 Released by thread Main Process
Segmentation fault: 11
```
I've attached the problematic m4a, the debug log and the aac file I used to workaround the problem
https://www.mediafire.com/file/a62ijsh2o78kle1/TOS-enAD.m4a/file
https://www.mediafire.com/file/q8k6la50sz425ok/debug.log/file
https://www.mediafire.com/file/xj6lb0pz5aetngw/TOS-enAD.aac/file | gpac sefaults trying to parse an m4a file | https://api.github.com/repos/gpac/gpac/issues/1863/comments | 2 | 2021-07-21T15:32:47Z | 2021-07-21T18:20:09Z | https://github.com/gpac/gpac/issues/1863 | 949,846,615 | 1,863 |
[
"gpac",
"gpac"
] | I have a number of quicktime .mov files of which the video stream is not playable on Windows Media Player in my corporate environment since the removal of quicktime. They are fine at home, so I guess it's a matter of installed codecs
Simply remuxing with ffmpeg to mp4 `ffmpeg -y -i test.MOV -map 0 -c copy test.Mp4` , the output is playable in WMP at work.
I'm attempting to achieve the same end with MP4Box `mp4box -add test.MOV -new test.mp4` , but the output is still not playable.
mp4box_only self compiled from gpac-1.0.1-rev0-gd8538e8a-master
Is this the expected result or am I missing option(s)? There seems to be minor changes to the metadata only, but not the same for each
| Mov to Mp4 | https://api.github.com/repos/gpac/gpac/issues/1862/comments | 10 | 2021-07-21T06:10:02Z | 2021-08-11T02:07:47Z | https://github.com/gpac/gpac/issues/1862 | 949,362,566 | 1,862 |
[
"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
When I pack srt subs into an mp4, Quicktime isn't recognising the subtitles, e.g. fairly minimal commands:
`gpac -i TOS.264 -i TOS-en.aac:#Language=en -i TOS-it.aac:#Language=it -i TOS-en.srt:#Language=en -i TOS-da.srt:#Language=da -o test.mp4`
`MP4Box -group-add trackID=2:trackID=3 test.mp4`
`MP4Box -group-add trackID=4:trackID=5 test.mp4`
`MP4Box -disable 3 -disable 5 test.mp4`
Side note, I couldn't see how to create the variant groups and disable selected tracks in the gpac command?
I think the problem is that the subtitles are `text:tx3g` not `sbtl:tx3g` but I couldn't see how to change that?
I'm trying to make a more complete test file with UDTA signaling for closed captions and descriptive audio.
I couldn't see how to specify UDTA tags with a string using gpac so instead used MP4Box (from example here https://github.com/gpac/gpac/issues/1606#issuecomment-706069929), but again I couldn't see how to specify both name and tagc in one pass so instead e.g.
`MP4Box -udta 1:type=tagc:str="public.accessibility.describes-video" -lang en TOS_enAD.m4a`
`MP4Box -udta 1:type=name:str="English (describes video)" TOS_enAD.m4a`
I uploaded my 12s tears of steel files here https://www.mediafire.com/file/ll2t0mu25ypaqoo/TOS_quicktime_track_signaling.zip/file
I uploaded a similar file created with ffmpeg where Quicktime recognises the subs here https://www.mediafire.com/file/skd69qm19vjscn4/testffmpeg.mp4/file | Quicktime doesn't recognise subtitles and other noob related trouble with tagging tracks. | https://api.github.com/repos/gpac/gpac/issues/1861/comments | 1 | 2021-07-20T17:26:57Z | 2021-07-21T12:44:50Z | https://github.com/gpac/gpac/issues/1861 | 948,878,768 | 1,861 |
[
"gpac",
"gpac"
] | I'm building MP4Box Only on Windows and having some trouble with the git clone.
As a git noob I was unable to use the command `git clone https://github.com/gpac/gpac gpac_public` as recommended as it failed in Visual Studio 2019 and at the command line.
I suspect this is to do with the space before gpac_public, but not sure how to deal with it. What does it mean?
I was able to clone with the url [https://github.com/gpac/gpac.git](url), but the build directory was not cloned with it.
What am I doing wrong? Sorry for the noob question
I was able to build the solution very effectively by downloading the master branch, but this is not ideal from a maintenance perspective
Thanks
| Unable to clone gpac_public | https://api.github.com/repos/gpac/gpac/issues/1860/comments | 2 | 2021-07-18T09:26:40Z | 2021-07-18T23:12:03Z | https://github.com/gpac/gpac/issues/1860 | 946,992,509 | 1,860 |
[
"gpac",
"gpac"
] | - [x] I looked for a similar issue
- [x] I tried with the latest version of GPAC
- [x] I give enough information for contributors to reproduce my issue
There used to be an issue with encrypted 5.1 audio reported here https://github.com/gpac/gpac/issues/1274. Now it works great for 5.1 encrypted audio in AAC codec, however, it appears that there still needs to be an extra adjustment for AC-3/EC-3 codecs under the same scenario as it reports just 2 channels instead of 6 in the generated mpd even in the latest nightly 1.1.0 GPAC version.
The unencrypted 5.1 audio in AC-3/EC-3 codecs is correctly reported as 6 channels, the hex value in AudioChannelConfiguration is `F801`, which corresponds to the FL, C, FR, LS, RS, LFE mapping. But encrypted audio reports `A000`, which to my knowledge is just basic stereo in 16-bit representation, the result is:
`<Representation id="2" mimeType="audio/mp4" codecs="ac-3" audioSamplingRate="48000" bandwidth="640000">
<AudioChannelConfiguration schemeIdUri="tag:dolby.com,2014:dash:audio_channel_configuration:2011" value="A000"/>
</Representation>`
The result can be verified with this sample content https://devs.origin.cdn.cra.cz/log/ac3.mp4 in unencrypted form and https://devs.origin.cdn.cra.cz/log/ac3enc.mp4 as encrypted.
Also when dashing the encrypted version, log reports the following notification `[iso file] Unknown box type dac3 in parent enca`. Interesting thing is that when encrypting EC-3 codec, the message still mentions `dac3` even though the box is actually `dec3`. The file was encrypted by mp4box. and both AC-3 and EC-3 should be supported in ISO format normally I believe. | Encrypted multichannel AC-3 audio declared as stereo after dashing | https://api.github.com/repos/gpac/gpac/issues/1859/comments | 1 | 2021-07-14T09:16:00Z | 2021-07-14T10:52:43Z | https://github.com/gpac/gpac/issues/1859 | 944,220,149 | 1,859 |
[
"gpac",
"gpac"
] |
In the old architecture configuration, i can change the bufferLength in the GPAC.cfg.
But, I cannot find how to specifie the bufferLength in the new architecture configuration?
By the way , where to obtain the old version gpac?
Can you help me?
Thank you for your attention. | How to specifie the length of the decoding buffer in the New Architecture Configuration | https://api.github.com/repos/gpac/gpac/issues/1858/comments | 1 | 2021-07-14T08:54:49Z | 2021-07-14T10:17:35Z | https://github.com/gpac/gpac/issues/1858 | 944,201,320 | 1,858 |
[
"gpac",
"gpac"
] | ```
$ gpac -i beepbop.mp4 @ ffsws:ofmt=yuv420 @ vout
No filter chain found for PID A1 in filter mp4dmx to any loaded filters - NOT CONNECTED
No filter chain found for PID V2 in filter ffsws to any loaded filters - NOT CONNECTED
``` | 'ffsws' not capable to connect to 'vout' | https://api.github.com/repos/gpac/gpac/issues/1857/comments | 1 | 2021-07-13T12:39:38Z | 2021-07-13T17:43:59Z | https://github.com/gpac/gpac/issues/1857 | 943,311,392 | 1,857 |
[
"gpac",
"gpac"
] | I'm looking into `gpac` to create a low latency hls stream from a webcam. I've compiled gpac against the latest commit and using a custom ffmpeg 4.4 build. I've looked into the testsuite for some examples/references that generate ll-hls streams.
I'm using the command below that shows a static frame when I load it into [THEOplayer](https://www.theoplayer.com/ll-hls-test-page). I'm sure I'm doing something wrong, but as I've just touched gpac for the first time I'm not sure what options I should add to get a playable video stream.
**What command should I use to stream from my webcam to generate a ll-hls stream?**
```make
gpac -i av://:src=/dev/video1 \
@ enc:c=avc \
@ -o http://127.0.0.1:8080/live.m3u8:segdur=2:cdur=0.2:dmode=dynamic:rdirs=${tmp_dir}:reqlog=GET:llhls=sf
```
Which generates a m3u8:
```
#EXTM3U
#EXT-X-VERSION: 6
#EXT-X-INDEPENDENT-SEGMENTS
#EXT-X-STREAM-INF:BANDWIDTH=100000,CODECS="avc1.64001F",RESOLUTION=1280x720,FRAME-RATE="10"
live_1.m3u8
```
And the live_1.m3u8:
```
#EXTM3U
#EXT-X-TARGETDURATION:2
#EXT-X-VERSION:6
#EXT-X-MEDIA-SEQUENCE:1
#EXT-X-PART-INF:PART-TARGET=0.2
#EXT-X-INDEPENDENT-SEGMENTS
#EXT-X-MAP:URI="video0_dashinit.mp4"
#EXTINF:2,
video0_dash1.m4s
#EXTINF:2.1,
video0_dash2.m4s
#EXTINF:2,
video0_dash3.m4s
#EXT-X-PART:DURATION=0.2,URI="video0_dash4.m4s.1",INDEPENDENT=YES
#EXT-X-PART:DURATION=0.2,URI="video0_dash4.m4s.2"
#EXT-X-PART:DURATION=0.2,URI="video0_dash4.m4s.3"
#EXT-X-PART:DURATION=0.2,URI="video0_dash4.m4s.4"
#EXT-X-PART:DURATION=0.2,URI="video0_dash4.m4s.5"
#EXT-X-PART:DURATION=0.2,URI="video0_dash4.m4s.6"
#EXT-X-PART:DURATION=0.2,URI="video0_dash4.m4s.7"
#EXT-X-PART:DURATION=0.2,URI="video0_dash4.m4s.8"
#EXT-X-PART:DURATION=0.2,URI="video0_dash4.m4s.9"
#EXT-X-PART:DURATION=0.2,URI="video0_dash4.m4s.10"
#EXTINF:2,
video0_dash4.m4s
#EXT-X-PART:DURATION=0.2,URI="video0_dash5.m4s.1",INDEPENDENT=YES
#EXT-X-PART:DURATION=0.2,URI="video0_dash5.m4s.2"
#EXT-X-PART:DURATION=0.2,URI="video0_dash5.m4s.3"
#EXT-X-PART:DURATION=0.2,URI="video0_dash5.m4s.4"
#EXT-X-PART:DURATION=0.2,URI="video0_dash5.m4s.5"
#EXT-X-PART:DURATION=0.2,URI="video0_dash5.m4s.6"
#EXT-X-PART:DURATION=0.2,URI="video0_dash5.m4s.7"
#EXT-X-PART:DURATION=0.2,URI="video0_dash5.m4s.8"
#EXT-X-PART:DURATION=0.2,URI="video0_dash5.m4s.9"
#EXT-X-PART:DURATION=0.2,URI="video0_dash5.m4s.10"
#EXTINF:2,
video0_dash5.m4s
#EXT-X-PART:DURATION=0.2,URI="video0_dash6.m4s.1",INDEPENDENT=YES
#EXT-X-PART:DURATION=0.2,URI="video0_dash6.m4s.2"
#EXT-X-PART:DURATION=0.2,URI="video0_dash6.m4s.3"
#EXT-X-PART:DURATION=0.2,URI="video0_dash6.m4s.4"
#EXT-X-PART:DURATION=0.2,URI="video0_dash6.m4s.5"
#EXT-X-PART:DURATION=0.2,URI="video0_dash6.m4s.6"
#EXT-X-PART:DURATION=0.2,URI="video0_dash6.m4s.7"
#EXT-X-PART:DURATION=0.2,URI="video0_dash6.m4s.8"
#EXT-X-PART:DURATION=0.2,URI="video0_dash6.m4s.9"
#EXT-X-PART:DURATION=0.2,URI="video0_dash6.m4s.10"
#EXTINF:2,
video0_dash6.m4s
#EXT-X-PART:DURATION=0.2,URI="video0_dash7.m4s.1",INDEPENDENT=YES
#EXT-X-PART:DURATION=0.2,URI="video0_dash7.m4s.2"
#EXT-X-PART:DURATION=0.2,URI="video0_dash7.m4s.3"
#EXT-X-PART:DURATION=0.2,URI="video0_dash7.m4s.4"
#EXT-X-PART:DURATION=0.2,URI="video0_dash7.m4s.5"
#EXT-X-PART:DURATION=0.2,URI="video0_dash7.m4s.6"
#EXT-X-PART:DURATION=0.2,URI="video0_dash7.m4s.7"
#EXT-X-PART:DURATION=0.2,URI="video0_dash7.m4s.8"
#EXT-X-PART:DURATION=0.2,URI="video0_dash7.m4s.9"
#EXT-X-PART:DURATION=0.2,URI="video0_dash7.m4s.10"
#EXTINF:2,
video0_dash7.m4s
#EXT-X-PART:DURATION=0.2,URI="video0_dash8.m4s.1",INDEPENDENT=YES
#EXT-X-PART:DURATION=0.2,URI="video0_dash8.m4s.2"
#EXT-X-PART:DURATION=0.2,URI="video0_dash8.m4s.3"
#EXT-X-PART:DURATION=0.2,URI="video0_dash8.m4s.4"
#EXT-X-PART:DURATION=0.2,URI="video0_dash8.m4s.5"
#EXT-X-PART:DURATION=0.2,URI="video0_dash8.m4s.6"
#EXTINF:0,
video0_dash8.m4s
```
The output of gpac:
```
[HTTPOut] Server running on port 8080
[FFMPEG] Unmapped FFMPEG pixel format nv16, patch welcome
[FFMPEG] Unmapped FFMPEG pixel format nv20le, patch welcome
[FFMPEG] Unmapped FFMPEG pixel format gray10le, patch welcome
[Dasher] AS-1 Rep 1 segment 1 done TOO LATE by 99 ms
[HTTPOut] REQ#1 127.0.0.1 GET live.m3u8 start
[HTTPOut] REQ#1 GET done: reply 200 - 160 bytes in 99 ms at 12.8076 kbps
[HTTPOut] REQ#2 127.0.0.1 GET live_1.m3u8 start
[HTTPOut] REQ#2 GET done: reply 200 - 1978 bytes in 99 ms at 158.436 kbps
[HTTPOut] REQ#3 127.0.0.1 GET video0_dash1.m4s start
[HTTPOut] REQ#4 127.0.0.1 GET video0_dashinit.mp4 start
[HTTPOut] REQ#4 GET done: reply 200 - 943 bytes in 101 ms at 74.1935 kbps
[HTTPOut] REQ#3 GET done: reply 200 - 656260 bytes in 199 ms at 26.3076 mbps
[Dasher] AS-1 Rep 1 segment 2 done TOO LATE by 299 ms
[Dasher] AS-1 Rep 1 segment 3 done TOO LATE by 499 ms
[Dasher] AS-1 Rep 1 segment 4 done TOO LATE by 599 ms
[Dasher] AS-1 Rep 1 segment 5 done TOO LATE by 699 ms
```
**Update**
After doing a couple more tests I've noticed that none of the experiments/tests I did works when I try to playback a video in Safari on an iPhone. This makes me wonder about the current state of the ll-hls implementation: is this supposed to work atm? Of course I still might be using the wrong command, though the commands that I use are based on the test-suite commands. | What gpac command to use for low latency hls (ll-hls) stream that captures from webcam? | https://api.github.com/repos/gpac/gpac/issues/1856/comments | 2 | 2021-07-13T10:44:26Z | 2022-01-14T09:50:17Z | https://github.com/gpac/gpac/issues/1856 | 943,161,499 | 1,856 |
[
"gpac",
"gpac"
] | When I add a subtitle file, I provide a custom handler name so that I can identify the track in case I need to extract the data in the future. The issue I have is that -info as in
_gpac-1.0.1-rev0-gd8538e8a-master-x64>mp4box -info test.mp4_
Provides this info for the track
Track # 6 Info - TrackID 6 - TimeScale 1000
Media Duration 00:04:08.999 - Indicated Duration 00:04:08.999
Media Info: Language "English (eng)" - Type "sbtl:tx3g" - 359 samples
Unknown Text Stream
Size 2704 x 1520 - Translation X=0 Y=0 - Layer 0
RFC6381 Codec Parameters: tx3g
All samples are sync
Max sample duration: 69001 / 1000
Whereas
_gpac-1.0.1-rev0-gd8538e8a-master-x64>mp4box -info 6 test.mp4_
Provides this info for the track
Track # 6 Info - TrackID 6 - TimeScale 1000
Media Duration 00:04:08.999 - Indicated Duration 00:04:08.999
Media Info: Language "English (eng)" - Type "sbtl:tx3g" - 359 samples
Handler name: MyCustomHandler
Unknown Text Stream
Size 2704 x 1520 - Translation X=0 Y=0 - Layer 0
RFC6381 Codec Parameters: tx3g
All samples are sync
Max sample duration: 69001 / 1000
So the question is, is it possible to add the handler name for all tracks to the general -info option or can we make the 'Unknown Text Stream' a known custom stream somehow? | handler name not displayed with -info | https://api.github.com/repos/gpac/gpac/issues/1855/comments | 2 | 2021-07-13T01:10:19Z | 2021-07-18T08:27:18Z | https://github.com/gpac/gpac/issues/1855 | 942,584,820 | 1,855 |
[
"gpac",
"gpac"
] | Sadly, using:
```
MP4Box - GPAC version 1.1.0-DEV-rev1077-g4f3ca79de-ab-suite
(c) 2000-2021 Telecom Paris distributed under LGPL v2.1+ - http://gpac.io
MINI build (encoders, decoders, audio and video output disabled)
Please cite our work in your research:
GPAC Filters: https://doi.org/10.1145/3339825.3394929
GPAC: https://doi.org/10.1145/1291233.1291452
GPAC Configuration: --prefix=/local64 --disable-shared --enable-static --static-bin --static-build --static-modules --enable-all
Features: GPAC_CONFIG_WIN32 GPAC_64_BITS GPAC_MINIMAL_ODF GPAC_HAS_QJS GPAC_HAS_FREETYPE GPAC_HAS_MAD GPAC_HAS_JPEG GPAC_HAS_PNG GPAC_HAS_XVID GPAC_DISABLE_3D
```
with [Test-AC3-5.1_2021-07-12@18_39_05_2610_02.m4v.zip](https://github.com/gpac/gpac/files/6803091/Test-AC3-5.1_2021-07-12%4018_39_05_2610_02.m4v.zip) and
```
MP4Box -add "E:\Temp\Test-AC3-5.1_2021-07-12@18_39_05_2610_02.m4v" -tmp "E:\Temp" -new "E:\Output\test.mp4"
```
fails with:
```
Filters not connected:
mp4mx (importer:file=00000209acd06920) (ptr=00000209acd0da70)
[Importer] Error importing E:\Temp\Test-AC3-5.1_2021-07-12@18_39_05_2610_02.m4v
Failure while importing media: Filter not found for the desired type
Error importing E:\Temp\Test-AC3-5.1_2021-07-12@18_39_05_2610_02.m4v: Filter not found for the desired type
```
(works fine with ffmpeg)
Cu Selur | Muxing Mpeg-4 ASP (DivX 5.0.2) fails | https://api.github.com/repos/gpac/gpac/issues/1854/comments | 1 | 2021-07-12T16:52:02Z | 2021-07-13T12:35:15Z | https://github.com/gpac/gpac/issues/1854 | 942,251,205 | 1,854 |
[
"gpac",
"gpac"
] | Converting a full hd mkv file to mp4 I encountered some strange lag when playing the file in different players (mpc-hc, vlc, potplayer, ffplay), muxing the raw streams with ffmpeg worked fine.
Since uploading the whole mkv etc. I created the issue using the raw audio, video, chapter streams.
Using:
```
MP4Box - GPAC version 1.1.0-DEV-rev1077-g4f3ca79de-ab-suite
(c) 2000-2021 Telecom Paris distributed under LGPL v2.1+ - http://gpac.io
MINI build (encoders, decoders, audio and video output disabled)
Please cite our work in your research:
GPAC Filters: https://doi.org/10.1145/3339825.3394929
GPAC: https://doi.org/10.1145/1291233.1291452
GPAC Configuration: --prefix=/local64 --disable-shared --enable-static --static-bin --static-build --static-modules --enable-all
Features: GPAC_CONFIG_WIN32 GPAC_64_BITS GPAC_MINIMAL_ODF GPAC_HAS_QJS GPAC_HAS_FREETYPE GPAC_HAS_MAD GPAC_HAS_JPEG GPAC_HAS_PNG GPAC_HAS_XVID GPAC_DISABLE_3D
```
and calling:
```
MP4Box -add "E:\Output\video.264"#video:fps=24000/1001:lang="en" -brand avc1 -add "E:\Output\audio.aac"#audio:name="Surround 5.1":lang="en" -mpeg4 -chap "E:\Output\mp4box.chp" -itags tool="Hybrid 2021.07.11.1" -tmp "E:\Output" -new "E:\Output\mp4box.mp4"
```
the command line output looks normal:
```
Track Importing MPEG-4 AVC - Width 1920 Height 1080 FPS 24000/1001 SAR 1/1
AVC|H264 Import results: 481 samples (488 NALUs) - Slices: 3 I 478 P 0 B - 1 SEI - 3 IDR
AVC|H264 Stream uses forward prediction - stream CTS offset: 249 frames
IsoMedia import audio.aac - track ID 1 - Audio (SR 48000 - 6 channels)
[Chapter import] Guessed video frame rate 24000/1001
Saving E:\Output\mp4box.mp4: 0.500 secs Interleaving
```
Problem is the output is totally async.
Using:
```
ffmpeg -y -r 24000/1001 -i "E:\Output\video.264" -i "E:\Output\audio.aac" -i "E:\Output\ffmpeg.chp" -map_chapters 2 -vcodec copy -acodec copy -metadata encoding_tool="Hybrid 2021.07.11.1" -map 0:0 -map 1:0 -aspect 16:9 -r 24000/1001 "E:\Output\ffmpeg.mp4"
ffmpeg version N-101660-ge4753b731e-g288ca1c667+4 Copyright (c) 2000-2021 the FFmpeg developers
built with gcc 10.2.0 (Rev9, Built by MSYS2 project)
configuration: --pkg-config=pkgconf --cc='ccache gcc' --cxx='ccache g++' --ld='ccache g++' --disable-autodetect --enable-amf --enable-bzlib --enable-cuda --enable-cuvid --enable-d3d11va --enable-dxva2 --enable-iconv --enable-lzma --enable-nvenc --enable-zlib --enable-sdl2 --enable-ffnvcodec --enable-nvdec --enable-cuda-llvm --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libdav1d --enable-libaom --disable-debug --enable-fontconfig --enable-libass --enable-libbluray --enable-libfreetype --enable-libmfx --enable-libmysofa --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libwebp --enable-libxml2 --enable-libzimg --enable-libshine --enable-gpl --enable-avisynth --enable-libxvid --enable-libopenmpt --enable-version3 --enable-librav1e --enable-libsrt --enable-libgsm --enable-libvmaf --enable-libsvtav1 --enable-chromaprint --enable-frei0r --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfribidi --enable-libgme --enable-libilbc --enable-libsvthevc --enable-libsvtvp9 --enable-libkvazaar --enable-libmodplug --enable-librtmp --enable-librubberband --enable-libtesseract --enable-libxavs --enable-libzmq --enable-libzvbi --enable-openal --enable-libcodec2 --enable-ladspa --enable-libglslang --enable-vulkan --enable-libdavs2 --enable-libxavs2 --enable-libuavs3d --enable-mbedtls --extra-cflags=-fopenmp --extra-libs=-lgomp --extra-cflags=-DLIBTWOLAME_STATIC --extra-libs=-lstdc++ --extra-cflags=-DCACA_STATIC --extra-cflags=-DMODPLUG_STATIC --extra-cflags=-DCHROMAPRINT_NODLL --extra-libs=-lstdc++ --extra-cflags=-DZMQ_STATIC --extra-libs=-lpsapi --extra-cflags=-DLIBXML_STATIC --extra-libs=-liconv --disable-w32threads --extra-cflags=-DKVZ_STATIC_LIB --extra-cflags=-DAL_LIBTYPE_STATIC --extra-cflags='-II:/media-autobuild_suite/local64/include/AL'
libavutil 56. 71.100 / 56. 71.100
libavcodec 58.135.100 / 58.135.100
libavformat 58. 77.100 / 58. 77.100
libavdevice 58. 14.100 / 58. 14.100
libavfilter 7.111.100 / 7.111.100
libswscale 5. 10.100 / 5. 10.100
libswresample 3. 10.100 / 3. 10.100
libpostproc 55. 10.100 / 55. 10.100
[h264 @ 000001e1e6c2f800] Stream #0: not enough frames to estimate rate; consider increasing probesize
Input #0, h264, from 'E:\Output\video.264':
Duration: N/A, bitrate: N/A
Stream #0:0: Video: h264 (Constrained Baseline), yuv420p(tv, bt709/unknown/unknown, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1200k tbn, 47.95 tbc
Input #1, mov,mp4,m4a,3gp,3g2,mj2, from 'E:\Output\audio.aac':
Metadata:
major_brand : M4A
minor_version : 0
compatible_brands: M4A mp42isom
creation_time : 2021-07-12T13:27:13.000000Z
encoder : qaac 2.72, CoreAudioToolbox 7.10.9.0, AAC-LC Encoder, TVBR q73, Quality 96
Encoding Params : vers
iTunSMPB : 00000000 00000840 000003C0 00000000000EAC00 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Duration: 00:00:20.10, start: 0.044000, bitrate: 393 kb/s
Stream #1:0(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, 5.1, fltp, 391 kb/s (default)
Metadata:
creation_time : 2021-07-12T13:27:13.000000Z
vendor_id : [0][0][0][0]
Input #2, ffmetadata, from 'E:\Output\ffmpeg.chp':
Duration: 00:00:12.03, start: 0.000000, bitrate: 0 kb/s
Chapters:
Chapter #2:0: start 0.000000, end 12.031000
Metadata:
title : Chapter 01
Overriding aspect ratio with stream copy may produce invalid files
Output #0, mp4, to 'E:\Output\ffmpeg.mp4':
Metadata:
encoding_tool : Hybrid 2021.07.11.1
encoder : Lavf58.77.100
Chapters:
Chapter #0:0: start 0.000000, end 12.031000
Metadata:
title : Chapter 01
Stream #0:0: Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p(tv, bt709/unknown/unknown, progressive), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 23.98 fps, 23.98 tbr, 24k tbn, 23.98 tbc
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, 5.1, fltp, 391 kb/s (default)
Metadata:
creation_time : 2021-07-12T13:27:13.000000Z
vendor_id : [0][0][0][0]
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #1:0 -> #0:1 (copy)
Press [q] to stop, [?] for help
[mp4 @ 000001e1e722e3c0] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly
frame= 481 fps=0.0 q=-1.0 Lsize= 37869kB time=00:00:20.03 bitrate=15487.2kbits/s speed=25.5x
video:36897kB audio:959kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.031366%
```
the output is fine.
Using a ttxt chapter file (mp4box2.chp) and
```
MP4Box -add "E:\Output\video.264"#video:fps=24000/1001:lang="en" -brand avc1 -add "E:\Output\audio.aac"#audio:name="Surround 5.1":lang="en" -mpeg4 -add "E:\Output\mp4box2.chp:chap" -itags tool="Hybrid 2021.07.11.1" -tmp "E:\Output" -new "E:\Output\mp4box_ttxtchapter.mp4"
```
the resulting output (mp4box_ttxtchapter.mp4) has the same issue.
Calling
```
MP4Box.exe -info e:\Output\mp4box.mp4
```
output seems correct:
```
# Movie Info - 2 tracks - TimeScale 600
Duration 00:00:20.095
Fragmented: no
Progressive (moov before mdat)
Major Brand avc1 - version 0 - compatible brands: isom avc1
Created: GMT Mon Jul 12 14:01:51 2021
File has root IOD (9 bytes)
Scene PL 0xff - Graphics PL 0xff - OD PL 0xff
Visual PL: No visual capability required (0xff)
Audio PL: AAC Profile @ Level 6 (0x50)
No streams included in root OD
Chapters:
Chapter #1 - 00:00:00.000 - "Chapter 01"
iTunes Info:
tool: Hybrid 2021.07.11.1
1 UDTA types: meta (1)
# Track 1 Info - ID 1 - TimeScale 24000
Media Duration 00:00:20.061
Media Info: Language "English (eng)" - Type "vide:avc1" - 481 samples
Visual Sample Entry Info: width=1920 height=1080 (depth=24 bits)
Visual Track layout: x=0 y=0 width=1920 height=1080
AVC/H264 Video - Visual Size 1920 x 1080
AVC Info: 1 SPS - 1 PPS - Profile Baseline @ 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: 0A143731407E2B886294039759DB92EA503548F4
PPS#1 hash: 203A02354EA7EDD50CDDB37B1187113488AA5FC7
RFC6381 Codec Parameters: avc1.42C029
Average GOP length: 240 samples
Max sample duration: 1001 / 24000
# Track 2 Info - ID 2 - TimeScale 48000
Media Duration 00:00:20.096
Media Info: Language "English (eng)" - Type "soun:mp4a" - 942 samples
MPEG-4 Audio AAC LC (AOT=2 implicit) - 6 Channel(s) - SampleRate 48000
RFC6381 Codec Parameters: mp4a.40.2
All samples are sync
Max sample duration: 1024 / 48000
```
calling:
```
MP4Box.exe -info e:\Output\ffmpeg.mp4
```
I get lots of errors:
```
[iso file] Unknown box type trt00 in parent text
[iso file] Box "text" (start 38777147) has 11 extra bytes
[iso file] Box "stbl" (start 38777123) has 92 extra bytes
[iso file] Box "moov" (start 38765375) has 140 extra bytes
[iso file] Incomplete box moov - start 38765375 size 12083
[iso file] Incomplete file while reading for dump - aborting parsing
[iso file] Unknown box type trt00 in parent text
[iso file] Box "text" (start 38777147) has 11 extra bytes
[iso file] Box "stbl" (start 38777123) has 92 extra bytes
[iso file] Box "moov" (start 38765375) has 140 extra bytes
Truncated file - missing 12083 bytes
Error opening file e:\Output\ffmpeg.mp4: IsoMedia File is truncated
```
I uploaded the audio, video, chapter files and the MP4Box and FFmpeg output files to [my google drive](https://drive.google.com/drive/folders/1X4xxJ5h8I6Ed00yc8sTIfJmDG-DnSpXL?usp=sharing)
The video stream was created using x264 and the audio was created using qaac.
Is this a bug or is something broken with the input files?
Cu Selur
| Muxing issue (avc, aac), video lagging, works fine with ffmpeg | https://api.github.com/repos/gpac/gpac/issues/1853/comments | 5 | 2021-07-12T14:18:27Z | 2021-07-13T21:36:31Z | https://github.com/gpac/gpac/issues/1853 | 942,114,478 | 1,853 |
[
"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/
We compile the lastest Osmo4 project and find some issues:
We load the following video: http://download.tsi.telecom-paristech.fr/gpac/SRD/tears_of_steal/tos_srd_all.mpd.
And we call this method to switch the bit rate of dash.
```
gf_dash_switch_quality(ctx->dash, GF_TRUE, GF_TRUE);
```
It will take about 5 seconds to see the effect.
And we try to seek the time by calling the following method, then It will take about 5 seconds similarly.
```
gf_dash_seek(dash, 0);
```
| [issues] It will take about 5 seconds to switch the bit rate of dash | https://api.github.com/repos/gpac/gpac/issues/1852/comments | 3 | 2021-07-12T10:37:32Z | 2021-07-14T06:48:45Z | https://github.com/gpac/gpac/issues/1852 | 941,917,927 | 1,852 |
[
"gpac",
"gpac"
] | We need to switch the bit rate of dash by calling gf_dash_switch_quality method, but there is a delay of 5 seconds. How can I solve it? | There is a delay of 5 seconds when switching the bit rate of dash | https://api.github.com/repos/gpac/gpac/issues/1851/comments | 2 | 2021-07-12T03:36:00Z | 2021-07-12T12:07:02Z | https://github.com/gpac/gpac/issues/1851 | 941,635,069 | 1,851 |
[
"gpac",
"gpac"
] | I have 3.56 gb file. After entering `MP4Box -splits 2048000 1.mp4` it took 13 minutes and almost 4 gb of ram to do the operation. Video was stored in ramdisk. I think this option can be optimized because ffmpeg doesn't take this amount of resources when using `-ss -to` options.
Version is latest `MP4Box - GPAC version 1.1.0-DEV-rev1075-gda60a893-master` | -splits is taking too much ram and time | https://api.github.com/repos/gpac/gpac/issues/1850/comments | 4 | 2021-07-10T23:37:15Z | 2021-07-13T17:44:15Z | https://github.com/gpac/gpac/issues/1850 | 941,340,771 | 1,850 |
[
"gpac",
"gpac"
] | Thanks for reporting your issue. Please make sure these boxes are checked before submitting your issue - thank you!
- [x] I looked for a similar issue and couldn't find any.
- [x] I tried with the latest version of GPAC. Installers available at http://gpac.io/downloads/gpac-nightly-builds/
- [x] I give enough information for contributors to reproduce my issue (meaningful title, github labels, platform and compiler, command-line ...). I can share files anonymously with this dropbox: https://www.mediafire.com/filedrop/filedrop_hosted.php?drop=eec9e058a9486fe4e99c33021481d9e1826ca9dbc242a6cfaab0fe95da5e5d95
Detailed guidelines: http://gpac.io/2013/07/16/how-to-file-a-bug-properly/
_______________________________________________________________________________________________________________________________
Hello, I am trying to tile and dash using MP4Box and Kvazaar and have run into an issue. While I am able to get a playable tiled live DASH video through the steps available on [THIS](https://github.com/gpac/gpac/wiki/Tiled-Streaming) page the resulting video has no audio when played.
Here is the manifest it created when the dash command was run, and from a look, it seems like there isn't an audio stream included in it or the audio stream is getting set as video.
[Help_DASH.mpd.txt](https://github.com/gpac/gpac/files/6793477/Help_DASH.mpd.txt)
I was able to add an audio stream by using -add but MP4Box refused to DASH the file after adding it this way (no error, nothing in verbose output, just died).
Is there a separate way to add an audio stream for DASH, or am I missing a step in between from the origional instructions page?
OS - Windows 10
GPAC ver.1.1.0-DEV-rev1046-g50f3a904-master
| Audio can't be added to tiled DASH video | https://api.github.com/repos/gpac/gpac/issues/1849/comments | 15 | 2021-07-09T19:20:09Z | 2021-10-12T01:12:34Z | https://github.com/gpac/gpac/issues/1849 | 941,010,019 | 1,849 |
[
"gpac",
"gpac"
] | Hello,
A NULL pointer dereference in the function DumpTrackInfo in filedump.c:3007 has occurred when running program MP4Box,this can reproduce on the lattest commit.
System info:
Ubuntu 20.04.1 : clang 10.0.0 , gcc 9.3.0
[poc_read.zip](https://github.com/gpac/gpac/files/6774029/poc_read.zip)
Verification steps:
1.Get the source code of gpac
2.Compile
```
cd gpac-master
CC=gcc CXX=g++ CFLAGS="-fsanitize=address" CXXFLAGS="-fsanitize=address" ./configure
make
```
3.run MP4Box
```
./MP4Box -info poc.mp4
```
command line info
```
...
# Track 1 Info - ID 1 - TimeScale 44100
Media Duration 00:00:01.904
Track has 1 edits: track duration is 00:00:01.881
Media Info: Language "Undetermined (und)" - Type "soun:mp4a" - 82 samples
Segmentation fault
```
gdb info
```
Program received signal SIGSEGV, Segmentation fault.
[----------------------------------registers-----------------------------------]
RAX: 0x0
RBX: 0x7ffffffd1950 --> 0x1000000002
RCX: 0x5555555b11b3 ("Animation")
RDX: 0x5555555b3718 ("BIFS Scene description - %s stream\n")
RSI: 0x4
RDI: 0x7ffff76f05c0 --> 0xfbad2887
RBP: 0x5555555dd750 --> 0x10003
RSP: 0x7ffffffd18e0 --> 0x0
RIP: 0x55555558b3ba (<DumpTrackInfo+9210>: cmp QWORD PTR [rax+0x20],0x0)
R8 : 0x7ffffffd1860 --> 0x1
R9 : 0x7ffff79840e9 (<GetESD+281>: mov r12d,eax)
R10: 0x7ffff772714e ("gf_isom_get_rvc_config")
R11: 0x7ffff794fcb0 (<gf_isom_get_rvc_config>: endbr64)
R12: 0x1
R13: 0x7ffffffd194c --> 0x20000ac44
R14: 0x7ffff76f0780 --> 0x7ffff76f05c0 --> 0xfbad2887
R15: 0x5555555d8860 --> 0x0
EFLAGS: 0x10246 (carry PARITY adjust ZERO sign trap INTERRUPT direction overflow)
[-------------------------------------code-------------------------------------]
0x55555558b3a9 <DumpTrackInfo+9193>:
lea rcx,[rip+0x25e03] # 0x5555555b11b3
0x55555558b3b0 <DumpTrackInfo+9200>: mov rdi,QWORD PTR [r14]
0x55555558b3b3 <DumpTrackInfo+9203>:
lea rdx,[rip+0x2835e] # 0x5555555b3718
=> 0x55555558b3ba <DumpTrackInfo+9210>: cmp QWORD PTR [rax+0x20],0x0 ----->rax+0x20 is a Invalid address
0x55555558b3bf <DumpTrackInfo+9215>: mov r13,rax
0x55555558b3c2 <DumpTrackInfo+9218>:
lea rax,[rip+0x25df4] # 0x5555555b11bd
0x55555558b3c9 <DumpTrackInfo+9225>: mov esi,0x1
0x55555558b3ce <DumpTrackInfo+9230>: cmove rcx,rax
[------------------------------------stack-------------------------------------]
0000| 0x7ffffffd18e0 --> 0x0
0008| 0x7ffffffd18e8 --> 0x7ffffffd19a0 --> 0x0
0016| 0x7ffffffd18f0 --> 0x7ffffffd196c --> 0x555dd52000000000
0024| 0x7ffffffd18f8 --> 0x0
0032| 0x7ffffffd1900 --> 0x7ffffffd1968 --> 0x0
0040| 0x7ffffffd1908 --> 0x7fffffff8090 ("00:00:01.881")
0048| 0x7ffffffd1910 --> 0x1
0056| 0x7ffffffd1918 --> 0xac44
[------------------------------------------------------------------------------]
Legend: code, data, rodata, value
Stopped reason: SIGSEGV
0x000055555558b3ba in DumpTrackInfo (file=file@entry=0x5555555d8860,
trackID=<optimized out>, trackID@entry=0x1,
full_dump=full_dump@entry=GF_FALSE,
is_track_num=is_track_num@entry=GF_TRUE,
dump_m4sys=dump_m4sys@entry=GF_FALSE) at filedump.c:3006
3006 GF_BIFSConfig *b_cfg = gf_odf_get_bifs_config(esd->decoderConfig->decoderSpecificInfo, esd->decoderConfig->objectTypeIndication);
```
asan info
```
AddressSanitizer:DEADLYSIGNAL
=================================================================
==1040668==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000020 (pc 0x565326fa6e55 bp 0x60b0000003b0 sp 0x7ffc360dc990 T0)
==1040668==The signal is caused by a READ memory access.
==1040668==Hint: address points to the zero page.
#0 0x565326fa6e54 in DumpTrackInfo /home/.../gpac/gpac-master/applications/mp4box/filedump.c:3007
#1 0x565326fb3f44 in DumpMovieInfo /home/.../gpac/gpac-master/applications/mp4box/filedump.c:3777
#2 0x565326f7071d in mp4boxMain /home/.../gpac/gpac-master/applications/mp4box/main.c:5991
#3 0x7f48670170b2 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x270b2)
#4 0x565326f12f1d in _start (/home/.../gpac/gpac-master/bin/gcc/MP4Box+0x48f1d)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /home/.../gpac/gpac-master/applications/mp4box/filedump.c:3007 in DumpTrackInfo
==1040668==ABORTING
```
source code
```
3004 else if (esd->decoderConfig->streamType==GF_STREAM_SCENE) {
3005 if (esd->decoderConfig->objectTypeIndication<=4) {
3006 GF_BIFSConfig *b_cfg = gf_odf_get_bifs_config(esd->decoderConfig->decoderSpecificInfo, esd->decoderConfig->objectTypeIndication);
3007 fprintf(stderr, "BIFS Scene description - %s stream\n", b_cfg->elementaryMasks ? "Animation" : "Command");
3008 if (full_dump && !b_cfg->elementaryMasks) {
3009 fprintf(stderr, "\tWidth %d Height %d Pixel Metrics %s\n", b_cfg->pixelWidth, b_cfg->pixelHeight, b_cfg->pixelMetrics ? "yes" : "no");
3010 }
``` | A NULL pointer dereference in the function DumpTrackInfo in filedump.c:3007 | https://api.github.com/repos/gpac/gpac/issues/1847/comments | 0 | 2021-07-07T03:30:49Z | 2021-07-08T13:39:16Z | https://github.com/gpac/gpac/issues/1847 | 938,444,001 | 1,847 |
[
"gpac",
"gpac"
] |
Hello,
A heap-buffer-overflow has occurred in function gf_isom_dovi_config_get of isomedia/avc_ext.c:2435 when running program MP4Box,this can reproduce on the lattest commit.
System info:
Ubuntu 20.04.1 : clang 10.0.0 , gcc 9.3.0
[poc_heap.zip](https://github.com/gpac/gpac/files/6773968/poc_heap.zip)
Verification steps:
1.Get the source code of gpac
2.Compile
```
cd gpac-master
CC=gcc CXX=g++ CFLAGS="-fsanitize=address" CXXFLAGS="-fsanitize=address" ./configure
make
```
3.run MP4Box
```
./MP4Box -info poc.mp4
```
command line
```
[iso file] Unknown box type esJs in parent enca
[iso file] Unknown box type stts in parent enca
[iso file] Box "enca" (start 1455) has 5 extra bytes
[iso file] Box "enca" is larger than container box
[iso file] Box "stsd" size 171 (start 1439) invalid (read 192)
* Movie Info *
Timescale 90000 - 2 tracks
Segmentation fault
```
asan info
```
=================================================================
==1042542==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x610000000130 at pc 0x7fc6ede92514 bp 0x7ffcfced6850 sp 0x7ffcfced6840
READ of size 8 at 0x610000000130 thread T0
#0 0x7fc6ede92513 in gf_isom_dovi_config_get isomedia/avc_ext.c:2435
#1 0x7fc6ee2fec1e in gf_media_get_rfc_6381_codec_name media_tools/isom_tools.c:4207
#2 0x558b1bf03ac5 in DumpTrackInfo /home.../gpac/gpac-master/applications/mp4box/filedump.c:3442
#3 0x558b1bf18f44 in DumpMovieInfo /home.../gpac/gpac-master/applications/mp4box/filedump.c:3777
#4 0x558b1bed571d in mp4boxMain /home.../gpac/gpac-master/applications/mp4box/main.c:5991
#5 0x7fc6ed2390b2 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x270b2)
#6 0x558b1be77f1d in _start (/home.../gpac/gpac-master/bin/gcc/MP4Boxfl+0x48f1d)
Address 0x610000000130 is a wild pointer.
SUMMARY: AddressSanitizer: heap-buffer-overflow isomedia/avc_ext.c:2435 in gf_isom_dovi_config_get
Shadow bytes around the buggy address:
0x0c207fff7fd0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c207fff7fe0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c207fff7ff0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c207fff8000: fa fa fa fa fa fa fa fa 00 00 00 00 00 00 00 00
0x0c207fff8010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
=>0x0c207fff8020: fa fa fa fa fa fa[fa]fa fa fa fa fa fa fa fa fa
0x0c207fff8030: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c207fff8040: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c207fff8050: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c207fff8060: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c207fff8070: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
Shadow byte legend (one shadow byte represents 8 application bytes):
Addressable: 00
Partially addressable: 01 02 03 04 05 06 07
Heap left redzone: fa
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack after return: f5
Stack use after scope: f8
Global redzone: f9
Global init order: f6
Poisoned by user: f7
Container overflow: fc
Array cookie: ac
Intra object redzone: bb
ASan internal: fe
Left alloca redzone: ca
Right alloca redzone: cb
Shadow gap: cc
==1042542==ABORTING
```
source code
```
2428 GF_DOVIDecoderConfigurationRecord *gf_isom_dovi_config_get(GF_ISOFile* the_file, u32 trackNumber, u32 DescriptionIndex)
2429 {
2430 GF_TrackBox* trak;
2431 GF_MPEGVisualSampleEntryBox *entry;
2432 trak = gf_isom_get_track_from_file(the_file, trackNumber);
2433 if (!trak || !trak->Media || !DescriptionIndex) return NULL;
2434 entry = (GF_MPEGVisualSampleEntryBox*)gf_list_get(trak->Media->information->sampleTable->SampleDescription->child_boxes, DescriptionIndex - 1);
2435 if (!entry || !entry->dovi_config) return NULL;
2436 return DOVI_DuplicateConfig(&entry->dovi_config->DOVIConfig);
2437 }
``` | A heap-buffer-overflow has occurred in function gf_isom_dovi_config_get | https://api.github.com/repos/gpac/gpac/issues/1846/comments | 0 | 2021-07-07T03:09:17Z | 2021-07-07T13:51:03Z | https://github.com/gpac/gpac/issues/1846 | 938,434,438 | 1,846 |
[
"gpac",
"gpac"
] | Hello,
There is a Null Pointer Dereference in function DumpTrackInfo of filedump.c:2962,this can reproduce on the lattest commit.
System info:
Ubuntu 20.04.1 : clang 10.0.0 , gcc 9.3.0
[poc (2).zip](https://github.com/gpac/gpac/files/6771032/poc.2.zip)
Verification steps:
1.Get the source code of gpac
2.Compile
```
cd gpac-master
CC=gcc CXX=g++ CFLAGS="-fsanitize=address" CXXFLAGS="-fsanitize=address" ./configure
make
```
3.run MP4Box
```
./MP4Box -info poc.mp4
```
command line
```
...
# Track 1 Info - ID 1 - TimeScale 44100
Media Duration 00:00:00.339
Media Info: Language "Undetermined (und)" - Type "soun:mp4a" - 13 samples
Segmentation fault
```
GDB info

ASAN info
```
AddressSanitizer:DEADLYSIGNAL
=================================================================
==4002438==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x55d13e590cfb bp 0x60b0000003b0 sp 0x7ffdd8b0e760 T0)
==4002438==The signal is caused by a READ memory access.
==4002438==Hint: address points to the zero page.
#0 0x55d13e590cfa in DumpTrackInfo /home/.../gpac/gpac-master/applications/mp4box/filedump.c:2962
#1 0x55d13e59ff44 in DumpMovieInfo /home/.../gpac/gpac-master/applications/mp4box/filedump.c:3777
#2 0x55d13e55c71d in mp4boxMain /home/.../gpac/gpac-master/applications/mp4box/main.c:5991
#3 0x7f0ca4b400b2 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x270b2)
#4 0x55d13e4fef1d in _start (/home/.../gpac/gpac-master/bin/gcc/MP4Box+0x48f1d)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /home/.../gpac/gpac-master/applications/mp4box/filedump.c:2962 in DumpTrackInfo
==4002438==ABORTING
```
source code
```
2960 GF_ISOSample *samp = gf_isom_get_sample(file, trackNum, 1, &oti);
2961 if (samp) {
2962 u32 mhdr = GF_4CC((u8)samp->data[0], (u8)samp->data[1], (u8)samp->data[2], (u8)samp->data[3]);
2963 if (full_dump) fprintf(stderr, "\t");
2964 fprintf(stderr, "%s Audio - %d Channel(s) - SampleRate %d - Layer %d\n",
2965 gf_mp3_version_name(mhdr),
2966 gf_mp3_num_channels(mhdr),
2967 gf_mp3_sampling_rate(mhdr),
2968 gf_mp3_layer(mhdr)
2969 );
```
| A Null Pointer Dereference In DumpTrackInfo | https://api.github.com/repos/gpac/gpac/issues/1844/comments | 1 | 2021-07-06T15:29:45Z | 2023-03-17T09:02:36Z | https://github.com/gpac/gpac/issues/1844 | 938,018,835 | 1,844 |
[
"gpac",
"gpac"
] | Hello,
A heap-buffer-overflow has occurred when running program MP4Box,this can reproduce on the lattest commit.
System info:
Ubuntu 20.04.1 : clang 10.0.0 , gcc 9.3.0
[poc (2).zip](https://github.com/gpac/gpac/files/6768309/poc.2.zip)
Verification steps:
1.Get the source code of gpac
2.Compile
```
cd gpac-master
CC=gcc CXX=g++ CFLAGS="-fsanitize=address" CXXFLAGS="-fsanitize=address" ./configure
make
```
3.run MP4Box
```
./MP4Box -hint poc -out /dev/null
```
asan info
```
=================================================================
==1181205==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x602000001a10 at pc 0x7fe374470ab9 bp 0x7ffc088fb3a0 sp 0x7ffc088fb390
READ of size 2 at 0x602000001a10 thread T0
#0 0x7fe374470ab8 in gp_rtp_builder_do_tx3g ietf/rtp_pck_3gpp.c:581
#1 0x7fe374d2848a in gf_hinter_track_process media_tools/isom_hinter.c:808
#2 0x5562fc957e2b in HintFile /home/dh/.../gpac/gpac-master/applications/mp4box/main.c:3499
#3 0x5562fc96ed54 in mp4boxMain /home/dh/.../gpac/gpac-master/applications/mp4box/main.c:6297
#4 0x7fe3739600b2 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x270b2)
#5 0x5562fc921f1d in _start (/home/dh/.../gpac/gpac-master/bin/gcc/MP4Box+0x48f1d)
0x602000001a11 is located 0 bytes to the right of 1-byte region [0x602000001a10,0x602000001a11)
allocated by thread T0 here:
#0 0x7fe37683ebc8 in malloc (/lib/x86_64-linux-gnu/libasan.so.5+0x10dbc8)
#1 0x7fe3748646cd in Media_GetSample isomedia/media.c:617
SUMMARY: AddressSanitizer: heap-buffer-overflow ietf/rtp_pck_3gpp.c:581 in gp_rtp_builder_do_tx3g
Shadow bytes around the buggy address:
0x0c047fff82f0: fa fa fd fd fa fa fd fd fa fa fd fd fa fa fd fd
0x0c047fff8300: fa fa fd fa fa fa 00 00 fa fa 00 00 fa fa 00 00
0x0c047fff8310: fa fa 00 00 fa fa 00 00 fa fa 00 00 fa fa 00 00
0x0c047fff8320: fa fa 00 00 fa fa 00 00 fa fa 00 00 fa fa 00 00
0x0c047fff8330: fa fa 00 00 fa fa 00 00 fa fa 00 00 fa fa 00 00
=>0x0c047fff8340: fa fa[01]fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8350: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8360: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8370: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8380: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8390: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
Shadow byte legend (one shadow byte represents 8 application bytes):
Addressable: 00
Partially addressable: 01 02 03 04 05 06 07
Heap left redzone: fa
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack after return: f5
Stack use after scope: f8
Global redzone: f9
Global init order: f6
Poisoned by user: f7
Container overflow: fc
Array cookie: ac
Intra object redzone: bb
ASan internal: fe
Left alloca redzone: ca
Right alloca redzone: cb
Shadow gap: cc
==1181205==ABORTING
```
source code
```
567 if (cur_frag==nb_frag) {
568 builder->rtp_header.Marker = 1;
569 builder->OnPacketDone(builder->cbk_obj, &builder->rtp_header);
570 builder->bytesInPacket = 0;
571 } else {
572 builder->rtp_header.Marker = 0;
573 builder->OnPacketDone(builder->cbk_obj, &builder->rtp_header);
574 builder->rtp_header.SequenceNumber += 1;
575 builder->OnNewPacket(builder->cbk_obj, &builder->rtp_header);
576 builder->bytesInPacket = 0;
577 }
578 txt_done += size;
579 }
580 return GF_OK;
581}
```
| heap-buffer-overflow in rtp_pck_3gpp.c | https://api.github.com/repos/gpac/gpac/issues/1843/comments | 1 | 2021-07-06T08:05:26Z | 2021-07-06T09:53:34Z | https://github.com/gpac/gpac/issues/1843 | 937,628,459 | 1,843 |
[
"gpac",
"gpac"
] | Hello,
A heap-buffer-overflow has occurred when running program MP4Box,this can reproduce on the lattest commit.
System info:
Ubuntu 20.04.1 : clang 10.0.0 , gcc 9.3.0
[poc1.zip](https://github.com/gpac/gpac/files/6766970/poc1.zip)
Verification steps:
1.Get the source code of gpac
2.Compile
```
cd gpac-master
CC=gcc CXX=g++ CFLAGS="-fsanitize=address" CXXFLAGS="-fsanitize=address" ./configure
make
```
3.run MP4Box
```
./MP4Box -hint poc -out /dev/null
```
asan info
```
=================================================================
==47156==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x602000001892 at pc 0x7f5f1dea9b2c bp 0x7ffe02fd8810 sp 0x7ffe02fd8800
READ of size 1 at 0x602000001892 thread T0
#0 0x7f5f1dea9b2b in gp_rtp_builder_do_tx3g ietf/rtp_pck_3gpp.c:399
#1 0x7f5f1e76148a in gf_hinter_track_process media_tools/isom_hinter.c:808
#2 0x5622a222ce2b in HintFile /home/.../gpac/gpac-master/applications/mp4box/main.c:3499
#3 0x5622a2243d54 in mp4boxMain /home/.../gpac/gpac-master/applications/mp4box/main.c:6297
#4 0x7f5f1d3990b2 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x270b2)
#5 0x5622a21f6f1d in _start (/home/.../gpac/gpac-master/bin/gcc/MP4Box+0x48f1d)
0x602000001892 is located 0 bytes to the right of 2-byte region [0x602000001890,0x602000001892)
allocated by thread T0 here:
#0 0x7f5f20277bc8 in malloc (/lib/x86_64-linux-gnu/libasan.so.5+0x10dbc8)
#1 0x7f5f1e29d6cd in Media_GetSample isomedia/media.c:617
SUMMARY: AddressSanitizer: heap-buffer-overflow ietf/rtp_pck_3gpp.c:399 in gp_rtp_builder_do_tx3g
Shadow bytes around the buggy address:
0x0c047fff82c0: fa fa fd fd fa fa 00 00 fa fa 00 00 fa fa fd fd
0x0c047fff82d0: fa fa fd fd fa fa fd fd fa fa fd fd fa fa fd fd
0x0c047fff82e0: fa fa fd fa fa fa 00 00 fa fa 00 00 fa fa 00 00
0x0c047fff82f0: fa fa 00 00 fa fa 00 00 fa fa 00 00 fa fa 00 00
0x0c047fff8300: fa fa 00 00 fa fa 00 00 fa fa 00 00 fa fa 00 00
=>0x0c047fff8310: fa fa[02]fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8320: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8330: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8340: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8350: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8360: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
Shadow byte legend (one shadow byte represents 8 application bytes):
Addressable: 00
Partially addressable: 01 02 03 04 05 06 07
Heap left redzone: fa
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack after return: f5
Stack use after scope: f8
Global redzone: f9
Global init order: f6
Poisoned by user: f7
Container overflow: fc
Array cookie: ac
Intra object redzone: bb
ASan internal: fe
Left alloca redzone: ca
Right alloca redzone: cb
Shadow gap: cc
==47156==ABORTING
```
source code
```
396 pay_start = 2;
397 if (txt_size>2) {
398 /*seems 3GP only accepts BE UTF-16 (no LE, no UTF32)*/
399 if (((u8) data[2]==(u8) 0xFE) && ((u8) data[3]==(u8) 0xFF)) {
400 is_utf_16 = GF_TRUE;
401 pay_start = 4;
402 txt_size -= 2;
403 }
404 }
405 samp_size = data_size - pay_start;
```
| heap-buffer-overflow in gp_rtp_builder_do_tx3g | https://api.github.com/repos/gpac/gpac/issues/1842/comments | 1 | 2021-07-06T02:59:40Z | 2021-08-06T01:08:16Z | https://github.com/gpac/gpac/issues/1842 | 937,474,838 | 1,842 |
[
"gpac",
"gpac"
] | To reproduce:
```
gpac -graph -logs=dash:filter@info -threads=1 -i https://www.gpac-licensing.com/downloads/tmp/t2/stream.mpd:gpac:forward=mani cecrypt:cfile=DRM.xml @ -o t2-cenc/stream.mpd:pssh=mv
```
PID AS_1 doesn't seem to propagate EOS properly.
Bonus: remove the logs and you'll get various errors:
```
$ gpac -graph -threads=1 -i https://www.gpac-licensing.com/downloads/tmp/t2/stream.mpd:gpac:forward=mani cecrypt:cfile=DRM.xml @ -o t2-cenc/stream.mpd:pssh=mv
[iso file] Missing MediaInformationBox
```
or
```
$ gpac -graph -threads=1 -i https://www.gpac-licensing.com/downloads/tmp/t2/stream.mpd:gpac:forward=mani cecrypt:cfile=DRM.xml @ -o t2-cenc/stream.mpd:pssh=mv
segfault
``` | dasher pid not emitting EOS -> locking | https://api.github.com/repos/gpac/gpac/issues/1841/comments | 4 | 2021-07-05T20:14:02Z | 2021-07-14T13:21:36Z | https://github.com/gpac/gpac/issues/1841 | 937,342,694 | 1,841 |
[
"gpac",
"gpac"
] |
Hello,
A heap-buffer-overflow has occurred when running program MP4Box,which leads to a Deny of Service caused by dividing zero without sanity check,this can reproduce on the lattest commit.
System info:
Ubuntu 20.04.1 : clang 10.0.0 , gcc 9.3.0
[poc.zip](https://github.com/gpac/gpac/files/6763051/poc.zip)
file: media.c
function:gf_isom_get_3gpp_audio_esd
line: 105
As below code shows:
```
97 gf_bs_write_data(bs, "\x41\x6D\x7F\x5E\x15\xB1\xD0\x11\xBA\x91\x00\x80\x5F\xB4\xB9\x7E", 16);
98 gf_bs_write_u16_le(bs, 1);
99 memset(szName, 0, 80);
100 strcpy(szName, "QCELP-13K(GPAC-emulated)");
101 gf_bs_write_data(bs, szName, 80);
102 ent = &stbl->TimeToSample->entries[0];
103 sample_rate = entry->samplerate_hi;
104 block_size = ent ? ent->sampleDelta : 160;
105 gf_bs_write_u16_le(bs, 8*sample_size*sample_rate/block_size); <------ block_size can be zero
106 gf_bs_write_u16_le(bs, sample_size);
107 gf_bs_write_u16_le(bs, block_size);
108 gf_bs_write_u16_le(bs, sample_rate);
109 gf_bs_write_u16_le(bs, entry->bitspersample);
110 gf_bs_write_u32_le(bs, sample_size ? 0 : 7);
```
Verification steps:
1.Get the source code of gpac
2.Compile
```
cd gpac-master
CC=gcc CXX=g++ CFLAGS="-fsanitize=address" CXXFLAGS="-fsanitize=address" ./configure
make
```
3.run MP4Box
```
./MP4Box -hint poc -out /dev/null
```
In Command line:
```
[iso file] Unknown box type esJs in parent enca
[iso file] Unknown box type stts in parent enca
[iso file] Box "enca" (start 1455) has 5 extra bytes
[iso file] Box "enca" is larger than container box
[iso file] Box "stsd" size 171 (start 1439) invalid (read 192)
Floating point exception
```
gdb info

asan info
```
=================================================================
==967870==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x602000001874 at pc 0x7f3a53c0836c bp 0x7ffcce36e790 sp 0x7ffcce36e780
READ of size 4 at 0x602000001874 thread T0
#0 0x7f3a53c0836b in gf_isom_get_3gpp_audio_esd isomedia/media.c:104
#1 0x7f3a53c0836b in Media_GetESD isomedia/media.c:330
#2 0x7f3a53b1ac04 in gf_isom_get_decoder_config isomedia/isom_read.c:1329
#3 0x7f3a53b56d2e in gf_isom_guess_specification isomedia/isom_read.c:4035
#4 0x5602827ad1d1 in HintFile /home/.../gpac/gpac-master-A/applications/mp4box/main.c:3379
#5 0x5602827c4d54 in mp4boxMain /home/.../gpac/gpac-master-A/applications/mp4box/main.c:6297
#6 0x7f3a52d080b2 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x270b2)
#7 0x560282777f1d in _start (/home/.../gpac/gpac-master-A/bin/gcc/MP4Box+0x48f1d)
0x602000001874 is located 3 bytes to the right of 1-byte region [0x602000001870,0x602000001871)
allocated by thread T0 here:
#0 0x7f3a55be6bc8 in malloc (/lib/x86_64-linux-gnu/libasan.so.5+0x10dbc8)
#1 0x7f3a539e10ec in stts_box_read isomedia/box_code_base.c:5788
SUMMARY: AddressSanitizer: heap-buffer-overflow isomedia/media.c:104 in gf_isom_get_3gpp_audio_esd
Shadow bytes around the buggy address:
0x0c047fff82b0: fa fa 00 00 fa fa 00 00 fa fa 00 00 fa fa 00 00
0x0c047fff82c0: fa fa fd fd fa fa fd fd fa fa fd fa fa fa 00 00
0x0c047fff82d0: fa fa 01 fa fa fa 00 00 fa fa 00 00 fa fa 00 00
0x0c047fff82e0: fa fa 00 00 fa fa 01 fa fa fa 00 00 fa fa 00 00
0x0c047fff82f0: fa fa 00 00 fa fa 00 00 fa fa 00 00 fa fa 00 00
=>0x0c047fff8300: fa fa 00 00 fa fa 00 fa fa fa 00 00 fa fa[01]fa
0x0c047fff8310: fa fa 00 00 fa fa 00 00 fa fa 00 00 fa fa 00 fa
0x0c047fff8320: fa fa 00 00 fa fa 00 00 fa fa 00 00 fa fa 00 00
0x0c047fff8330: fa fa 01 fa fa fa 00 00 fa fa 00 00 fa fa 00 00
0x0c047fff8340: fa fa 00 00 fa fa fd fd fa fa fd fd fa fa fd fd
0x0c047fff8350: 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
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack after return: f5
Stack use after scope: f8
Global redzone: f9
Global init order: f6
Poisoned by user: f7
Container overflow: fc
Array cookie: ac
Intra object redzone: bb
ASan internal: fe
Left alloca redzone: ca
Right alloca redzone: cb
Shadow gap: cc
==967870==ABORTING
```
| heap buffer overflow issue with gpac MP4Box | https://api.github.com/repos/gpac/gpac/issues/1840/comments | 0 | 2021-07-05T12:32:43Z | 2021-07-05T14:50:12Z | https://github.com/gpac/gpac/issues/1840 | 937,046,365 | 1,840 |
[
"gpac",
"gpac"
] |
Hello,
A heap-buffer-overflow has occurred when running program MP4Box,this can reproduce on the lattest commit.
System info:
Ubuntu 20.04.1 : clang 10.0.0 , gcc 9.3.0
[poc (2).zip](https://github.com/gpac/gpac/files/6757843/poc.2.zip)
Verification steps:
1.Get the source code of gpac
2.Compile
```
cd gpac-master
CC=gcc CXX=g++ CFLAGS="-fsanitize=address" CXXFLAGS="-fsanitize=address" ./configure
make
```
3.run MP4Box
```
./MP4Box -hint poc -out /dev/null
```
asan info
```
=================================================================
==2004876==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x6020000019d1 at pc 0x7fea2448ec93 bp 0x7ffc8468b6b0 sp 0x7ffc8468b6a0
READ of size 1 at 0x6020000019d1 thread T0
#0 0x7fea2448ec92 in gp_rtp_builder_do_mpeg12_video ietf/rtp_pck_mpeg12.c:146
#1 0x7fea24d4248a in gf_hinter_track_process media_tools/isom_hinter.c:808
#2 0x55f9f43b8e2b in HintFile /home/.../gpac/gpac-master/applications/mp4box/main.c:3499
#3 0x55f9f43cfd54 in mp4boxMain /home/.../gpac/gpac-master/applications/mp4box/main.c:6297
#4 0x7fea2397a0b2 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x270b2)
#5 0x55f9f4382f1d in _start (/home/.../gpac/gpac-master/bin/gcc/MP4Boxfl+0x48f1d)
0x6020000019d1 is located 0 bytes to the right of 1-byte region [0x6020000019d0,0x6020000019d1)
allocated by thread T0 here:
#0 0x7fea26858bc8 in malloc (/lib/x86_64-linux-gnu/libasan.so.5+0x10dbc8)
#1 0x7fea2487e6cd in Media_GetSample isomedia/media.c:617
SUMMARY: AddressSanitizer: heap-buffer-overflow ietf/rtp_pck_mpeg12.c:146 in gp_rtp_builder_do_mpeg12_video
Shadow bytes around the buggy address:
0x0c047fff82e0: fa fa fd fd fa fa fd fd fa fa fd fd fa fa fd fd
0x0c047fff82f0: fa fa fd fa fa fa fd fd fa fa fd fd fa fa fd fd
0x0c047fff8300: fa fa fd fd fa fa fd fd fa fa fd fa fa fa 00 00
0x0c047fff8310: fa fa 00 00 fa fa 00 00 fa fa 00 00 fa fa 00 00
0x0c047fff8320: fa fa 00 00 fa fa 00 00 fa fa 00 00 fa fa 00 00
=>0x0c047fff8330: fa fa 00 00 fa fa 00 00 fa fa[01]fa fa fa fa fa
0x0c047fff8340: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8350: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8360: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8370: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8380: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
Shadow byte legend (one shadow byte represents 8 application bytes):
Addressable: 00
Partially addressable: 01 02 03 04 05 06 07
Heap left redzone: fa
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack after return: f5
Stack use after scope: f8
Global redzone: f9
Global init order: f6
Poisoned by user: f7
Container overflow: fc
Array cookie: ac
Intra object redzone: bb
ASan internal: fe
Left alloca redzone: ca
Right alloca redzone: cb
Shadow gap: cc
==2004876==ABORTING
```
source code of rtp_pck_mpeg12.c
```
143 max_pck_size = builder->Path_MTU - 4;
144
145 payload = data + offset;
146 pic_type = (payload[1] >> 3) & 0x7;
147 /*first 6 bits (MBZ and T bit) not used*/
148 /*temp ref on 10 bits*/
149 mpv_hdr[0] = (payload[0] >> 6) & 0x3;
150 mpv_hdr[1] = (payload[0] << 2) | ((payload[1] >> 6) & 0x3);
151 mpv_hdr[2] = pic_type;
152 mpv_hdr[3] = 0;
153
154 if ((pic_type==2) || (pic_type== 3)) {
155 mpv_hdr[3] = (u8) ((((u32)payload[3]) << 5) & 0xf);
156 if ((payload[4] & 0x80) != 0) mpv_hdr[3] |= 0x10;
157 if (pic_type == 3) mpv_hdr[3] |= (payload[4] >> 3) & 0xf;
158 }
```
| A heap-buffer-overflow in rtp_pck_mpeg12.c | https://api.github.com/repos/gpac/gpac/issues/1839/comments | 2 | 2021-07-03T04:50:32Z | 2021-07-06T07:56:22Z | https://github.com/gpac/gpac/issues/1839 | 936,171,338 | 1,839 |
[
"gpac",
"gpac"
] | Hello,
A heap-buffer-overflow has occurred when running program MP4Box,this can reproduce on the lattest commit.
System info:
Ubuntu 20.04.1 : clang 10.0.0 , gcc 9.3.0
[poc1.zip](https://github.com/gpac/gpac/files/6757801/poc1.zip)
Verification steps:
1.Get the source code of gpac
2.Compile
```
cd gpac-master
CC=gcc CXX=g++ CFLAGS="-fsanitize=address" CXXFLAGS="-fsanitize=address" ./configure
make
```
3.run MP4Box
```
./MP4Box -hint poc -out /dev/null
```
asan info
```
=================================================================
==2631249==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x602000001bd4 at pc 0x7f2ac7fe5b9b bp 0x7ffc4389ba70 sp 0x7ffc4389ba60
READ of size 1 at 0x602000001bd4 thread T0
#0 0x7f2ac7fe5b9a in gp_rtp_builder_do_mpeg12_video ietf/rtp_pck_mpeg12.c:156
#1 0x7f2ac889948a in gf_hinter_track_process media_tools/isom_hinter.c:808
#2 0x559f0eb8ae2b in HintFile /home/.../gpac/gpac-master/applications/mp4box/main.c:3499
#3 0x559f0eba1d54 in mp4boxMain /home/.../gpac/gpac-master/applications/mp4box/main.c:6297
#4 0x7f2ac74d10b2 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x270b2)
#5 0x559f0eb54f1d in _start (/home/.../gpac/gpac-master/bin/gcc/MP4Boxfl+0x48f1d)
0x602000001bd4 is located 0 bytes to the right of 4-byte region [0x602000001bd0,0x602000001bd4)
allocated by thread T0 here:
#0 0x7f2aca3afbc8 in malloc (/lib/x86_64-linux-gnu/libasan.so.5+0x10dbc8)
#1 0x7f2ac83d56cd in Media_GetSample isomedia/media.c:617
SUMMARY: AddressSanitizer: heap-buffer-overflow ietf/rtp_pck_mpeg12.c:156 in gp_rtp_builder_do_mpeg12_video
Shadow bytes around the buggy address:
0x0c047fff8320: fa fa fd fd fa fa fd fd fa fa fd fd fa fa fd fd
0x0c047fff8330: fa fa fd fa fa fa fd fd fa fa fd fd fa fa fd fd
0x0c047fff8340: fa fa fd fd fa fa fd fd fa fa fd fa fa fa 00 00
0x0c047fff8350: fa fa 00 00 fa fa 00 00 fa fa 00 00 fa fa 00 00
0x0c047fff8360: fa fa 00 00 fa fa 00 00 fa fa 00 00 fa fa 00 00
=>0x0c047fff8370: fa fa 00 00 fa fa 00 00 fa fa[04]fa fa fa fa fa
0x0c047fff8380: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8390: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff83a0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff83b0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff83c0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
Shadow byte legend (one shadow byte represents 8 application bytes):
Addressable: 00
Partially addressable: 01 02 03 04 05 06 07
Heap left redzone: fa
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack after return: f5
Stack use after scope: f8
Global redzone: f9
Global init order: f6
Poisoned by user: f7
Container overflow: fc
Array cookie: ac
Intra object redzone: bb
ASan internal: fe
Left alloca redzone: ca
Right alloca redzone: cb
Shadow gap: cc
==2631249==ABORTING
```
source code of rtp_pck_mpeg12.c
```
143 max_pck_size = builder->Path_MTU - 4;
144
145 payload = data + offset;
146 pic_type = (payload[1] >> 3) & 0x7;
147 /*first 6 bits (MBZ and T bit) not used*/
148 /*temp ref on 10 bits*/
149 mpv_hdr[0] = (payload[0] >> 6) & 0x3;
150 mpv_hdr[1] = (payload[0] << 2) | ((payload[1] >> 6) & 0x3);
151 mpv_hdr[2] = pic_type;
152 mpv_hdr[3] = 0;
153
154 if ((pic_type==2) || (pic_type== 3)) {
155 mpv_hdr[3] = (u8) ((((u32)payload[3]) << 5) & 0xf);
156 if ((payload[4] & 0x80) != 0) mpv_hdr[3] |= 0x10;
157 if (pic_type == 3) mpv_hdr[3] |= (payload[4] >> 3) & 0xf;
158 }
```
| A heap-buffer-overflow in function gp_rtp_builder_do_mpeg12_video | https://api.github.com/repos/gpac/gpac/issues/1838/comments | 0 | 2021-07-03T03:57:55Z | 2021-07-05T14:50:12Z | https://github.com/gpac/gpac/issues/1838 | 936,163,558 | 1,838 |
[
"gpac",
"gpac"
] | How can I measure the quality of 360 video?
I 'm playing 360 Video tiled streaming which is created by the following command.
mp4box.exe -dash 1000 -frag 1000 -profile live 10M.mp4 20M.mp4 30M.mp4 40M.mp4 -out "10x10\dash.mpd"
Could it possible to measure the merged viewport?
I saw the other people measured by VMAF and PSNR. #1713
But he used a complete MP4.
Could it possible to save the mp4 when I use the MP4Client to play the DASH ?
| How can I measure the quality of 360 video? | https://api.github.com/repos/gpac/gpac/issues/1835/comments | 1 | 2021-06-30T11:02:01Z | 2021-07-05T15:08:16Z | https://github.com/gpac/gpac/issues/1835 | 933,572,058 | 1,835 |
[
"gpac",
"gpac"
] | ```
$ gpac -i avgen:ch=2 @ resample:och=1 @ ffenc:c=aac @ -o null
No filter chain found for PID video in filter avgen to any loaded filters - NOT CONNECTED
[aac @ 0x55e6bd9f0740] Channel layout 'stereo' with 2 channels does not match number of specified channels 1
[FFEnc] PID audio failed to open codec context: Invalid argument
Failed to reconfigure PID resample:audio in filter ffenc:aac: Bad Parameter
Erreur de segmentation
``` | 'resample' audio layout wrong propagation + bonus crash | https://api.github.com/repos/gpac/gpac/issues/1834/comments | 0 | 2021-06-28T14:19:00Z | 2021-07-06T08:57:31Z | https://github.com/gpac/gpac/issues/1834 | 931,625,653 | 1,834 |
[
"gpac",
"gpac"
] | Platform: macOS/linux
Compiler: gcc / go
Hi there. I need to be able to programmatically split an mp4 file into equally sized (not duration) chunks. I found that the mp4box -splits command was the way to go for this. Please could you point me in the direction of the function which does this? I would like to wrap it using CGo so that I can call the function from a Go program instead of calling the executable from the command line. This way, the mp4box splits command will be compiled and packaged with the binary.
Where is the specific function located? | mp4box split function location | to generate cgo bindings for calling programmatically | https://api.github.com/repos/gpac/gpac/issues/1833/comments | 6 | 2021-06-27T10:20:27Z | 2021-07-01T14:06:16Z | https://github.com/gpac/gpac/issues/1833 | 930,897,240 | 1,833 |
[
"gpac",
"gpac"
] | Hello,when I got the gpac source code and tried to compile them(./configure && make), the following error appeared.
System info:
Ubuntu 20.04 : clang 10.0.0 , gcc 9.3.0
./configure: 2470: source: not found
** System Configuration
Install prefix: /usr/local
Source path: /home/dh/Desktop/gpac-master/gpac-master
C compiler: gcc
C++ compiler: g++
make: make
CPU: x86_64
Big Endian: no
** GPAC 1.1.0-DEV rev Core Configuration **
Static Modules: no
debug version: no
GProf enabled: no
Memory tracking enabled: no
Sanitizer enabled: no
Fixed-Point Version: no
IPV6 Support: yes
QuickJS Support: yes (qjslibc yes)
** Detected libraries **
zlib: system
OpenGL support: no
TinyGL support: no
OpenSSL support: yes
OSS Audio: yes
ALSA Audio: no
Jack Audio: no
Pulse Audio: no
DirectFB: no
SDL: no
DVB for Linux: yes
FreeType: system
JPEG: no
OpenJPEG: no
PNG: system
MAD: no
FAAD: no
XVID: no
FFMPEG: no
LZMA: no
Xiph OGG: no
Platinum UPnP: no
A52 (AC3): no
OpenSVCDecoder: no
OpenHEVCDecoder: no
Freenect: no
nghttp2: no
Creating config.mak
Check config.log for detection failures
Done - type 'make help' for make info, 'make' to build
...
CC utils/os_divers.c
utils/os_divers.c:80:10: fatal error: gpac/revision.h: No such file or directory
80 | #include <gpac/revision.h>
| ^~~~~~~~~~~~~~~~~
compilation terminated.
make[1]: *** [../config.mak:144: utils/os_divers.o] Error 1
make[1]: Leaving directory '/home/dh/Desktop/gpac-master/gpac-master/src'
make: *** [Makefile:13: all] Error 2
How to solve this problem?
| An error occurred while compiling the file | https://api.github.com/repos/gpac/gpac/issues/1832/comments | 6 | 2021-06-26T16:17:34Z | 2021-06-30T07:04:26Z | https://github.com/gpac/gpac/issues/1832 | 930,729,715 | 1,832 |
[
"gpac",
"gpac"
] | I am trying to play with ```gpac -play pl.m3u```.
I've uploaded the input files on the mediafire.
```
test-1.mp4 @ reframer:xs=280:xe=300
test-2.mp4 @ reframer:xs=290:xe=300
test-3.mp4 @ reframer:xs=290:xe=300
#end
```
Would only play the audio. The log says:
```
[Filters] Dijkstra result: fin(0) flist(0) aout b
Solved filter chain from filter fin PID pl.m3u to filter aout - dumping chain:
flist
Filter flist needs to be connected to decide its outputs, not loading end of the chain
[Filters] Dijkstra: sorted filters in 255 us, Dijkstra done in 266 us on 31 nodes 883 edges
[Filters] Dijkstra result: fin(0) flist(0) vout
Skip link from fin:pl.m3u to vout because already connected to filter flist which can handle the connection
Filter fin pid pl.m3u connecting to flist (0x5627670dc8a0)
Connected filter fin (0x562766db7030) PID pl.m3u (0x5627670fc180) (1 fan-out) to filter flist (0x5627670dc8a0)
Filter fin PID pl.m3u property changed at this packet, triggering reconfigure
[FileIn] opening test-1.mp4
[FileList] Switching to file test-1.mp4 @ reframer:xs=280:xe=300
Data Prober (filter mp4dmx) detected format is mime video/mp4
Filter fin PID test-1.mp4 connection pending, queuing packet
[Filters] Dijkstra: sorted filters in 210 us, Dijkstra done in 216 us on 19 nodes 561 edges
[Filters] Dijkstra result: fin(0) mp4dmx(0) aout
Solved filter chain from filter fin PID test-1.mp4 to filter aout - dumping chain:
mp4dmx
Filter mp4dmx needs to be connected to decide its outputs, not loading end of the chain
[Filters] Dijkstra: sorted filters in 346 us, Dijkstra done in 356 us on 30 nodes 858 edges
[Filters] Dijkstra result: fin(0) mp4dmx(0) vout
Skip link from fin:test-1.mp4 to vout because already connected to filter mp4dmx which can handle the connection
[Filters] Dijkstra: sorted filters in 346 us, Dijkstra done in 362 us on 44 nodes 1329 edges
[Filters] Dijkstra result: fin(0) mp4dmx(0) reframer
Skip link from fin:test-1.mp4 to reframer because already connected to filter mp4dmx which can handle the connection
Found EOS packet in PID pl.m3u in filter flist - eos 1
Filter fin pid test-1.mp4 connecting to mp4dmx (0x562767117cc0)
Filter fin PID test-1.mp4 queuing downstream event PLAY_HINT
Connected filter fin (0x5627670dd650) PID test-1.mp4 (0x5627670edf90) (1 fan-out) to filter mp4dmx (0x562767117cc0)
[Filters] Dijkstra: sorted filters in 310 us, Dijkstra done in 321 us on 18 nodes 639 edges
[Filters] Dijkstra result: mp4dmx(0) ffdec(0) vout
Solved filter chain from filter mp4dmx PID V1 to filter vout - dumping chain:
ffdec b
Filter fin PID test-1.mp4 processed event PLAY_HINT - canceled yes
Filter mp4dmx pid V1 connecting to reframer (0x5627670e00c0)
Connected filter mp4dmx (0x562767117cc0) PID V1 (0x5627670eb490) (1 fan-out) to filter reframer (0x5627670e00c0)
Filter mp4dmx pid A2 connecting to reframer (0x5627670e00c0)
Connected filter mp4dmx (0x562767117cc0) PID A2 (0x5627670fbea0) (1 fan-out) to filter reframer (0x5627670e00c0)
Filter mp4dmx pid V1 connecting to ffdec (0x56276715d670)
Connected filter mp4dmx (0x562767117cc0) PID V1 (0x5627670eb490) (2 fan-out) to filter ffdec:h264 (0x56276715d670)
Filter fin PID test-1.mp4 property changed at this packet, triggering reconfigure
Filter fin PID test-1.mp4 was already configured with the last property set, ignoring reconfigure
Filter reframer pid V1 connecting to flist (0x5627670dc8a0)
Connected filter reframer (0x5627670e00c0) PID V1 (0x5627670f6bd0) (1 fan-out) to filter flist (0x5627670dc8a0)
Filter reframer pid A2 connecting to flist (0x5627670dc8a0)
Connected filter reframer (0x5627670e00c0) PID A2 (0x56276715e250) (1 fan-out) to filter flist (0x5627670dc8a0)
No filter chain found for PID V1 in filter flist to any loaded filters - NOT CONNECTED
```
Other example:
```
#repeat=2000
beepbop.mp4 @ reframer:rt=on:xs=1:xe=
```
Doesn't start. Log:
```
No filter chain found for PID A1 in filter flist to any loaded filters - NOT CONNECTED
Filter reframer PID A1 queuing downstream event CONNECT_FAIL
Filter flist PID A1 queuing downstream event PLAY
Filter flist PID A1 queuing downstream event STOP
EOS signaled on PID A1 in filter flist
Filter flist PID A1 EOS detected
Filter flist PID A1 connection pending, queuing packet
No filter chain found for PID V2 in filter flist to any loaded filters - NOT CONNECTED
``` | Chaining filter in playlist doesn't play as expected | https://api.github.com/repos/gpac/gpac/issues/1831/comments | 1 | 2021-06-17T15:40:54Z | 2021-07-07T15:42:28Z | https://github.com/gpac/gpac/issues/1831 | 924,074,001 | 1,831 |
[
"gpac",
"gpac"
] | I'm using the VR360 mode.
I want to rotate the camera of the viewport by code , instead of using mouse and keyboard.
| Where can I change the angle of the camera of the viewport? | https://api.github.com/repos/gpac/gpac/issues/1830/comments | 1 | 2021-06-17T10:38:38Z | 2021-07-05T15:24:31Z | https://github.com/gpac/gpac/issues/1830 | 923,768,868 | 1,830 |
[
"gpac",
"gpac"
] | It shows a lot of buffering.
Buffer : |====== | (33/100)
How can I increase the size of the buffer?
| How can I increase the size of the buffer for MPEG-DASH playback? | https://api.github.com/repos/gpac/gpac/issues/1829/comments | 1 | 2021-06-16T09:33:05Z | 2021-06-16T10:11:54Z | https://github.com/gpac/gpac/issues/1829 | 922,375,942 | 1,829 |
[
"gpac",
"gpac"
] | Thanks for reporting your issue. Please make sure these boxes are checked before submitting your issue - thank you!
- [x] I looked for a similar issue and couldn't find any.
- [x] I tried with the latest version of GPAC. Installers available at http://gpac.io/downloads/gpac-nightly-builds/
- [x] I give enough information for contributors to reproduce my issue (meaningful title, github labels, platform and compiler, command-line ...). I can share files anonymously with this dropbox: https://www.mediafire.com/filedrop/filedrop_hosted.php?drop=eec9e058a9486fe4e99c33021481d9e1826ca9dbc242a6cfaab0fe95da5e5d95
Detailed guidelines: http://gpac.io/2013/07/16/how-to-file-a-bug-properly/
Hi,
I'd like some helpm on linking a file which i am calling form a cusotm filter I'm trying to build:
I managed to call a `.o` from my filter by adding some flags to the compiler, but upon pulling changes I erased it and can't find how to get a shared `.o` to work witjh my custom filter, :(.
I'm using `ubuntu 20.04`, `gcc 8.4.0` and gpac up tp date with the master branch - so this [commit](https://github.com/gpac/gpac/commit/206ad0907cc1f56ef031b5e3b1e30136e721ba9f) -.
I've got my Makefile which is heavily inspired by the [dec_openhevc](https://github.com/gpac/gpac/blob/master/modules/dec_openhevc/Makefile), as it is module a filter.
My command to compile my filter into a library file is :
```sh
COMMAND = @gcc -shared -o ../../bin/gcc/gf_libTest.so ../../src/filters/ff_common.o read_test.o -lm -L/usr/local/lib -L/usr/local/lib -lavcodec -lavformat -lavutil -lavdevice -lswscale -lswresample -lavfilter -fsanitize=address -Wl,-z,defs -dynamiclib -L../../bin/gcc -lgpac -ldl -fsanitize=address -Wl,-z,defs -dynamiclib
```
which gives me an error :
```sh
/usr/bin/ld: ../../src/filters/ff_common.o: in function `ffmpeg_register_free':
ff_common.c:(.text+0xe7): undefined reference to `gf_fs_remove_filter_register'
/usr/bin/ld: ../../src/filters/ff_common.o: in function `ffmpeg_build_register':
ff_common.c:(.text+0x18a3): undefined reference to `gf_fs_add_filter_register'
/usr/bin/ld: ff_common.c:(.text+0x1a92): undefined reference to `gf_fs_add_filter_register'
/usr/bin/ld: ../../src/filters/ff_common.o: in function `ffmpeg_report_options':
ff_common.c:(.text+0x23ea): undefined reference to `gf_filter_report_meta_option'
collect2: error: ld returned 1 exit status
```
Any pointer?
Thks,
P | [Help wanted] Linkage with internal functions in custom filter | https://api.github.com/repos/gpac/gpac/issues/1828/comments | 5 | 2021-06-14T17:14:32Z | 2021-06-15T15:01:27Z | https://github.com/gpac/gpac/issues/1828 | 920,615,003 | 1,828 |
[
"gpac",
"gpac"
] | This is a minimized test case.
```
gpac -threads=-1 -i pl.m3u @#audio enc:c=aac @ -o out/a.mpd:stl:segdur=1.5:cues=cues.xml --template='$Type$_$Number$'
```
with pl.m3u:
```
avgen:dur=0.5:sr=48000:ch=2
avgen:dur=24:sr=48000:ch=2
```
and cues.xml:
```
<?xml version="1.0" encoding="UTF-8"?>
<DASHCues xmlns="urn:gpac:dash:schema:cues:2018">
<Stream id="1" timescale="1000">
<Cue cts="2000"/>
<Cue cts="3500"/>
<Cue cts="5000"/>
<Cue cts="6500"/>
<Cue cts="8000"/>
<Cue cts="9500"/>
<Cue cts="11000"/>
<Cue cts="12500"/>
<Cue cts="14000"/>
<Cue cts="15500"/>
<Cue cts="17000"/>
<Cue cts="18500"/>
<Cue cts="20000"/>
<Cue cts="21500"/>
<Cue cts="23000"/>
</Stream>
</DASHCues>
```
Sometimes it runs, sometimes it gets stuck (seemingly all the time if I put ```:strict_cues```), sometimes it asserts:
```
gpac: quickjs/quickjs.c:2005: JS_FreeRuntime: Assertion `list_empty(&rt->gc_obj_list)' failed.
Abandon
```
Am I doing anything wrong? | quickjs random assert or stuck in loop (or success) | https://api.github.com/repos/gpac/gpac/issues/1827/comments | 3 | 2021-06-14T14:14:03Z | 2021-07-07T15:31:52Z | https://github.com/gpac/gpac/issues/1827 | 920,457,319 | 1,827 |
[
"gpac",
"gpac"
] | I want to use the MPEG DASH SRD and HEVC tiling for 360 VR videos.
I have created a DASH MPD files by the guide.
Where can I get the frame data from the streamed 360 video?
I want to use shared memory to display the frame in Unity.
So that I can use the real HMD( e.g. the HTC VIVE pro ) to see the videos.
I can not find the answer from internet.
please help me.
| Where can I get the frame data from the MPEG DASH Videos? | https://api.github.com/repos/gpac/gpac/issues/1826/comments | 1 | 2021-06-12T03:32:52Z | 2021-06-16T10:26:18Z | https://github.com/gpac/gpac/issues/1826 | 919,403,105 | 1,826 |
[
"gpac",
"gpac"
] | pl.m3u:
```
avgen:dur=0.5:sr=48000:ch=2
avgen:dur=24:sr=48000:ch=2
```
```
$ gpac -threads=-1 -graph -i pl.m3u @#audio enc:c=aac @ reframer:xs=1/2:xe=49/2:xround=seek @ -o source1/audio.mpd:stl:segdur=1.5 --template='$Type$_$Number$'
No filter chain found for PID video in filter flist to any loaded filters - NOT CONNECTED
gpac: quickjs/quickjs.c:5493: free_zero_refcount: Assertion `p->ref_count == 0' failed.
Abandon
``` | quickjs random assert with avgen from playlist | https://api.github.com/repos/gpac/gpac/issues/1825/comments | 2 | 2021-06-11T14:26:43Z | 2021-07-07T15:00:12Z | https://github.com/gpac/gpac/issues/1825 | 918,820,962 | 1,825 |
[
"gpac",
"gpac"
] | Source files:
* https://www.gpac-licensing.com/downloads/tmp/tos.mp4
Doesn't work (the DASH second period is not at the right time (PTO value is not 9.6s) and A/V is desync):
```
gpac -i tos.mp4:FID=GEN1 \
resample:osr=48k:SID=GEN1 @ enc:c=aac:FID=GEN1A \
ffsws:osize=960x426:SID=GEN1 @ enc:c=avc:fintra=1.920:FID=GEN1V \
reframer:#ClampDur=9.6:FID=RF1:SID=GEN1A,GEN1V:xs=19.6,29.2::props=#PStart=0:#m=m1,#PStart=9.6:#m=m2 \
-o broken/dash.mpd:segdur=1.920:stl:cmaf=cmf2:SID=RF1 --template=\$m\$_\$Type\$_\$Number\$"
```
Works:
```
gpac -i tos.mp4 \
@ resample:osr=48k @1 ffsws:osize=960x426 \
@ @1 reframer:#ClampDur=9.6:xs=19.6,29.2::props=#PStart=0:#m=m1,#PStart=9.6:#m=m2 \
@ enc:c=aac:FID=GEN1A @1 enc:c=avc:fintra=1.920:FID=GEN1V \
-o works/dash.mpd:segdur=1.920:stl:cmaf=cmf2:SID=GEN1A,GEN1V --template=\$m\$_\$Type\$_\$Number\$"
``` | Reframer cuts in compressed mode leads to incorrect DASH content (raw is ok) | https://api.github.com/repos/gpac/gpac/issues/1823/comments | 1 | 2021-06-08T14:46:35Z | 2021-07-07T17:27:41Z | https://github.com/gpac/gpac/issues/1823 | 915,133,815 | 1,823 |
[
"gpac",
"gpac"
] | I want to change bandwidth to monitor ABS
| How can bandwidth control with python | https://api.github.com/repos/gpac/gpac/issues/1822/comments | 1 | 2021-06-07T03:55:00Z | 2021-06-07T12:16:12Z | https://github.com/gpac/gpac/issues/1822 | 913,061,952 | 1,822 |
[
"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 ...).
Hi,
The resolution of my video is 3840x1920.
I divided the video frame by the tile size 128x128 pixels to created a hevc-tiled MP4.
If I play the video by the command MP4Client 5000bps.hvc
it will stuck on black screen and shows

If I want to create dash contents, it also can not work.
I need the small tile size for my research, it is very important for me.
Please help me.
Thank you guys.
The following are my commands for creating the mp4 and MPD.
.\kvazaar.exe -i 4K.yuv --input-res 3840x1920 -o 5000bps.hvc --tiles 30x15 --slices tiles -q 40 --mv-constraint frametilemargin --bitrate 5000 --period 30 --input-fps 30
Mp4box.exe -add 5000bps.hvc:split_tiles -new 5000bps.mp4
MP4Box -dash 1000 -rap -frag-rap -profile live -out dash_tiled.mpd 5000bps.mp4
| Failed to playback 30x15 hevc-tiled MP4 and can not create dash contents | https://api.github.com/repos/gpac/gpac/issues/1821/comments | 1 | 2021-06-04T11:27:17Z | 2021-06-07T12:08:36Z | https://github.com/gpac/gpac/issues/1821 | 911,406,243 | 1,821 |
[
"gpac",
"gpac"
] | Thanks for the fix for my problems before.
Now I want to use the - gui command with MP4Client for 10x10 hevc-tiled dash contents.
My command is
Mp4client .\dash_tiled.mpd -logs=all@info:dash@debug -gui
But it will stop after the following messags.

By the way, how much tiles of the column and row can I use in hevc-tiled dash contents?
I need a lot of tiles for my research. Thanks.
| MP4Client with gui command failed to playback 8x8 hevc-tiled dash contents | https://api.github.com/repos/gpac/gpac/issues/1820/comments | 1 | 2021-06-03T17:03:07Z | 2021-06-07T11:57:30Z | https://github.com/gpac/gpac/issues/1820 | 910,690,291 | 1,820 |
[
"gpac",
"gpac"
] | Hello, I can play tiles : 3x3 ~ 7x7 hevc-tiled dash contents.
But I can not play over 8x8 tiles.
Is it possible to play over 8x8 tiles?
Please help me, thank you guys. | MP4Client failed to playback 8x8 hevc-tiled dash contents | https://api.github.com/repos/gpac/gpac/issues/1819/comments | 3 | 2021-06-02T09:20:18Z | 2021-06-03T12:22:50Z | https://github.com/gpac/gpac/issues/1819 | 909,286,735 | 1,819 |
[
"gpac",
"gpac"
] | Hello, I am lost in creating a dash manifest for webm files and I hope you can help me.
I am creating webm files with ffmpeg:
```
ffmpeg -y -i $videoFilePath -c:v libvpx -keyint_min 150 -g 150 -tile-columns 4 -frame-parallel 1 `
-f webm -dash 1 -an -s 320x180 -b:v 500k ${dashFolder}/360p-30-700k.webm
```
When I now try to create the dash manifest, i get this:
```
[Dasher] No bitrate property assigned to PID video1, computing from bitstream
[Dasher] No bitrate property assigned to PID video1, computing from bitstream
[Dasher] No bitrate property assigned to PID video1, computing from bitstream
[Dasher] No bitrate property assigned to PID video1, computing from bitstream
[Dasher] No bitrate property assigned to PID audio1, computing from bitstream
[Dasher] Cannot find VPX config, using default vp08
[Dasher] Cannot find VPX config, using default vp08
[Dasher] Cannot find VPX config, using default vp08
[Dasher] Cannot find VPX config, using default vp08
[Dasher] codec parameters not known, cannot set codec string
[MP4Mux] No decoder specific info found for VP08
Failed to connect filter dasher PID video1 to filter mp4mx: BitStream Not Compliant
Blacklisting mp4mx as output from dasher and retrying connections
[MP4Mux] No decoder specific info found for VP08
Failed to connect filter dasher PID video1 to filter mp4mx: BitStream Not Compliant
Blacklisting mp4mx as output from dasher and retrying connections
[MP4Mux] No decoder specific info found for VP08
Failed to connect filter dasher PID video1 to filter mp4mx: BitStream Not Compliant
Blacklisting mp4mx as output from dasher and retrying connections
[MP4Mux] No decoder specific info found for VP08
Failed to connect filter dasher PID video1 to filter mp4mx: BitStream Not Compliant
Blacklisting mp4mx as output from dasher and retrying connections
No filter chain found for PID video1 in filter dasher to any loaded filters - NOT CONNECTED
No filter chain found for PID video1 in filter dasher to any loaded filters - NOT CONNECTED
No filter chain found for PID video1 in filter dasher to any loaded filters - NOT CONNECTED
No filter chain found for PID video1 in filter dasher to any loaded filters - NOT CONNECTED
[MP4Mux] Done writing segment 1 - estimated next fragment times start 0.002 end 2
Filters not connected:
fout (dst=C:/Users/AndreGa/Desktop/Converter/v7/ASM_1stSteps_ConfiguringParameterset_noUT/dash/360p-30-700k_dash_rep1init.mp4:gfopt:segdur=4000/1000:profile=onDemand:buf=1500:!check_dur:ps
sh=v:subs_sidx=0:frag:xps_inband=no:psshs=moov:mime=video/mp4) (ptr=000001EA6E2AFCE0)
fout (dst=C:/Users/AndreGa/Desktop/Converter/v7/ASM_1stSteps_ConfiguringParameterset_noUT/dash/480p-30-1250k_dash_rep2init.mp4:gfopt:segdur=4000/1000:profile=onDemand:buf=1500:!check_dur:p
ssh=v:subs_sidx=0:frag:xps_inband=no:psshs=moov:mime=video/mp4) (ptr=000001EA6E2B0540)
fout (dst=C:/Users/AndreGa/Desktop/Converter/v7/ASM_1stSteps_ConfiguringParameterset_noUT/dash/720p-30-2500k_dash_rep3init.mp4:gfopt:segdur=4000/1000:profile=onDemand:buf=1500:!check_dur:p
ssh=v:subs_sidx=0:frag:xps_inband=no:psshs=moov:mime=video/mp4) (ptr=000001EA6E2B1DB0)
fout (dst=C:/Users/AndreGa/Desktop/Converter/v7/ASM_1stSteps_ConfiguringParameterset_noUT/dash/1080p-30-4500k_dash_rep4init.mp4:gfopt:segdur=4000/1000:profile=onDemand:buf=1500:!check_dur:
pssh=v:subs_sidx=0:frag:xps_inband=no:psshs=moov:mime=video/mp4) (ptr=000001EA6E2B2610)
Error DASHing file: Internal Service Error
```
The command looks like this:
```
MP4Box -dash 4000 -frag 4000 -rap -profile onDemand -out ${dashFolder}/manifest.mpd `
${dashFolder}/360p-30-700k.webm `
${dashFolder}/480p-30-1250k.webm `
${dashFolder}/720p-30-2500k.webm `
${dashFolder}/1080p-30-4500k.webm `
${dashFolder}/audio.webm
```
I tried it with following. Some new webm files will be created but no manifest.
```
MP4Box -dash 4000 -frag 4000 -rap -profile onDemand -out ${dashFolder}/manifest.mpd --muxtype=webm `
${dashFolder}/360p-30-700k.webm `
${dashFolder}/480p-30-1250k.webm `
${dashFolder}/720p-30-2500k.webm `
${dashFolder}/1080p-30-4500k.webm `
${dashFolder}/audio.webm
```
How do i get the dash manifest?
The manifest I can create with ffmpeg can not be read correctly by the videojs player . So I hope mp4box can create a working manifest. Thank you. | Need some help with dashing webm files | https://api.github.com/repos/gpac/gpac/issues/1818/comments | 2 | 2021-05-28T14:43:30Z | 2021-09-14T14:42:03Z | https://github.com/gpac/gpac/issues/1818 | 905,535,573 | 1,818 |
[
"gpac",
"gpac"
] | I want to create a custom GPAC filter which is going to be a decoder at later stage.
From [this](https://github.com/gpac/gpac/wiki/filters_general#external-filters) document, it says we can load external filters from default module folder.
So I have created a folder "test_filter" in the gpac_public\modules folder and added a makefile and gf_test_filter.c source file in it.
Also I have added `PLUGDIRS+=test_filter` in the makefile of modules folder to enable build of test_filter.
But in the build log I am not seeing this file getting compiled anywhere and I am not able to use this filter with the gpac command.
It gives following error
```
Failed to find filter "testfilter"
Closest filter names:
- flist
``` | Need help implementing a custom filter | https://api.github.com/repos/gpac/gpac/issues/1817/comments | 19 | 2021-05-28T08:35:09Z | 2021-06-10T08:34:52Z | https://github.com/gpac/gpac/issues/1817 | 904,951,878 | 1,817 |
[
"gpac",
"gpac"
] | I run the following commands:
```
kvazaar -i output_1280x720p.yuv --input-res 1280x720 -o output.hvc --tiles 2x2 --slices tiles --mv-constraint frametilemargin --bitrate 128000 --period 30 --input-fps 30
MP4Box -add output.hvc:split_tiles -fps 30 -new video_tiled.mp4
MP4Box -dash 1000 -rap -frag-rap -profile live -out dash_tiled.mpd video_tiled.mp4
```
After running I got the last command , I got .m4s file track ID wise as expected but I am not able to play them on gpac (it says Filter not found for desired type).
Also I want to combine to combine .m4s trackid wise to a tile_x.mp4 file for object detection , so I run the following command
```
cat video_tiled_dash_track2_init.mp4 $(ls -vx video_tiled_dash_track2_*.m4s) > source_2.mp4
```
So, I got source_2.mp4 which was suppose to contain to track ID 2 but the there is no output of source_2.pm4 with gpac
Can anybody explain why this is happening and help me resolve this?
Thanks in advance!
Please let me know if more details are required
| .m4s not playing correctly | https://api.github.com/repos/gpac/gpac/issues/1816/comments | 4 | 2021-05-27T19:54:41Z | 2021-05-28T18:07:18Z | https://github.com/gpac/gpac/issues/1816 | 904,132,748 | 1,816 |
[
"gpac",
"gpac"
] | Hello.
I want to create rpm package from the .spec file but got an error:
```
media_tools/av_parsers.c: In function 'gf_av1_parse_obu':
media_tools/av_parsers.c:4154:2: error: 'for' loop initial declarations are only allowed in C99 mode
for (int i = state->spatial_id; i < 4; i++) {
^
media_tools/av_parsers.c:4154:2: note: use option -std=c99 or -std=gnu99 to compile your code
media_tools/av_parsers.c: At top level:
cc1: warning: unrecognized command line option "-Wno-int-in-bool-context" [enabled by default]
make[1]: *** [media_tools/av_parsers.o] Error 1
make[1]: Leaving directory `/builddir/build/BUILD/gpac-master/src'
make: *** [all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.bZUUhm (%build)
```
How can fix the problem? | Problem with create a rpm package from the .spec file | https://api.github.com/repos/gpac/gpac/issues/1815/comments | 4 | 2021-05-27T16:29:23Z | 2021-06-01T12:39:14Z | https://github.com/gpac/gpac/issues/1815 | 903,967,349 | 1,815 |
[
"gpac",
"gpac"
] | Hello, the Cisco Talos team found security vulnerabilities affecting GPAC products. As this is a sensitive security issue, we request this issue be marked as private before entering the details for each report.
For further information about the Cisco Vendor Vulnerability Reporting and Disclosure Policy please refer to this document which also links to our public PGP key. https://tools.cisco.com/security/center/resources/vendor_vulnerability_policy.html
| Talos Security Advisory for (TALOS-2021-1297, 1298, 1299) | https://api.github.com/repos/gpac/gpac/issues/1814/comments | 13 | 2021-05-26T13:45:45Z | 2021-08-18T13:25:32Z | https://github.com/gpac/gpac/issues/1814 | 902,417,837 | 1,814 |
[
"gpac",
"gpac"
] | https://github.com/gpac/gpac/blob/4a8000c4595bcff82fe54afc4f6a515c2e1322ba/src/filters/reframe_rawvid.c#L261-L269
If it is possible that`ctx->frame_size` smaller than `ctx->nb_bytes_in_frame` and result in a heap overflow in the `memcpy()`? | A question about possible heap overflow in rawvidreframe_process() | https://api.github.com/repos/gpac/gpac/issues/1813/comments | 1 | 2021-05-26T08:32:10Z | 2021-05-26T15:37:05Z | https://github.com/gpac/gpac/issues/1813 | 901,999,220 | 1,813 |
[
"gpac",
"gpac"
] | https://github.com/gpac/gpac/blob/4a8000c4595bcff82fe54afc4f6a515c2e1322ba/src/filters/dmx_mpegps.c#L383-L387
If it is possible that `buf_len` smaller than 4 and result in a heap overflow in the `memcpy()`. | Possible heap overflow in m2psdmx_process() | https://api.github.com/repos/gpac/gpac/issues/1812/comments | 0 | 2021-05-26T08:23:22Z | 2021-05-26T15:37:14Z | https://github.com/gpac/gpac/issues/1812 | 901,984,334 | 1,812 |
[
"gpac",
"gpac"
] | https://github.com/gpac/gpac/blob/4a8000c4595bcff82fe54afc4f6a515c2e1322ba/src/media_tools/media_export.c#L910-L922
The esd->decoderConfig is not checked before referenced. | Possible null pointer dereference in gf_media_export_six() | https://api.github.com/repos/gpac/gpac/issues/1811/comments | 1 | 2021-05-26T06:52:05Z | 2021-05-26T15:38:34Z | https://github.com/gpac/gpac/issues/1811 | 901,853,032 | 1,811 |
[
"gpac",
"gpac"
] | https://github.com/gpac/gpac/blob/4a8000c4595bcff82fe54afc4f6a515c2e1322ba/src/scene_manager/loader_isom.c#L51-L65
The esd->decoderConfig is not checked before referenced. | Possible null pointer dereference in UpdateODCommand() | https://api.github.com/repos/gpac/gpac/issues/1810/comments | 0 | 2021-05-26T06:50:53Z | 2021-05-26T15:37:14Z | https://github.com/gpac/gpac/issues/1810 | 901,852,171 | 1,810 |
[
"gpac",
"gpac"
] | https://github.com/gpac/gpac/blob/4a8000c4595bcff82fe54afc4f6a515c2e1322ba/src/media_tools/media_export.c#L691-L700
The esd->decoderConfig is not checked before referenced. | Possible null pointer dereference in gf_media_export_webvtt_metadata() | https://api.github.com/repos/gpac/gpac/issues/1809/comments | 0 | 2021-05-26T06:35:48Z | 2021-05-26T15:37:14Z | https://github.com/gpac/gpac/issues/1809 | 901,839,354 | 1,809 |
[
"gpac",
"gpac"
] | https://github.com/gpac/gpac/blob/4a8000c4595bcff82fe54afc4f6a515c2e1322ba/src/media_tools/media_import.c#L346-L352
The `origin_esd->decoderConfig` is not checked before referenced. | Possible null pointer dereference in gf_import_isomedia_track() | https://api.github.com/repos/gpac/gpac/issues/1808/comments | 0 | 2021-05-26T06:31:02Z | 2021-05-26T15:37:13Z | https://github.com/gpac/gpac/issues/1808 | 901,835,279 | 1,808 |
[
"gpac",
"gpac"
] | The manifest misses (at least) ```xmlns:cenc="urn:mpeg:cenc:2013"``` because dasher_update_mpd() is never called after use_cenc is set.
Command-line used:
```
gpac -i clear/stream.mpd:forward=mani cecrypt:cfile=DRM.xml @ -o cenc/stream.mpd:pssh=mv
```
In my case all is fine but I'm unsure about xlink processing as well.
What do you think? | dashin forward mode with encryption leads to invalid manifest | https://api.github.com/repos/gpac/gpac/issues/1807/comments | 0 | 2021-05-25T17:03:42Z | 2021-05-26T15:08:12Z | https://github.com/gpac/gpac/issues/1807 | 901,099,320 | 1,807 |
[
"gpac",
"gpac"
] | https://github.com/gpac/gpac/blob/c5d2a6fc6b0ddccf8e4f60757d024e0b183c531e/src/scene_manager/encode_isom.c#L1291-L1297
There are several places where the esd->decoderConfig are not checked before they are referenced. | Possible null pointer dereference in gf_sm_encode_od() | https://api.github.com/repos/gpac/gpac/issues/1806/comments | 0 | 2021-05-25T14:01:23Z | 2021-05-25T15:07:08Z | https://github.com/gpac/gpac/issues/1806 | 900,856,687 | 1,806 |
[
"gpac",
"gpac"
] | https://github.com/gpac/gpac/blob/c5d2a6fc6b0ddccf8e4f60757d024e0b183c531e/applications/deprecated/mp42ts/main.c#L1634-L1635
There are several places where the `esd->decoderConfig` are not checked before they are referenced. | Possible null pointer dereference in open_source() | https://api.github.com/repos/gpac/gpac/issues/1805/comments | 1 | 2021-05-25T13:59:23Z | 2021-05-25T14:56:48Z | https://github.com/gpac/gpac/issues/1805 | 900,854,028 | 1,805 |
[
"gpac",
"gpac"
] | I think I am confused by the way the list of props are propagated, in particular ```#Period``` (but the code shows nothing particular compared to ```#PStart``` so I assume the error comes from me).
If I execute (one props but then what is the separator? ':'?) ```gpac -i avgen:dur=30:sr=48000:ch=2 @ enc:c=aac:FID=GEN1A @1 enc:c=avc:fintra=1.920:FID=GEN1V reframer:#ClampDur=9.6:FID=RF1:SID=GEN1A,GEN1V:xs=0,9.6:props=#PStart=0,#PStart=19.2:#Period=P1,#Period=P3:#m=m1,#m=m3 -i avgen:dur=30:sr=48000:ch=2 @ enc:c=aac:FID=GEN2A @1 enc:c=avc:fintra=1.920:FID=GEN2V reframer:#ClampDur=9.6:FID=RF2:SID=GEN2A,GEN2V:xs=9.6:#PStart=9.6:#Period=P2:#m=m2:#BUrl=batch3/real/a -o tmp/dash.mpd:segdur=1.920:stl:cmaf=cmf2:SID=RF1,RF2 --template='$m$_$Type$_$Number$'```, I get (Period ID is ```P1,#Period=P3```):
```
<Period id="P1,#Period=P3" duration="PT0H0M9.600S">
...
</Period>
<Period id="P2" start="PT0H0M9.600S" duration="PT0H0M9.600S">
...
</Period>
<Period id="P1,#Period=P3" start="PT0H0M19.200S" duration="PT0H0M9.600S">
...
</Period>
</MPD>
```
If I execute (props splitted): ```gpac -i avgen:dur=30:sr=48000:ch=2 @ enc:c=aac:FID=GEN1A @1 enc:c=avc:fintra=1.920:FID=GEN1V reframer:#ClampDur=9.6:FID=RF1:SID=GEN1A,GEN1V:xs=0,9.6:props=#PStart=0,#PStart=19.2:props=#Period=P1,#Period=P3:props=#m=m1,#m=m3 -i avgen:dur=30:sr=48000:ch=2 @ enc:c=aac:FID=GEN2A @1 enc:c=avc:fintra=1.920:FID=GEN2V reframer:#ClampDur=9.6:FID=RF2:SID=GEN2A,GEN2V:xs=9.6:#PStart=9.6:#Period=P2:#m=m2:#BUrl=batch3/real/a -o tmp/dash.mpd:segdur=1.920:stl:cmaf=cmf2:SIDID=RF1,RF2 --template='$m$_$Type$_$Number$'```, I get (period 3 has disappeared):
```
<Period id="P1" duration="PT0H0M9.600S">
...
</Period>
<Period id="P2" start="PT0H0M9.600S" duration="PT0H0M9.600S">
...
</Period>
</MPD>
```
what do I miss? | question on multiple props lists propagation | https://api.github.com/repos/gpac/gpac/issues/1800/comments | 2 | 2021-05-24T13:22:34Z | 2021-05-25T11:46:50Z | https://github.com/gpac/gpac/issues/1800 | 899,655,548 | 1,800 |
[
"gpac",
"gpac"
] | ```gpac -threads=-1 -i avgen:dur=30:sr=48000:ch=2 @ enc:c=aac:FID=GEN1A @1 enc:c=avc:fintra=1.920:FID=GEN1V reframer:#ClampDur=9.6:FID=RF1:SID=GEN1A,GEN1V:xs=0,9.6::props=#PStart=0:#m=m1,#PStart=19.2:#m=m3 -i avgen:dur=30:sr=48000:ch=2 @ enc:c=aac:FID=GEN2A @1 enc:c=avc:fintra=1.920:FID=GEN2V reframer:#ClampDur=9.6:FID=RF2:SID=GEN2A,GEN2V:xs=9.6:#PStart=9.6:#m=m2:#BUrl=batch3/real/a -o batch3/counter/a/dash.mpd:segdur=1.920:stl:cmaf=cmf2:SID=RF1,RF2 --template='$m$_$Type$_$Number$'``` | gpac -threads=-1 never exits | https://api.github.com/repos/gpac/gpac/issues/1799/comments | 2 | 2021-05-24T12:18:00Z | 2021-05-25T11:33:04Z | https://github.com/gpac/gpac/issues/1799 | 899,608,137 | 1,799 |
[
"gpac",
"gpac"
] | ```gpac -i avgen:dur=30:sr=48000:ch=2:#ClampDur=9.6:#PStart=0.0:#m=m1 @ ffenc:c=aac @1 ffenc:c=avc:fintra=1.920 @ @1 reframer:xs=0.0:FID=P0 -i avgen:dur=30:sr=48000:ch=2:#ClampDur=9.6:#PStart=9.6:#m=m2:#BUrl=batch3/counter/b/ @ ffenc:c=aac @1 ffenc:c=avc:fintra=1.920 @ @1 reframer:xs=9.6:FID=P1 -i avgen:dur=30:sr=48000:ch=2:#ClampDur=9.6:#PStart=19.2:#m=m3 @ ffenc:c=aac @1 ffenc:c=avc:fintra=1.920 @ @1 reframer:xs=19.2:FID=P2 -o batch3/counter/b/dash.mpd:segdur=1.920:stl:cmaf=cmf2:SID=P0,P1,P2 --template='$m$_$Type$_$Number$'``` | regression: [FFDmx] Fail to open avgen - error No such file or directory | https://api.github.com/repos/gpac/gpac/issues/1798/comments | 3 | 2021-05-24T12:13:21Z | 2021-05-25T08:28:53Z | https://github.com/gpac/gpac/issues/1798 | 899,604,928 | 1,798 |
[
"gpac",
"gpac"
] | There is an error message in `decrypt_cenc_isma.c:590`, which tells that a certain KID (e.g. `#1`) cannot be located. I have hard times figuring out, what's missing in my XML input file. Is it possible to spit out the key ID itself?
I'd be glad to create a pull request, if you tell me a standard way of printing out a hexadecimal array :-) | Print out which KID is not found | https://api.github.com/repos/gpac/gpac/issues/1797/comments | 1 | 2021-05-23T10:33:06Z | 2021-05-24T14:18:06Z | https://github.com/gpac/gpac/issues/1797 | 898,988,022 | 1,797 |
[
"gpac",
"gpac"
] | All the logs I am seeing when running the filter are per-existent logs. Not seeing any logs that I have added.
I have added logs in FAAD filter using following statement.
`GF_LOG(GF_LOG_DEBUG, GF_LOG_CODEC, ("[FAAD]: FAAD decode process 1"));`
and checking log with command
`gpac.exe -logs=codec:parser:media@debug:ncl -i aac-test.aac @ rfadts @ faad @ aout`
| How can I print custom logs in existing filter ? | https://api.github.com/repos/gpac/gpac/issues/1796/comments | 4 | 2021-05-21T13:29:03Z | 2021-05-27T08:47:19Z | https://github.com/gpac/gpac/issues/1796 | 898,045,081 | 1,796 |
[
"gpac",
"gpac"
] | I am just starting with gpac. So not sure how to use it and I couldn't find any other place to post a help.
How can I play any encoded or wav pcm audio using gpac ?
[This](https://gpac.wp.imt.fr/player/features#hardware) documentation page mentions Microsoft directsound audio output. Is there any such filter for playing audio ? | Need help playing audio using gpac | https://api.github.com/repos/gpac/gpac/issues/1795/comments | 2 | 2021-05-20T11:34:05Z | 2021-05-20T14:04:30Z | https://github.com/gpac/gpac/issues/1795 | 896,688,741 | 1,795 |
[
"gpac",
"gpac"
] | https://github.com/gpac/gpac/blob/c2086a8cb7eb564f402c58710de26317aa4aa857/src/isomedia/isom_read.c#L4553-L4554
Hello~ There are several calls to the function `gf_list_get` in `gf_isom_get_sample_rap_roll_info`, but the return values of `gf_list_get` are not checked before they are referenced. | Null pointer dereference in gf_isom_get_sample_rap_roll_info | https://api.github.com/repos/gpac/gpac/issues/1794/comments | 1 | 2021-05-20T09:21:19Z | 2021-05-21T10:44:26Z | https://github.com/gpac/gpac/issues/1794 | 896,531,931 | 1,794 |
[
"gpac",
"gpac"
] | https://github.com/gpac/gpac/blob/67271ce02570512e78bb6ab6bdc20bcb2a994d04/src/isomedia/avc_ext.c#L2423-L2424
Hello, I think a NULL pointer dereference may occur in gf_isom_vp_config_get() in src/isomedia/avc_ext.c (there is a related issue described in https://github.com/gpac/gpac/issues/1791).
There in a similar fix in https://github.com/gpac/gpac/commit/b2eab95e07cb5819375a50358d4806a8813b6e50 . | A NULL pointer dereference may occur in gf_isom_vp_config_get() in src/isomedia/avc_ext.c | https://api.github.com/repos/gpac/gpac/issues/1792/comments | 0 | 2021-05-17T07:54:02Z | 2021-05-17T14:49:45Z | https://github.com/gpac/gpac/issues/1792 | 893,048,343 | 1,792 |
[
"gpac",
"gpac"
] | https://github.com/gpac/gpac/blob/67271ce02570512e78bb6ab6bdc20bcb2a994d04/src/isomedia/avc_ext.c#L1437-L1443
Hello, I think a NULL pointer dereference may occur in VP9_RewriteESDescriptorEx() in src/isomedia/avc_ext.c.
There in a similar fix in https://github.com/gpac/gpac/commit/b2eab95e07cb5819375a50358d4806a8813b6e50 | A NULL pointer dereference may occur in VP9_RewriteESDescriptorEx() in src/isomedia/avc_ext.c | https://api.github.com/repos/gpac/gpac/issues/1791/comments | 0 | 2021-05-17T07:27:12Z | 2021-05-17T14:49:45Z | https://github.com/gpac/gpac/issues/1791 | 893,015,886 | 1,791 |
[
"gpac",
"gpac"
] | Several JPEG images are not embedding correctly. The images are not showing as a cover, but are being added to the container.
I can't tell what the difference between the images is that is causing the problem, but I have attached two sample files to the dropbox. The file "[Cover-01-[74316E6F].jpg](https://www.mediafire.com/view/ecdh0civ91sj3ax/Cover-01-%5B74316E6F%5D.jpg/file)" will embed and the image will display as the cover, the second file "[Cover-02-[565CDE27].jpg](https://www.mediafire.com/view/uvs4kqyinzpak3j/Cover-02-%5B565CDE27%5D.jpg/file)" will embed but will not display as the cover.
I have also noticed that trying to embed any image exported from Photoshop in JPEG will cause the same problem. | [MP4Box] Problem embedding JPEG images | https://api.github.com/repos/gpac/gpac/issues/1790/comments | 1 | 2021-05-14T14:55:44Z | 2021-05-17T08:01:53Z | https://github.com/gpac/gpac/issues/1790 | 891,990,867 | 1,790 |
[
"gpac",
"gpac"
] | Hi,
I am trying to use Kvazaar as a GPAC filter with input being rtmp live stream currently from OBS, but in future maybe from other camera.
I tried it with local mp4 file and it is working correctly (I got mpd file and a lot of m4s files). When I put just rtmp://myUrl/live instead of file.mp4 I got this:

and no output files, and when I add :dmode=dynamic at the end of the command, I get _*** buffer overflow detected ***: gpac terminated_ . Is there something else I should do if my input is live? Should I do it in other way? Basically I would like to split live video into tiles, encode tiles to different qualities, and play it while somehow telling which quality of each tile to use.
Thanks
| DASH live tile encoding issue | https://api.github.com/repos/gpac/gpac/issues/1789/comments | 52 | 2021-05-14T08:55:06Z | 2024-01-24T11:48:42Z | https://github.com/gpac/gpac/issues/1789 | 891,745,521 | 1,789 |
[
"gpac",
"gpac"
] | I am trying to build gpac by following the instructions on below page.
https://github.com/gpac/gpac/wiki/GPAC-Build-Guide-for-Windows
I tried to search this in existing list of issues but couldn't find it. So posting here.
I am using Visual Studio 2019 and building for Windows 10 x64.
In the step of [building dependencies](https://github.com/gpac/gpac/wiki/GPAC-Build-Guide-for-Windows#building-dependencies) I am seeing this error.

Here is the command I am using for build.
`msbuild.exe BuildAll_vc10.sln /maxcpucount /t:Build /p:Configuration=Release /p:Platform=x64 /p:PlatformToolset=v142 /p:WindowsTargetPlatformVersion=10`
And this is the directory structure as mentioned in [this](https://github.com/gpac/gpac/wiki/GPAC-Build-Guide-for-Windows#get-the-code).

| Error when building GPAC dependencies on windows 10 | https://api.github.com/repos/gpac/gpac/issues/1788/comments | 6 | 2021-05-13T08:15:33Z | 2021-05-20T10:07:22Z | https://github.com/gpac/gpac/issues/1788 | 890,835,983 | 1,788 |
[
"gpac",
"gpac"
] | generating a sample Mp4 file using ffmpeg and encoding it to 264 high profile
`ffmpeg -f lavfi -i testsrc=size=1920x1080:duration=0.5 -c:v libx264 -profile:v high -level:v 4.0 -pix_fmt yuv420p -y /tmp/main.mp4`
the function [avcc_box_read](https://github.com/gpac/gpac/blob/master/src/isomedia/avc_ext.c#L2675) extract the SPS/PPS from the AVCC atom.
The first byte of the sequenceParameterSets buffer will contain the nal_hdr.
Then, there is a [test](https://github.com/gpac/gpac/blob/master/src/isomedia/avc_ext.c#L2731) checking for the profile and if the profile is 100, the code will be calling [gf_avc_read_sps](https://github.com/gpac/gpac/blob/master/src/isomedia/avc_ext.c#L2737) while removing the 1st byte of the sequenceParameterSets buffer.
`idx = sl ? gf_avc_read_sps(sl->data+1, sl->size-1, &avc, 0, NULL) : -1;`
This function will then call [gf_avc_read_sps_bs](https://github.com/gpac/gpac/blob/master/src/media_tools/av_parsers.c#L5402) which will call [gf_avc_read_sps_bs_internal](https://github.com/gpac/gpac/blob/master/src/media_tools/av_parsers.c#L5091) with nal_hdr being set to 0.
`return gf_avc_read_sps_bs_internal(bs, avc, subseq_sps, vui_flag_pos, 0);`
Which then in the [code](https://github.com/gpac/gpac/blob/master/src/media_tools/av_parsers.c#L5106), will try to parse the 1st byte of the bitstream as nal_hdr. However, it seems we did remove the byte in avcc_box_read and instead of parsing the nal_hdr, we will be parsing the profile_idc
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/
| avcc_box_read : Invalid parsing of SPS from AVCC atom for H264 High Profile? | https://api.github.com/repos/gpac/gpac/issues/1787/comments | 1 | 2021-05-11T22:21:02Z | 2021-05-12T09:29:11Z | https://github.com/gpac/gpac/issues/1787 | 888,899,111 | 1,787 |
[
"gpac",
"gpac"
] | null | [security]memory leak in MP4Box infe_box_read | https://api.github.com/repos/gpac/gpac/issues/1786/comments | 0 | 2021-05-08T05:17:05Z | 2023-09-22T06:13:34Z | https://github.com/gpac/gpac/issues/1786 | 880,299,345 | 1,786 |
[
"gpac",
"gpac"
] | null | [security]memory leak in MP4Box gf_isom_oinf_read_entry | https://api.github.com/repos/gpac/gpac/issues/1785/comments | 0 | 2021-05-08T05:15:54Z | 2023-09-22T06:07:35Z | https://github.com/gpac/gpac/issues/1785 | 880,298,140 | 1,785 |
[
"gpac",
"gpac"
] | null | [security]memory leak in MP4Box gf_isom_get_root_od | https://api.github.com/repos/gpac/gpac/issues/1784/comments | 0 | 2021-05-08T05:14:42Z | 2023-09-22T06:08:59Z | https://github.com/gpac/gpac/issues/1784 | 880,296,904 | 1,784 |
[
"gpac",
"gpac"
] | null | [security]memory leak in MP4Box def_parent_box_new | https://api.github.com/repos/gpac/gpac/issues/1783/comments | 0 | 2021-05-08T05:13:43Z | 2023-09-22T06:07:11Z | https://github.com/gpac/gpac/issues/1783 | 880,295,889 | 1,783 |
[
"gpac",
"gpac"
] | null | [security]memory leak in MP4Box afra_box_read | https://api.github.com/repos/gpac/gpac/issues/1782/comments | 0 | 2021-05-08T05:12:31Z | 2023-09-22T06:09:46Z | https://github.com/gpac/gpac/issues/1782 | 880,294,671 | 1,782 |
[
"gpac",
"gpac"
] | null | oob in MP4Box | https://api.github.com/repos/gpac/gpac/issues/1781/comments | 1 | 2021-05-08T05:10:18Z | 2023-09-22T06:14:10Z | https://github.com/gpac/gpac/issues/1781 | 880,292,426 | 1,781 |
[
"gpac",
"gpac"
] | null | [Security]stack overflow(oob) in MP4Box | https://api.github.com/repos/gpac/gpac/issues/1780/comments | 0 | 2021-05-08T05:09:01Z | 2023-09-22T06:14:24Z | https://github.com/gpac/gpac/issues/1780 | 880,291,127 | 1,780 |
[
"gpac",
"gpac"
] | Result:
```
[ROUTE] Failed to remove object video_dash_track2_226.m4s from service, object not found
100000 <= 1448
gpac: filters/in_http.c:417: httpin_process: Assertion `ctx->nb_read <= b_size' failed.
Abandon
```
Terminal 1:
```
rm -rf /tmp/gpac/route1 && gpac avgen:#BUrl=.,http://127.0.0.1:8080/ enc:c=avc:fintra=1 @ reframer:rt=on:FID=EV enc:c=aac @ reframer:rt=on:FID=EA -o http://localhost:8080/live.mpd:profile=live:dmode=dynamic:segdur=2:reqlog='*':cors=auto:rdirs=/tmp/gpac/route1:SID=EA,EV
```
Terminal 2:
```
gpac -i http://127.0.0.1:8080/live.mpd dashin:forward=file @ -o route://225.1.1.0:6000:llmode
```
Terminal 3:
```
rm -rf /tmp/gpac/route2 && gpac -graph -i route://225.1.1.0:6000/:max_segs=40 dashin:forward=file @ httpout:port=8081:rdirs=/tmp/gpac/route2:reqlog='*':cors=auto
```
Adding ```:fullseg=true``` in the input of terminal 3 solves the issue. | gpac: filters/in_http.c:417: httpin_process: Assertion `ctx->nb_read <= b_size' failed. when not using 'fullseg' | https://api.github.com/repos/gpac/gpac/issues/1779/comments | 4 | 2021-05-06T14:56:54Z | 2021-05-19T10:01:59Z | https://github.com/gpac/gpac/issues/1779 | 877,588,711 | 1,779 |
[
"gpac",
"gpac"
] | Result:
```
Filter httpout request for real-time reschedule but filter is not in process
gpac: filter_core/filter.c:2349: gf_filter_process_task: Assertion `filter->process_task_queued' failed.
Abandon
```
Terminal 1:
```
rm -rf /tmp/gpac/route1 && gpac avgen enc:c=avc:fintra=1 @ reframer:rt=on:FID=EV enc:c=aac @ reframer:rt=on:FID=EA -o http://localhost:8080/live.mpd:profile=live:dmode=dynamic:segdur=2:reqlog='*':cors=auto:rdirs=/tmp/gpac/route1:SID=EA,EV
```
Terminal 2:
```
gpac -i http://127.0.0.1:8080/live.mpd dashin:forward=file @ -o route://225.1.1.0:6000:llmode
```
Terminal 3:
```
$ rm -rf /tmp/gpac/route2 && gpac -logs=dash@info -graph -i route://225.1.1.0:6000/:max_segs=40 dashin:forward=segb:#BUrl=AAA,BBB:FID=R1 dashin:forward=file:FID=R2 -o http://127.0.0.1:8081/live.mpd:sigfrag:profile=live:dmode=dynamic:template='':segdur=2:rdirs=/tmp/gpac/route2:reqlog='*':cors=auto:SID=R1,R2
``` | gf_filter_process_task: Assertion `filter->process_task_queued' failed. | https://api.github.com/repos/gpac/gpac/issues/1778/comments | 4 | 2021-05-06T14:54:52Z | 2021-05-19T17:18:40Z | https://github.com/gpac/gpac/issues/1778 | 877,586,661 | 1,778 |
[
"gpac",
"gpac"
] | Software Version: `MP4Box - GPAC version 1.0.1-rev0-gd8538e8a-master`
OS Version: `Microsoft Windows [Version 10.0.19041.928]`
This is a bit of an odd one, I'm adding captions (SRT format) to existing MP4 files, the ones _not_ initially created by MP4BOX work fine. However, the 10 files that I processed with MP4BOX (was adding commentary tracks) previously, strange things happened to the track order.
My command line for building them initially was:
`mp4box -new "filename.mp4" -add "assets\filename.hvc:name=" -add "assets\filename.aac:name=:lang=eng" -add "commentary\filename.aac:name=Commentary with Cast and Crew:lang=eng:delay=0"`
This worked fine, but now adding captions with:
`mp4box "filename.mp4" -add "filename.srt:name=:lang=eng"`
It adds the captions but now the track order is putting the commentary first. The track number remains 3 but it appears second and most software defaults to it. Very strange. Weirder, the files that were encoded and muxed by Handbrake do not exhibit this behavior. (Although they only had the video and single audio track.)
**Initial File**
```
Format : MPEG-4
Format profile : Base Media
Codec ID : iso4 (iso4/iso6)
File size : 292 MiB
Duration : 26 min 55 s
Overall bit rate mode : Variable
Overall bit rate : 1 518 kb/s
Encoded date : UTC 2021-05-01 04:31:12
Tagged date : UTC 2021-05-01 04:31:12
Video
ID : 1
Format : HEVC
Format/Info : High Efficiency Video Coding
Format profile : Main@L3.1@Main
Codec ID : hvc1
Codec ID/Info : High Efficiency Video Coding
Duration : 26 min 55 s
Bit rate : 1 285 kb/s
Maximum bit rate : 7 447 kb/s
Width : 1 280 pixels
Height : 720 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 23.976 (24000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Bits/(Pixel*Frame) : 0.058
Stream size : 247 MiB (85%)
Encoded date : UTC 2021-05-01 04:31:12
Tagged date : UTC 2021-05-01 04:31:19
Color range : Limited
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709
Codec configuration box : hvcC
Audio #1
ID : 2
Format : AAC LC
Format/Info : Advanced Audio Codec Low Complexity
Codec ID : mp4a-40-2
Duration : 26 min 55 s
Bit rate mode : Variable
Bit rate : 128 kb/s
Maximum bit rate : 135 kb/s
Channel(s) : 1 channel
Channel layout : C
Sampling rate : 44.1 kHz
Frame rate : 43.066 FPS (1024 SPF)
Compression mode : Lossy
Stream size : 24.6 MiB (8%)
Language : English
Encoded date : UTC 2021-05-01 04:31:16
Tagged date : UTC 2021-05-01 04:31:19
Audio #2
ID : 3
Format : AAC LC
Format/Info : Advanced Audio Codec Low Complexity
Codec ID : mp4a-40-2
Duration : 26 min 55 s
Bit rate mode : Variable
Bit rate : 100.0 kb/s
Maximum bit rate : 106 kb/s
Channel(s) : 1 channel
Channel layout : C
Sampling rate : 44.1 kHz
Frame rate : 43.066 FPS (1024 SPF)
Compression mode : Lossy
Stream size : 19.3 MiB (7%)
Title : Commentary with Cast and Crew
Language : English
Encoded date : UTC 2021-05-01 04:31:16
Tagged date : UTC 2021-05-01 04:31:19
```
**Updated File**
```
Format : MPEG-4
Format profile : Base Media
Codec ID : iso4 (iso4/iso6)
File size : 292 MiB
Duration : 26 min 55 s
Overall bit rate mode : Variable
Overall bit rate : 1 518 kb/s
Encoded date : UTC 2021-05-01 04:31:12
Tagged date : UTC 2021-05-01 04:31:12
Video
ID : 1
Format : HEVC
Format/Info : High Efficiency Video Coding
Format profile : Main@L3.1@Main
Codec ID : hvc1
Codec ID/Info : High Efficiency Video Coding
Duration : 26 min 55 s
Bit rate : 1 285 kb/s
Maximum bit rate : 7 447 kb/s
Width : 1 280 pixels
Height : 720 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 23.976 (24000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Bits/(Pixel*Frame) : 0.058
Stream size : 247 MiB (85%)
Encoded date : UTC 2021-05-01 04:31:12
Tagged date : UTC 2021-05-05 17:34:50
Color range : Limited
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709
Codec configuration box : hvcC
Audio #1
ID : 3
Format : AAC LC
Format/Info : Advanced Audio Codec Low Complexity
Codec ID : mp4a-40-2
Duration : 26 min 55 s
Bit rate mode : Variable
Bit rate : 100.0 kb/s
Maximum bit rate : 106 kb/s
Channel(s) : 1 channel
Channel layout : C
Sampling rate : 44.1 kHz
Frame rate : 43.066 FPS (1024 SPF)
Compression mode : Lossy
Stream size : 19.3 MiB (7%)
Title : Commentary with Cast and Crew
Language : English
Encoded date : UTC 2021-05-01 04:31:18
Tagged date : UTC 2021-05-05 17:34:50
Audio #2
ID : 2
Format : AAC LC
Format/Info : Advanced Audio Codec Low Complexity
Codec ID : mp4a-40-2
Duration : 26 min 55 s
Bit rate mode : Variable
Bit rate : 128 kb/s
Maximum bit rate : 135 kb/s
Channel(s) : 1 channel
Channel layout : C
Sampling rate : 44.1 kHz
Frame rate : 43.066 FPS (1024 SPF)
Compression mode : Lossy
Stream size : 24.6 MiB (8%)
Language : English
Encoded date : UTC 2021-05-01 04:31:16
Tagged date : UTC 2021-05-05 17:34:50
Text
ID : 4
Format : Timed Text
Codec ID : tx3g
Duration : 26 min 48 s
Bit rate mode : Variable
Bit rate : 120 b/s
Stream size : 23.5 KiB (0%)
Language : English
Forced : No
Encoded date : UTC 2021-05-05 17:34:50
Tagged date : UTC 2021-05-05 17:34:50
```
| Track order bug when adding a srt stream to an existing MP4 with MP4BOX | https://api.github.com/repos/gpac/gpac/issues/1777/comments | 2 | 2021-05-05T17:37:40Z | 2021-05-06T14:28:30Z | https://github.com/gpac/gpac/issues/1777 | 876,687,345 | 1,777 |
[
"gpac",
"gpac"
] | Would like for `gpac` to be available as a Termux package:
https://github.com/termux/termux-packages/issues/6708
Also, until it's officially available, how can I compile gpac from termux itself?
| Add package for Termux | https://api.github.com/repos/gpac/gpac/issues/1776/comments | 3 | 2021-05-05T13:15:05Z | 2022-01-14T09:55:54Z | https://github.com/gpac/gpac/issues/1776 | 876,438,754 | 1,776 |
[
"gpac",
"gpac"
] | Hello, I have a question, is it possible to use the gpac tool to output a single m3u8 media playlist for a multi track input file? I have an input mp4 file with audio and video, and when I pass it into gpac with the command below, I get a master playlist with 2 media playlist with 2 init files. But I want a single media playlist with a single init file, is this possible with gpac? What would I have to change in my command to make it work?
This is the command that I am using
gpac -i inputfile.mp4 reframer:rt=on @ -o live.m3u8:segdur=10:cdur=0.2:llhls=br:dmode=static
| Question output single m3u8 playlist for multi track input | https://api.github.com/repos/gpac/gpac/issues/1775/comments | 4 | 2021-05-02T22:54:15Z | 2021-05-04T15:47:51Z | https://github.com/gpac/gpac/issues/1775 | 874,087,820 | 1,775 |
[
"gpac",
"gpac"
] | A OOB Write issue was found in MP4Box, to reproduce, compile gpac as follows:
```
CC=gcc CXX=g++ CFLAGS="-fsanitize=address" CXXFLAGS="-fsanitize=address" LDFLAGS="-fsanitize=address" ./configure --enable-debug
```
run poc file :
```
./bin/gcc/MP4Box -hint poc -out /dev/null
```
Detailed ASAN result is as below:
```
15305==ERROR: AddressSanitizer: SEGV on unknown address 0x616000010000 (pc 0x7ff3a3276461 bp 0x7ffc231be4c0 sp 0x7ffc231be490 T0)
==15305==The signal is caused by a WRITE memory access.
#0 0x7ff3a3276460 in stbl_AppendSize isomedia/stbl_write.c:1650
#1 0x7ff3a3279df4 in MergeTrack isomedia/track.c:703
#2 0x7ff3a3225f85 in MergeFragment isomedia/isom_intern.c:90
#3 0x7ff3a3227ec2 in gf_isom_parse_movie_boxes_internal isomedia/isom_intern.c:649
#4 0x7ff3a3228488 in gf_isom_parse_movie_boxes isomedia/isom_intern.c:777
#5 0x7ff3a322881b in gf_isom_open_file isomedia/isom_intern.c:897
#6 0x7ff3a322b7f7 in gf_isom_open isomedia/isom_read.c:520
#7 0x558e07ad4e7e in mp4boxMain /home/src/gpac/applications/mp4box/main.c:5722
#8 0x558e07ad7653 in main /home/src/gpac/applications/mp4box/main.c:6335
#9 0x7ff3a2da60b2 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x270b2)
#10 0x558e07ac32ad in _start (/home/src/gpac/bin/gcc/MP4Box+0x182ad)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV isomedia/stbl_write.c:1650 in stbl_AppendSize
==15305==ABORTING
```
Credit : ADLab of Venustech
[oob_write_stbl_write_c_1650.zip](https://github.com/gpac/gpac/files/6404010/oob_write_stbl_write_c_1650.zip)
| Out of bounds Write in stbl_write.c:1650 | https://api.github.com/repos/gpac/gpac/issues/1774/comments | 1 | 2021-04-30T08:40:50Z | 2021-08-11T02:30:18Z | https://github.com/gpac/gpac/issues/1774 | 872,168,928 | 1,774 |
[
"gpac",
"gpac"
] | A SEGV issue was found in MP4Box, to reproduce, compile gpac as follows:
```
CC=gcc CXX=g++ CFLAGS="-fsanitize=address" CXXFLAGS="-fsanitize=address" LDFLAGS="-fsanitize=address" ./configure --enable-debug
```
run poc file :
```
./bin/gcc/MP4Box -hint poc -out /dev/null
```
Detailed ASAN result is as below:
```
AddressSanitizer:DEADLYSIGNAL
=================================================================
==41259==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000008 (pc 0x7fbd5888dfc5 bp 0x7ffc4506ab50 sp 0x7ffc45068310 T0)
==41259==The signal is caused by a READ memory access.
==41259==Hint: address points to the zero page.
#0 0x7fbd5888dfc4 in gf_hinter_finalize media_tools/isom_hinter.c:1271
#1 0x55f3999fd019 in HintFile /home/src/gpac/applications/mp4box/main.c:3467
#2 0x55f399a07e70 in mp4boxMain /home/src/gpac/applications/mp4box/main.c:6209
#3 0x55f399a08653 in main /home/src/gpac/applications/mp4box/main.c:6335
#4 0x7fbd582d30b2 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x270b2)
#5 0x55f3999f42ad in _start (/home/src/gpac/bin/gcc/MP4Box+0x182ad)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV media_tools/isom_hinter.c:1271 in gf_hinter_finalize
==41259==ABORTING
```
Credit : ADLab of Venustech
[poc_segv_isom_hinter_c_1271.zip](https://github.com/gpac/gpac/files/6403969/poc_segv_isom_hinter_c_1271.zip)
| SEGV in gpac MP4Box in file isom_hinter.c:1271 | https://api.github.com/repos/gpac/gpac/issues/1773/comments | 1 | 2021-04-30T08:35:20Z | 2021-04-30T09:08:13Z | https://github.com/gpac/gpac/issues/1773 | 872,164,220 | 1,773 |
[
"gpac",
"gpac"
] | A SEGV issue was found in MP4Box, to reproduce, compile gpac as follows:
```
CC=gcc CXX=g++ CFLAGS="-fsanitize=address" CXXFLAGS="-fsanitize=address" LDFLAGS="-fsanitize=address" ./configure --enable-debug
```
run poc file :
```
./bin/gcc/MP4Box -hint poc -out /dev/null
```
Detailed ASAN result is as below:
```
AddressSanitizer:DEADLYSIGNAL
=================================================================
==29303==ERROR: AddressSanitizer: SEGV on unknown address 0x602000021b70 (pc 0x7fc90a84caa9 bp 0x7ffee2653e40 sp 0x7ffee2653da0 T0)
==29303==The signal is caused by a READ memory access.
#0 0x7fc90a84caa8 in Media_RewriteODFrame isomedia/media_odf.c:135
#1 0x7fc90a84b02e in Media_GetSample isomedia/media.c:636
#2 0x7fc90a821813 in gf_isom_get_sample_ex isomedia/isom_read.c:1823
#3 0x7fc90a8218f3 in gf_isom_get_sample isomedia/isom_read.c:1843
#4 0x562b406cfc50 in HintFile /home/src/gpac/applications/mp4box/main.c:3412
#5 0x562b406dae70 in mp4boxMain /home/src/gpac/applications/mp4box/main.c:6209
#6 0x562b406db653 in main /home/src/gpac/applications/mp4box/main.c:6335
#7 0x7fc90a3990b2 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x270b2)
#8 0x562b406c72ad in _start (/home/src/gpac/bin/gcc/MP4Box+0x182ad)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV isomedia/media_odf.c:135 in Media_RewriteODFrame
==29303==ABORTING
```
Credit : ADLab of Venustech
[poc_segv_media_odf_c_135.zip](https://github.com/gpac/gpac/files/6403912/poc_segv_media_odf_c_135.zip)
| SEGV in gpac MP4Box function Media_RewriteODFrame | https://api.github.com/repos/gpac/gpac/issues/1772/comments | 1 | 2021-04-30T08:25:12Z | 2021-08-11T02:31:04Z | https://github.com/gpac/gpac/issues/1772 | 872,155,736 | 1,772 |
[
"gpac",
"gpac"
] | SEGV was found in MP4Box, to reproduce, compile gpac as follows:
```
CC=gcc CXX=g++ CFLAGS="-fsanitize=address" CXXFLAGS="-fsanitize=address" LDFLAGS="-fsanitize=address" ./configure --enable-debug
```
run poc file :
```
./bin/gcc/MP4Box -hint poc -out /dev/null
```
Detailed ASAN result is as below:
```
AddressSanitizer:DEADLYSIGNAL
=================================================================
==36074==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000014 (pc 0x7ff548545e22 bp 0x7fff51b92c70 sp 0x7fff51b90430 T0)
==36074==The signal is caused by a WRITE memory access.
==36074==Hint: address points to the zero page.
#0 0x7ff548545e21 in gf_hinter_finalize media_tools/isom_hinter.c:1249
#1 0x5568f448e019 in HintFile /home/lab4/src/gpac/applications/mp4box/main.c:3467
#2 0x5568f4498e70 in mp4boxMain /home/lab4/src/gpac/applications/mp4box/main.c:6209
#3 0x5568f4499653 in main /home/lab4/src/gpac/applications/mp4box/main.c:6335
#4 0x7ff547f8b0b2 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x270b2)
#5 0x5568f44852ad in _start (/home/lab4/src/gpac/bin/gcc/MP4Box+0x182ad)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV media_tools/isom_hinter.c:1249 in gf_hinter_finalize
==36074==ABORTING
```
Credit : ADLab of Venustech
[poc_segv_isom_hinter.zip](https://github.com/gpac/gpac/files/6403881/poc_segv_isom_hinter.zip)
| SEGV in gpac MP4Box in file isom_hinter.c:1249 | https://api.github.com/repos/gpac/gpac/issues/1771/comments | 0 | 2021-04-30T08:18:13Z | 2021-04-30T09:07:33Z | https://github.com/gpac/gpac/issues/1771 | 872,149,998 | 1,771 |
[
"gpac",
"gpac"
] | A null pointer dereference issue was found in MP4Box, to reproduce, compile gpac as follows:
```
CC=gcc CXX=g++ CFLAGS="-fsanitize=address" CXXFLAGS="-fsanitize=address" LDFLAGS="-fsanitize=address" ./configure --enable-debug
```
run poc file :
```
./bin/gcc/MP4Box -hint poc -out /dev/null
```
Detailed ASAN result is as below:
```
AddressSanitizer:DEADLYSIGNAL
=================================================================
==1042==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7fc3d4e76d0b bp 0x7ffd390b09a0 sp 0x7ffd390ae160 T0)
==1042==The signal is caused by a READ memory access.
==1042==Hint: address points to the zero page.
#0 0x7fc3d4e76d0a in gf_hinter_finalize media_tools/isom_hinter.c:1236
#1 0x555a478a9019 in HintFile /home/lab4/src/gpac/applications/mp4box/main.c:3467
#2 0x555a478b3e70 in mp4boxMain /home/lab4/src/gpac/applications/mp4box/main.c:6209
#3 0x555a478b4653 in main /home/lab4/src/gpac/applications/mp4box/main.c:6335
#4 0x7fc3d48bc0b2 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x270b2)
#5 0x555a478a02ad in _start (/home/lab4/src/gpac/bin/gcc/MP4Box+0x182ad)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV media_tools/isom_hinter.c:1236 in gf_hinter_finalize
==1042==ABORTING
```
Credit : ADLab of Venustech
[poc_null.zip](https://github.com/gpac/gpac/files/6403820/poc_null.zip)
| Null pointer dereference in function gf_hinter_finalize isom_hinter.c:1236 | https://api.github.com/repos/gpac/gpac/issues/1770/comments | 1 | 2021-04-30T08:10:59Z | 2021-08-11T02:23:20Z | https://github.com/gpac/gpac/issues/1770 | 872,144,270 | 1,770 |
[
"gpac",
"gpac"
] | A null pointer dereference issue was found in MP4Box, to reproduce, compile gpac as follows:
```
CC=gcc CXX=g++ CFLAGS="-fsanitize=address" CXXFLAGS="-fsanitize=address" LDFLAGS="-fsanitize=address" ./configure --enable-debug
```
run poc file :
```
./bin/gcc/MP4Box -nhnt 1 poc -out /dev/null
```
Detailed ASAN result is as below:
```
AddressSanitizer:DEADLYSIGNAL
=================================================================
==2590==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000004 (pc 0x7f10a4aef7e8 bp 0x7ffc623e3300 sp 0x7ffc623e2c20 T0)
==2590==The signal is caused by a READ memory access.
==2590==Hint: address points to the zero page.
#0 0x7f10a4aef7e7 in gf_media_export_filters media_tools/media_export.c:1112
#1 0x7f10a4af1146 in gf_media_export media_tools/media_export.c:1474
#2 0x5605c1f30d36 in do_export_tracks /home/lab4/src/gpac/applications/mp4box/main.c:4646
#3 0x5605c1f35f6a in mp4boxMain /home/lab4/src/gpac/applications/mp4box/main.c:5971
#4 0x5605c1f37653 in main /home/lab4/src/gpac/applications/mp4box/main.c:6335
#5 0x7f10a455a0b2 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x270b2)
#6 0x5605c1f232ad in _start (/home/lab4/src/gpac/bin/gcc/MP4Box+0x182ad)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV media_tools/media_export.c:1112 in gf_media_export_filters
==2590==ABORTING
```
Credit : ADLab of Venustech
[poc-null.zip](https://github.com/gpac/gpac/files/6403776/poc-null.zip)
| Null pointer dereference in gpac MP4Box gf_media_export_filters | https://api.github.com/repos/gpac/gpac/issues/1769/comments | 1 | 2021-04-30T08:03:06Z | 2021-08-11T02:27:58Z | https://github.com/gpac/gpac/issues/1769 | 872,138,105 | 1,769 |
[
"gpac",
"gpac"
] | null | null dereference in gpac MP4Box gf_isom_vp_config_get | https://api.github.com/repos/gpac/gpac/issues/1768/comments | 0 | 2021-04-30T00:46:26Z | 2023-09-22T06:06:39Z | https://github.com/gpac/gpac/issues/1768 | 871,729,530 | 1,768 |
[
"gpac",
"gpac"
] | null | null dereference in MP4Box DumpTrackInfo | https://api.github.com/repos/gpac/gpac/issues/1767/comments | 0 | 2021-04-30T00:45:19Z | 2023-09-22T06:12:11Z | https://github.com/gpac/gpac/issues/1767 | 871,728,422 | 1,767 |
[
"gpac",
"gpac"
] | null | [security]heap buffer overflow in MP4Box URL_GetProtocolType | https://api.github.com/repos/gpac/gpac/issues/1766/comments | 0 | 2021-04-30T00:43:52Z | 2023-09-22T06:09:59Z | https://github.com/gpac/gpac/issues/1766 | 871,726,037 | 1,766 |
[
"gpac",
"gpac"
] | null | [security]heap buffer overlow in MP4Box print_udta | https://api.github.com/repos/gpac/gpac/issues/1765/comments | 0 | 2021-04-30T00:42:12Z | 2023-09-22T06:10:39Z | https://github.com/gpac/gpac/issues/1765 | 871,724,292 | 1,765 |
[
"gpac",
"gpac"
] | see #1761
| nvdec resolution switch freezes vout | https://api.github.com/repos/gpac/gpac/issues/1764/comments | 0 | 2021-04-29T13:46:59Z | 2021-06-23T14:54:11Z | https://github.com/gpac/gpac/issues/1764 | 871,034,833 | 1,764 |
[
"gpac",
"gpac"
] | We are trying to check what is the data link rate between the client and the server over the dash connection, not the estimated which is related to the representations given via the mpd file but the actual rate related to the actual BW of the service.
any ideas how to do that or if it is possible given the current implementation? | Checking the actual data link rate of dash connection | https://api.github.com/repos/gpac/gpac/issues/1763/comments | 2 | 2021-04-28T19:05:01Z | 2021-04-29T10:14:08Z | https://github.com/gpac/gpac/issues/1763 | 870,258,506 | 1,763 |
[
"gpac",
"gpac"
] | Is it possible to receive mpeg-ts multicast with gpac ?
Going over the documentation and scratching my head to figure out how, would like to use gpac to dash live streams, i just cannot figure out how.
Some guidance would be appreciated if this is possible. | Multicast input howto ? | https://api.github.com/repos/gpac/gpac/issues/1762/comments | 6 | 2021-04-27T18:42:16Z | 2021-05-07T06:49:01Z | https://github.com/gpac/gpac/issues/1762 | 869,156,826 | 1,762 |
[
"gpac",
"gpac"
] | Hi, I have tried the python DASH client and it is amazing. The example works in the beginning but the windows will freeze with some blurred block as the figure shows when the resolution is changed but the terminal prints logs as normal. I wonder to know how to fix it. The libgpac version is `gpac-1.1.0-DEV-rev770-gc8edcaff-master-x64` and the OS is windows 10.

The second question is I want to do some processes of the frames such as scaling the frame or draw a rectangle in the frame after decoding the video and get the numpy array while disabling the playing window. After reading the document in the wiki, it seems that I need a custom filter but I can not run the example in the wiki and determine the position of the filter in the workflow. Would you mind providing an example more detailedly?
Thanks for your help.
| How to change resolution smoothly and process a frame in python DASH client example | https://api.github.com/repos/gpac/gpac/issues/1761/comments | 42 | 2021-04-27T07:47:37Z | 2022-12-01T16:08:15Z | https://github.com/gpac/gpac/issues/1761 | 868,565,285 | 1,761 |
[
"gpac",
"gpac"
] | Hello,
I am trying to use Kvazaar as a GPAC filter, but I cannot make it work.
I've compiled ffmpeg with following commands:
sudo apt-get update
sudo apt-get install ffmpeg
moved to ffmpeg folder
./configure --enable-libkvazaar
make
make install
I've installed gpac:
downloaded source code
moved to gpac folder
./configure --use-ffmpeg=local
make
make install
I used following command:
gpac -i rtmp://MyURL/live enc:c=libkvazaar:b=1m::kvazaar-params=tiles=3x3,slices=tiles,mv-constraint=frametilemargin,rc-algorithm=1 @ tilesplit @ -o dest
and the response I got was:
Unrecognized codec identifier in "enc" definition: c=libkvazaar
Failed to find filter "enc:c=libkvazaar:b=1m::kvazaar-params=tiles=3x3,slices=tiles,mv-constraint=frametilemargin,rc-algorithm=1"
No filter with similar name found, see gpac -h filters
When I type gpac -h filters I get this:
Listing 104 supported filters:
inspect: Inspect packets
probe: Probe source
compositor: Compositor
mp4dmx: ISOBMFF/QT demuxer
bifsdec: MPEG-4 BIFS decoder
odfdec: MPEG-4 OD decoder
fin: File input
btplay: BT/XMT/X3D loader
httpin: HTTP input
svgplay: SVG loader
rfimg: JPG/J2K/PNG/BMP reframer
imgdec: PNG/JPG decoder
rfadts: ADTS reframer
rflatm: LATM reframer
rfmp3: MP3 reframer
faad: FAAD decoder
maddec: MAD decoder
xviddec: XVid decoder
rfac3: AC3 reframer
a52dec: A52 decoder
rfamr: AMR/EVRC reframer
oggdmx: OGG demuxer
vorbisdec: Vorbis decoder
theoradec: Theora decoder
m2tsdmx: MPEG-2 TS demuxer
sockin: UDP/TCP input
dvbin: DVB for Linux
mcdec: MediaCodec decoder
lsrdec: MPEG-4 LASeR decoder
safdmx: SAF demuxer
dashin: MPEG-DASH and HLS client
cdcrypt: CENC decryptor
cecrypt: CENC encryptor
mp4mx: ISOBMFF/QT muxer
rfqcp: QCP reframer
rfh263: H263 reframer
rfmpgvid: M1V/M2V/M4V reframer
nhntr: NHNT reader
nhmlr: NHML parser
rfnalu: AVC/HEVC reframer
m2psdmx: MPEG PS demuxer
avidmx: AVI demuxer
txtin: Subtitle loader
ttxtdec: TTXT/TX3G decoder
vttdec: WebVTT decoder
ttmldec: TTML decoder
rtpin: RTP/RTSP/SDP input
fout: File output
uflatm: Raw AAC to LATM writer
ufadts: ADTS writer
ufmhas: MHAS writer
reframer: Media Reframer
writegen: Stream to file
ufnalu: AVC/HEVC to AnnexB writer
writeqcp: QCP writer
writevtt: WebVTT writer
nhntw: NHNT writer
nhmlw: NHML writer
vobsubdmx: VobSub demuxer
avimx: AVI muxer
aout: Audio output
ufm4v: M4V writer
resample: Audio resampler
vout: Video output
vcrop: Video crop
vflip: Video flip
rfrawvid: RAW video reframer
rfpcm: PCM reframer
jpgenc: JPG encoder
pngenc: PNG encoder
rewind: Audio/Video rewinder
flist: Sources concatenator
m2tsmx: MPEG-2 TS muxer
dasher: DASH and HLS segmenter
tileagg: HEVC tile aggregator
pin: pipe input
pout: pipe output
gsfmx: GSF Muxer
gsfdmx: GSF Demuxer
sockout: UDP/TCP output
rfav1: AV1/IVF/VP9 reframer
ufobu: IVF/OBU/annexB writer
nvdec: NVidia decoder
routein: ROUTE input
rtpout: RTP Streamer
rtspout: RTSP Server
httpout: HTTP Server
hevcsplit: HEVC tile spliter
hevcmerge: HEVC Tile merger
rfflac: FLAC reframer
rfmhas: MPEH-H Audio Stream reframer
rfprores: ProRes reframer
tssplit: MPEG Transport Stream splitter
bsrw: Compressed bitstream rewriter
ffdmx: FFMPEG demuxer
ffdec: FFMPEG decoder
ffavin: FFMPEG AV Capture
ffsws: FFMPEG video rescaler
ffenc: FFMPEG encoder
ffmx: FFMPEG muxer
ffavf: FFMPEG AVFilter
jsf: JavaScript filter
routeout: ROUTE output
dtout: DekTec SDIOut
avgen: AV Counter Generator
Does the error mean that something is not installed correctly? If so, how do I check if ffmpeg and gpac are compiled correctly?
Thanks | Gpac with kvazaar not working | https://api.github.com/repos/gpac/gpac/issues/1759/comments | 14 | 2021-04-24T09:28:26Z | 2021-05-12T15:33:09Z | https://github.com/gpac/gpac/issues/1759 | 866,703,645 | 1,759 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.