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 |
|---|---|---|---|---|---|---|---|---|---|
[
"axiomatic-systems",
"Bento4"
] | I have both KEY and KID (for the live stream) and was able to decrypt a VOD video properly. Can this way used on livestreams? (for example: on-the-fly conversion from encrypted mpd / HLS to unencrypted mpd / HLS formats) | mp4decrypt-like software for Live Stream MPEG-DASH / HLS formats that are Widevine-protected | https://api.github.com/repos/axiomatic-systems/Bento4/issues/646/comments | 0 | 2021-08-27T10:53:28Z | 2021-08-27T10:53:28Z | https://github.com/axiomatic-systems/Bento4/issues/646 | 981,126,431 | 646 |
[
"axiomatic-systems",
"Bento4"
] | Hi, there.
There is an heap overflow in ReadBits, Ap4Mp4AudioInfo.cpp:66, in the newest master branch 5922ba762a.
Here is the reproducing command:
~~~~
mp4info poc
~~~~
POC:
[poc.zip](https://github.com/axiomatic-systems/Bento4/files/7045304/mp4info-overflow-readbits66.zip)
(unzip first)
Here is the reproduce trace reported by ASAN:
~~~~
==41862==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x602000000274 at pc 0x00000052953f bp 0x7fff6f9051a0 sp 0x7fff6f905198
READ of size 1 at 0x602000000274 thread T0
#0 0x52953e in AP4_Mp4AudioDsiParser::ReadBits(unsigned int) /mnt/data/playground/Bento4/Source/C++/Codecs/Ap4Mp4AudioInfo.cpp:66:56
#1 0x526bc5 in AP4_Mp4AudioDecoderConfig::ParseExtension(AP4_Mp4AudioDsiParser&) /mnt/data/playground/Bento4/Source/C++/Codecs/Ap4Mp4AudioInfo.cpp:136:48
#2 0x528b7e in AP4_Mp4AudioDecoderConfig::Parse(unsigned char const*, unsigned int) /mnt/data/playground/Bento4/Source/C++/Codecs/Ap4Mp4AudioInfo.cpp:315:30
#3 0x610d89 in AP4_MpegAudioSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:1054:52
#4 0x502545 in ShowSampleDescription_Text(AP4_SampleDescription&, bool) /mnt/data/playground/Bento4/Source/C++/Apps/Mp4Info/Mp4Info.cpp:395:11
#5 0x4fcf15 in ShowSampleDescription(AP4_SampleDescription&, bool) /mnt/data/playground/Bento4/Source/C++/Apps/Mp4Info/Mp4Info.cpp:1044:27
#6 0x4fcf15 in ShowTrackInfo_Text(AP4_Movie&, AP4_Track&, AP4_ByteStream&, bool, bool, bool, bool) /mnt/data/playground/Bento4/Source/C++/Apps/Mp4Info/Mp4Info.cpp:1354:9
#7 0x4fcf15 in ShowTrackInfo(AP4_Movie&, AP4_Track&, AP4_ByteStream&, bool, bool, bool, bool) /mnt/data/playground/Bento4/Source/C++/Apps/Mp4Info/Mp4Info.cpp:1475:13
#8 0x4fc062 in ShowTracks(AP4_Movie&, AP4_List<AP4_Track>&, AP4_ByteStream&, bool, bool, bool, bool) /mnt/data/playground/Bento4/Source/C++/Apps/Mp4Info/Mp4Info.cpp:1586:9
#9 0x4f7ca0 in main /mnt/data/playground/Bento4/Source/C++/Apps/Mp4Info/Mp4Info.cpp:1868:13
#10 0x7f795ea9d83f in __libc_start_main /build/glibc-S7Ft5T/glibc-2.23/csu/../csu/libc-start.c:291
#11 0x41c1f8 in _start (/mnt/data/playground/Bento4/build/mp4info+0x41c1f8)
0x602000000274 is located 0 bytes to the right of 4-byte region [0x602000000270,0x602000000274)
allocated by thread T0 here:
#0 0x4f2bb8 in operator new[](unsigned long) /dependence/llvm-project/compiler-rt/lib/asan/asan_new_delete.cpp:102
#1 0x57835a in AP4_DataBuffer::AP4_DataBuffer(void const*, unsigned int) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DataBuffer.cpp:68:20
#2 0x610d89 in AP4_MpegAudioSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:1054:52
#3 0x502545 in ShowSampleDescription_Text(AP4_SampleDescription&, bool) /mnt/data/playground/Bento4/Source/C++/Apps/Mp4Info/Mp4Info.cpp:395:11
#4 0x4fcf15 in ShowSampleDescription(AP4_SampleDescription&, bool) /mnt/data/playground/Bento4/Source/C++/Apps/Mp4Info/Mp4Info.cpp:1044:27
#5 0x4fcf15 in ShowTrackInfo_Text(AP4_Movie&, AP4_Track&, AP4_ByteStream&, bool, bool, bool, bool) /mnt/data/playground/Bento4/Source/C++/Apps/Mp4Info/Mp4Info.cpp:1354:9
#6 0x4fcf15 in ShowTrackInfo(AP4_Movie&, AP4_Track&, AP4_ByteStream&, bool, bool, bool, bool) /mnt/data/playground/Bento4/Source/C++/Apps/Mp4Info/Mp4Info.cpp:1475:13
#7 0x4fc062 in ShowTracks(AP4_Movie&, AP4_List<AP4_Track>&, AP4_ByteStream&, bool, bool, bool, bool) /mnt/data/playground/Bento4/Source/C++/Apps/Mp4Info/Mp4Info.cpp:1586:9
SUMMARY: AddressSanitizer: heap-buffer-overflow /mnt/data/playground/Bento4/Source/C++/Codecs/Ap4Mp4AudioInfo.cpp:66:56 in AP4_Mp4AudioDsiParser::ReadBits(unsigned int)
Shadow bytes around the buggy address:
0x0c047fff7ff0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c047fff8000: fa fa 00 00 fa fa 00 00 fa fa 00 00 fa fa fd fd
0x0c047fff8010: fa fa 04 fa fa fa 01 fa fa fa 00 04 fa fa 00 fa
0x0c047fff8020: fa fa fd fa fa fa 04 fa fa fa 04 fa fa fa 04 fa
0x0c047fff8030: fa fa 06 fa fa fa 00 fa fa fa 00 04 fa fa 01 fa
=>0x0c047fff8040: fa fa 07 fa fa fa fd fd fa fa 04 fa fa fa[04]fa
0x0c047fff8050: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8060: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8070: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8080: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8090: 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
==41862==ABORTING
~~~~
| Heap overflow in mp4info, ReadBits, Ap4Mp4AudioInfo.cpp:66 | https://api.github.com/repos/axiomatic-systems/Bento4/issues/645/comments | 0 | 2021-08-25T08:33:03Z | 2021-08-25T08:33:03Z | https://github.com/axiomatic-systems/Bento4/issues/645 | 978,870,537 | 645 |
[
"axiomatic-systems",
"Bento4"
] | How to reproduce:
```
1.check out latest code, 5922ba762a
2.compile with asan,
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fsanitize=address -g")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=address -g")
3.run ./mp4dump --verbosity 3 --format text poc1
```
[poc1.zip](https://github.com/axiomatic-systems/Bento4/files/7043113/poc1.zip)
You can see the asan information below:
```
==634578==ERROR: AddressSanitizer: allocator is out of memory trying to allocate 0x8000000f0 bytes
#0 0x34eabd in operator new(unsigned long) (/home/lly/pro/Bento4/cmakebuild/mp4dump+0x34eabd)
#1 0x54535c in AP4_Array<AP4_TrunAtom::Entry>::EnsureCapacity(unsigned int) /home/lly/pro/Bento4/Source/C++/Core/Ap4Array.h:172:25
#2 0x54535c in AP4_Array<AP4_TrunAtom::Entry>::SetItemCount(unsigned int) /home/lly/pro/Bento4/Source/C++/Core/Ap4Array.h:210:25
#3 0x54535c in AP4_TrunAtom::AP4_TrunAtom(unsigned int, unsigned char, unsigned int, AP4_ByteStream&) /home/lly/pro/Bento4/Source/C++/Core/Ap4TrunAtom.cpp:127:15
#4 0x5445a4 in AP4_TrunAtom::Create(unsigned int, AP4_ByteStream&) /home/lly/pro/Bento4/Source/C++/Core/Ap4TrunAtom.cpp:51:16
#5 0x37cc25 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/lly/pro/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:438:20
#6 0x383d06 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/lly/pro/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:234:14
#7 0x3a062f in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /home/lly/pro/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:194:12
#8 0x39f40a in AP4_ContainerAtom::AP4_ContainerAtom(unsigned int, unsigned long long, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/lly/pro/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:139:5
#9 0x39f40a in AP4_ContainerAtom::Create(unsigned int, unsigned long long, bool, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/lly/pro/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:88:20
#10 0x37c5ac in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/lly/pro/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:816:20
#11 0x383d06 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/lly/pro/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:234:14
#12 0x3a062f in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /home/lly/pro/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:194:12
#13 0x39f40a in AP4_ContainerAtom::AP4_ContainerAtom(unsigned int, unsigned long long, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/lly/pro/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:139:5
#14 0x39f40a in AP4_ContainerAtom::Create(unsigned int, unsigned long long, bool, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/lly/pro/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:88:20
#15 0x37c5ac in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/lly/pro/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:816:20
#16 0x383d06 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/lly/pro/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:234:14
#17 0x38333b in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, AP4_Atom*&) /home/lly/pro/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:154:12
#18 0x359a7e in main /home/lly/pro/Bento4/Source/C++/Apps/Mp4Dump/Mp4Dump.cpp:342:25
#19 0x7f6cf702a0b2 in __libc_start_main /build/glibc-eX1tMB/glibc-2.31/csu/../csu/libc-start.c:308:16
``` | allocator is out of memory in Ap4Array.h:172 | https://api.github.com/repos/axiomatic-systems/Bento4/issues/644/comments | 0 | 2021-08-25T02:03:31Z | 2021-09-08T02:36:45Z | https://github.com/axiomatic-systems/Bento4/issues/644 | 978,628,921 | 644 |
[
"axiomatic-systems",
"Bento4"
] | How to reproduce:
```
1.check out latest code, 5922ba762a
2.compile with asan,
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fsanitize=address -g")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=address -g")
3.run ./mp4dump --verbosity 3 --format text poc
```
You can see the asan information below:
```
=================================================================
==633802==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x0000003c3e48 bp 0x7ffcbc9d4550 sp 0x7ffcbc9d4470 T0)
==633802==The signal is caused by a READ memory access.
==633802==Hint: address points to the zero page.
#0 0x3c3e48 in AP4_DescriptorListInspector::Action(AP4_Descriptor*) const /home/lly/pro/Bento4/Source/C++/Core/Ap4Descriptor.h:124:21
#1 0x40bdc2 in AP4_List<AP4_Descriptor>::Apply(AP4_List<AP4_Descriptor>::Item::Operator const&) const /home/lly/pro/Bento4/Source/C++/Core/Ap4List.h:353:12
#2 0x40bdc2 in AP4_InitialObjectDescriptor::Inspect(AP4_AtomInspector&) /home/lly/pro/Bento4/Source/C++/Core/Ap4ObjectDescriptor.cpp:327:22
#3 0x3e0485 in AP4_IodsAtom::InspectFields(AP4_AtomInspector&) /home/lly/pro/Bento4/Source/C++/Core/Ap4IodsAtom.cpp:112:29
#4 0x37117e in AP4_Atom::Inspect(AP4_AtomInspector&) /home/lly/pro/Bento4/Source/C++/Core/Ap4Atom.cpp:263:5
#5 0x39f0a2 in AP4_AtomListInspector::Action(AP4_Atom*) const /home/lly/pro/Bento4/Source/C++/Core/Ap4Atom.h:601:15
#6 0x39d3b1 in AP4_List<AP4_Atom>::Apply(AP4_List<AP4_Atom>::Item::Operator const&) const /home/lly/pro/Bento4/Source/C++/Core/Ap4List.h:353:12
#7 0x39d3b1 in AP4_ContainerAtom::InspectChildren(AP4_AtomInspector&) /home/lly/pro/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:220:16
#8 0x37117e in AP4_Atom::Inspect(AP4_AtomInspector&) /home/lly/pro/Bento4/Source/C++/Core/Ap4Atom.cpp:263:5
#9 0x359b43 in main /home/lly/pro/Bento4/Source/C++/Apps/Mp4Dump/Mp4Dump.cpp:350:15
#10 0x7f899655d0b2 in __libc_start_main /build/glibc-eX1tMB/glibc-2.31/csu/../csu/libc-start.c:308:16
#11 0x2a2b1d in _start (/home/lly/pro/Bento4/cmakebuild/mp4dump+0x2a2b1d)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /home/lly/pro/Bento4/Source/C++/Core/Ap4Descriptor.h:124:21 in AP4_DescriptorListInspector::Action(AP4_Descriptor*) const
==633802==ABORTING
```
[poc.zip](https://github.com/axiomatic-systems/Bento4/files/7043072/poc.zip)
| Null pointer reference in Ap4Descriptor.h:124 | https://api.github.com/repos/axiomatic-systems/Bento4/issues/643/comments | 0 | 2021-08-25T02:00:03Z | 2021-08-25T02:00:03Z | https://github.com/axiomatic-systems/Bento4/issues/643 | 978,627,371 | 643 |
[
"axiomatic-systems",
"Bento4"
] | Hi, there.
There is a segmentation fault caused by buffer overflow in GetCodecString, Ap4DvccAtom.cpp:169, in the newest master branch 5922ba762a.
Here is the reproducing command:
~~~~
mp4info poc
~~~~
POC:
[poc.zip](https://github.com/axiomatic-systems/Bento4/files/7014648/mp4info-overflow-GetCodecString169.zip)
(unzip first)
Here is the reproduce trace reported by ASAN:
~~~~
==156566==ERROR: AddressSanitizer: stack-overflow on address 0x7ffc9d835ff8 (pc 0x000000580e00 bp 0x7ffc9d836170 sp 0x7ffc9d836000 T0)
#0 0x580e00 in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:169:9
#1 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#2 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#3 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#4 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#5 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#6 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#7 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#8 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#9 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#10 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#11 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#12 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#13 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#14 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#15 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#16 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#17 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#18 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#19 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#20 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#21 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#22 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#23 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#24 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#25 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#26 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#27 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#28 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#29 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#30 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#31 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#32 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#33 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#34 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#35 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#36 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#37 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#38 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#39 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#40 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#41 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#42 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#43 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#44 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#45 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#46 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#47 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#48 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#49 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#50 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#51 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#52 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#53 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#54 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#55 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#56 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#57 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#58 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#59 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#60 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#61 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#62 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#63 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#64 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#65 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#66 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#67 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#68 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#69 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#70 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#71 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#72 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#73 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#74 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#75 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#76 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#77 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#78 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#79 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#80 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#81 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#82 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#83 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#84 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#85 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#86 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#87 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#88 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#89 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#90 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#91 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#92 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#93 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#94 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#95 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#96 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#97 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#98 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#99 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#100 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#101 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#102 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#103 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#104 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#105 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#106 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#107 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#108 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#109 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#110 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#111 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#112 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#113 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#114 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#115 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#116 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#117 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#118 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#119 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#120 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#121 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#122 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#123 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#124 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#125 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#126 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#127 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#128 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#129 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#130 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#131 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#132 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#133 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#134 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#135 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#136 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#137 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#138 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#139 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#140 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#141 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#142 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#143 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#144 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#145 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#146 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#147 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#148 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#149 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#150 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#151 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#152 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#153 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#154 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#155 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#156 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#157 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#158 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#159 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#160 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#161 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#162 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#163 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#164 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#165 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#166 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#167 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#168 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#169 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#170 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#171 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#172 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#173 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#174 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#175 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#176 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#177 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#178 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#179 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#180 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#181 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#182 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#183 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#184 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#185 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#186 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#187 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#188 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#189 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#190 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#191 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#192 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#193 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#194 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#195 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#196 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#197 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#198 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#199 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#200 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#201 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#202 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#203 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#204 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#205 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#206 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#207 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#208 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#209 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#210 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#211 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#212 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#213 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#214 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#215 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#216 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#217 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#218 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#219 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#220 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#221 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#222 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#223 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#224 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#225 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#226 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#227 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#228 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#229 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#230 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#231 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#232 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#233 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#234 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#235 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#236 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#237 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#238 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#239 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#240 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#241 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#242 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#243 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#244 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#245 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#246 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#247 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
#248 0x580e4f in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:171:17
#249 0x60ab7c in AP4_AvcSampleDescription::GetCodecString(AP4_String&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:402:22
SUMMARY: AddressSanitizer: stack-overflow /mnt/data/playground/Bento4/Source/C++/Core/Ap4DvccAtom.cpp:169:9 in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&)
==156566==ABORTING
Aborted
~~~~
| Segmentation fault caused by stack overflow in GetCodecString, Ap4DvccAtom.cpp:169 | https://api.github.com/repos/axiomatic-systems/Bento4/issues/642/comments | 0 | 2021-08-19T13:24:00Z | 2021-08-25T08:23:45Z | https://github.com/axiomatic-systems/Bento4/issues/642 | 974,660,845 | 642 |
[
"axiomatic-systems",
"Bento4"
] | Hi, there.
There is an infinite loop fault caused by buffer overflow in in WritePartial, Ap4ByteStream.cpp:785, in the newest master branch 5922ba762a.
Here is the reproducing command:
~~~~
mp4info poc
~~~~
POC:
[poc.zip](https://github.com/axiomatic-systems/Bento4/files/7014583/mp42aac-overflow-WritePartial785.zip)
(unzip first)
Here is the reproduce trace reported by ASAN:
~~~~
==135555==ERROR: AddressSanitizer: global-buffer-overflow on address 0x0000012f2ac1 at pc 0x0000004ae555 bp 0x7ffe5ff9acb0 sp 0x7ffe5ff9a460
READ of size 248 at 0x0000012f2ac1 thread T0
#0 0x4ae554 in __asan_memcpy /dependence/llvm-project/compiler-rt/lib/asan/asan_interceptors_memintrinsics.cpp:22
#1 0x555016 in AP4_MemoryByteStream::WritePartial(void const*, unsigned int, unsigned int&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4ByteStream.cpp:785:5
#2 0x54f4a9 in AP4_ByteStream::Write(void const*, unsigned int) /mnt/data/playground/Bento4/Source/C++/Core/Ap4ByteStream.cpp:77:29
#3 0x58be0d in AP4_HdlrAtom::WriteFields(AP4_ByteStream&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4HdlrAtom.cpp:141:29
#4 0x52be01 in AP4_Atom::Write(AP4_ByteStream&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4Atom.cpp:229:14
#5 0x52c854 in AP4_Atom::Clone() /mnt/data/playground/Bento4/Source/C++/Core/Ap4Atom.cpp:316:9
#6 0x55a9ec in AP4_ContainerAtom::Clone() /mnt/data/playground/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:172:56
#7 0x55a9ec in AP4_ContainerAtom::Clone() /mnt/data/playground/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:172:56
#8 0x55a9ec in AP4_ContainerAtom::Clone() /mnt/data/playground/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:172:56
#9 0x60732b in AP4_SampleDescription::AP4_SampleDescription(AP4_SampleDescription::Type, unsigned int, AP4_AtomParent*) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:135:41
#10 0x60a592 in AP4_AvcSampleDescription::AP4_AvcSampleDescription(unsigned int, unsigned short, unsigned short, unsigned short, char const*, AP4_AtomParent*) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:380:5
#11 0x622279 in AP4_AvcSampleEntry::ToSampleDescription() /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleEntry.cpp:1146:16
#12 0x63fba4 in AP4_StsdAtom::GetSampleDescription(unsigned int) /mnt/data/playground/Bento4/Source/C++/Core/Ap4StsdAtom.cpp:181:53
#13 0x6a479e in AP4_AtomSampleTable::GetSampleDescription(unsigned int) /mnt/data/playground/Bento4/Source/C++/Core/Ap4AtomSampleTable.cpp:207:37
#14 0x66004d in AP4_Track::GetSampleDescription(unsigned int) /mnt/data/playground/Bento4/Source/C++/Core/Ap4Track.cpp:447:43
#15 0x4fce5e in ShowTrackInfo_Text(AP4_Movie&, AP4_Track&, AP4_ByteStream&, bool, bool, bool, bool) /mnt/data/playground/Bento4/Source/C++/Apps/Mp4Info/Mp4Info.cpp:1351:52
#16 0x4fce5e in ShowTrackInfo(AP4_Movie&, AP4_Track&, AP4_ByteStream&, bool, bool, bool, bool) /mnt/data/playground/Bento4/Source/C++/Apps/Mp4Info/Mp4Info.cpp:1475:13
#17 0x4fbed0 in ShowTracks(AP4_Movie&, AP4_List<AP4_Track>&, AP4_ByteStream&, bool, bool, bool, bool) /mnt/data/playground/Bento4/Source/C++/Apps/Mp4Info/Mp4Info.cpp:1586:9
#18 0x4f7ca0 in main /mnt/data/playground/Bento4/Source/C++/Apps/Mp4Info/Mp4Info.cpp:1868:13
#19 0x7efeb30e583f in __libc_start_main /build/glibc-S7Ft5T/glibc-2.23/csu/../csu/libc-start.c:291
#20 0x41c1f8 in _start (/mnt/data/playground/Bento4/build/mp4info+0x41c1f8)
0x0000012f2ac1 is located 63 bytes to the left of global variable 'AP4_GlobalOptions::g_Entries' defined in '/mnt/data/playground/Bento4/Source/C++/Core/Ap4Utils.cpp:38:56' (0x12f2b00) of size 8
0x0000012f2ac1 is located 0 bytes to the right of global variable 'AP4_String::EmptyString' defined in '/mnt/data/playground/Bento4/Source/C++/Core/Ap4String.cpp:39:18' (0x12f2ac0) of size 1
'AP4_String::EmptyString' is ascii string ''
SUMMARY: AddressSanitizer: global-buffer-overflow /dependence/llvm-project/compiler-rt/lib/asan/asan_interceptors_memintrinsics.cpp:22 in __asan_memcpy
Shadow bytes around the buggy address:
0x000080256500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x000080256510: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x000080256520: 00 00 00 00 00 00 00 00 04 f9 f9 f9 f9 f9 f9 f9
0x000080256530: 00 00 00 00 00 00 00 00 00 f9 f9 f9 f9 f9 f9 f9
0x000080256540: 00 00 00 00 00 00 00 00 00 f9 f9 f9 f9 f9 f9 f9
=>0x000080256550: 00 00 f9 f9 f9 f9 f9 f9[01]f9 f9 f9 f9 f9 f9 f9
0x000080256560: 00 f9 f9 f9 f9 f9 f9 f9 00 00 00 f9 f9 f9 f9 f9
0x000080256570: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x000080256580: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x000080256590: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0000802565a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Shadow byte legend (one shadow byte represents 8 application bytes):
Addressable: 00
Partially addressable: 01 02 03 04 05 06 07
Heap left redzone: fa
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack after return: f5
Stack use after scope: f8
Global redzone: f9
Global init order: f6
Poisoned by user: f7
Container overflow: fc
Array cookie: ac
Intra object redzone: bb
ASan internal: fe
Left alloca redzone: ca
Right alloca redzone: cb
Shadow gap: cc
==135555==ABORTING
Aborted
~~~~
| Infinite loop caused by buffer overflow, in WritePartial, Ap4ByteStream.cpp:785 | https://api.github.com/repos/axiomatic-systems/Bento4/issues/641/comments | 0 | 2021-08-19T13:07:50Z | 2021-08-19T13:12:18Z | https://github.com/axiomatic-systems/Bento4/issues/641 | 974,645,363 | 641 |
[
"axiomatic-systems",
"Bento4"
] | Hi, there.
There is a large memory leak issue (> 200 mb) in CreateDescriptorFromStream, Ap4DescriptorFactory.cpp:90 in the newest branch 5922ba762af46.
To reproduce it, run
~~~~
mp4info poc
~~~~
POC:
[poc.zip](https://github.com/axiomatic-systems/Bento4/files/7014506/mp42aac-leak-CreateDescriptorFromStream90.zip)
(unzip first)
Here is the reproduce trace reported by ASAN:
~~~~
==3162==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 88 byte(s) in 1 object(s) allocated from:
#0 0x4f2a58 in operator new(unsigned long) /dependence/llvm-project/compiler-rt/lib/asan/asan_new_delete.cpp:99
#1 0x6dc366 in AP4_DescriptorFactory::CreateDescriptorFromStream(AP4_ByteStream&, AP4_Descriptor*&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DescriptorFactory.cpp:90:26
#2 0x585473 in AP4_EsdsAtom::AP4_EsdsAtom(unsigned int, unsigned char, unsigned int, AP4_ByteStream&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4EsdsAtom.cpp:76:9
#3 0x58505e in AP4_EsdsAtom::Create(unsigned int, AP4_ByteStream&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4EsdsAtom.cpp:52:16
#4 0x543334 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:508:20
#5 0x53ed78 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:234:14
#6 0x559f8c in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /mnt/data/playground/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:194:12
#7 0x559d20 in AP4_ContainerAtom::AP4_ContainerAtom(unsigned int, unsigned long long, bool, AP4_ByteStream&, AP4_AtomFactory&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:139:5
Indirect leak of 270068111 byte(s) in 6 object(s) allocated from:
#0 0x4f2bb8 in operator new[](unsigned long) /dependence/llvm-project/compiler-rt/lib/asan/asan_new_delete.cpp:102
#1 0x578cc6 in AP4_DataBuffer::ReallocateBuffer(unsigned int) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DataBuffer.cpp:210:28
....
SUMMARY: AddressSanitizer: 270069632 byte(s) leaked in 52 allocation(s).
~~~~ | Memory leak in CreateDescriptorFromStream, Ap4DescriptorFactory.cpp:90 | https://api.github.com/repos/axiomatic-systems/Bento4/issues/640/comments | 0 | 2021-08-19T13:02:05Z | 2021-08-19T13:02:05Z | https://github.com/axiomatic-systems/Bento4/issues/640 | 974,639,707 | 640 |
[
"axiomatic-systems",
"Bento4"
] | Hi, there.
There is a segmentation fault caused by accessing uninitialized memory in the newest master branch 5922ba762a.
Compiled with:
~~~~
-DCMAKE_C_FLAGS="-fsanitize=address" -DCMAKE_CXX_FLAGS="-fsanitize=address"
~~~~
Here is the reproducing command:
~~~~
mp42aac poc /dev/null
~~~~
POC:
[POC.zip](https://github.com/axiomatic-systems/Bento4/files/7013224/mp42aac-uninitialize-SetData175.zip)
(unzip first)
Here is the reproduce trace reported by ASAN:
~~~~
==68530==ERROR: AddressSanitizer: SEGV on unknown address (pc 0x0000004ae2be bp 0x7ffe63d3f700 sp 0x7ffe63d3eea0 T0)
==68530==The signal is caused by a READ memory access.
==68530==Hint: this fault was caused by a dereference of a high value address (see register values below). Dissassemble the provided pc to learn which register was used.
#0 0x4ae2be in AddressIsPoisoned /dependence/llvm-project/compiler-rt/lib/asan/asan_mapping.h:386
#1 0x4ae2be in QuickCheckForUnpoisonedRegion /dependence/llvm-project/compiler-rt/lib/asan/asan_interceptors_memintrinsics.h:31
#2 0x4ae2be in __asan_memcpy /dependence/llvm-project/compiler-rt/lib/asan/asan_interceptors_memintrinsics.cpp:22
#3 0x501e0e in AP4_DataBuffer::SetData(unsigned char const*, unsigned int) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DataBuffer.cpp:175:5
#4 0x5a575f in AP4_AvccAtom::AP4_AvccAtom(unsigned int, unsigned char const*) /mnt/data/playground/Bento4/Source/C++/Core/Ap4AvccAtom.cpp:176:40
#5 0x5a30ff in AP4_AvccAtom::Create(unsigned int, AP4_ByteStream&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4AvccAtom.cpp:95:16
#6 0x59956c in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:513:20
#7 0x594a48 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:234:14
#8 0x5dcf0c in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /mnt/data/playground/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:194:12
#9 0x531f0a in AP4_SampleEntry::Read(AP4_ByteStream&, AP4_AtomFactory&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleEntry.cpp:115:9
#10 0x53969d in AP4_VisualSampleEntry::AP4_VisualSampleEntry(unsigned int, unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleEntry.cpp:884:5
#11 0x50f04c in AP4_EncvSampleEntry::AP4_EncvSampleEntry(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4Protection.cpp:173:5
#12 0x5974d6 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:302:24
#13 0x594a48 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:234:14
#14 0x54568d in AP4_StsdAtom::AP4_StsdAtom(unsigned int, unsigned char, unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4StsdAtom.cpp:101:13
#15 0x544938 in AP4_StsdAtom::Create(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4StsdAtom.cpp:57:16
#16 0x598b35 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:458:20
#17 0x594a48 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:234:14
#18 0x5dcf0c in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /mnt/data/playground/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:194:12
#19 0x5dcca0 in AP4_ContainerAtom::AP4_ContainerAtom(unsigned int, unsigned long long, bool, AP4_ByteStream&, AP4_AtomFactory&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:139:5
#20 0x5dbd2c in AP4_ContainerAtom::Create(unsigned int, unsigned long long, bool, bool, AP4_ByteStream&, AP4_AtomFactory&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:88:20
#21 0x596f3e in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:816:20
#22 0x594a48 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:234:14
#23 0x605528 in AP4_DrefAtom::AP4_DrefAtom(unsigned int, unsigned char, unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DrefAtom.cpp:84:16
#24 0x604ae8 in AP4_DrefAtom::Create(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4DrefAtom.cpp:50:16
#25 0x599804 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:580:20
#26 0x594a48 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:234:14
#27 0x5dcf0c in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /mnt/data/playground/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:194:12
#28 0x5dcca0 in AP4_ContainerAtom::AP4_ContainerAtom(unsigned int, unsigned long long, bool, AP4_ByteStream&, AP4_AtomFactory&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:139:5
#29 0x5dbd2c in AP4_ContainerAtom::Create(unsigned int, unsigned long long, bool, bool, AP4_ByteStream&, AP4_AtomFactory&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:88:20
#30 0x596f3e in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:816:20
#31 0x594a48 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:234:14
#32 0x5dcf0c in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /mnt/data/playground/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:194:12
#33 0x5dcca0 in AP4_ContainerAtom::AP4_ContainerAtom(unsigned int, unsigned long long, bool, AP4_ByteStream&, AP4_AtomFactory&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:139:5
#34 0x5dbd2c in AP4_ContainerAtom::Create(unsigned int, unsigned long long, bool, bool, AP4_ByteStream&, AP4_AtomFactory&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:88:20
#35 0x596f3e in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:816:20
#36 0x594a48 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:234:14
#37 0x5dcf0c in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /mnt/data/playground/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:194:12
#38 0x5dcca0 in AP4_ContainerAtom::AP4_ContainerAtom(unsigned int, unsigned long long, bool, AP4_ByteStream&, AP4_AtomFactory&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:139:5
#39 0x50680b in AP4_MoovAtom::AP4_MoovAtom(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4MoovAtom.cpp:79:5
#40 0x59994f in AP4_MoovAtom::Create(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4MoovAtom.h:56:20
#41 0x59994f in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:393:20
#42 0x594a48 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:234:14
#43 0x593e43 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, AP4_Atom*&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:154:12
#44 0x502982 in AP4_File::ParseStream(AP4_ByteStream&, AP4_AtomFactory&, bool) /mnt/data/playground/Bento4/Source/C++/Core/Ap4File.cpp:104:12
#45 0x50306b in AP4_File::AP4_File(AP4_ByteStream&, bool) /mnt/data/playground/Bento4/Source/C++/Core/Ap4File.cpp:78:5
#46 0x4f6762 in main /mnt/data/playground/Bento4/Source/C++/Apps/Mp42Aac/Mp42Aac.cpp:250:22
#47 0x7fa41bede83f in __libc_start_main /build/glibc-S7Ft5T/glibc-2.23/csu/../csu/libc-start.c:291
#48 0x41c1b8 in _start (/mnt/data/playground/Bento4/build/mp42aac+0x41c1b8)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /dependence/llvm-project/compiler-rt/lib/asan/asan_mapping.h:386 in AddressIsPoisoned
==68530==ABORTING
~~~~
Here is the details reported by Valgrind:
~~~~
==70154== Memcheck, a memory error detector
==70154== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==70154== Using Valgrind-3.13.0 and LibVEX; rerun with -h for copyright info
==70154==
==70154== Conditional jump or move depends on uninitialised value(s)
==70154== at 0x404409: AP4_DataBuffer::SetData(unsigned char const*, unsigned int) (in /mnt/data/playground/Bento4/build-o/mp42aac)
==70154== by 0x43110C: AP4_AvccAtom::AP4_AvccAtom(unsigned int, unsigned char const*) (in /mnt/data/playground/Bento4/build-o/mp42aac)
==70154== by 0x430AA8: AP4_AvccAtom::Create(unsigned int, AP4_ByteStream&) (in /mnt/data/playground/Bento4/build-o/mp42aac)
==70154== by 0x42D63F: AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) (in /mnt/data/playground/Bento4/build-o/mp42aac)
==70154== by 0x42C335: AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) (in /mnt/data/playground/Bento4/build-o/mp42aac)
==70154== by 0x43F629: AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) (in /mnt/data/playground/Bento4/build-o/mp42aac)
==70154== by 0x412730: AP4_SampleEntry::Read(AP4_ByteStream&, AP4_AtomFactory&) (in /mnt/data/playground/Bento4/build-o/mp42aac)
==70154== by 0x4148B0: AP4_VisualSampleEntry::AP4_VisualSampleEntry(unsigned int, unsigned int, AP4_ByteStream&, AP4_AtomFactory&) (in /mnt/data/playground/Bento4/build-o/mp42aac)
==70154== by 0x407D89: AP4_EncvSampleEntry::AP4_EncvSampleEntry(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) (in /mnt/data/playground/Bento4/build-o/mp42aac)
==70154== by 0x42C7C1: AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) (in /mnt/data/playground/Bento4/build-o/mp42aac)
==70154== by 0x42C335: AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) (in /mnt/data/playground/Bento4/build-o/mp42aac)
==70154== by 0x4177AE: AP4_StsdAtom::AP4_StsdAtom(unsigned int, unsigned char, unsigned int, AP4_ByteStream&, AP4_AtomFactory&) (in /mnt/data/playground/Bento4/build-o/mp42aac)
==70154== Uninitialised value was created by a heap allocation
==70154== at 0x4C2E216: operator new(unsigned long) (vg_replace_malloc.c:334)
==70154== by 0x431C2A: AP4_Array<AP4_DataBuffer>::EnsureCapacity(unsigned int) (in /mnt/data/playground/Bento4/build-o/mp42aac)
==70154== by 0x431054: AP4_AvccAtom::AP4_AvccAtom(unsigned int, unsigned char const*) (in /mnt/data/playground/Bento4/build-o/mp42aac)
==70154== by 0x430AA8: AP4_AvccAtom::Create(unsigned int, AP4_ByteStream&) (in /mnt/data/playground/Bento4/build-o/mp42aac)
==70154== by 0x42D63F: AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) (in /mnt/data/playground/Bento4/build-o/mp42aac)
==70154== by 0x42C335: AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) (in /mnt/data/playground/Bento4/build-o/mp42aac)
==70154== by 0x43F629: AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) (in /mnt/data/playground/Bento4/build-o/mp42aac)
==70154== by 0x412730: AP4_SampleEntry::Read(AP4_ByteStream&, AP4_AtomFactory&) (in /mnt/data/playground/Bento4/build-o/mp42aac)
==70154== by 0x4148B0: AP4_VisualSampleEntry::AP4_VisualSampleEntry(unsigned int, unsigned int, AP4_ByteStream&, AP4_AtomFactory&) (in /mnt/data/playground/Bento4/build-o/mp42aac)
==70154== by 0x407D89: AP4_EncvSampleEntry::AP4_EncvSampleEntry(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) (in /mnt/data/playground/Bento4/build-o/mp42aac)
==70154== by 0x42C7C1: AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) (in /mnt/data/playground/Bento4/build-o/mp42aac)
==70154== by 0x42C335: AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) (in /mnt/data/playground/Bento4/build-o/mp42aac)
==70154==
==70154== Conditional jump or move depends on uninitialised value(s)
==70154== at 0x404415: AP4_DataBuffer::SetData(unsigned char const*, unsigned int) (in /mnt/data/playground/Bento4/build-o/mp42aac)
==70154== by 0x43110C: AP4_AvccAtom::AP4_AvccAtom(unsigned int, unsigned char const*) (in /mnt/data/playground/Bento4/build-o/mp42aac)
==70154== by 0x430AA8: AP4_AvccAtom::Create(unsigned int, AP4_ByteStream&) (in /mnt/data/playground/Bento4/build-o/mp42aac)
==70154== by 0x42D63F: AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) (in /mnt/data/playground/Bento4/build-o/mp42aac)
==70154== by 0x42C335: AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) (in /mnt/data/playground/Bento4/build-o/mp42aac)
==70154== by 0x43F629: AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) (in /mnt/data/playground/Bento4/build-o/mp42aac)
==70154== by 0x412730: AP4_SampleEntry::Read(AP4_ByteStream&, AP4_AtomFactory&) (in /mnt/data/playground/Bento4/build-o/mp42aac)
==70154== by 0x4148B0: AP4_VisualSampleEntry::AP4_VisualSampleEntry(unsigned int, unsigned int, AP4_ByteStream&, AP4_AtomFactory&) (in /mnt/data/playground/Bento4/build-o/mp42aac)
==70154== by 0x407D89: AP4_EncvSampleEntry::AP4_EncvSampleEntry(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) (in /mnt/data/playground/Bento4/build-o/mp42aac)
==70154== by 0x42C7C1: AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) (in /mnt/data/playground/Bento4/build-o/mp42aac)
==70154== by 0x42C335: AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) (in /mnt/data/playground/Bento4/build-o/mp42aac)
==70154== by 0x4177AE: AP4_StsdAtom::AP4_StsdAtom(unsigned int, unsigned char, unsigned int, AP4_ByteStream&, AP4_AtomFactory&) (in /mnt/data/playground/Bento4/build-o/mp42aac)
==70154== Uninitialised value was created by a heap allocation
==70154== at 0x4C2E216: operator new(unsigned long) (vg_replace_malloc.c:334)
==70154== by 0x431C2A: AP4_Array<AP4_DataBuffer>::EnsureCapacity(unsigned int) (in /mnt/data/playground/Bento4/build-o/mp42aac)
==70154== by 0x431054: AP4_AvccAtom::AP4_AvccAtom(unsigned int, unsigned char const*) (in /mnt/data/playground/Bento4/build-o/mp42aac)
==70154== by 0x430AA8: AP4_AvccAtom::Create(unsigned int, AP4_ByteStream&) (in /mnt/data/playground/Bento4/build-o/mp42aac)
==70154== by 0x42D63F: AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) (in /mnt/data/playground/Bento4/build-o/mp42aac)
==70154== by 0x42C335: AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) (in /mnt/data/playground/Bento4/build-o/mp42aac)
==70154== by 0x43F629: AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) (in /mnt/data/playground/Bento4/build-o/mp42aac)
==70154== by 0x412730: AP4_SampleEntry::Read(AP4_ByteStream&, AP4_AtomFactory&) (in /mnt/data/playground/Bento4/build-o/mp42aac)
==70154== by 0x4148B0: AP4_VisualSampleEntry::AP4_VisualSampleEntry(unsigned int, unsigned int, AP4_ByteStream&, AP4_AtomFactory&) (in /mnt/data/playground/Bento4/build-o/mp42aac)
==70154== by 0x407D89: AP4_EncvSampleEntry::AP4_EncvSampleEntry(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) (in /mnt/data/playground/Bento4/build-o/mp42aac)
==70154== by 0x42C7C1: AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) (in /mnt/data/playground/Bento4/build-o/mp42aac)
==70154== by 0x42C335: AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) (in /mnt/data/playground/Bento4/build-o/mp42aac)
==70154==
ERROR: unable to parse sample description
==70154==
==70154== HEAP SUMMARY:
==70154== in use at exit: 0 bytes in 0 blocks
==70154== total heap usage: 195 allocs, 195 frees, 107,917 bytes allocated
==70154==
==70154== All heap blocks were freed -- no leaks are possible
==70154==
==70154== For counts of detected and suppressed errors, rerun with: -v
==70154== ERROR SUMMARY: 10 errors from 2 contexts (suppressed: 0 from 0)
~~~~
| SEGV caused by accessing uninitialised memory in SetData, Ap4DataBuffer.cpp:175 | https://api.github.com/repos/axiomatic-systems/Bento4/issues/639/comments | 0 | 2021-08-19T09:19:18Z | 2021-08-19T09:20:22Z | https://github.com/axiomatic-systems/Bento4/issues/639 | 974,454,199 | 639 |
[
"axiomatic-systems",
"Bento4"
] | Hi, there.
There is a large memory leak issue (> 200 mb) in CreateDescriptorFromStream, Ap4DescriptorFactory.cpp:127 in the newest branch 5922ba762af46.
To reproduce it, run
~~~~
mp42aac poc /dev/null
~~~~
POC:
[poc.zip](https://github.com/axiomatic-systems/Bento4/files/7005325/mp42aac-leak-CreateDescriptorFromStream127.zip)
(unzip first)
Here is the reproduce trace reported by Valgrind:
~~~~
==130483== Memcheck, a memory error detector
==130483== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==130483== Using Valgrind-3.13.0 and LibVEX; rerun with -h for copyright info
==130483==
Audio Track:
duration: 15000 ms
sample count: 750
==130483==
==130483== HEAP SUMMARY:
==130483== in use at exit: 203,423,672 bytes in 2 blocks
==130483== total heap usage: 324 allocs, 322 frees, 203,525,969 bytes allocated
==130483==
==130483== 56 bytes in 1 blocks are definitely lost in loss record 1 of 2
==130483== at 0x4C2E216: operator new(unsigned long) (vg_replace_malloc.c:334)
==130483== by 0x4496F3: AP4_DescriptorFactory::CreateDescriptorFromStream(AP4_ByteStream&, AP4_Descriptor*&) (in /mnt/data/playground/Bento4/build-o/mp42aac)
==130483== by 0x44BE4D: AP4_EsdsAtom::AP4_EsdsAtom(unsigned int, unsigned char, unsigned int, AP4_ByteStream&) (in /mnt/data/playground/Bento4/build-o/mp42aac)
==130483== by 0x44BD28: AP4_EsdsAtom::Create(unsigned int, AP4_ByteStream&) (in /mnt/data/playground/Bento4/build-o/mp42aac)
==130483== by 0x42D60C: AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) (in /mnt/data/playground/Bento4/build-o/mp42aac)
==130483== by 0x42C335: AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) (in /mnt/data/playground/Bento4/build-o/mp42aac)
==130483== by 0x43F629: AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) (in /mnt/data/playground/Bento4/build-o/mp42aac)
==130483== by 0x412730: AP4_SampleEntry::Read(AP4_ByteStream&, AP4_AtomFactory&) (in /mnt/data/playground/Bento4/build-o/mp42aac)
==130483== by 0x41337E: AP4_AudioSampleEntry::AP4_AudioSampleEntry(unsigned int, unsigned int, AP4_ByteStream&, AP4_AtomFactory&) (in /mnt/data/playground/Bento4/build-o/mp42aac)
==130483== by 0x413DE0: AP4_MpegAudioSampleEntry::AP4_MpegAudioSampleEntry(unsigned int, unsigned int, AP4_ByteStream&, AP4_AtomFactory&) (in /mnt/data/playground/Bento4/build-o/mp42aac)
==130483== by 0x4146F7: AP4_Mp4aSampleEntry::AP4_Mp4aSampleEntry(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) (in /mnt/data/playground/Bento4/build-o/mp42aac)
==130483== by 0x42C6FD: AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) (in /mnt/data/playground/Bento4/build-o/mp42aac)
==130483==
==130483== 203,423,616 bytes in 1 blocks are possibly lost in loss record 2 of 2
==130483== at 0x4C2E8BB: operator new[](unsigned long) (vg_replace_malloc.c:423)
==130483== by 0x404510: AP4_DataBuffer::ReallocateBuffer(unsigned int) (in /mnt/data/playground/Bento4/build-o/mp42aac)
==130483== by 0x4043C5: AP4_DataBuffer::SetDataSize(unsigned int) (in /mnt/data/playground/Bento4/build-o/mp42aac)
==130483== by 0x449271: AP4_UnknownDescriptor::AP4_UnknownDescriptor(AP4_ByteStream&, unsigned char, unsigned int, unsigned int) (in /mnt/data/playground/Bento4/build-o/mp42aac)
==130483== by 0x449715: AP4_DescriptorFactory::CreateDescriptorFromStream(AP4_ByteStream&, AP4_Descriptor*&) (in /mnt/data/playground/Bento4/build-o/mp42aac)
==130483== by 0x44BE4D: AP4_EsdsAtom::AP4_EsdsAtom(unsigned int, unsigned char, unsigned int, AP4_ByteStream&) (in /mnt/data/playground/Bento4/build-o/mp42aac)
==130483== by 0x44BD28: AP4_EsdsAtom::Create(unsigned int, AP4_ByteStream&) (in /mnt/data/playground/Bento4/build-o/mp42aac)
==130483== by 0x42D60C: AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) (in /mnt/data/playground/Bento4/build-o/mp42aac)
==130483== by 0x42C335: AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) (in /mnt/data/playground/Bento4/build-o/mp42aac)
==130483== by 0x43F629: AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) (in /mnt/data/playground/Bento4/build-o/mp42aac)
==130483== by 0x412730: AP4_SampleEntry::Read(AP4_ByteStream&, AP4_AtomFactory&) (in /mnt/data/playground/Bento4/build-o/mp42aac)
==130483== by 0x41337E: AP4_AudioSampleEntry::AP4_AudioSampleEntry(unsigned int, unsigned int, AP4_ByteStream&, AP4_AtomFactory&) (in /mnt/data/playground/Bento4/build-o/mp42aac)
==130483==
==130483== LEAK SUMMARY:
==130483== definitely lost: 56 bytes in 1 blocks
==130483== indirectly lost: 0 bytes in 0 blocks
==130483== possibly lost: 203,423,616 bytes in 1 blocks
==130483== still reachable: 0 bytes in 0 blocks
==130483== suppressed: 0 bytes in 0 blocks
==130483==
==130483== For counts of detected and suppressed errors, rerun with: -v
==130483== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0)
~~~~ | Memory leak in CreateDescriptorFromStream, Ap4DescriptorFactory.cpp:127 | https://api.github.com/repos/axiomatic-systems/Bento4/issues/638/comments | 1 | 2021-08-18T07:21:36Z | 2021-08-18T07:29:23Z | https://github.com/axiomatic-systems/Bento4/issues/638 | 973,357,597 | 638 |
[
"axiomatic-systems",
"Bento4"
] | Hi, there.
There is a segmentation fault in the newest master branch 5922ba762a.
Here is the reproducing command:
~~~~
mp42aac poc /dev/null
~~~~
POC:
[poc.zip](https://github.com/axiomatic-systems/Bento4/files/7005212/mp42aac-seg-action108.zip)
(unzip first)
Here is the reproduce trace reported by ASAN:
~~~~
==48220==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x00000060273c bp 0x7ffd82575410 sp 0x7ffd82575350 T0)
==48220==The signal is caused by a READ memory access.
==48220==Hint: address points to the zero page.
#0 0x60273c in AP4_DescriptorListWriter::Action(AP4_Descriptor*) const /mnt/data/playground/Bento4/Source/C++/Core/Ap4Descriptor.h:108:28
#1 0x60ccc7 in AP4_List<AP4_Descriptor>::Apply(AP4_List<AP4_Descriptor>::Item::Operator const&) const /mnt/data/playground/Bento4/Source/C++/Core/Ap4List.h:353:12
#2 0x60ccc7 in AP4_EsDescriptor::WriteFields(AP4_ByteStream&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4EsDescriptor.cpp:163:22
#3 0x60fee9 in AP4_Expandable::Write(AP4_ByteStream&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4Expandable.cpp:109:5
#4 0x60f603 in AP4_EsdsAtom::WriteFields(AP4_ByteStream&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4EsdsAtom.cpp:99:48
#5 0x581ee1 in AP4_Atom::Write(AP4_ByteStream&) /mnt/data/playground/Bento4/Source/C++/Core/Ap4Atom.cpp:229:14
#6 0x582934 in AP4_Atom::Clone() /mnt/data/playground/Bento4/Source/C++/Core/Ap4Atom.cpp:316:9
#7 0x5206ab in AP4_SampleDescription::AP4_SampleDescription(AP4_SampleDescription::Type, unsigned int, AP4_AtomParent*) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:135:41
#8 0x50ebb1 in AP4_GenericAudioSampleDescription::AP4_GenericAudioSampleDescription(unsigned int, unsigned int, unsigned short, unsigned short, AP4_AtomParent*) /mnt/data/playground/Bento4/Source/C++/Core/Ap4SampleDescription.h:258:9
#9 0x50ebb1 in AP4_EncaSampleEntry::ToTargetSampleDescription(unsigned int) /mnt/data/playground/Bento4/Source/C++/Core/Ap4Protection.cpp:147:24
#10 0x50e33e in AP4_EncaSampleEntry::ToSampleDescription() /mnt/data/playground/Bento4/Source/C++/Core/Ap4Protection.cpp:98:13
#11 0x5474b4 in AP4_StsdAtom::GetSampleDescription(unsigned int) /mnt/data/playground/Bento4/Source/C++/Core/Ap4StsdAtom.cpp:181:53
#12 0x59f07e in AP4_AtomSampleTable::GetSampleDescription(unsigned int) /mnt/data/playground/Bento4/Source/C++/Core/Ap4AtomSampleTable.cpp:207:37
#13 0x54b8ad in AP4_Track::GetSampleDescription(unsigned int) /mnt/data/playground/Bento4/Source/C++/Core/Ap4Track.cpp:447:43
#14 0x4f6876 in main /mnt/data/playground/Bento4/Source/C++/Apps/Mp42Aac/Mp42Aac.cpp:268:39
#15 0x7f564c8c283f in __libc_start_main /build/glibc-S7Ft5T/glibc-2.23/csu/../csu/libc-start.c:291
#16 0x41c1b8 in _start (/mnt/data/playground/Bento4/build/mp42aac+0x41c1b8)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /mnt/data/playground/Bento4/Source/C++/Core/Ap4Descriptor.h:108:28 in AP4_DescriptorListWriter::Action(AP4_Descriptor*) const
==48220==ABORTING
~~~~
The cause might due to the incomplete nullity check of the input parameter.
<img width="636" alt="image" src="https://user-images.githubusercontent.com/7632714/129852400-7995f325-c305-4501-9591-8d9aeebf6561.png">
| SEGV caused by null pointer dereference in mp42aac with AP4_DescriptorListWriter::Action in Ap4Descriptor.h:108 | https://api.github.com/repos/axiomatic-systems/Bento4/issues/637/comments | 0 | 2021-08-18T07:04:00Z | 2021-08-18T07:30:27Z | https://github.com/axiomatic-systems/Bento4/issues/637 | 973,344,583 | 637 |
[
"axiomatic-systems",
"Bento4"
] | Hello!
As the title says, is there a way of defining a key:IV for every trackid with mp4encrypt?
I was having this question and found the same one in a previous post https://github.com/axiomatic-systems/Bento4/issues/489 but there was no answer, probably cause the issue was set to "close" previously.
Thanks for help | In mp4encrypt the --key option must be explicit for every track? | https://api.github.com/repos/axiomatic-systems/Bento4/issues/636/comments | 0 | 2021-08-11T13:12:04Z | 2021-08-11T13:12:52Z | https://github.com/axiomatic-systems/Bento4/issues/636 | 966,689,797 | 636 |
[
"axiomatic-systems",
"Bento4"
] | MP4 Fragmenter hides errors.
Example: https://github.com/axiomatic-systems/Bento4/blob/5abeaa0ebdb8c3be5b710517eb04d807832d2bbf/Source/C%2B%2B/Apps/Mp4Fragment/Mp4Fragment.cpp#L879
Instead fragmenter must turn such errors into non-zero exit status. Otherwise, there is no adequate way for a caller process to be sure that fragmenter produced correct output. | MP4 Fragmenter hides errors | https://api.github.com/repos/axiomatic-systems/Bento4/issues/635/comments | 0 | 2021-08-09T12:48:28Z | 2021-08-09T12:48:28Z | https://github.com/axiomatic-systems/Bento4/issues/635 | 963,960,776 | 635 |
[
"axiomatic-systems",
"Bento4"
] | Hi,
I'm trying to extract the HEVC elementary stream from a DASH/HLS fMP4 segment so I can inspect it using https://github.com/virinext/hevcesbrowser for debugging purposes.
For this I need to extract the payload of the `mdat` box of the segment. But it looks like that `mp42hevc` is not capable of doing this?
```
mp42hevc 1.m4s 1.hevc
ERROR: no movie in file
```
What do you think, could this feature be added?
I also tried
```
mp4extract --payload-only mdat 1.m4s mdat1.hevc
```
with no luck. The resulting `mdat1.hevc` is not readable.
Do you have an idea for how to extract the HEVC stream in this scenario?
Thanks. | How to extract ES from fMP4 segments | https://api.github.com/repos/axiomatic-systems/Bento4/issues/634/comments | 0 | 2021-08-06T09:33:09Z | 2021-08-06T09:37:08Z | https://github.com/axiomatic-systems/Bento4/issues/634 | 962,570,792 | 634 |
[
"axiomatic-systems",
"Bento4"
] | Try to encode a dash+hls stream with this command:
mp4dash --verbose --profiles=on-demand --hls --subtitles -o ElephantsDream ed_hd_640x360_fragments.mp4 ed_hd_480x270_fragments.mp4 ed_hd_320x180_fragments.mp4 ed_hd_english_fragments.mp4 ed_hd_french_fragments.mp4 [+format=webvtt,+language=eng]elephants-dream-subtitles-en.vtt [+format=webvtt,+language=deu]elephants-dream-subtitles-de.vtt
Directory tree is built with fmp4 and subtitles subdirectory.
When I try DASH, subtitles are shown but not displayed
When I try HLS, subtitles are not shown, which is "normal" as no subtitles are "encoded" in master playlist
Moreover, an error is shown: local variable referenced before assignment
I don't know what I did wrong as I follow the specs. Are WebVTT subtitles supported in BENTO4 ?
Bento4 is awesome, keep up the good work ;-) | WEBVTT not working in DASH and not present in master HLS | https://api.github.com/repos/axiomatic-systems/Bento4/issues/633/comments | 0 | 2021-08-03T08:02:03Z | 2021-08-03T08:02:03Z | https://github.com/axiomatic-systems/Bento4/issues/633 | 958,842,827 | 633 |
[
"axiomatic-systems",
"Bento4"
] | I have mp4 file (raw).
mp4info doesn't show any information about the file.
"No movie found in the file"
https://www49.zippyshare.com/v/GZ7021Ov/file.html
| mp4info doesn't show info | https://api.github.com/repos/axiomatic-systems/Bento4/issues/632/comments | 0 | 2021-08-01T13:49:29Z | 2021-08-02T12:47:34Z | https://github.com/axiomatic-systems/Bento4/issues/632 | 957,497,106 | 632 |
[
"axiomatic-systems",
"Bento4"
] | In mp4decrypt the option --show-progress does nothing | Progress not shown | https://api.github.com/repos/axiomatic-systems/Bento4/issues/631/comments | 0 | 2021-07-30T19:15:06Z | 2021-07-30T19:15:17Z | https://github.com/axiomatic-systems/Bento4/issues/631 | 957,000,745 | 631 |
[
"axiomatic-systems",
"Bento4"
] | Hi there,
I found a heap-buffer-overflow in ` AP4_AvccAtom::AP4_AvccAtom in Ap4AvccAtom.cpp:168` when fuzzing `mp42aac`.
- Bento4 version: v1.6.0-639 (commit 5abeaa0ebdb8c3be5b710517eb04d807832d2bbf)
- Compiler args: DCMAKE_C_FLAGS=-fsanitize=address
- Platform: Ubuntu 20.04.2 LTS, x86_64
- Reproduce: `mp42aac heap_Ap4AvccAtom_poc /dev/null`
- POC: [heap_Ap4AvccAtom_poc.tar.gz](https://github.com/axiomatic-systems/Bento4/files/6908536/heap_Ap4AvccAtom_poc.tar.gz) (decompress it first)
AddressSanitizer report:
```
==70689==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x60200000009e at pc 0x0000005543ab bp 0x7ffe748c1130 sp 0x7ffe748c1128
READ of size 1 at 0x60200000009e thread T0
#0 0x5543aa in AP4_AvccAtom::AP4_AvccAtom(unsigned int, unsigned char const*) /mp42aac/repo/Source/C++/Core/Ap4AvccAtom.cpp:168:31
#1 0x5514a0 in AP4_AvccAtom::Create(unsigned int, AP4_ByteStream&) /mp42aac/repo/Source/C++/Core/Ap4AvccAtom.cpp:95:16
#2 0x54b13f in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /mp42aac/repo/Source/C++/Core/Ap4AtomFactory.cpp:547:20
#3 0x547a4c in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /mp42aac/repo/Source/C++/Core/Ap4AtomFactory.cpp:234:14
#4 0x54717e in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, AP4_Atom*&) /mp42aac/repo/Source/C++/Core/Ap4AtomFactory.cpp:154:12
#5 0x4d4b1e in AP4_File::ParseStream(AP4_ByteStream&, AP4_AtomFactory&, bool) /mp42aac/repo/Source/C++/Core/Ap4File.cpp:104:12
#6 0x4d5180 in AP4_File::AP4_File(AP4_ByteStream&, bool) /mp42aac/repo/Source/C++/Core/Ap4File.cpp:78:5
#7 0x4cb2a1 in main /mp42aac/repo/Source/C++/Apps/Mp42Aac/Mp42Aac.cpp:250:22
#8 0x7fea05b970b2 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x270b2)
#9 0x41c6cd in _start (/out_bin/mp42aac+0x41c6cd)
0x60200000009e is located 0 bytes to the right of 14-byte region [0x602000000090,0x60200000009e)
allocated by thread T0 here:
#0 0x4c875d in operator new[](unsigned long) (/out_bin/mp42aac+0x4c875d)
#1 0x4d2e66 in AP4_DataBuffer::AP4_DataBuffer(unsigned int) /mp42aac/repo/Source/C++/Core/Ap4DataBuffer.cpp:55:16
SUMMARY: AddressSanitizer: heap-buffer-overflow /mp42aac/repo/Source/C++/Core/Ap4AvccAtom.cpp:168:31 in AP4_AvccAtom::AP4_AvccAtom(unsigned int, unsigned char const*)
Shadow bytes around the buggy address:
0x0c047fff7fc0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c047fff7fd0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c047fff7fe0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c047fff7ff0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c047fff8000: fa fa 00 00 fa fa 00 00 fa fa 00 00 fa fa 00 00
=>0x0c047fff8010: fa fa 00[06]fa fa 00 06 fa fa fa fa fa fa fa fa
0x0c047fff8020: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8030: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8040: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8050: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8060: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
Shadow byte legend (one shadow byte represents 8 application bytes):
Addressable: 00
Partially addressable: 01 02 03 04 05 06 07
Heap left redzone: fa
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack after return: f5
Stack use after scope: f8
Global redzone: f9
Global init order: f6
Poisoned by user: f7
Container overflow: fc
Array cookie: ac
Intra object redzone: bb
ASan internal: fe
Left alloca redzone: ca
Right alloca redzone: cb
Shadow gap: cc
==70689==ABORTING
``` | heap-buffer-overflow in AP4_AvccAtom::AP4_AvccAtom in Ap4AvccAtom.cpp:168 | https://api.github.com/repos/axiomatic-systems/Bento4/issues/630/comments | 1 | 2021-07-30T15:29:42Z | 2021-10-04T14:15:36Z | https://github.com/axiomatic-systems/Bento4/issues/630 | 956,850,123 | 630 |
[
"axiomatic-systems",
"Bento4"
] | Hi there,
I found a heap-buffer-overflow in `mp42aac` with a fuzzer.
- Bento4 version: v1.6.0-639 (commit 5abeaa0ebdb8c3be5b710517eb04d807832d2bbf)
- Compiler args: DCMAKE_C_FLAGS=-fsanitize=address
- Platform: Ubuntu 20.04.2 LTS, x86_64
- Reproduce: `mp42aac heap_Ap4HvccAtom_poc /dev/null`
- POC: [heap_Ap4HvccAtom_poc.tar.gz](https://github.com/axiomatic-systems/Bento4/files/6908277/heap_Ap4HvccAtom_poc.tar.gz) (decompress it first)
AddressSanitizer report:
```
==91772==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x6030000000e6 at pc 0x0000005b2df4 bp 0x7fffffe92d80 sp 0x7fffffe92d78
READ of size 1 at 0x6030000000e6 thread T0
#0 0x5b2df3 in AP4_HvccAtom::AP4_HvccAtom(unsigned int, unsigned char const*) /mp42aac/repo/Source/C++/Core/Ap4HvccAtom.cpp:282:24
#1 0x5ac910 in AP4_HvccAtom::Create(unsigned int, AP4_ByteStream&) /mp42aac/repo/Source/C++/Core/Ap4HvccAtom.cpp:90:16
#2 0x54a89b in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /mp42aac/repo/Source/C++/Core/Ap4AtomFactory.cpp:518:20
#3 0x547a4c in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /mp42aac/repo/Source/C++/Core/Ap4AtomFactory.cpp:234:14
#4 0x54717e in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, AP4_Atom*&) /mp42aac/repo/Source/C++/Core/Ap4AtomFactory.cpp:154:12
#5 0x4d4b1e in AP4_File::ParseStream(AP4_ByteStream&, AP4_AtomFactory&, bool) /mp42aac/repo/Source/C++/Core/Ap4File.cpp:104:12
#6 0x4d5180 in AP4_File::AP4_File(AP4_ByteStream&, bool) /mp42aac/repo/Source/C++/Core/Ap4File.cpp:78:5
#7 0x4cb2a1 in main /mp42aac/repo/Source/C++/Apps/Mp42Aac/Mp42Aac.cpp:250:22
#8 0x7fc5e48d00b2 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x270b2)
#9 0x41c6cd in _start (/out_bin/mp42aac+0x41c6cd)
0x6030000000e6 is located 0 bytes to the right of 22-byte region [0x6030000000d0,0x6030000000e6)
allocated by thread T0 here:
#0 0x4c875d in operator new[](unsigned long) (/out_bin/mp42aac+0x4c875d)
#1 0x4d2e66 in AP4_DataBuffer::AP4_DataBuffer(unsigned int) /mp42aac/repo/Source/C++/Core/Ap4DataBuffer.cpp:55:16
SUMMARY: AddressSanitizer: heap-buffer-overflow /mp42aac/repo/Source/C++/Core/Ap4HvccAtom.cpp:282:24 in AP4_HvccAtom::AP4_HvccAtom(unsigned int, unsigned char const*)
Shadow bytes around the buggy address:
0x0c067fff7fc0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c067fff7fd0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c067fff7fe0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c067fff7ff0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c067fff8000: fa fa 00 00 00 fa fa fa 00 00 00 fa fa fa 00 00
=>0x0c067fff8010: 00 fa fa fa 00 00 00 fa fa fa 00 00[06]fa fa fa
0x0c067fff8020: 00 00 06 fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c067fff8030: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c067fff8040: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c067fff8050: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c067fff8060: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
Shadow byte legend (one shadow byte represents 8 application bytes):
Addressable: 00
Partially addressable: 01 02 03 04 05 06 07
Heap left redzone: fa
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack after return: f5
Stack use after scope: f8
Global redzone: f9
Global init order: f6
Poisoned by user: f7
Container overflow: fc
Array cookie: ac
Intra object redzone: bb
ASan internal: fe
Left alloca redzone: ca
Right alloca redzone: cb
Shadow gap: cc
==91772==ABORTING
``` | heap-buffer-overflow in Ap4HvccAtom.cpp | https://api.github.com/repos/axiomatic-systems/Bento4/issues/629/comments | 0 | 2021-07-30T14:48:24Z | 2021-07-30T14:48:24Z | https://github.com/axiomatic-systems/Bento4/issues/629 | 956,813,566 | 629 |
[
"axiomatic-systems",
"Bento4"
] | Bentu4 [8a2bf30](https://github.com/axiomatic-systems/Bento4/commit/8a2bf3081e610bc145e8df3b10671dad839dd007)
Host : Linux x3ero0-VirtualBox 5.8.0-25-generic #26-Ubuntu SMP Thu Oct 15 10:30:38 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
CMD : `mp4info --verbose poc.mp4`
POC : [poc.zip](https://drive.google.com/file/d/1BgFmJYc4CBLTtB4-B-3HuGn4WGCLm5MG/view?usp=sharing)
```
File:
major brand: isom
minor version: 200
compatible brand: isom
compatible brand: iso2
compatible brand: mp41
fast start: no
Movie:
duration: 1000 (media timescale units)
duration: 1000 (ms)
time scale: 1000
fragments: no
Found 2 Tracks
Track 1:
flags: 3 ENABLED IN-MOVIE
id: 1
type: Video
duration: 1000 ms
language: und
media:
sample count: 1
timescale: 16384
duration: 16384 (media timescale units)
duration: 1000 (ms)
bitrate (computed): 0.272 Kbps
display width: 96.000000
display height: 96.000000
frame rate (computed): 1.000
Sample Description 0
Coding: hev1 (H.265)
Codec String: hev1.1.6.L30.90
HEVC Profile Space: 0
HEVC Profile: 1 (Main)
HEVC Profile Compat: 60000000
HEVC Level: 1.0
HEVC Tier: 0
HEVC Chroma Format: 1 (4:2:0)
HEVC Chroma Bit Depth: 8
HEVC Luma Bit Depth: 8
HEVC Average Frame Rate: 0
HEVC Constant Frame Rate: 0
HEVC NALU Length Size: 4
HEVC Sequences:
{
Array Completeness=0
Type=32 (VPS_NUT - Video parameter set)
40010c01ffff01600000030090000003000003001e999809
}
{
Array Completeness=0
Type=33 (SPS_NUT - Sequence parameter set)
42010101600000030090000003000003001ea0038080f8666924caf050100000030010000003001080
}
{
Array Completeness=0
Type=34 (PPS_NUT - Picture parameter set)
4401c172b42240
}
{
Array Completeness=0
Type=39 (PREFIX_SEI_NUT - Supplemental enhancement information)
4e0105ffffff9c2ca2de09b51747dbbb55a4fe7fc2fc4e7832363520286275696c6420373929202d20312e393a5b57696e646f77735d5b47434320342e392e335d5b3332206269745d2038626974202d20482e3236352f4845564320636f646563202d20436f7079726967687420323031332d3230313520286329204d756c7469636f72657761726520496e63202d20687474703a2f2f783236352e6f7267202d206f7074696f6e733a203936783936206670733d312f312062697464657074683d38206e6f2d777070206374753d3634206d69000001002d73697a653d38206d61782d74752d73697a653d33322074752d696e7472612d64657074683d312074752d696e7465722d64657074683d31206d653d31207375626d653d32206d6572616e67653d3537206e6f2d72656374206e6f2d616d70206d61782d6d657267653d322074656d706f72616c2d6d7670206e6f2d6561726c792d736b697020726470656e616c74793d30206e6f2d74736b6970206e6f2d74736b69702d66617374207374726f6e672d696e7472612d736d6f6f7468696e67206e6f2d6c6f73736c657373206e6f2d63752d6c6f73736c657373206e6f2d636f6e73747261696e65642d696e747261206e6f2d666173742d696e747261206f70656e2d676f70206e6f2d74656d706f72616c2d6c617965727320696e7465726c6163653d30206b6579696e743d323530206d696e2d6b6579696e743d31207363656e656375743d34302072632d6c6f6f6b61686561643d3230206c6f6f6b61686561642d736c696365733d3020626672616d65733d3420626672616d652d626961733d3020622d61646170743d32207265663d33206c696d69742d726566733d33206e6f2d6c696d69742d6d6f6465732077656967687470206e6f2d776569676874622061712d6d6f64653d312071672d73697a653d33322061712d737472656e6774683d312e303020636271706f6666733d3020637271706f6666733d302072643d33207073792d72643d322e30302072646f712d6c6576656c3d30207073792d72646f713d302e3030207369676e68696465206465626c6f636b2073616f206e6f2d73616f2d6e6f6e2d6465626c6f636b20622d707972616d696420637574726565206e6f2d696e7472612d726566726573682072633d61627220626974726174653d3130302071636f6d703d302e36302071706d696e3d302071706d61783d3531207170737465703d34206970726174696f3d312e3430207062726174696f3d312e333080
}
Width: 96
Height: 96
Depth: 24
Track 2:
flags: 3 ENABLED IN-MOVIE
id: 2
type: Audio
duration: 70 ms
language: und
media:
sample count: 3
timescale: 44100
duration: 3072 (media timescale units)
duration: 70 (ms)
bitrate (computed): 4.000 Kbps
Sample Description 0
Coding: mp4a (MPEG-4 Audio)
=================================================================
==2514579==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x602000000414 at pc 0x000000519182 bp 0x7fff8f521c60 sp 0x7fff8f521c58
READ of size 1 at 0x602000000414 thread T0
#0 0x519181 in AP4_Mp4AudioDsiParser::ReadBits(unsigned int) /home/x3ero0/Bento4/Source/C++/Codecs/Ap4Mp4AudioInfo.cpp:66:56
#1 0x519181 in AP4_Mp4AudioDecoderConfig::ParseExtension(AP4_Mp4AudioDsiParser&) /home/x3ero0/Bento4/Source/C++/Codecs/Ap4Mp4AudioInfo.cpp:136:48
#2 0x51d992 in AP4_Mp4AudioDecoderConfig::Parse(unsigned char const*, unsigned int) /home/x3ero0/Bento4/Source/C++/Codecs/Ap4Mp4AudioInfo.cpp:315:30
#3 0x6b601c in AP4_MpegAudioSampleDescription::GetCodecString(AP4_String&) /home/x3ero0/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:1054:52
#4 0x4de5b7 in ShowSampleDescription_Text(AP4_SampleDescription&, bool) /home/x3ero0/Bento4/Source/C++/Apps/Mp4Info/Mp4Info.cpp:395:11
#5 0x4de5b7 in ShowSampleDescription(AP4_SampleDescription&, bool) /home/x3ero0/Bento4/Source/C++/Apps/Mp4Info/Mp4Info.cpp:1044:27
#6 0x4d5dfa in ShowTrackInfo_Text(AP4_Movie&, AP4_Track&, AP4_ByteStream&, bool, bool, bool, bool) /home/x3ero0/Bento4/Source/C++/Apps/Mp4Info/Mp4Info.cpp:1354:9
#7 0x4d5dfa in ShowTrackInfo(AP4_Movie&, AP4_Track&, AP4_ByteStream&, bool, bool, bool, bool) /home/x3ero0/Bento4/Source/C++/Apps/Mp4Info/Mp4Info.cpp:1475:13
#8 0x4d3bb4 in ShowTracks(AP4_Movie&, AP4_List<AP4_Track>&, AP4_ByteStream&, bool, bool, bool, bool) /home/x3ero0/Bento4/Source/C++/Apps/Mp4Info/Mp4Info.cpp:1586:9
#9 0x4cbba9 in main /home/x3ero0/Bento4/Source/C++/Apps/Mp4Info/Mp4Info.cpp:1868:13
#10 0x7f5e0db2ecb1 in __libc_start_main csu/../csu/libc-start.c:314:16
#11 0x41d6dd in _start (/home/x3ero0/Bento4/build/mp4info+0x41d6dd)
0x602000000414 is located 0 bytes to the right of 4-byte region [0x602000000410,0x602000000414)
allocated by thread T0 here:
#0 0x4c74fd in operator new[](unsigned long) (/home/x3ero0/Bento4/build/mp4info+0x4c74fd)
#1 0x5bb301 in AP4_DataBuffer::AP4_DataBuffer(void const*, unsigned int) /home/x3ero0/Bento4/Source/C++/Core/Ap4DataBuffer.cpp:68:20
#2 0x6b601c in AP4_MpegAudioSampleDescription::GetCodecString(AP4_String&) /home/x3ero0/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:1054:52
#3 0x4de5b7 in ShowSampleDescription_Text(AP4_SampleDescription&, bool) /home/x3ero0/Bento4/Source/C++/Apps/Mp4Info/Mp4Info.cpp:395:11
#4 0x4de5b7 in ShowSampleDescription(AP4_SampleDescription&, bool) /home/x3ero0/Bento4/Source/C++/Apps/Mp4Info/Mp4Info.cpp:1044:27
#5 0x4d5dfa in ShowTrackInfo_Text(AP4_Movie&, AP4_Track&, AP4_ByteStream&, bool, bool, bool, bool) /home/x3ero0/Bento4/Source/C++/Apps/Mp4Info/Mp4Info.cpp:1354:9
#6 0x4d5dfa in ShowTrackInfo(AP4_Movie&, AP4_Track&, AP4_ByteStream&, bool, bool, bool, bool) /home/x3ero0/Bento4/Source/C++/Apps/Mp4Info/Mp4Info.cpp:1475:13
#7 0x4d3bb4 in ShowTracks(AP4_Movie&, AP4_List<AP4_Track>&, AP4_ByteStream&, bool, bool, bool, bool) /home/x3ero0/Bento4/Source/C++/Apps/Mp4Info/Mp4Info.cpp:1586:9
SUMMARY: AddressSanitizer: heap-buffer-overflow /home/x3ero0/Bento4/Source/C++/Codecs/Ap4Mp4AudioInfo.cpp:66:56 in AP4_Mp4AudioDsiParser::ReadBits(unsigned int)
Shadow bytes around the buggy address:
0x0c047fff8030: fa fa 04 fa fa fa fd fa fa fa 04 fa fa fa fd fd
0x0c047fff8040: fa fa 00 05 fa fa 04 fa fa fa 00 fa fa fa fd fd
0x0c047fff8050: fa fa fd fd fa fa 00 04 fa fa 04 fa fa fa fd fa
0x0c047fff8060: fa fa fd fa fa fa 01 fa fa fa fd fd fa fa 07 fa
0x0c047fff8070: fa fa 02 fa fa fa 01 fa fa fa fd fd fa fa 04 fa
=>0x0c047fff8080: fa fa[04]fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8090: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff80a0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff80b0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff80c0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff80d0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
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
==2514579==ABORTING
``` | Heap Buffer Overflow in mp4info | https://api.github.com/repos/axiomatic-systems/Bento4/issues/627/comments | 2 | 2021-07-22T17:33:54Z | 2021-07-22T18:22:09Z | https://github.com/axiomatic-systems/Bento4/issues/627 | 950,892,841 | 627 |
[
"axiomatic-systems",
"Bento4"
] | Bentu4 [8a2bf30](https://github.com/axiomatic-systems/Bento4/commit/8a2bf3081e610bc145e8df3b10671dad839dd007)
Host : Linux x3ero0-VirtualBox 5.8.0-25-generic #26-Ubuntu SMP Thu Oct 15 10:30:38 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
CMD : `mp4info --verbose poc.mp4`
POC : [poc.zip](https://drive.google.com/file/d/1Zv9oIPTSlIj5S7TdQmaFtY2UweROVmr0/view?usp=sharing)
```
File:
major brand: mp46
minor version: 12a007e
compatible brand: mp42
compatible brand: isom
fast start: no
Movie:
duration: 90000 (media timescale units)
duration: 1000 (ms)
time scale: 90000
fragments: no
Found 1 Tracks
Track 1:
flags: 7 ENABLED IN-MOVIE IN-PREVIEW
id: 1
type: Video
duration: 47535717 ms
language: ```
media:
sample count: 0
timescale: 12
duration: 0 (media timescale units)
duration: 0 (ms)
bitrate (computed): 0.000 Kbps
display width: 48.000000
display height: 144.000000
=================================================================
==2409956==ERROR: AddressSanitizer: global-buffer-overflow on address 0x00000126e781 at pc 0x000000496ba7 bp 0x7ffc8ab62fe0 sp 0x7ffc8ab627a8
READ of size 239 at 0x00000126e781 thread T0
#0 0x496ba6 in __asan_memcpy (/home/x3ero0/Bento4/build/mp4info+0x496ba6)
#1 0x576b79 in AP4_MemoryByteStream::WritePartial(void const*, unsigned int, unsigned int&) /home/x3ero0/Bento4/Source/C++/Core/Ap4ByteStream.cpp:785:5
#2 0x56cb49 in AP4_ByteStream::Write(void const*, unsigned int) /home/x3ero0/Bento4/Source/C++/Core/Ap4ByteStream.cpp:77:29
#3 0x5da617 in AP4_HdlrAtom::WriteFields(AP4_ByteStream&) /home/x3ero0/Bento4/Source/C++/Core/Ap4HdlrAtom.cpp:141:29
#4 0x523a1d in AP4_Atom::Clone() /home/x3ero0/Bento4/Source/C++/Core/Ap4Atom.cpp:316:9
#5 0x57e9c3 in AP4_ContainerAtom::Clone() /home/x3ero0/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:172:56
#6 0x57e9c3 in AP4_ContainerAtom::Clone() /home/x3ero0/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:172:56
#7 0x57e9c3 in AP4_ContainerAtom::Clone() /home/x3ero0/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:172:56
#8 0x6abdbd in AP4_SampleDescription::AP4_SampleDescription(AP4_SampleDescription::Type, unsigned int, AP4_AtomParent*) /home/x3ero0/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:135:41
#9 0x6abdbd in AP4_AvcSampleDescription::AP4_AvcSampleDescription(unsigned int, unsigned short, unsigned short, unsigned short, char const*, AP4_AtomParent*) /home/x3ero0/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:380:5
#10 0x6d2dab in AP4_AvcSampleEntry::ToSampleDescription() /home/x3ero0/Bento4/Source/C++/Core/Ap4SampleEntry.cpp:1146:16
#11 0x700a0f in AP4_StsdAtom::GetSampleDescription(unsigned int) /home/x3ero0/Bento4/Source/C++/Core/Ap4StsdAtom.cpp:181:53
#12 0x4d5daa in ShowTrackInfo_Text(AP4_Movie&, AP4_Track&, AP4_ByteStream&, bool, bool, bool, bool) /home/x3ero0/Bento4/Source/C++/Apps/Mp4Info/Mp4Info.cpp:1351:52
#13 0x4d5daa in ShowTrackInfo(AP4_Movie&, AP4_Track&, AP4_ByteStream&, bool, bool, bool, bool) /home/x3ero0/Bento4/Source/C++/Apps/Mp4Info/Mp4Info.cpp:1475:13
#14 0x4d3bb4 in ShowTracks(AP4_Movie&, AP4_List<AP4_Track>&, AP4_ByteStream&, bool, bool, bool, bool) /home/x3ero0/Bento4/Source/C++/Apps/Mp4Info/Mp4Info.cpp:1586:9
#15 0x4cbba9 in main /home/x3ero0/Bento4/Source/C++/Apps/Mp4Info/Mp4Info.cpp:1868:13
#16 0x7f3d18450cb1 in __libc_start_main csu/../csu/libc-start.c:314:16
#17 0x41d6dd in _start (/home/x3ero0/Bento4/build/mp4info+0x41d6dd)
0x00000126e781 is located 63 bytes to the left of global variable 'AP4_GlobalOptions::g_Entries' defined in '/home/x3ero0/Bento4/Source/C++/Core/Ap4Utils.cpp:38:56' (0x126e7c0) of size 8
0x00000126e781 is located 0 bytes to the right of global variable 'AP4_String::EmptyString' defined in '/home/x3ero0/Bento4/Source/C++/Core/Ap4String.cpp:39:18' (0x126e780) of size 1
'AP4_String::EmptyString' is ascii string ''
SUMMARY: AddressSanitizer: global-buffer-overflow (/home/x3ero0/Bento4/build/mp4info+0x496ba6) in __asan_memcpy
Shadow bytes around the buggy address:
0x000080245ca0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x000080245cb0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x000080245cc0: 00 00 00 00 00 00 00 00 04 f9 f9 f9 f9 f9 f9 f9
0x000080245cd0: 00 00 00 00 00 00 00 00 00 f9 f9 f9 f9 f9 f9 f9
0x000080245ce0: 00 00 00 00 00 00 00 00 00 f9 f9 f9 f9 f9 f9 f9
=>0x000080245cf0:[01]f9 f9 f9 f9 f9 f9 f9 00 f9 f9 f9 f9 f9 f9 f9
0x000080245d00: 00 00 00 f9 f9 f9 f9 f9 00 00 00 00 00 00 00 00
0x000080245d10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x000080245d20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x000080245d30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x000080245d40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Shadow byte legend (one shadow byte represents 8 application bytes):
Addressable: 00
Partially addressable: 01 02 03 04 05 06 07
Heap left redzone: fa
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack after return: f5
Stack use after scope: f8
Global redzone: f9
Global init order: f6
Poisoned by user: f7
Container overflow: fc
Array cookie: ac
Intra object redzone: bb
ASan internal: fe
Left alloca redzone: ca
Right alloca redzone: cb
Shadow gap: cc
==2409956==ABORTING
``` | Global Buffer Overflow in mp4info | https://api.github.com/repos/axiomatic-systems/Bento4/issues/626/comments | 2 | 2021-07-22T17:28:38Z | 2022-03-21T20:46:11Z | https://github.com/axiomatic-systems/Bento4/issues/626 | 950,888,954 | 626 |
[
"axiomatic-systems",
"Bento4"
] | I am trying to generate and play a HLS stream in HEVC codec using bento4's `mp4hls` command. The issue is that when I upload the stream on S3, it is not playing on Safari (Note: stream is not working/playing from local as well).
Since HEVC has added benefits, I prefer keeping the codec to h265 only.
Another point to note here is that I manually converted the `mp4` file from `h264` to `h265`. If there's a way to achieve the above config without generating an intermediate h265 mp4, I'll be happy to use that as well.
Command used:
```
mp4hls original.mp4 --hls-version=7 --master-playlist=playlist --media-playlist-name=temp
```
ffprobe of the file is
```
ffprobe version N-102560-g4718d74c58 Copyright (c) 2007-2021 the FFmpeg developers
built with Apple clang version 12.0.0 (clang-1200.0.32.29)
configuration: --prefix=/usr/local --enable-gpl --enable-nonfree --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libopus --enable-libxvid --enable-chromaprint --enable-decklink --enable-libvmaf --samples=fate-suite/
libavutil 57. 0.100 / 57. 0.100
libavcodec 59. 1.100 / 59. 1.100
libavformat 59. 2.100 / 59. 2.100
libavdevice 59. 0.100 / 59. 0.100
libavfilter 8. 0.101 / 8. 0.101
libswscale 6. 0.100 / 6. 0.100
libswresample 4. 0.100 / 4. 0.100
libpostproc 56. 0.100 / 56. 0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'libx265_800k.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2mp41
encoder : Lavf59.2.100
Duration: 00:01:57.47, start: 0.000000, bitrate: 1074 kb/s
Stream #0:0(und): Video: hevc (Main) (hvc1 / 0x31637668), yuv420p(tv, bt709, progressive), 1078x1920, 823 kb/s, 30 fps, 30 tbr, 15360 tbn (default)
Metadata:
handler_name : Core Media Video
vendor_id : [0][0][0][0]
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 250 kb/s (default)
Metadata:
handler_name : Core Media Audio
vendor_id : [0][0][0][0]
```
**EDIT:** Question raised on SuperUser while I was trying `ffmpeg` for the same task: https://superuser.com/questions/1661921/generate-hls-with-h265-codec | Safari not able to play HLS playlist which was sourced from a HEVC codec video | https://api.github.com/repos/axiomatic-systems/Bento4/issues/625/comments | 1 | 2021-07-21T18:48:56Z | 2021-07-23T14:55:32Z | https://github.com/axiomatic-systems/Bento4/issues/625 | 950,003,997 | 625 |
[
"axiomatic-systems",
"Bento4"
] | The `--hls-media-playlist-name` and `--hls-iframes-playlist-name` params don't appear to be used to name the playlist files when executing `mp4dash --hls`. From looking through the code it seems like they are only used conditionally (and the condition is when they aren't set or if `options.on_demand` is true - https://github.com/axiomatic-systems/Bento4/blob/4f813a9b791e312761b762fcab4b09e921bee584/Source/Python/utils/mp4-dash.py#L939).
The `--hls-master-playlist-name` is working as expected.
Is there a reason these can't be used all of the time? Also, is it possible to have a param for the audio playlist as well?
It would be nice to be able to generate predictable playlist names when running bento4 in an automated environment.
Incase I'm misinterpreting what those params are supposed to be doing, what I'm asking for is a way to name the `.m3u8` playlists that are generated in the output directory, currently what I'm seeing for `hevc` content is the following:
`video-hvc1.m3u8` (assuming this is the media playlist)
`video-hvc1_iframes.m3u8` (assuming this is the iframes playlist)
`master.m3u8` (master playlist)
`audio-en-mp4a.40.2.m3u8` (would like to also be able to rename the audio playlist) | mp4dash `--hls-media-playlist-name` and similar params not respected | https://api.github.com/repos/axiomatic-systems/Bento4/issues/624/comments | 2 | 2021-07-21T18:09:30Z | 2021-07-26T14:04:54Z | https://github.com/axiomatic-systems/Bento4/issues/624 | 949,972,106 | 624 |
[
"axiomatic-systems",
"Bento4"
] | ## System info
Ubuntu 16.04 xenial, gcc (Ubuntu 5.5.0-12ubuntu1), Bento4 (latest master [8a2bf3](https://github.com/axiomatic-systems/Bento4/commit/8a2bf3081e610bc145e8df3b10671dad839dd007))
## **Command line**
mp4info --show-layout --show-samples --show-sample-data @@
## Output
```bash
File:
major brand: mp42
minor version: 12a007e
compatible brand: mp42
compatible brand: isoY
fast start: no
Movie:
duration: 0 (media timescale units)
duration: 0 (ms)
time scale: 0
fragments: no
Found 1 Tracks
Track 1:
flags: 7 ENABLED IN-MOVIE IN-PREVIEW
id: -16777215
type: Unknown []
duration: 0 ms
language: eng
media:
sample count: 0
timescale: 65521
duration: 12 (media timescale units)
duration: 0 (ms)
bitrate (computed): 0.000 Kbps
display width: 48.000000
display height: 144.000000
Sample Description 0
Coding: hvc1 (H.265)
[1] 58362 segmentation fault --show-layout --show-samples --show-sample-data
```
## AddressSanitizer output
```bash
File:
major brand: mp42
minor version: 12a007e
compatible brand: mp42
compatible brand: isoY
fast start: no
Movie:
duration: 0 (media timescale units)
duration: 0 (ms)
time scale: 0
fragments: no
Found 1 Tracks
Track 1:
flags: 7 ENABLED IN-MOVIE IN-PREVIEW
id: -16777215
type: Unknown []
duration: 0 ms
language: eng
media:
sample count: 0
timescale: 65521
duration: 12 (media timescale units)
duration: 0 (ms)
bitrate (computed): 0.000 Kbps
display width: 48.000000
display height: 144.000000
Sample Description 0
Coding: hvc1 (H.265)
ASAN:SIGSEGV
=================================================================
==44412==ERROR: AddressSanitizer: stack-overflow on address 0x7ffd79729f68 (pc 0x0000004a27e2 bp 0x7ffd7972a0d0 sp 0x7ffd79729f50 T0)
#0 0x4a27e1 in AP4_HevcSampleDescription::GetCodecString(AP4_String&) ../../bento4/Source/C++/Core/Ap4SampleDescription.cpp:608
#1 0x455c1e in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) ../../bento4/Source/C++/Core/Ap4DvccAtom.cpp:171
#2 0x4a2908 in AP4_HevcSampleDescription::GetCodecString(AP4_String&) ../../bento4/Source/C++/Core/Ap4SampleDescription.cpp:612
#3 0x455c1e in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) ../../bento4/Source/C++/Core/Ap4DvccAtom.cpp:171
#4 0x4a2908 in AP4_HevcSampleDescription::GetCodecString(AP4_String&) ../../bento4/Source/C++/Core/Ap4SampleDescription.cpp:612
#5 0x455c1e in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) ../../bento4/Source/C++/Core/Ap4DvccAtom.cpp:171
#6 0x4a2908 in AP4_HevcSampleDescription::GetCodecString(AP4_String&) ../../bento4/Source/C++/Core/Ap4SampleDescription.cpp:612
#7 0x455c1e in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) ../../bento4/Source/C++/Core/Ap4DvccAtom.cpp:171
#8 0x4a2908 in AP4_HevcSampleDescription::GetCodecString(AP4_String&) ../../bento4/Source/C++/Core/Ap4SampleDescription.cpp:612
...
#248 0x4a2908 in AP4_HevcSampleDescription::GetCodecString(AP4_String&) ../../bento4/Source/C++/Core/Ap4SampleDescription.cpp:612
#249 0x455c1e in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) ../../bento4/Source/C++/Core/Ap4DvccAtom.cpp:171
#250 0x4a2908 in AP4_HevcSampleDescription::GetCodecString(AP4_String&) ../../bento4/Source/C++/Core/Ap4SampleDescription.cpp:612
#251 0x455c1e in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) ../../bento4/Source/C++/Core/Ap4DvccAtom.cpp:171
SUMMARY: AddressSanitizer: stack-overflow ../../bento4/Source/C++/Core/Ap4SampleDescription.cpp:608 AP4_HevcSampleDescription::GetCodecString(AP4_String&)
==44412==ABORTING
```
## POC
[StackOverflow-GetCodecString-Ap4SampleDescription_cpp-612.zip](https://github.com/axiomatic-systems/Bento4/files/6852609/StackOverflow-GetCodecString-Ap4SampleDescription_cpp-612.zip)
| StackOverflow-AP4_HevcSampleDescription::GetCodecString-Ap4SampleDescription-612 | https://api.github.com/repos/axiomatic-systems/Bento4/issues/623/comments | 0 | 2021-07-21T03:18:54Z | 2021-07-22T04:28:19Z | https://github.com/axiomatic-systems/Bento4/issues/623 | 949,282,198 | 623 |
[
"axiomatic-systems",
"Bento4"
] | ## System info
Ubuntu 16.04 xenial, gcc (Ubuntu 5.5.0-12ubuntu1), Bento4 (latest master [8a2bf3](https://github.com/axiomatic-systems/Bento4/commit/8a2bf3081e610bc145e8df3b10671dad839dd007))
## **Command line**
mp4info --show-layout --show-samples --show-sample-data @@
## Output
```bash
File:
major brand: mp42
minor version: 12a007e
compatible brand: mp42
compatible brand: isom
fast start: no
Movie:
duration: 90000 (media timescale units)
duration: 1000 (ms)
time scale: 90000
fragments: no
Found 1 Tracks
Track 1:
flags: 7 ENABLED IN-MOVIE IN-PREVIEW
id: -16777215
type: Unknown []
duration: 1000 ms
language: (null)
media:
sample count: 0
timescale: 0
duration: 0 (media timescale units)
duration: 0 (ms)
bitrate (computed): 0.000 Kbps
display width: 48.000000
display height: 144.000000
Sample Description 0
Coding: avc1 (H.264)
[1] 72003 segmentation fault ./crashes-binary/gcc-asan/bento4/gcc-mp4info --show-layout --show-samples
```
## AddressSanitizer output
```bash
File:
major brand: mp42
minor version: 12a007e
compatible brand: mp42
compatible brand: isom
fast start: no
Movie:
duration: 90000 (media timescale units)
duration: 1000 (ms)
time scale: 90000
fragments: no
Found 1 Tracks
Track 1:
flags: 7 ENABLED IN-MOVIE IN-PREVIEW
id: -16777215
type: Unknown []
duration: 1000 ms
language: (null)
media:
sample count: 0
timescale: 0
duration: 0 (media timescale units)
duration: 0 (ms)
bitrate (computed): 0.000 Kbps
display width: 48.000000
display height: 144.000000
Sample Description 0
Coding: avc1 (H.264)
ASAN:SIGSEGV
=================================================================
==63888==ERROR: AddressSanitizer: stack-overflow on address 0x7ffc4b846f98 (pc 0x0000004a19f0 bp 0x7ffc4b8470c0 sp 0x7ffc4b846f80 T0)
#0 0x4a19ef in AP4_AvcSampleDescription::GetCodecString(AP4_String&) ../../bento4/Source/C++/Core/Ap4SampleDescription.cpp:398
#1 0x455c1e in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) ../../bento4/Source/C++/Core/Ap4DvccAtom.cpp:171
#2 0x4a1b02 in AP4_AvcSampleDescription::GetCodecString(AP4_String&) ../../bento4/Source/C++/Core/Ap4SampleDescription.cpp:402
#3 0x455c1e in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) ../../bento4/Source/C++/Core/Ap4DvccAtom.cpp:171
#4 0x4a1b02 in AP4_AvcSampleDescription::GetCodecString(AP4_String&) ../../bento4/Source/C++/Core/Ap4SampleDescription.cpp:402
#5 0x455c1e in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) ../../bento4/Source/C++/Core/Ap4DvccAtom.cpp:171
#6 0x4a1b02 in AP4_AvcSampleDescription::GetCodecString(AP4_String&) ../../bento4/Source/C++/Core/Ap4SampleDescription.cpp:402
#7 0x455c1e in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) ../../bento4/Source/C++/Core/Ap4DvccAtom.cpp:171
#8 0x4a1b02 in AP4_AvcSampleDescription::GetCodecString(AP4_String&) ../../bento4/Source/C++/Core/Ap4SampleDescription.cpp:402
#9 0x455c1e in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) ../../bento4/Source/C++/Core/Ap4DvccAtom.cpp:171
...
#250 0x4a1b02 in AP4_AvcSampleDescription::GetCodecString(AP4_String&) ../../bento4/Source/C++/Core/Ap4SampleDescription.cpp:402
#251 0x455c1e in AP4_DvccAtom::GetCodecString(AP4_SampleDescription*, AP4_String&) ../../bento4/Source/C++/Core/Ap4DvccAtom.cpp:171
SUMMARY: AddressSanitizer: stack-overflow ../../bento4/Source/C++/Core/Ap4SampleDescription.cpp:398 AP4_AvcSampleDescription::GetCodecString(AP4_String&)
==63888==ABORTING
```
## POC
[StackOverflow-GetCodecString-Ap4SampleDescription_cpp-402.zip](https://github.com/axiomatic-systems/Bento4/files/6852538/StackOverflow-GetCodecString-Ap4SampleDescription_cpp-402.zip)
| StackOverflow-GetCodecString-Ap4SampleDescription_cpp-402-Ap4SampleDescription.cpp:398 | https://api.github.com/repos/axiomatic-systems/Bento4/issues/622/comments | 1 | 2021-07-21T03:08:10Z | 2021-10-23T18:21:22Z | https://github.com/axiomatic-systems/Bento4/issues/622 | 949,277,101 | 622 |
[
"axiomatic-systems",
"Bento4"
] | I want to use mp4-dash tool on macos.
I manage to build bento4 on Xcode without any issue (thank you for the great work!)
Question, is there an easy way after build to deploy into /Applications or another directory or do I have to manually move all Python scripts and binaries into my own directory hierarchies?
Thanks again for the great work! | Building/Deploying on macOS | https://api.github.com/repos/axiomatic-systems/Bento4/issues/620/comments | 2 | 2021-07-01T08:53:58Z | 2021-07-26T20:35:47Z | https://github.com/axiomatic-systems/Bento4/issues/620 | 934,589,990 | 620 |
[
"axiomatic-systems",
"Bento4"
] | I'm running this command on an audio only mp4 file with an aac codec:
`mp42hls --index-filename /outpath/media.m3u8 --segment-filename-template /outpath/encrypt/audio/aac/kin/segment-%d.ts --segment-url-template segment-%d.ts --show-info --hls-version 4 --iframe-index-filename /outpath/encrypt/audio/aac/kin/iframes.m3u8 --audio-format ts --encryption-mode AES-128 --encryption-key KEY --encryption-iv-mode random --encryption-key-uri http://example.com --audio-track-id 1 --video-track-id 0 /inpath/fmp4/audiofile.mp4`
I keep getting this error: **Exception: binary tool failed with error -11 -**
If I remove the show-info argument and add --verbose, I don't get the error and everything works. The issue I have doing that, is I call this from the mp4-hls.py script. That turns on show-info by default and removing that argument I get another error.
So my question is, what do I do to fix this? | mp42hls Segmentation Error -11 | https://api.github.com/repos/axiomatic-systems/Bento4/issues/619/comments | 0 | 2021-06-28T20:55:36Z | 2021-06-30T20:53:09Z | https://github.com/axiomatic-systems/Bento4/issues/619 | 931,984,669 | 619 |
[
"axiomatic-systems",
"Bento4"
] | I have read all the documentation for a long time but I do not understand how I could encrypt my video
could you make a clear example | use of bento | https://api.github.com/repos/axiomatic-systems/Bento4/issues/618/comments | 0 | 2021-06-23T01:45:00Z | 2021-06-23T01:45:00Z | https://github.com/axiomatic-systems/Bento4/issues/618 | 927,774,997 | 618 |
[
"axiomatic-systems",
"Bento4"
] | CMake/Xcode
mkdir cmakebuild
cd cmakebuild
cmake -G Xcode ---> cmake -G Xcode ../
cmake --build . --config Release | CMake/Xcode command fix | https://api.github.com/repos/axiomatic-systems/Bento4/issues/617/comments | 1 | 2021-06-11T03:24:39Z | 2021-07-24T18:28:23Z | https://github.com/axiomatic-systems/Bento4/issues/617 | 918,169,971 | 617 |
[
"axiomatic-systems",
"Bento4"
] | Hello,
A SEGV has occurred when running program mp42aac,
System info:
Ubuntu 20.04.1 : clang 10.0.0 , gcc 9.3.0
Bento4 version 1.6.0-636
[poc (2).zip](https://github.com/axiomatic-systems/Bento4/files/6631972/poc.2.zip)
Verification steps:
1.Get the source code of Bento4
2.Compile
```
cd Bento4
mkdir check_build && cd check_build
cmake ../ -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_CXX_FLAGS="fsanitize=address"
make -j 16
```
3.run mp42aac
```
./mp42aac poc /dev/null
```
Output
```
Segmentation fault(core dumped)
```
AddressSanitizer output
```
AddressSanitizer:DEADLYSIGNAL
=================================================================
==2513287==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000008 (pc 0x5614212cf0c2 bp 0x0fffb285532c sp 0x7ffd942a9960 T0)
==2513287==The signal is caused by a READ memory access.
==2513287==Hint: address points to the zero page.
#0 0x5614212cf0c1 in AP4_DescriptorFinder::Test(AP4_Descriptor*) const /home/dh/AFLplusplus/Bento4-master/Bento4-master-afl++/Source/C++/Core/Ap4Descriptor.h:92
#1 0x5614212cf0c1 in AP4_List<AP4_Descriptor>::Find(AP4_List<AP4_Descriptor>::Item::Finder const&, AP4_Descriptor*&) const /home/dh/AFLplusplus/Bento4-master/Bento4-master-afl++/Source/C++/Core/Ap4List.h:431
#2 0x5614212cf0c1 in AP4_DecoderConfigDescriptor::GetDecoderSpecificInfoDescriptor() const /home/dh/AFLplusplus/Bento4-master/Bento4-master-afl++/Source/C++/Core/Ap4DecoderConfigDescriptor.cpp:159
#3 0x5614211be076 in AP4_MpegSampleDescription::AP4_MpegSampleDescription(unsigned int, AP4_EsdsAtom*) /home/dh/AFLplusplus/Bento4-master/Bento4-master-afl++/Source/C++/Core/Ap4SampleDescription.cpp:894
#4 0x5614211be5e5 in AP4_MpegAudioSampleDescription::AP4_MpegAudioSampleDescription(unsigned int, unsigned short, unsigned short, AP4_EsdsAtom*) /home/dh/AFLplusplus/Bento4-master/Bento4-master-afl++/Source/C++/Core/Ap4SampleDescription.cpp:1000
#5 0x561421193a74 in AP4_EncaSampleEntry::ToTargetSampleDescription(unsigned int) /home/dh/AFLplusplus/Bento4-master/Bento4-master-afl++/Source/C++/Core/Ap4Protection.cpp:143
#6 0x5614211a1105 in AP4_EncaSampleEntry::ToSampleDescription() /home/dh/AFLplusplus/Bento4-master/Bento4-master-afl++/Source/C++/Core/Ap4Protection.cpp:98
#7 0x5614211dfd8d in AP4_StsdAtom::GetSampleDescription(unsigned int) /home/dh/AFLplusplus/Bento4-master/Bento4-master-afl++/Source/C++/Core/Ap4StsdAtom.cpp:181
#8 0x561421175063 in main /home/dh/AFLplusplus/Bento4-master/Bento4-master-afl++/Source/C++/Apps/Mp42Aac/Mp42Aac.cpp:268
#9 0x7fcdb4b710b2 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x270b2)
#10 0x56142117914d in _start (/home/dh/sda3/AFLplusplus/Bento4-master/mp42aac_afl+++0x5914d)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /home/dh/AFLplusplus/Bento4-master/Bento4-master-afl++/Source/C++/Core/Ap4Descriptor.h:92 in AP4_DescriptorFinder::Test(AP4_Descriptor*) const
==2513287==ABORTING
```
| SEGV in mp42aac | https://api.github.com/repos/axiomatic-systems/Bento4/issues/616/comments | 1 | 2021-06-10T14:10:25Z | 2021-08-06T01:09:22Z | https://github.com/axiomatic-systems/Bento4/issues/616 | 917,392,735 | 616 |
[
"axiomatic-systems",
"Bento4"
] | Hello,
A SEGV has occurred when running program mp42aac,
System info:
Ubuntu 20.04.1 : clang 10.0.0 , gcc 9.3.0
Bento4 version 1.6.0-636
[POC.zip](https://github.com/axiomatic-systems/Bento4/files/6631654/POC.zip)
Verification steps:
1.Get the source code of Bento4
2.Compile
```
cd Bento4
mkdir check_build && cd check_build
cmake ../ -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_CXX_FLAGS="fsanitize=address"
make -j 16
```
3.run mp42aac
```
./mp42aac poc /dev/null
```
Output
```
Segmentation fault(core dumped)
```
AddressSanitizer output
```
AddressSanitizer:DEADLYSIGNAL
=================================================================
==2182861==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x556efda097b2 bp 0x6040000008d0 sp 0x7ffc29113390 T0)
==2182861==The signal is caused by a READ memory access.
==2182861==Hint: address points to the zero page.
#0 0x556efda097b1 in AP4_StszAtom::WriteFields(AP4_ByteStream&) /home/dh/AFLplusplus/Bento4-master/Bento4-master-afl++/Source/C++/Core/Ap4StszAtom.cpp:122
#1 0x556efd8c3e32 in AP4_Atom::Write(AP4_ByteStream&) /home/dh/AFLplusplus/Bento4-master/Bento4-master-afl++/Source/C++/Core/Ap4Atom.cpp:229
#2 0x556efd8c2bea in AP4_Atom::Clone() /home/dh/AFLplusplus/Bento4-master/Bento4-master-afl++/Source/C++/Core/Ap4Atom.cpp:316
#3 0x556efd9306b7 in AP4_ContainerAtom::Clone() /home/dh/AFLplusplus/Bento4-master/Bento4-master-afl++/Source/C++/Core/Ap4ContainerAtom.cpp:172
#4 0x556efd9306b7 in AP4_ContainerAtom::Clone() /home/dh/AFLplusplus/Bento4-master/Bento4-master-afl++/Source/C++/Core/Ap4ContainerAtom.cpp:172
#5 0x556efd9306b7 in AP4_ContainerAtom::Clone() /home/dh/AFLplusplus/Bento4-master/Bento4-master-afl++/Source/C++/Core/Ap4ContainerAtom.cpp:172
#6 0x556efd9306b7 in AP4_ContainerAtom::Clone() /home/dh/AFLplusplus/Bento4-master/Bento4-master-afl++/Source/C++/Core/Ap4ContainerAtom.cpp:172
#7 0x556efd9306b7 in AP4_ContainerAtom::Clone() /home/dh/AFLplusplus/Bento4-master/Bento4-master-afl++/Source/C++/Core/Ap4ContainerAtom.cpp:172
#8 0x556efd82dc02 in AP4_ProtectionSchemeInfo::AP4_ProtectionSchemeInfo(AP4_ContainerAtom*) /home/dh/AFLplusplus/Bento4-master/Bento4-master-afl++/Source/C++/Core/Ap4Protection.cpp:319
#9 0x556efd82dc02 in AP4_ProtectedSampleDescription::AP4_ProtectedSampleDescription(unsigned int, AP4_SampleDescription*, unsigned int, unsigned int, unsigned int, char const*, AP4_ContainerAtom*, bool) /home/dh/AFLplusplus/Bento4-master/Bento4-master-afl++/Source/C++/Core/Ap4Protection.cpp:689
#10 0x556efd82e1f5 in AP4_EncaSampleEntry::ToSampleDescription() /home/dh/AFLplusplus/Bento4-master/Bento4-master-afl++/Source/C++/Core/Ap4Protection.cpp:103
#11 0x556efd86cd8d in AP4_StsdAtom::GetSampleDescription(unsigned int) /home/dh/AFLplusplus/Bento4-master/Bento4-master-afl++/Source/C++/Core/Ap4StsdAtom.cpp:181
#12 0x556efd802063 in main /home/dh/AFLplusplus/Bento4-master/Bento4-master-afl++/Source/C++/Apps/Mp42Aac/Mp42Aac.cpp:268
#13 0x7f76227050b2 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x270b2)
#14 0x556efd80614d in _start (/home/dh/sda3/AFLplusplus/Bento4-master/mp42aac_afl+++0x5914d)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /home/dh/AFLplusplus/Bento4-master/Bento4-master-afl++/Source/C++/Core/Ap4StszAtom.cpp:122 in AP4_StszAtom::WriteFields(AP4_ByteStream&)
==2182861==ABORTING
```
| SEGV in mp42aac | https://api.github.com/repos/axiomatic-systems/Bento4/issues/615/comments | 2 | 2021-06-10T13:16:05Z | 2021-12-27T07:29:17Z | https://github.com/axiomatic-systems/Bento4/issues/615 | 917,334,988 | 615 |
[
"axiomatic-systems",
"Bento4"
] | Hello,
A heap-buffer-overflow has occurred when running program mp42aac
System info:
Ubuntu 20.04.1 : clang 10.0.0 , gcc 9.3.0
Bento4 version 1.6.0-636
[poc.zip](https://github.com/axiomatic-systems/Bento4/files/6629448/poc.zip)
Verification steps:
1.Get the source code of Bento4
2.Compile
```
cd Bento4
mkdir check_build && cd check_build
cmake ../ -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_CXX_FLAGS="fsanitize=address"
make -j 16
```
3.run mp42aac
```
./mp42aac poc /dev/null
```
asan info
```
==1646778==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x60200000011f at pc 0x55f5c415a3e8 bp 0x7ffe4296a5c0 sp 0x7ffe4296a5b0
READ of size 1 at 0x60200000011f thread T0
#0 0x55f5c415a3e7 in AP4_Dec3Atom::AP4_Dec3Atom(unsigned int, unsigned char const*) /home/dh/AFLplusplus/Bento4-master/Bento4-master-afl++/Source/C++/Core/Ap4Dec3Atom.cpp:161
#1 0x55f5c415a71f in AP4_Dec3Atom::Create(unsigned int, AP4_ByteStream&) /home/dh/AFLplusplus/Bento4-master/Bento4-master-afl++/Source/C++/Core/Ap4Dec3Atom.cpp:56
#2 0x55f5c40d908b in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/dh/AFLplusplus/Bento4-master/Bento4-master-afl++/Source/C++/Core/Ap4AtomFactory.cpp:769
#3 0x55f5c40dec9c in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/dh/AFLplusplus/Bento4-master/Bento4-master-afl++/Source/C++/Core/Ap4AtomFactory.cpp:234
#4 0x55f5c4133b43 in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /home/dh/AFLplusplus/Bento4-master/Bento4-master-afl++/Source/C++/Core/Ap4ContainerAtom.cpp:194
#5 0x55f5c40549c3 in AP4_SampleEntry::Read(AP4_ByteStream&, AP4_AtomFactory&) /home/dh/AFLplusplus/Bento4-master/Bento4-master-afl++/Source/C++/Core/Ap4SampleEntry.cpp:115
#6 0x55f5c4061ad8 in AP4_AudioSampleEntry::AP4_AudioSampleEntry(unsigned int, unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/dh/AFLplusplus/Bento4-master/Bento4-master-afl++/Source/C++/Core/Ap4SampleEntry.cpp:420
#7 0x55f5c4026e09 in AP4_EncaSampleEntry::AP4_EncaSampleEntry(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/dh/AFLplusplus/Bento4-master/Bento4-master-afl++/Source/C++/Core/Ap4Protection.cpp:74
#8 0x55f5c40d9855 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/dh/AFLplusplus/Bento4-master/Bento4-master-afl++/Source/C++/Core/Ap4AtomFactory.cpp:298
#9 0x55f5c40dec9c in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/dh/AFLplusplus/Bento4-master/Bento4-master-afl++/Source/C++/Core/Ap4AtomFactory.cpp:234
#10 0x55f5c406eef7 in AP4_StsdAtom::AP4_StsdAtom(unsigned int, unsigned char, unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/dh/AFLplusplus/Bento4-master/Bento4-master-afl++/Source/C++/Core/Ap4StsdAtom.cpp:101
#11 0x55f5c406f966 in AP4_StsdAtom::Create(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/dh/AFLplusplus/Bento4-master/Bento4-master-afl++/Source/C++/Core/Ap4StsdAtom.cpp:57
#12 0x55f5c40d9341 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/dh/AFLplusplus/Bento4-master/Bento4-master-afl++/Source/C++/Core/Ap4AtomFactory.cpp:458
#13 0x55f5c40dec9c in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/dh/AFLplusplus/Bento4-master/Bento4-master-afl++/Source/C++/Core/Ap4AtomFactory.cpp:234
#14 0x55f5c40e0513 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, AP4_Atom*&) /home/dh/AFLplusplus/Bento4-master/Bento4-master-afl++/Source/C++/Core/Ap4AtomFactory.cpp:154
#15 0x55f5c401403e in AP4_File::ParseStream(AP4_ByteStream&, AP4_AtomFactory&, bool) /home/dh/AFLplusplus/Bento4-master/Bento4-master-afl++/Source/C++/Core/Ap4File.cpp:104
#16 0x55f5c4014dda in AP4_File::AP4_File(AP4_ByteStream&, bool) /home/dh/AFLplusplus/Bento4-master/Bento4-master-afl++/Source/C++/Core/Ap4File.cpp:78
#17 0x55f5c4002ef4 in main /home/dh/AFLplusplus/Bento4-master/Bento4-master-afl++/Source/C++/Apps/Mp42Aac/Mp42Aac.cpp:250
#18 0x7f59c140b0b2 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x270b2)
#19 0x55f5c400714d in _start (/home/dh/sda3/AFLplusplus/Bento4-master/mp42aac_afl+++0x5914d)
0x60200000011f is located 0 bytes to the right of 15-byte region [0x602000000110,0x60200000011f)
allocated by thread T0 here:
#0 0x7f59c1a30b47 in operator new[](unsigned long) (/lib/x86_64-linux-gnu/libasan.so.5+0x10fb47)
#1 0x55f5c4011611 in AP4_DataBuffer::AP4_DataBuffer(unsigned int) /home/dh/AFLplusplus/Bento4-master/Bento4-master-afl++/Source/C++/Core/Ap4DataBuffer.cpp:55
#2 0x7f59bde0ee00 (<unknown module>)
SUMMARY: AddressSanitizer: heap-buffer-overflow /home/dh/AFLplusplus/Bento4-master/Bento4-master-afl++/Source/C++/Core/Ap4Dec3Atom.cpp:161 in AP4_Dec3Atom::AP4_Dec3Atom(unsigned int, unsigned char const*)
Shadow bytes around the buggy address:
0x0c047fff7fd0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c047fff7fe0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c047fff7ff0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c047fff8000: fa fa 00 00 fa fa 00 00 fa fa 00 00 fa fa 00 00
0x0c047fff8010: fa fa 04 fa fa fa fd fa fa fa 01 fa fa fa 00 fa
=>0x0c047fff8020: fa fa 00[07]fa fa 00 07 fa fa fa fa fa fa fa fa
0x0c047fff8030: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8040: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8050: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8060: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8070: 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
==1646778==ABORTING
```
| A heap-buffer-overflow has occurred when running program mp42aac | https://api.github.com/repos/axiomatic-systems/Bento4/issues/614/comments | 0 | 2021-06-10T09:13:08Z | 2021-07-24T18:31:27Z | https://github.com/axiomatic-systems/Bento4/issues/614 | 917,109,426 | 614 |
[
"axiomatic-systems",
"Bento4"
] | I am generating audio-only fmp4 files for playback on the web with DRM and hoping to support both Widevine and FairPlay however I am having trouble getting cbcs encryption scheme to work:
I prepare the mp4 file as follows:
```
ffmpeg -y -i SOURCE -map 0:a:0 -ac 2 -c:a aac -b:a 128k -movflags default_base_moof+empty_moov+faststart -map_metadata -1 -frag_duration 2000000 -f mp4 TRANSCODED.mp4
```
And then feed it into mp4dash:
```
mp4dash --no-split --force --hls --hls-master-playlist-name=gYFzjPBgaRg_master.m3u8 --hls-media-playlist-name=gYFzjPBgaRg.m3u8 --encryption-cenc-scheme=cbcs --encryption-key=KID:KEY:IV --eme-signaling=pssh-v1 --widevine --widevine-header="provider:intertrust#content_id:2a" ./TRANSCODED.mp4 --output-dir output
```
Using the cenc protection scheme works perfectly on Chrome, however changing to cbcs results in a decode error. Interestingly Chrome reports this in the debug logs:
```
Selected FFmpegAudioDecoder for audio decoding, config: codec: aac, profile: unknown, bytes_per_channel: 4, channel_layout: STEREO, channels: 2, samples_per_second: 44100, sample_format: Float 32-bit planar, bytes_per_frame: 8, seek_preroll: 0us, codec_delay: 0, has extra data: true, encryption scheme: Unencrypted, discard decoder delay: true
FFmpegDemuxer: av_read_frame(): Invalid data found when processing input
```
There doesn't seem to be any clear lead in the resulting file, at least if I try play it with ffplay directly it complains about `Incorrect number of samples in encryption info`.
Running `mp4info` I can see that it does describe the encryption correctly:
```
File:
major brand: iso5
minor version: 200
compatible brand: iso5
compatible brand: iso6
compatible brand: mp41
fast start: yes
Movie:
duration: 0 (media timescale units)
duration: 0 (ms)
time scale: 1000
fragments: yes
Found 1 Tracks
Track 1:
flags: 3 ENABLED IN-MOVIE
id: 1
type: Audio
duration: 0 ms
language: und
media:
sample count: 0
timescale: 44100
duration: 0 (media timescale units)
duration: 0 (ms)
bitrate (computed): 128.827 Kbps
sample count with fragments: 8053
duration with fragments: 8245888
duration with fragments: 186982 (ms)
Sample Description 0
[ENCRYPTED]
Coding: enca
Scheme Type: cbcs
Scheme Version: 65536
Scheme URI:
Coding: mp4a (MPEG-4 Audio)
Codec String: mp4a.40.2
Stream Type: Audio
Object Type: MPEG-4 Audio
Max Bitrate: 128000
Avg Bitrate: 0
Buffer Size: 0
MPEG-4 Audio Object Type: 2 (AAC Low Complexity)
MPEG-4 Audio Decoder Config:
Sampling Frequency: 44100
Channels: 2
Extension:
Object Type: Spectral Band Replication
SBR Present: no
PS Present: no
Sampling Frequency: 0
Sample Rate: 44100
Sample Size: 16
Channels: 2
```
| troubleshooting cbcs mp4 audio | https://api.github.com/repos/axiomatic-systems/Bento4/issues/613/comments | 5 | 2021-05-27T18:21:40Z | 2021-05-29T14:54:19Z | https://github.com/axiomatic-systems/Bento4/issues/613 | 904,058,432 | 613 |
[
"axiomatic-systems",
"Bento4"
] | Hello,
Is is possible to check if used key for decryption is correct key?
Because now if key is correct mp4decrypt generates output and have exit code 0
mp4info not show that output file in this case if encrypted, but in fact output file is garbage...
any possibility? | mp4decrypt check key is correct | https://api.github.com/repos/axiomatic-systems/Bento4/issues/612/comments | 1 | 2021-05-23T10:15:17Z | 2021-07-24T18:31:41Z | https://github.com/axiomatic-systems/Bento4/issues/612 | 898,984,819 | 612 |
[
"axiomatic-systems",
"Bento4"
] | Does mp4decrypt support multicore? | Support for multiple cores | https://api.github.com/repos/axiomatic-systems/Bento4/issues/611/comments | 1 | 2021-05-18T17:11:38Z | 2021-07-22T04:30:07Z | https://github.com/axiomatic-systems/Bento4/issues/611 | 894,600,795 | 611 |
[
"axiomatic-systems",
"Bento4"
] | heap-buffer-overflow of Ap4BitStream.cpp in function WriteBytes
Hi
I found an crash erro.
System info:
Ubuntu 20.04 : clang 10.0.0 , gcc 9.3.0
Bento4 version 1.6.0.0
commit:0c7705733de80172712e487dd6fdd28387fd7184
[poc.zip](https://github.com/axiomatic-systems/Bento4/files/6469900/poc3.zip)
------------------------------------------
Verification steps:
1.Get the source code of Bento4
2.Compile the Bento4
```bash
$ cd Bento4
$ mkdir check_build && cd check_build
$ cmake ../ -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_FLAGS="-fsanitize=address" -DCMAKE_CXX_FLAGS="-fsanitize=address"
$ make -j 32
```
3.run avcinfo
```bash
$ ./avcinfo poc
```
asan info
```bash
=================================================================
==3643438==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x602000000016 at pc 0x000000433137 bp 0x7ffd33d807e0 sp 0x7ffd33d7ffa0
READ of size 8 at 0x602000000016 thread T0
#0 0x433136 in memcpy (/home/hh/Downloads/Bento4/target/avcinfo+0x433136)
#1 0x4d0bae in AP4_BitStream::WriteBytes(unsigned char const*, unsigned int) /home/hh/Downloads/Bento4/Source/C++/Codecs/Ap4BitStream.cpp:133:9
#2 0x4c72cf in PrintSliceInfo(unsigned char const*) /home/hh/Downloads/Bento4/Source/C++/Apps/AvcInfo/AvcInfo.cpp:84:10
#3 0x4c72cf in main /home/hh/Downloads/Bento4/Source/C++/Apps/AvcInfo/AvcInfo.cpp:171:21
#4 0x7f3c202f10b2 in __libc_start_main /build/glibc-eX1tMB/glibc-2.31/csu/../csu/libc-start.c:308:16
#5 0x41c3dd in _start (/home/hh/Downloads/Bento4/target/avcinfo+0x41c3dd)
0x602000000016 is located 0 bytes to the right of 6-byte region [0x602000000010,0x602000000016)
allocated by thread T0 here:
#0 0x4c439d in operator new[](unsigned long) (/home/hh/Downloads/Bento4/target/avcinfo+0x4c439d)
#1 0x4d425f in AP4_DataBuffer::ReallocateBuffer(unsigned int) /home/hh/Downloads/Bento4/Source/C++/Core/Ap4DataBuffer.cpp:210:28
#2 0x4d425f in AP4_DataBuffer::SetDataSize(unsigned int) /home/hh/Downloads/Bento4/Source/C++/Core/Ap4DataBuffer.cpp:151:33
SUMMARY: AddressSanitizer: heap-buffer-overflow (/home/hh/Downloads/Bento4/target/avcinfo+0x433136) in memcpy
Shadow bytes around the buggy address:
0x0c047fff7fb0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c047fff7fc0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c047fff7fd0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c047fff7fe0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c047fff7ff0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
=>0x0c047fff8000: fa fa[06]fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8010: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8020: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8030: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8040: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8050: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
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
==3643438==ABORTING
``` | heap-buffer-overflow of Ap4BitStream.cpp in function WriteBytes | https://api.github.com/repos/axiomatic-systems/Bento4/issues/610/comments | 0 | 2021-05-13T01:48:05Z | 2021-05-27T20:47:37Z | https://github.com/axiomatic-systems/Bento4/issues/610 | 890,626,395 | 610 |
[
"axiomatic-systems",
"Bento4"
] | heap-buffer-overflow of Ap4DataBuffer.cpp in function ReallocateBuffer
Hi
I found an crash erro.
System info:
Ubuntu 20.04 : clang 10.0.0 , gcc 9.3.0
Bento4 version 1.6.0.0
commit:0c7705733de80172712e487dd6fdd28387fd7184
[poc.zip](https://github.com/axiomatic-systems/Bento4/files/6469895/poc4.zip)
------------------------------------------
Verification steps:
1.Get the source code of Bento4
2.Compile the Bento4
```bash
$ cd Bento4
$ mkdir check_build && cd check_build
$ cmake ../ -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_FLAGS="-fsanitize=address" -DCMAKE_CXX_FLAGS="-fsanitize=address"
$ make -j 32
```
3.run hevcinfo
```bash
$ ./hevcinfo poc
```
asan info
```bash
=================================================================
==4072928==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x602000000011 at pc 0x0000004c77c7 bp 0x7ffece40e830 sp 0x7ffece40e828
READ of size 1 at 0x602000000011 thread T0
#0 0x4c77c6 in main /home/hh/Downloads/Bento4/Source/C++/Apps/HevcInfo/HevcInfo.cpp:127:46
#1 0x7f6619c790b2 in __libc_start_main /build/glibc-eX1tMB/glibc-2.31/csu/../csu/libc-start.c:308:16
#2 0x41c3dd in _start (/home/hh/Downloads/Bento4/target/hevcinfo+0x41c3dd)
0x602000000011 is located 0 bytes to the right of 1-byte region [0x602000000010,0x602000000011)
allocated by thread T0 here:
#0 0x4c439d in operator new[](unsigned long) (/home/hh/Downloads/Bento4/target/hevcinfo+0x4c439d)
#1 0x4d385f in AP4_DataBuffer::ReallocateBuffer(unsigned int) /home/hh/Downloads/Bento4/Source/C++/Core/Ap4DataBuffer.cpp:210:28
#2 0x4d385f in AP4_DataBuffer::SetDataSize(unsigned int) /home/hh/Downloads/Bento4/Source/C++/Core/Ap4DataBuffer.cpp:151:33
SUMMARY: AddressSanitizer: heap-buffer-overflow /home/hh/Downloads/Bento4/Source/C++/Apps/HevcInfo/HevcInfo.cpp:127:46 in main
Shadow bytes around the buggy address:
0x0c047fff7fb0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c047fff7fc0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c047fff7fd0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c047fff7fe0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c047fff7ff0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
=>0x0c047fff8000: fa fa[01]fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8010: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8020: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8030: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8040: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8050: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
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
==4072928==ABORTING
``` | heap-buffer-overflow of Ap4DataBuffer.cpp in function ReallocateBuffer | https://api.github.com/repos/axiomatic-systems/Bento4/issues/609/comments | 0 | 2021-05-13T01:47:21Z | 2021-10-23T19:30:32Z | https://github.com/axiomatic-systems/Bento4/issues/609 | 890,626,127 | 609 |
[
"axiomatic-systems",
"Bento4"
] | overflow of Ap4Array.h in function EnsureCapacity
Hi
I found an crash erro.
System info:
Ubuntu 20.04 : clang 10.0.0 , gcc 9.3.0
Bento4 version 1.6.0.0
commit:0c7705733de80172712e487dd6fdd28387fd7184
[poc.zip](https://github.com/axiomatic-systems/Bento4/files/6469891/poc5.zip)
------------------------------------------
Verification steps:
1.Get the source code of Bento4
2.Compile the Bento4
```bash
$ cd Bento4
$ mkdir check_build && cd check_build
$ cmake ../ -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_FLAGS="-fsanitize=address" -DCMAKE_CXX_FLAGS="-fsanitize=address"
$ make -j 32
```
3.run mp4tag
```bash
$ ./mp4tag poc
```
asan info
```bash
=================================================================
==4151181==ERROR: AddressSanitizer: allocator is out of memory trying to allocate 0x6d6574610 bytes
#0 0x4c48fd in operator new(unsigned long) (/home/hh/Downloads/Bento4/target/mp4tag+0x4c48fd)
#1 0x61752f in AP4_Array<AP4_TrunAtom::Entry>::EnsureCapacity(unsigned int) /home/hh/Downloads/Bento4/Source/C++/Core/Ap4Array.h:172:25
#2 0x61752f in AP4_Array<AP4_TrunAtom::Entry>::SetItemCount(unsigned int) /home/hh/Downloads/Bento4/Source/C++/Core/Ap4Array.h:210:25
#3 0x61752f in AP4_TrunAtom::AP4_TrunAtom(unsigned int, unsigned char, unsigned int, AP4_ByteStream&) /home/hh/Downloads/Bento4/Source/C++/Core/Ap4TrunAtom.cpp:127:15
#4 0x616bca in AP4_TrunAtom::Create(unsigned int, AP4_ByteStream&) /home/hh/Downloads/Bento4/Source/C++/Core/Ap4TrunAtom.cpp:51:16
#5 0x4e0f81 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/hh/Downloads/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:429:20
==4151181==HINT: if you don't care about these errors you may set allocator_may_return_null=1
SUMMARY: AddressSanitizer: out-of-memory (/home/hh/Downloads/Bento4/target/mp4tag+0x4c48fd) in operator new(unsigned long)
==4151181==ABORTING
```
gdb info
```bash
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
Program received signal SIGABRT, Aborted.
[----------------------------------registers-----------------------------------]
RAX: 0x0
RBX: 0x7ffff7a77f40 (0x00007ffff7a77f40)
RCX: 0x7ffff7abf18b (<__GI_raise+203>: mov rax,QWORD PTR [rsp+0x108])
RDX: 0x0
RSI: 0x7fffffffd8c0 --> 0x0
RDI: 0x2
RBP: 0x7ffff7f5b182 ("std::bad_alloc")
RSP: 0x7fffffffd8c0 --> 0x0
RIP: 0x7ffff7abf18b (<__GI_raise+203>: mov rax,QWORD PTR [rsp+0x108])
R8 : 0x0
R9 : 0x7fffffffd8c0 --> 0x0
R10: 0x8
R11: 0x246
R12: 0x55555565c8f0 --> 0x0
R13: 0x7ffff7e7da60 (<_ZNSt9bad_allocD2Ev>: endbr64)
R14: 0x0
R15: 0x0
EFLAGS: 0x246 (carry PARITY adjust ZERO sign trap INTERRUPT direction overflow)
[-------------------------------------code-------------------------------------]
0x7ffff7abf17f <__GI_raise+191>: mov edi,0x2
0x7ffff7abf184 <__GI_raise+196>: mov eax,0xe
0x7ffff7abf189 <__GI_raise+201>: syscall
=> 0x7ffff7abf18b <__GI_raise+203>: mov rax,QWORD PTR [rsp+0x108]
0x7ffff7abf193 <__GI_raise+211>: xor rax,QWORD PTR fs:0x28
0x7ffff7abf19c <__GI_raise+220>: jne 0x7ffff7abf1c4 <__GI_raise+260>
0x7ffff7abf19e <__GI_raise+222>: mov eax,r8d
0x7ffff7abf1a1 <__GI_raise+225>: add rsp,0x118
[------------------------------------stack-------------------------------------]
0000| 0x7fffffffd8c0 --> 0x0
0008| 0x7fffffffd8c8 --> 0x0
0016| 0x7fffffffd8d0 --> 0x0
0024| 0x7fffffffd8d8 --> 0x0
0032| 0x7fffffffd8e0 --> 0x0
0040| 0x7fffffffd8e8 --> 0x0
0048| 0x7fffffffd8f0 ("std::bad_alloc")
0056| 0x7fffffffd8f8 --> 0x636f6c6c615f ('_alloc')
[------------------------------------------------------------------------------]
Legend: code, data, rodata, value
Stopped reason: SIGABRT
__GI_raise (sig=sig@entry=0x6) at ../sysdeps/unix/sysv/linux/raise.c:50
50 ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
``` | overflow of Ap4Array.h in function EnsureCapacity | https://api.github.com/repos/axiomatic-systems/Bento4/issues/608/comments | 0 | 2021-05-13T01:46:44Z | 2021-05-27T20:48:15Z | https://github.com/axiomatic-systems/Bento4/issues/608 | 890,625,921 | 608 |
[
"axiomatic-systems",
"Bento4"
] | 👋 Hello, @barbibulle, @dimitry-ishenko, @haridarshan - a potential medium severity NULL Pointer Dereference vulnerability in your repository has been disclosed to us.
#### Next Steps
1️⃣ Visit **https://huntr.dev/bounties/2-other-axiomatic-systems/Bento4** for more advisory information.
2️⃣ **[Sign-up](https://huntr.dev/)** to validate or speak to the researcher for more assistance.
3️⃣ Propose a patch or outsource it to our community - whoever fixes it gets paid.
---
#### Confused or need more help?
- Join us on our **[Discord](https://huntr.dev/discord)** and a member of our team will be happy to help! 🤗
- Speak to a member of our team: @JamieSlome
---
*This issue was automatically generated by [huntr.dev](https://huntr.dev) - a bug bounty board for securing open source code.* | 🚨 Potential NULL Pointer Dereference | https://api.github.com/repos/axiomatic-systems/Bento4/issues/605/comments | 4 | 2021-05-12T06:18:28Z | 2021-07-24T18:23:29Z | https://github.com/axiomatic-systems/Bento4/issues/605 | 889,709,478 | 605 |
[
"axiomatic-systems",
"Bento4"
] | 👋 Hello, @barbibulle, @dimitry-ishenko, @haridarshan - a potential medium severity NULL Pointer Dereference vulnerability in your repository has been disclosed to us.
#### Next Steps
1️⃣ Visit **https://huntr.dev/bounties/1-other-axiomatic-systems/Bento4** for more advisory information.
2️⃣ **[Sign-up](https://huntr.dev/)** to validate or speak to the researcher for more assistance.
3️⃣ Propose a patch or outsource it to our community - whoever fixes it gets paid.
---
#### Confused or need more help?
- Join us on our **[Discord](https://huntr.dev/discord)** and a member of our team will be happy to help! 🤗
- Speak to a member of our team: @JamieSlome
---
*This issue was automatically generated by [huntr.dev](https://huntr.dev) - a bug bounty board for securing open source code.* | 🚨 Potential NULL Pointer Dereference | https://api.github.com/repos/axiomatic-systems/Bento4/issues/604/comments | 3 | 2021-05-12T06:16:36Z | 2021-10-23T18:25:39Z | https://github.com/axiomatic-systems/Bento4/issues/604 | 889,706,620 | 604 |
[
"axiomatic-systems",
"Bento4"
] | Hi
I found an crash erro.
System info:
Ubuntu 20.04 : clang 10.0.0 , gcc 9.3.0
Bento4 version 1.6.0.0
commit:0c7705733de80172712e487dd6fdd28387fd7184
[poc.zip](https://github.com/axiomatic-systems/Bento4/files/6463819/poc2.zip)
------------------------------------------
Verification steps:
1.Get the source code of Bento4
2.Compile the Bento4
```bash
$ cd Bento4
$ mkdir check_build && cd check_build
$ cmake ../ -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_FLAGS="-fsanitize=address" -DCMAKE_CXX_FLAGS="-fsanitize=address"
$ make -j 32
```
3.run mp42aac
```bash
$ ./mp42aac poc.mp4 /dev/null
```
asan
```bash
=================================================================
==2608862==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000008 (pc 0x0000005e8a9e bp 0x7ffd347b8790 sp 0x7ffd347b86d0 T0)
==2608862==The signal is caused by a READ memory access.
==2608862==Hint: address points to the zero page.
#0 0x5e8a9e in AP4_Descriptor::GetTag() /home/hh/Downloads/Bento4/Source/C++/Core/Ap4Descriptor.h:61:42
#1 0x5e8a9e in AP4_DescriptorFinder::Test(AP4_Descriptor*) const /home/hh/Downloads/Bento4/Source/C++/Core/Ap4Descriptor.h:92:28
#2 0x5f4733 in AP4_List<AP4_Descriptor>::Find(AP4_List<AP4_Descriptor>::Item::Finder const&, AP4_Descriptor*&) const /home/hh/Downloads/Bento4/Source/C++/Core/Ap4List.h:431:20
#3 0x5f4733 in AP4_EsDescriptor::GetDecoderConfigDescriptor() const /home/hh/Downloads/Bento4/Source/C++/Core/Ap4EsDescriptor.cpp:207:26
#4 0x500238 in AP4_MpegSampleDescription::AP4_MpegSampleDescription(unsigned int, AP4_EsdsAtom*) /home/hh/Downloads/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:725:22
#5 0x501a76 in AP4_MpegAudioSampleDescription::AP4_MpegAudioSampleDescription(unsigned int, unsigned short, unsigned short, AP4_EsdsAtom*) /home/hh/Downloads/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:838:5
#6 0x50c166 in AP4_MpegAudioSampleEntry::ToSampleDescription() /home/hh/Downloads/Bento4/Source/C++/Core/Ap4SampleEntry.cpp:675:16
#7 0x51eb6d in AP4_StsdAtom::GetSampleDescription(unsigned int) /home/hh/Downloads/Bento4/Source/C++/Core/Ap4StsdAtom.cpp:181:53
#8 0x4c797f in main /home/hh/Downloads/Bento4/Source/C++/Apps/Mp42Aac/Mp42Aac.cpp:268:39
#9 0x7fcea49890b2 in __libc_start_main /build/glibc-eX1tMB/glibc-2.31/csu/../csu/libc-start.c:308:16
#10 0x41c8ad in _start (/home/hh/Downloads/Bento4/afl_fuzz/mp42aac+0x41c8ad)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /home/hh/Downloads/Bento4/Source/C++/Core/Ap4Descriptor.h:61:42 in AP4_Descriptor::GetTag()
==2608862==ABORTING
```
gdb info
```bash
Program received signal SIGSEGV, Segmentation fault.
[----------------------------------registers-----------------------------------]
RAX: 0x0
RBX: 0x7fffffffdd00 --> 0xffffffffb98 --> 0x0
RCX: 0x7224f8 --> 0x5e8a50 (<AP4_DescriptorFinder::Test(AP4_Descriptor*) const>: lea rsp,[rsp-0x98])
RDX: 0xffffffffb98 --> 0x0
RSI: 0x8
RDI: 0x7fffffffdce0 --> 0x7224e8 --> 0x5e8af0 (<AP4_List<AP4_Descriptor>::Item::Finder::~Finder()>: lea rsp,[rsp-0x98])
RBP: 0x7fffffffdd70 --> 0xc1800000040 --> 0x0
RSP: 0x7fffffffdcb0 --> 0xe449f
RIP: 0x5e8a9e (<AP4_DescriptorFinder::Test(AP4_Descriptor*) const+78>: mov cl,BYTE PTR [rsi])
R8 : 0x6040000000d0 --> 0x724430 --> 0x5f6410 (<AP4_EsdsAtom::~AP4_EsdsAtom()>: lea rsp,[rsp-0x98])
R9 : 0xfffffc0000000000
R10: 0x18
R11: 0x201
R12: 0x6030000002e0 --> 0x0
R13: 0xc060000005c --> 0x0
R14: 0xffffffffb9c --> 0x0
R15: 0x7fffffffdce0 --> 0x7224e8 --> 0x5e8af0 (<AP4_List<AP4_Descriptor>::Item::Finder::~Finder()>: lea rsp,[rsp-0x98])
EFLAGS: 0x10246 (carry PARITY adjust ZERO sign trap INTERRUPT direction overflow)
[-------------------------------------code-------------------------------------]
0x5e8a94 <AP4_DescriptorFinder::Test(AP4_Descriptor*) const+68>: mov al,BYTE PTR [rax+0x7fff8000]
0x5e8a9a <AP4_DescriptorFinder::Test(AP4_Descriptor*) const+74>: test al,al
0x5e8a9c <AP4_DescriptorFinder::Test(AP4_Descriptor*) const+76>: jne 0x5e8ac0 <AP4_DescriptorFinder::Test(AP4_Descriptor*) const+112>
=> 0x5e8a9e <AP4_DescriptorFinder::Test(AP4_Descriptor*) const+78>: mov cl,BYTE PTR [rsi]
0x5e8aa0 <AP4_DescriptorFinder::Test(AP4_Descriptor*) const+80>: add rdi,0x8
0x5e8aa4 <AP4_DescriptorFinder::Test(AP4_Descriptor*) const+84>: mov rax,rdi
0x5e8aa7 <AP4_DescriptorFinder::Test(AP4_Descriptor*) const+87>: shr rax,0x3
0x5e8aab <AP4_DescriptorFinder::Test(AP4_Descriptor*) const+91>: mov al,BYTE PTR [rax+0x7fff8000]
[------------------------------------stack-------------------------------------]
0000| 0x7fffffffdcb0 --> 0xe449f
0008| 0x7fffffffdcb8 --> 0x5f4734 (<AP4_EsDescriptor::GetDecoderConfigDescriptor() const+484>: test eax,eax)
0016| 0x7fffffffdcc0 --> 0x41b58ab3
0024| 0x7fffffffdcc8 --> 0x7242d7 ("1 32 16 11 ref.tmp:207")
0032| 0x7fffffffdcd0 --> 0x5f4550 (<AP4_EsDescriptor::GetDecoderConfigDescriptor() const>: lea rsp,[rsp-0x98])
0040| 0x7fffffffdcd8 --> 0x5f4572 (<AP4_EsDescriptor::GetDecoderConfigDescriptor() const+34>: mov rax,QWORD PTR [rsp+0x10])
0048| 0x7fffffffdce0 --> 0x7224e8 --> 0x5e8af0 (<AP4_List<AP4_Descriptor>::Item::Finder::~Finder()>: lea rsp,[rsp-0x98])
0056| 0x7fffffffdce8 --> 0x723d04 ("4_ElstAtom")
[------------------------------------------------------------------------------]
Legend: code, data, rodata, value
Stopped reason: SIGSEGV
0x00000000005e8a9e in AP4_Descriptor::GetTag (this=<optimized out>) at /home/hh/Downloads/Bento4/Source/C++/Core/Ap4Descriptor.h:61
61 AP4_UI08 GetTag() { return (AP4_UI08)m_ClassId; }
``` | NULL pointer dereference of Ap4Descriptor.h in function GetTag | https://api.github.com/repos/axiomatic-systems/Bento4/issues/603/comments | 2 | 2021-05-12T06:12:49Z | 2021-10-23T18:25:54Z | https://github.com/axiomatic-systems/Bento4/issues/603 | 889,699,997 | 603 |
[
"axiomatic-systems",
"Bento4"
] | Hi
I found an crash erro.
System info:
Ubuntu 20.04 : clang 10.0.0 , gcc 9.3.0
Bento4 version 1.6.0.0
commit:0c7705733de80172712e487dd6fdd28387fd7184
[poc.zip](https://github.com/axiomatic-systems/Bento4/files/6463812/poc1.zip)
------------------------------------------
Verification steps:
1.Get the source code of Bento4
2.Compile the Bento4
```bash
$ cd Bento4
$ mkdir check_build && cd check_build
$ cmake ../ -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_FLAGS="-fsanitize=address" -DCMAKE_CXX_FLAGS="-fsanitize=address"
$ make -j 32
```
3.run mp42aac
```bash
$ ./mp42aac poc.mp4
```
asan
```bash
Audio Track:
duration: 0 ms
sample count: 255
AddressSanitizer:DEADLYSIGNAL
=================================================================
==2609245==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x0000006939ae bp 0x7fffb9ecb3f0 sp 0x7fffb9ecb250 T0)
==2609245==The signal is caused by a READ memory access.
==2609245==Hint: address points to the zero page.
#0 0x6939ae in AP4_StszAtom::GetSampleSize(unsigned int, unsigned int&) /home/hh/Downloads/Bento4/Source/C++/Core/Ap4StszAtom.cpp:154:27
#1 0x57553f in AP4_AtomSampleTable::GetSample(unsigned int, AP4_Sample&) /home/hh/Downloads/Bento4/Source/C++/Core/Ap4AtomSampleTable.cpp:162:30
#2 0x523d78 in AP4_Track::GetSample(unsigned int, AP4_Sample&) /home/hh/Downloads/Bento4/Source/C++/Core/Ap4Track.cpp:435:43
#3 0x523d78 in AP4_Track::ReadSample(unsigned int, AP4_Sample&, AP4_DataBuffer&) /home/hh/Downloads/Bento4/Source/C++/Core/Ap4Track.cpp:469:14
#4 0x4c8239 in WriteSamples(AP4_Track*, AP4_SampleDescription*, AP4_ByteStream*) /home/hh/Downloads/Bento4/Source/C++/Apps/Mp42Aac/Mp42Aac.cpp:192:12
#5 0x4c8239 in main /home/hh/Downloads/Bento4/Source/C++/Apps/Mp42Aac/Mp42Aac.cpp:281:13
#6 0x7ff7705870b2 in __libc_start_main /build/glibc-eX1tMB/glibc-2.31/csu/../csu/libc-start.c:308:16
#7 0x41c8ad in _start (/home/hh/Downloads/Bento4/afl_fuzz/mp42aac+0x41c8ad)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /home/hh/Downloads/Bento4/Source/C++/Core/Ap4StszAtom.cpp:154:27 in AP4_StszAtom::GetSampleSize(unsigned int, unsigned int&)
==2609245==ABORTING
```
gdb info
```bash
Audio Track:
duration: 0 ms
sample count: 255
Program received signal SIGSEGV, Segmentation fault.
[----------------------------------registers-----------------------------------]
RAX: 0x0
RBX: 0x7fffffffddc0 --> 0x1
RCX: 0xc0e000000a6 --> 0x0
RDX: 0x7fffffffddb0 --> 0x60c000000000 --> 0xcc6e96b9 --> 0x0
RSI: 0x0
RDI: 0x607000000530 --> 0x0
RBP: 0x7fffffffde70 --> 0x7fffffffe1b0 --> 0x0
RSP: 0x7fffffffdcd0 --> 0xe60e4
RIP: 0x6939ae (<AP4_StszAtom::GetSampleSize(unsigned int, unsigned int&)+302>: mov r8d,DWORD PTR [r8])
R8 : 0x0
R9 : 0x480
R10: 0x7fffffffdce0 --> 0x41b58ab3
R11: 0xffffffffbb0 --> 0x0
R12: 0x7fffffffddb0 --> 0x60c000000000 --> 0xcc6e96b9 --> 0x0
R13: 0xffffffffbb6 --> 0x0
R14: 0x10007fff7b9c --> 0xf204f204f1f1f1f1
R15: 0x7fffffffdd80 --> 0x0
EFLAGS: 0x10246 (carry PARITY adjust ZERO sign trap INTERRUPT direction overflow)
[-------------------------------------code-------------------------------------]
0x69399e <AP4_StszAtom::GetSampleSize(unsigned int, unsigned int&)+286>: mov sil,BYTE PTR [rsi+0x7fff8000]
0x6939a5 <AP4_StszAtom::GetSampleSize(unsigned int, unsigned int&)+293>: test sil,sil
0x6939a8 <AP4_StszAtom::GetSampleSize(unsigned int, unsigned int&)+296>: jne 0x693a52 <AP4_StszAtom::GetSampleSize(unsigned int, unsigned int&)+466>
=> 0x6939ae <AP4_StszAtom::GetSampleSize(unsigned int, unsigned int&)+302>: mov r8d,DWORD PTR [r8]
0x6939b1 <AP4_StszAtom::GetSampleSize(unsigned int, unsigned int&)+305>: jmp 0x6939bb <AP4_StszAtom::GetSampleSize(unsigned int, unsigned int&)+315>
0x6939b3 <AP4_StszAtom::GetSampleSize(unsigned int, unsigned int&)+307>: mov eax,0xfffffff4
0x6939b8 <AP4_StszAtom::GetSampleSize(unsigned int, unsigned int&)+312>: xor r8d,r8d
0x6939bb <AP4_StszAtom::GetSampleSize(unsigned int, unsigned int&)+315>: mov rcx,rdx
[------------------------------------stack-------------------------------------]
0000| 0x7fffffffdcd0 --> 0xe60e4
0008| 0x7fffffffdcd8 --> 0x575540 (<AP4_AtomSampleTable::GetSample(unsigned int, AP4_Sample&)+3552>: test eax,eax)
0016| 0x7fffffffdce0 --> 0x41b58ab3
0024| 0x7fffffffdce8 --> 0x71be85 ("10 32 4 9 chunk:104 48 4 8 skip:104 64 4 8 desc:104 80 8 10 offset:112 112 4 13 offset_32:114 128 4 8 size:124 144 4 14 cts_offset:140 160 8 7 dts:141 192 4 12 duration:142 208 4 15 sample_size:158")
0032| 0x7fffffffdcf0 --> 0x574760 (<AP4_AtomSampleTable::GetSample(unsigned int, AP4_Sample&)>: lea rsp,[rsp-0x98])
0040| 0x7fffffffdcf8 --> 0x60c000000100 --> 0x7059d0 --> 0x505850 (<AP4_MpegAudioSampleDescription::~AP4_MpegAudioSampleDescription()>: lea rsp,[rsp-0x98])
0048| 0x7fffffffdd00 --> 0x1
0056| 0x7fffffffdd08 --> 0xfffffffffffffffe
[------------------------------------------------------------------------------]
Legend: code, data, rodata, value
Stopped reason: SIGSEGV
0x00000000006939ae in AP4_StszAtom::GetSampleSize (this=<optimized out>, sample=<optimized out>, sample_size=@0x7fffffffddb0: 0x0) at /home/hh/Downloads/Bento4/Source/C++/Core/Ap4StszAtom.cpp:154
154 sample_size = m_Entries[sample - 1];
```
| NULL pointer dereference of Ap4StszAtom.cpp in function GetSampleSize | https://api.github.com/repos/axiomatic-systems/Bento4/issues/602/comments | 1 | 2021-05-12T06:11:50Z | 2021-07-24T18:23:50Z | https://github.com/axiomatic-systems/Bento4/issues/602 | 889,698,306 | 602 |
[
"axiomatic-systems",
"Bento4"
] | t t | https://api.github.com/repos/axiomatic-systems/Bento4/issues/601/comments | 1 | 2021-05-10T15:58:13Z | 2021-05-11T02:53:37Z | https://github.com/axiomatic-systems/Bento4/issues/601 | 884,532,296 | 601 | |
[
"axiomatic-systems",
"Bento4"
] | I am trying to output my clearkey encrypted DASH manifest and AES-128 HLS manifest like this.
```
mp4dash 1080-frag.mp4 720-frag.mp4 480-frag.mp4 audio-frag.mp4 -o ready
-f --profiles='on-demand'='urn:mpeg:dash:profile:isoff-on-demand:2011'
--use-segment-timeline --clearkey
--encryption-key=55a71282cdb0f27cf5aae74c1d06262a:687a6ad8f817d7cca5510acc76720636
--clearkey-license-uri="https://dev.flowgiga.com/ninerasa/license/"
--hls --hls-key-url="https://dev.flowgiga.com/ninerasa/license/"
--encryption-cenc-scheme=cbcs
--subtitles [+format=webvtt,+language=eng]PAUSE_FINAL.mp4.eng.srt
```
Then I created my `test.key` file with binary key like this:
```
export AA=687a6ad8f817d7cca5510acc76720636
echo ${AA} | xxd -p -r > test.key
```
Now I am delivering the manifest created as `content-type:application/vnd.apple.mpegurl` and test.key as `content-type:application/pgpkeys` and I also tried with `content-type:application/octet-stream`.
When I run this is safari my payback starts and timer starts moving but I cannot see anything in the video.
Am in doing something wrong. | MP4DASH --hls option with AES Encryption | https://api.github.com/repos/axiomatic-systems/Bento4/issues/600/comments | 1 | 2021-04-25T22:23:42Z | 2021-04-26T11:40:50Z | https://github.com/axiomatic-systems/Bento4/issues/600 | 867,129,268 | 600 |
[
"axiomatic-systems",
"Bento4"
] | **Used version**
v1.6.0-637 (latest at the moment)
**Scenario**
Use mp4-dash.py util to generate Smooth Streaming compatible output by specifying `--smooth`.
**Problem description**
The track name in the audio URL template of the generated .ismc file mismatches the track name in the generated .ism file.
Example audio URL template and the audio portion in the corresponding .ism file:
```
// URL template in .ismc
QualityLevels({bitrate})/Fragments(English={start time})
```
```
// Audio portion in the corresponding .ism
<audio src="tears_audio_eng.mp4" systemBitrate="136075">
<param name="trackID" value="1" valueType="data"/>
<param name="trackName" value="audio_en" valueType="data"/>
<param name="timeScale" value="44100" valueType="data"/>
</audio>
```
The track name in the .ismc file `English` is supposed to match the one in the .ism file `audio_en`.
**Cause**
It seems it's introduced here:
https://github.com/axiomatic-systems/Bento4/commit/4916daf0#diff-e47888547647a4f042e89b39ca9f3db16ff8ec57ae8bf7eed250d050c6139061L1007
**Possible fix**
```
diff --git a/Source/Python/utils/mp4-dash.py b/Source/Python/utils/mp4-dash.py
index a9234b1..ce398d3 100755
--- a/Source/Python/utils/mp4-dash.py
+++ b/Source/Python/utils/mp4-dash.py
@@ -1026,7 +1026,7 @@ def OutputSmooth(options, audio_tracks, video_tracks):
stream_name = audio_track.language_name
if stream_name == '' or stream_name == 'Unknown':
stream_name = "audio_"+audio_track.language
- audio_url_pattern="QualityLevels({bitrate})/Fragments(%s={start time})" % (stream_name)
+ audio_url_pattern="QualityLevels({bitrate})/Fragments(audio_%s={start time})" % (audio_track.language)
stream_index = xml.SubElement(client_manifest,
'StreamIndex',
Chunks=str(len(audio_track.moofs)),
``` | Mismatch of audio track name between generated smooth client and server manifest | https://api.github.com/repos/axiomatic-systems/Bento4/issues/599/comments | 5 | 2021-04-21T07:16:11Z | 2022-03-09T07:27:18Z | https://github.com/axiomatic-systems/Bento4/issues/599 | 863,526,874 | 599 |
[
"axiomatic-systems",
"Bento4"
] | https://github.com/axiomatic-systems/Bento4/blob/master/Source/Python/utils/mp4-dash-clone.py
can add support to clone live dash $number$ or $time$ template please add support clone of live stream
@barbibulle | add support to clone live stream | https://api.github.com/repos/axiomatic-systems/Bento4/issues/598/comments | 1 | 2021-04-14T18:49:15Z | 2022-03-16T15:58:57Z | https://github.com/axiomatic-systems/Bento4/issues/598 | 858,173,515 | 598 |
[
"axiomatic-systems",
"Bento4"
] | The string generated from the call to AP4_ByteStream::ReadNullTerminatedString has an extra null and the string length has + 1 in length. It is because of this logic
```
AP4_DataBuffer buffer;
unsigned int size = 0;
AP4_UI08 c = 0;
do {
AP4_Result result = ReadUI08(c);
if (AP4_FAILED(result)) return result;
buffer.SetDataSize(size+1);
buffer.UseData()[size] = c;
++size;
} while (c);
string.Assign((const char*)buffer.GetData(), size);
```
And it should have been
```
string.Assign((const char*)buffer.GetData(), size - 1);
```
since size counts the null terminator too. | String length not set correctly in AP4_ByteStream::ReadNullTerminatedString | https://api.github.com/repos/axiomatic-systems/Bento4/issues/597/comments | 1 | 2021-04-10T18:28:24Z | 2021-04-11T03:33:53Z | https://github.com/axiomatic-systems/Bento4/issues/597 | 855,128,631 | 597 |
[
"axiomatic-systems",
"Bento4"
] | hello fellas...
I have an encrypted mp4 file vid_enc,mp4 i get return 3 keys
xxxxxxxxxxxxxxxxxxxxxxxxxxxxx:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxx:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxx:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
i know the mannual method to decrypt file using multiple keys like --key xxxxxx:xxxx --key xxx:xxxx so on...
and its working mannualy decrypt no issues...
but i dont want this as mannual...
i need that below script can check each key one by one and which is correct it decrypt mp4 file..
os.system('mp4decrypt' + ' --key ' + str(decrypt_key) + ' "' + download_path + 'vid_enc.mp4' + '" "' + download_path + 'vid_dec.mp4' + '"')
above script overwrites all keys and grab the last one.. it cant check all keys one by one..
so want mp4decrypt can check each key one by one...
any solution guys.. | Decrypt mp4 file using multiple keys... | https://api.github.com/repos/axiomatic-systems/Bento4/issues/596/comments | 1 | 2021-04-09T23:00:55Z | 2023-11-26T17:50:00Z | https://github.com/axiomatic-systems/Bento4/issues/596 | 854,909,895 | 596 |
[
"axiomatic-systems",
"Bento4"
] | I have the decryption key, but how to use mp4decrypt on mpd with m4s files and m3u8 with ts files? | how to use mp4decrypt decrypt a MPD with or m3u8 files | https://api.github.com/repos/axiomatic-systems/Bento4/issues/595/comments | 0 | 2021-04-08T22:31:17Z | 2021-04-08T22:31:17Z | https://github.com/axiomatic-systems/Bento4/issues/595 | 853,990,291 | 595 |
[
"axiomatic-systems",
"Bento4"
] | I used to just execute the following command line to build _Bento4_ from _master_ branch:
```
cd .\Build\Targets\x86_64-microsoft-win32-vs2019
. "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\MSBuild.exe" .\Bento4.sln -p:Configuration=Release
```
Last time it worked was February 1st. Today after `git pull` that command yielded a link error:
> Bento4.lib(Ap4AtomFactory.obj) : error LNK2019: unresolved external symbol "public: static class AP4_Av1cAtom * __cdecl AP4_Av1cAtom::Create(unsigned int,class AP4_ByteStream &)" (?Create@AP4_Av1cAtom@@SAPAV1@IAAVAP4_ByteStream@@@Z) referenced in function "public: virtual int __thiscall AP4_AtomFactory::CreateAtomFromStream(class AP4_ByteStream &,unsigned int,unsigned int,unsigned __int64,class AP4_Atom * &)" (?CreateAtomFromStream@AP4_AtomFactory@@UAEHAAVAP4_ByteStream@@II_KAAPAVAP4_Atom@@@Z) [C:\Projects\ncps-encoder\Bento4\Build\Targets\x86_64-microsoft-win32-vs2019\Mp42Aac\Mp42Aac.vcxproj]
Am I missing something? | Error building master on Windows | https://api.github.com/repos/axiomatic-systems/Bento4/issues/594/comments | 1 | 2021-04-06T22:48:47Z | 2023-06-14T01:02:26Z | https://github.com/axiomatic-systems/Bento4/issues/594 | 851,863,540 | 594 |
[
"axiomatic-systems",
"Bento4"
] | --show-progress parametr doesn't work for me. Why is that? | --show-progress doesn't work | https://api.github.com/repos/axiomatic-systems/Bento4/issues/593/comments | 0 | 2021-03-29T08:30:43Z | 2021-03-29T08:30:43Z | https://github.com/axiomatic-systems/Bento4/issues/593 | 843,118,953 | 593 |
[
"axiomatic-systems",
"Bento4"
] | Build fails on Ubuntu 18.04 from cloning
`============ making mp4dump =============
../../../../Build/Makefiles/Rules.mak:60: Mp4Dump.d: No such file or directory`
Downloading source code and compiling works fine. | Error building Ubuntu 18.04 | https://api.github.com/repos/axiomatic-systems/Bento4/issues/592/comments | 0 | 2021-03-28T19:17:09Z | 2021-03-28T19:17:09Z | https://github.com/axiomatic-systems/Bento4/issues/592 | 842,809,586 | 592 |
[
"axiomatic-systems",
"Bento4"
] | mp42ts only outputs a PAT and PMT once at the beginning of the stream.
While the ISO/IEC 13818-1 which defines MPEG-2 TS does not define a repetition rate for PSI information (PAT, PMT) there are industry guidelines on repetition rates for this information:
TR 101 290 standard defines an error should be generated if PSI is not repeated every 500ms
ANSI_SCTE-137-6-2017 says '_It is recommended that the PAT repetition rate be eight per second and the
PMT repetition rate be eight per second_.'
ATSC recommended practice is: _PAT/PMT repetition interval error (200ms < cycle time ≤ 500ms)_
Many decoders choke on streams where PSI information is not repeated often enough.
I propose that PMT/PATs are inserted at least every 500ms in the output stream to comply with industry standards
| mp42ts : PSI information not repeated | https://api.github.com/repos/axiomatic-systems/Bento4/issues/591/comments | 4 | 2021-03-21T15:46:56Z | 2023-05-29T18:13:15Z | https://github.com/axiomatic-systems/Bento4/issues/591 | 837,112,139 | 591 |
[
"axiomatic-systems",
"Bento4"
] | k
| k | https://api.github.com/repos/axiomatic-systems/Bento4/issues/590/comments | 0 | 2021-03-19T20:39:27Z | 2021-03-21T11:16:28Z | https://github.com/axiomatic-systems/Bento4/issues/590 | 836,344,288 | 590 |
[
"axiomatic-systems",
"Bento4"
] | I am trying to decrypt an audio file in .m4a format I am using the correct key, but the file is not being decrypted. The same file in .aac format is decrypted using the same key, but as I said, it doesn't work in m4a format.
"audio578956 m4a audio only [pt] DASH audio 128k , m4a_dash container, mp4a.40.2 (48000Hz)"
"mp4decrypt --key faxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx:85xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx "test.m4a" "decrypt.aac"
or
"mp4decrypt --key faxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx:85xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx "test.m4a" "decrypt.m4a"
Either way, the m4a file is not decrypted. Is there any solution?
| mp4decrypt does not work with m4a audio files? | https://api.github.com/repos/axiomatic-systems/Bento4/issues/589/comments | 7 | 2021-03-11T07:39:52Z | 2024-04-09T15:11:14Z | https://github.com/axiomatic-systems/Bento4/issues/589 | 828,878,121 | 589 |
[
"axiomatic-systems",
"Bento4"
] | Hello,
I have two files - isma (audio) and ismv (video) downloaded with YouTube. Both are DRM protected.
I also have right decryption key.
I have red "Dealing with ISMV and ISMA input files" so I used mp4fragment to fix lack of TFDTs. After fixing audio and video are playing with vlc, but they are obviously encrypted.
Unfortunately decrypting it with mp4decrypt changes nothing. I'm 100% sure that decryption key is correct. I have some experience with decrypting dash files, so I know how to properly use mp4decrypt. There is probably something in procedure, that I'm missing or there is some issue with Bento4 and ism files.
I've also tried to convert ism to dash (mp4dash.bat) and then merging parts binary with python, but there is no change. I still cannot properly decrypt neither audio or video. This method (binary merging and decrypting "native" mpd) works file with other (not ism) files so there is little chance that something is wrong on my side.
Any help would be much appreciated.
Best regards | ism/manifest can't decrypt audio or video | https://api.github.com/repos/axiomatic-systems/Bento4/issues/588/comments | 4 | 2021-03-08T21:05:06Z | 2021-04-20T10:49:42Z | https://github.com/axiomatic-systems/Bento4/issues/588 | 824,951,739 | 588 |
[
"axiomatic-systems",
"Bento4"
] | Hello,
Could you tell me is it possible to decrypt ts file and eventually how?
I have a key, but i am not able to decrypt it ;(
Help me :) | TS decrypt - could you help me? | https://api.github.com/repos/axiomatic-systems/Bento4/issues/587/comments | 1 | 2021-03-08T20:18:38Z | 2021-03-26T19:42:23Z | https://github.com/axiomatic-systems/Bento4/issues/587 | 824,916,524 | 587 |
[
"axiomatic-systems",
"Bento4"
] | media rate not parsed correctly.
last 2 bytes are [ignored](https://github.com/axiomatic-systems/Bento4/blob/174b948be29b69009b235ae0aa92884d05bcea49/Source/C%2B%2B/Core/Ap4ElstAtom.cpp#L97)
if media rate is actually 1.5 it got parsed as 1 | media rate in elst not parsed correctly | https://api.github.com/repos/axiomatic-systems/Bento4/issues/586/comments | 0 | 2021-03-04T21:54:15Z | 2021-03-04T21:54:15Z | https://github.com/axiomatic-systems/Bento4/issues/586 | 822,539,518 | 586 |
[
"axiomatic-systems",
"Bento4"
] | Hi.
I cannot decrypt ismv file.
I have no problems with mp4, ts etc.
Are ismv files any different from others?
Example:
[video.zip](https://github.com/axiomatic-systems/Bento4/files/6074766/video.zip)
```
key:c739f6a4fea79481ea20144756be335c
KID=5196291eebc145c5ac79f458502b2932
``` | cannot decrypt ismv file | https://api.github.com/repos/axiomatic-systems/Bento4/issues/585/comments | 2 | 2021-03-03T09:11:37Z | 2021-03-09T05:00:55Z | https://github.com/axiomatic-systems/Bento4/issues/585 | 820,909,045 | 585 |
[
"axiomatic-systems",
"Bento4"
] | Hello,
i decryted an mp4 file with mp4decrypt. It was encoded with ATEME Titan File. The mediainfo of the decrypted file shows this "SEI_rbsp_stop_one_bit : Missing" . Is the file correctly decrypted or is this related to the encoder version? Can ignore this? I already found this https://github.com/rigaya/NVEnc/issues/75 | SEI_rbsp_stop_one_bit missing | https://api.github.com/repos/axiomatic-systems/Bento4/issues/584/comments | 0 | 2021-03-03T01:22:04Z | 2021-03-03T01:22:04Z | https://github.com/axiomatic-systems/Bento4/issues/584 | 820,532,720 | 584 |
[
"axiomatic-systems",
"Bento4"
] | .
| . | https://api.github.com/repos/axiomatic-systems/Bento4/issues/583/comments | 0 | 2021-03-01T19:09:58Z | 2021-03-19T20:33:08Z | https://github.com/axiomatic-systems/Bento4/issues/583 | 819,165,485 | 583 |
[
"axiomatic-systems",
"Bento4"
] | Hello,
Could you tell me if is possible to decrypt audio with extension 'aac' by mp4decrypt?
When use a correct DRM key it's not working.
Do you have maybe any suggestion how i can do it? :) | AAC audio how to decrypt? | https://api.github.com/repos/axiomatic-systems/Bento4/issues/582/comments | 1 | 2021-02-27T17:40:43Z | 2021-02-27T17:58:50Z | https://github.com/axiomatic-systems/Bento4/issues/582 | 817,978,876 | 582 |
[
"axiomatic-systems",
"Bento4"
] | I have a file that was encrypted in CENC I believe, and I'm trying to decrypt it for over a few months now using mp4decrypt from the bento4 mp4decrypt tools but trust me I just don't know-how. This is the output of mp4info --verbose
**MP4INFO VERBOSE**
```
C:\Users\Vector\Desktop\Bento4\Bento4-SDK-1-6-0-637.x86_64-microsoft-win32\bin>mp4info --verbose C:\Users\Vector\Desktop\Bento4\IrokoBeautyandTheBeast\Movies\fmp4_480p_450000.mp4
File:
major brand: iso6
minor version: 1
compatible brand: mp42
compatible brand: dash
compatible brand: msdh
compatible brand: msix
compatible brand: iso6
compatible brand: avc1
compatible brand: isom
fast start: yes
Movie:
duration: 0 ms
time scale: 12800
fragments: yes
Found 1 Tracks
Track 1:
flags: 7 ENABLED IN-MOVIE IN-PREVIEW
id: 1
type: Video
duration: 0 ms
language: eng
media:
sample count: 0
timescale: 12800
duration: 0 (media timescale units)
duration: 0 (ms)
bitrate (computed): 449.893 Kbps
sample count with fragments: 191503
duration with fragments: 98049536
duration with fragments: 7660120 (ms)
display width: 854.000000
display height: 480.000000
Sample Description 0
[ENCRYPTED]
Coding: encv
Scheme Type: cenc
Scheme Version: 65536
Scheme URI:
Protection System Details:
[schi] size=8+32
[tenc] size=12+20
default_isProtected = 1
default_Per_Sample_IV_Size = 8
default_KID = [71 95 60 47 eb fe 4c ed 9d 7c 29 7c 26 da a9 d7]
Bytes: 000000000000000100000000000000000000000000000000035601e000480000004800000000000000010a41564320436f64696e670000000000000000000000000000000000000000000018ffff00000031617663430142c01effe100196742c01ed900d83de6f011000003000100000300320f162e4801000568cb852c800000005073696e660000000c66726d6161766331000000147363686d0000000063656e630001000000000028736368690000002074656e63000000000000010871956047ebfe4ced9d7c297c26daa9d7
Coding: avc1 (H.264)
Width: 854
Height: 480
Depth: 24
AVC Profile: 66 (Baseline)
AVC Profile Compat: c0
AVC Level: 30
AVC NALU Length Size: 4
AVC SPS: [6742c01ed900d83de6f011000003000100000300320f162e48]
AVC PPS: [68cb852c80]
Codecs String: avc1.42C01E
C:\Users\Vector\Desktop\Bento4\Bento4-SDK-1-6-0-637.x86_64-microsoft-win32\bin>
```
What I have access to:
(1) AUDIO AND VIDEO FILES .mp4 which contains the encrypted content for the Apk data files
(2) MANIFEST.mpd also from the apk data files
(3) oma folder
This is gd link to the protected file https://drive.google.com/drive/folders/1nQOnOs6oxU-KKZe67ePfkj_adGJhyj9A?usp=sharing
I believe the file is **OMA DCF/PDCF FILES**
**ProtectedROS.xml file**
```
<roap:protectedRO xmlns:roap="urn:oma:bac:dldrm:roap-1.0">
<roap:ro id="a7b226f223a7b22757365724964223a2232313532333738222c226d65726368616e74223a2269726f6b6f222c2273657373696f6e4964223a2265794a68624763694f694a49557a49314e694973496e523563434936496b705856434a392e65794a6c654841694f6a45324d546b784d4455794d7a5173496d6c68644349364d5459784d7a6b794d54497a4e43776961584e7a496a6f6961584a76613239306469356a623230694c434a7164476b694f694a68543168686156525354575a5a54557030513056364d6b3077634856735448644c647a4e6c6356425465694973496e4e6a6233426c496a6f69625739696157786c4969776963335669496a6f794d5455794d7a633466512e2d574e335a554d4a58666f592d446977384e316e716c5865526b756e3976712d4f49557973665564384251227d2c226964223a7b2274223a2261222c22614964223a2269726f6b6f74763a636f6e74656e743a3135343733227d7d" stateful="true" version="1.1">
<riID>
<keyIdentifier xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" algorithm="http://www.w3.org/2000/09/xmldsig#sha1" xsi:type="roap:X509SPKIHash">
<hash>od6D5p9bah7N0kyo9JrscpOdK2I=</hash>
</keyIdentifier>
</riID>
<rights xmlns:o-ex="http://odrl.net/1.1/ODRL-EX" o-ex:id="REL0">
<o-ex:context>
<o-dd:version xmlns:o-dd="http://odrl.net/1.1/ODRL-DD">2.1</o-dd:version>
<o-dd:uid xmlns:o-dd="http://odrl.net/1.1/ODRL-DD">a7b226f223a7b22757365724964223a2232313532333738222c226d65726368616e74223a2269726f6b6f222c2273657373696f6e4964223a2265794a68624763694f694a49557a49314e694973496e523563434936496b705856434a392e65794a6c654841694f6a45324d546b784d4455794d7a5173496d6c68644349364d5459784d7a6b794d54497a4e43776961584e7a496a6f6961584a76613239306469356a623230694c434a7164476b694f694a68543168686156525354575a5a54557030513056364d6b3077634856735448644c647a4e6c6356425465694973496e4e6a6233426c496a6f69625739696157786c4969776963335669496a6f794d5455794d7a633466512e2d574e335a554d4a58666f592d446977384e316e716c5865526b756e3976712d4f49557973665564384251227d2c226964223a7b2274223a2261222c22614964223a2269726f6b6f74763a636f6e74656e743a3135343733227d7d</o-dd:uid>
</o-ex:context>
<o-ex:agreement>
<o-ex:asset o-ex:id="Audio-Video Key 71956047ebfe4ced9d7c297c26daa9d7">
<o-ex:context>
<o-dd:uid xmlns:o-dd="http://odrl.net/1.1/ODRL-DD">irokotv:content:15473</o-dd:uid>
</o-ex:context>
<ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
<xenc:EncryptedKey xmlns:xenc="http://www.w3.org/2001/04/xmlenc#">
<xenc:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#kw-aes128"></xenc:EncryptionMethod>
<ds:KeyInfo>
<ds:RetrievalMethod URI="#K_MAC_and_K_REK0"></ds:RetrievalMethod>
</ds:KeyInfo>
<xenc:CipherData>
<xenc:CipherValue>bcUa8iKZzPKucfcfUwJFf1+Ha9qOTh+k</xenc:CipherValue>
</xenc:CipherData>
</xenc:EncryptedKey>
</ds:KeyInfo>
</o-ex:asset>
<o-ex:permission>
<o-dd:play xmlns:o-dd="http://odrl.net/1.1/ODRL-DD">
<o-ex:constraint>
<o-dd:datetime>
<o-dd:end>2021-03-25T18:46:16Z</o-dd:end>
</o-dd:datetime>
<o-dd:interval>P30D</o-dd:interval>
<oma-dd:system xmlns:oma-dd="http://www.openmobilealliance.com/oma-dd">
<o-ex:context>
<o-dd:uid>urn:oma:drms:org-cmla:std-def-analog-outputs</o-dd:uid>
</o-ex:context>
<o-ex:context>
<o-dd:uid>urn:oma:drms:org-cmla:dtcp-ip</o-dd:uid>
</o-ex:context>
<o-ex:context>
<o-dd:uid>urn:oma:drms:org-cmla:hdcp</o-dd:uid>
</o-ex:context>
</oma-dd:system>
</o-ex:constraint>
</o-dd:play>
</o-ex:permission>
</o-ex:agreement>
</rights>
<timeStamp>2021-02-23T18:46:15Z</timeStamp>
<encKey Id="K_MAC_and_K_REK0">
<xenc:EncryptionMethod xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" Algorithm="http://www.rsasecurity.com/rsalabs/pkcs/schemas/pkcs-1#rsaes-kem-kdf2-kw-aes128"></xenc:EncryptionMethod>
<ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
<roap:X509SPKIHash algorithm="http://www.w3.org/2000/09/xmldsig#sha1">
<hash>jgQbmMVpFoZpu7X9CElrymPvO5U=</hash>
</roap:X509SPKIHash>
</ds:KeyInfo>
<xenc:CipherData xmlns:xenc="http://www.w3.org/2001/04/xmlenc#">
<xenc:CipherValue>TNz5JLn7BXfL+DMC7nZD9vM5Jo70tZrbAcZC4a1d6QuKnOITwNOS+A/oEaiqofJFqDajzv9c1klw8HIW4gw5167RHF7krXD14OtbJQdP7eA0Xi8TwQtrxATVd7G0QQBcvUfDrqRmgmgW8fhaTv6NQsHYPkQsv8yswhKKaboa6MQ4agTBTswc94y7OFEFweI1EFBZGAnmvs8jRilx6U4t6bOFFh9Q25NGMHmv15EuzKHvhjUbLaVG1sdvwkA4IVAXsrTPmxhhCRgHtnG7q7SRtF2WpB5tAOHtP1bXaqktfWXrI8QLm7etsJ0V0bQkzyfY6F9PTmUtR8CJueKa07TnOEmSBKf/y6qguZQm2yC5qQLwWTpNxA7rm4qO72xw1mnYn4zaRrAsYdA=</xenc:CipherValue>
</xenc:CipherData>
</encKey>
</roap:ro>
<mac>
<ds:SignedInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
<ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"></ds:CanonicalizationMethod>
<ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#hmac-sha1"></ds:SignatureMethod>
<ds:Reference URI="#a7b226f223a7b22757365724964223a2232313532333738222c226d65726368616e74223a2269726f6b6f222c2273657373696f6e4964223a2265794a68624763694f694a49557a49314e694973496e523563434936496b705856434a392e65794a6c654841694f6a45324d546b784d4455794d7a5173496d6c68644349364d5459784d7a6b794d54497a4e43776961584e7a496a6f6961584a76613239306469356a623230694c434a7164476b694f694a68543168686156525354575a5a54557030513056364d6b3077634856735448644c647a4e6c6356425465694973496e4e6a6233426c496a6f69625739696157786c4969776963335669496a6f794d5455794d7a633466512e2d574e335a554d4a58666f592d446977384e316e716c5865526b756e3976712d4f49557973665564384251227d2c226964223a7b2274223a2261222c22614964223a2269726f6b6f74763a636f6e74656e743a3135343733227d7d">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"></ds:Transform>
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"></ds:DigestMethod>
<ds:DigestValue>6eq2dQs3WK/LddLVkgij2t3kX+I=</ds:DigestValue>
</ds:Reference>
</ds:SignedInfo>
<ds:SignatureValue xmlns:ds="http://www.w3.org/2000/09/xmldsig#">ckMnemCWwJaoi+aqgwln9/TWIuE=</ds:SignatureValue>
<ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
<ds:RetrievalMethod URI="#K_MAC_and_K_REK0"></ds:RetrievalMethod>
</ds:KeyInfo>
</mac>
</roap:protectedRO>
</storedRightsObjects>
```
Is it possible to decrypt both audio and video into a playable non-encrypted file? From information am getting online I believe with the provided above xml i can get the CEK, if not what's missing?
| How to Decrypt an Encrypted MPEG CENC OMA DCF with Bento4 sdk or FFmpeg | https://api.github.com/repos/axiomatic-systems/Bento4/issues/581/comments | 1 | 2021-02-24T15:37:39Z | 2021-03-26T19:40:19Z | https://github.com/axiomatic-systems/Bento4/issues/581 | 815,593,376 | 581 |
[
"axiomatic-systems",
"Bento4"
] | Is there such a feature?
Also, I cant see progress even though I have --show-progress parameter.
Am I doing sth wrong?
I have a simple bat file with such line:
`mp4decrypt.exe --show-progress --key 1:12345456789 video.mp4 decrypted_video.mp4` | delete file after decryption and no progress dispaly | https://api.github.com/repos/axiomatic-systems/Bento4/issues/580/comments | 0 | 2021-02-20T17:20:54Z | 2021-02-20T17:20:54Z | https://github.com/axiomatic-systems/Bento4/issues/580 | 812,665,947 | 580 |
[
"axiomatic-systems",
"Bento4"
] | Hi team,
I am trying to play **mpd** files packaged with **mp4dash** in Roku Devices but its returning error in each time that **"no valid bitrate"**. Its happening for both DRM and Non-DRM case. Here I am sharing my packaging sample. Could you please let me know if I am missing anything.
**DRM** (I tried to play with a playready license)
mp4dash --encryption-key=85103338500873418126725887739470:11803214573775119659785952397166 --use-segment-list --marlin --widevine --widevine-header=https://xxxx.com --playready --playready-header=https://xxxx.com Big_Buck_Bunny_Short_Film-1590568447755_480.mf4 Big_Buck_Bunny_Short_Film-1590568447755_360.mf4 Big_Buck_Bunny_Short_Film-1590568447755_240.mf4 Big_Buck_Bunny_Short_Film-1590568447755_144.mf4
DRM Sample URL: https://stagingstudio.s3.amazonaws.com/encoding-test/video-packaging/feb0820210247/stream.mpd
Key used: 85103338500873418126725887739470:11803214573775119659785952397166
**Non-DRM**
mp4dash Big_Buck_Bunny_Short_Film-1590568447755_480.mf4 Big_Buck_Bunny_Short_Film-1590568447755_360.mf4 Big_Buck_Bunny_Short_Film-1590568447755_240.mf4 Big_Buck_Bunny_Short_Film-1590568447755_144.mf4
Non-DRM sample URL: https://pallycon-wm-bucket-1.s3-us-west-2.amazonaws.com/encoding-test/video-drm/21_feb_15/stream.mpd
**Exact Error Message**
------ Running dev 'Video Example' main ------
player state-----------------buffering
errorcode----------------- 0
errorMsg-----------------
errorStr-----------------
player state-----------------error
errorcode------------------5
errorMsg-----------------no valid bitrates
errorStr-----------------buffer:search:demux:Errors seen on all bitrates:extra:lasterror:970:retry:1
player state-----------------finished
errorcode------------------5
errorMsg-----------------no valid bitrates
errorStr-----------------buffer:search:demux:Errors seen on all bitrates:extra:lasterror:970:retry:1
Appreciate your help here.
Thank You | Roku devices unable to play mpd packaged with Bento4 | https://api.github.com/repos/axiomatic-systems/Bento4/issues/579/comments | 0 | 2021-02-15T10:13:53Z | 2021-02-15T10:13:53Z | https://github.com/axiomatic-systems/Bento4/issues/579 | 808,394,728 | 579 |
[
"axiomatic-systems",
"Bento4"
] | Good day,
I try to encrypt and decrypt a segment file (MP4 fragment) which has been generated by FFmpeg. Bento4 seems to provide multiple ways to do this, but all of them either fail with relatively unspecific error messages or end up just copying the file.
Input file(s)
===
I use a 25-fps file with one audio track and one video track (I tried multiple different ones). I encode the file using FFmpeg like this:
ffmpeg -i input.mp4 -acodec aac -vcodec h264_nvenc -b:v 2500k -g 5 -rc cbr_ld_hq -hls_segment_type fmp4 -hls_time 2 -hls_segment_filename stream-%%18d.m4s -hls_fmp4_init_filename init.mp4 -hls_playlist_type vod -t 10 index.m3u8
This generates a playlist (index.m3u8), an initialization segment (init.mp4) and five segments (stream-000000000000000000.m4s to stream-000000000000000004.m4s). For testing, I only use the initialization segment (init.mp4) and the first segment (stream-000000000000000000.m4s). They are placed in a folder called orig. I uploaded them as [segment.zip](https://github.com/axiomatic-systems/Bento4/files/5943732/segment.zip) here for reproducibility.
Encryption attempts
===
I tried to encrypt the first segment using the three different ways offered by Bento4 - mp4-hls, mp4-dash as well as mp4encrypt directly.
mp4-hls
---
.\Bento4-SDK-1-6-0-637.x86_64-microsoft-win32\utils\mp4-hls.py --exec-dir=.\Bento4-SDK-1-6-0-637.x86_64-microsoft-win32\bin --encryption-key=aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb -o enc\ orig\stream-000000000000000000.m4s
This call fails with the following output:
```
Parsing media file orig\stream-000000000000000000.m4s
ERROR: 'tracks'
```
It seems that mp4-hls does not support fragmented MP4 files (that's reasonable since there is no parameter to pass the initialization segment). A more specific error message would, however, be nice.
mp4-dash
---
.\Bento4-SDK-1-6-0-637.x86_64-microsoft-win32\utils\mp4-dash.py --exec-dir=.\Bento4-SDK-1-6-0-637.x86_64-microsoft-win32\bin --encryption-key=aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb --encryption-cenc-scheme=cbcs --init-segment=orig\init.mp4 --hls -o enc\ orig\stream-000000000000000000.m4s
This call fails and prints "ERROR: 'tracks'". As this was not very descriptive, I investigated it in a debugger and found that mp4info seems to be unable to find any tracks. I do not understand why. However, a more detailed error message would, again, be nice.
mp4encrypt
---
I tried encryption with two different methods:
.\Bento4-SDK-1-6-0-637.x86_64-microsoft-win32\bin\mp4encrypt.exe --method MPEG-CENC --key 1:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa:bbbbbbbbbbbbbbbb --key 2:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa:bbbbbbbbbbbbbbbb --fragments-info orig\init.mp4 orig\stream-000000000000000000.m4s enc\stream-000000000000000000.m4s
.\Bento4-SDK-1-6-0-637.x86_64-microsoft-win32\bin\mp4encrypt.exe --method MPEG-CBCS --key 1:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb --key 2:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb --fragments-info orig\init.mp4 orig\stream-000000000000000000.m4s enc\stream-000000000000000000.m4s
Both calls seem to generate an encrypted fragment named stream-000000000000000000.m4s in the folder enc, but I cannot get them decrypted (see below).
Decryption attempts
===
I tried to decrypt the encrypted segment (that I generated with mp4encrypt) in two different ways - with mp4decrypt and with a specifically designed playlist to be used with FFplay.
mp4decrypt
---
.\Bento4-SDK-1-6-0-637.x86_64-microsoft-win32\bin\mp4decrypt.exe --key 1:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa --key 2:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa --fragments-info orig\init.mp4 enc\stream-000000000000000000.m4s dec\stream-000000000000000000.m4s
This call seems to succeed, but the output segment is bit-identical to the input file. mp4decrypt seems to just copy the file and there is no error message.
FFplay
---
To play back the encrypted segment (forcing decryption in the process), I copy the initialization segment (init.mp4) and the encrypted segment into a new folder, add a key.bin file with 16 bytes of "aa" (hex) and design a playlist (index.m3u8) file like the following:
```
#EXTM3U
#EXT-X-VERSION:7
#EXT-X-TARGETDURATION:2
#EXT-X-MEDIA-SEQUENCE:0
#EXT-X-PLAYLIST-TYPE:VOD
#EXT-X-MAP:URI="init.mp4"
#EXT-X-KEY:METHOD=AES-128,URI="key.bin",IV=0xBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB
#EXTINF:2.000000,
stream-000000000000000000.m4s
#EXT-X-ENDLIST
```
*Note: I adjust the IV depending on the method, see above*.
Attempting to play back the playlist with
ffplay -allowed_extensions ALL .\index.m3u8
results in FFplay not recognizing the file properly:
Could not find codec parameters for stream 0 (Video: h264 (avc1 / 0x31637661), none, 1920x1080): unspecified pixel format
Question
===
How can I use Bento4 to encrypt and decrypt an FFmpeg-generated fMP4 segment? Decryption can be done by either Bento4 or FFplay. I explained my attempts above - if I have made a mistake somewhere, please let me know and maybe use it as input for some more detailed error messages, where applicable. Thank you. | Encryption and decryption failure on FFmpeg-generated fMP4 segments | https://api.github.com/repos/axiomatic-systems/Bento4/issues/578/comments | 6 | 2021-02-08T12:33:05Z | 2021-03-31T06:53:31Z | https://github.com/axiomatic-systems/Bento4/issues/578 | 803,522,090 | 578 |
[
"axiomatic-systems",
"Bento4"
] | M4a file converted to AAC, unable to play. (Audio:88.2kHz, 2 channels, AAC LC SBR PS(Version4) (Implicit) (HE-AACv2)) | https://api.github.com/repos/axiomatic-systems/Bento4/issues/577/comments | 1 | 2021-02-07T12:38:22Z | 2021-02-14T04:00:20Z | https://github.com/axiomatic-systems/Bento4/issues/577 | 802,942,946 | 577 | |
[
"axiomatic-systems",
"Bento4"
] | Hi!
When creating hls playlist from video, duration of last segment in variant playlist calculated incorrectly. When last segment is one sample only, this cause to create playlists with zero duration chunks `#EXTINF:0.000000,` which cause `-16240` error on ios 14.2+ devices while trying download content.
Here command to reproduce issue:
```(sh)
wget https://storage.yandexcloud.net/github-public/video_sdr_avc_1280x534_2400_4000_720p.mp4
mp42hls --hls-version 7 --segment-duration 4 --verbose --segment-filename-template %d.ts --segment-url-template %d.ts --index-filename video_sdr_avc_720p.m3u8 --iframe-index-filename video_sdr_avc_720-iframes.m3u8 video_sdr_avc_1280x534_2400_4000_720p.mp4
```
Result playlist contains zero duration segment:
```(sh)
tail video_sdr_avc_720p.m3u8
57.ts
#EXTINF:4.000000,
58.ts
#EXTINF:4.000000,
59.ts
#EXTINF:4.000000,
60.ts
#EXTINF:0.000000,
61.ts
#EXT-X-ENDLIST
``` | Incorrect last segment duration calculation in mp42hls | https://api.github.com/repos/axiomatic-systems/Bento4/issues/575/comments | 1 | 2021-01-24T12:19:41Z | 2021-02-09T11:21:46Z | https://github.com/axiomatic-systems/Bento4/issues/575 | 792,783,933 | 575 |
[
"axiomatic-systems",
"Bento4"
] | I want to have three different encryption keys for my mpeg-dash content. One for HD. One for SD and one for Audio. I read about filters in the mp4dash documentation but I didn't see a way to distinguish HD vs. SD. Anyone have an example of how to do this? Thanks. | How to do multiple encryption keys based on HD or SD or audio? | https://api.github.com/repos/axiomatic-systems/Bento4/issues/574/comments | 0 | 2021-01-20T17:18:58Z | 2021-01-20T17:18:58Z | https://github.com/axiomatic-systems/Bento4/issues/574 | 790,170,597 | 574 |
[
"axiomatic-systems",
"Bento4"
] | HI,
Is it possible to create an HLS TS package encrypted with the PLAYREADY-ENVELOPE format?
I have tried to create a package with pre-encrypted playready mp4's, but it fails with 'codec not supported'
thanks
Steve | Encrypt HLS TS Package with Playready Envelope | https://api.github.com/repos/axiomatic-systems/Bento4/issues/573/comments | 0 | 2021-01-19T08:40:42Z | 2021-01-19T08:40:42Z | https://github.com/axiomatic-systems/Bento4/issues/573 | 788,822,433 | 573 |
[
"axiomatic-systems",
"Bento4"
] | Hi @barbibulle
**Command:**
`mp4dash -v -d -f --encryption-key='@skm:https://api.service.expressplay.com/keystore/keys?customerAuthenticator=xxxxxxxxxxxxxxxx#mode=get&kid=0B68C2F889C6A8B6F9A9E99A7B9C53F7&kek=209e1a91e1e897c657214914ddb2a38d&iv=b982e75b2b6a0f5964380501b758bd00' --encryption-cenc-scheme=cbcs --marlin --marlin-add-pssh --playready --playready-add-pssh --playready-header=LA_URL:https://pr-gen.service.expressplay.com --widevine --widevine-header=provider:intertrust#content_id:2a --use-segment-template-number-padding --use-segment-timeline --hls --fairplay-key-uri=skd://expressplay_token /test/abc_1080p_frag.mp4 /test/abc_720p_frag.mp4 /test/abc_480p_frag.mp4 /test/abc_360p_frag.mp4`
When unwrapping key fetched from ExpressPlay KeyStore, latest version (**_Version 2.0.0 r637_**) of Bento4 is giving issue
```
Response: {"kid":"0B68C2F889C6A8B6F9A9E99A7B9C53F7","kekId":"#1.1a8f0d766d1f678864a2d8b40d1c85a0","ek":"0A2F01C445CF9BC185E26E3627A41014B4DA3B2283706D76","lastUpdate":"2021-01-14T07:34:30Z"}
Traceback (most recent call last):
File "/home/hari/Downloads/Bento4-1-6-0-637/utils/mp4-dash.py", line 2142, in <module>
main()
File "/home/hari/Downloads/Bento4-1-6-0-637/utils/mp4-dash.py", line 1927, in main
ResolveEncryptionKeys(options)
File "/home/hari/Downloads/Bento4-1-6-0-637/utils/mp4-dash.py", line 1443, in ResolveEncryptionKeys
options.key_infos.append(KeySpecToKeyInfo(options, key_spec))
File "/home/hari/Downloads/Bento4-1-6-0-637/utils/mp4-dash.py", line 1404, in KeySpecToKeyInfo
kid_hex, key_hex = GetEncryptionKey(options, key_spec[1:])
File "/home/hari/Downloads/Bento4-1-6-0-637/utils/mp4utils.py", line 749, in GetEncryptionKey
return skm.ResolveKey(options, spec[4:])
File "/home/hari/Downloads/Bento4-1-6-0-637/utils/skm.py", line 195, in ResolveKey
received_key = UnwrapKey(response_json['ek'], skm_kek)
File "/home/hari/Downloads/Bento4-1-6-0-637/utils/skm.py", line 96, in UnwrapKey
B = decipher.decrypt(A[0:7] + bytes([A[7]^((n*j)+i+1)])) + R[i:i+1]
File "/home/hari/Downloads/Bento4-1-6-0-637/utils/aes.py", line 289, in decrypt
raise ValueError('wrong block length, expected ' + str(self.block_size) + ' got ' + str(len(ciphertext)))
ValueError: wrong block length, expected 16 got 8
Process finished with exit code 1
```
Can you please look into this
| Issue while Unwrapping Key fetched from KeyStore | https://api.github.com/repos/axiomatic-systems/Bento4/issues/572/comments | 0 | 2021-01-14T08:05:48Z | 2021-01-14T08:10:07Z | https://github.com/axiomatic-systems/Bento4/issues/572 | 785,774,993 | 572 |
[
"axiomatic-systems",
"Bento4"
] | I have a file which was encrypted in CENC I believe, and i'm trying to decrypt it for over few months now using mp4decrypt from the bento4 mp4decrypt tools but trust me I just don't know-how. This is the output of mp4info --verbose
```
| Decrypt CENC encoded file with Bento4 mp4decrypt fail | https://api.github.com/repos/axiomatic-systems/Bento4/issues/571/comments | 1 | 2021-01-11T12:33:09Z | 2021-07-13T17:52:46Z | https://github.com/axiomatic-systems/Bento4/issues/571 | 783,333,893 | 571 |
[
"axiomatic-systems",
"Bento4"
] | I am trying to download and decode this video. I have the right key for this.
https://vodnowusoawsdash.secure.footprint.net/proxy11012/manifest/tvnow/3901103-2/0.ism/.mpd
Key: 875f6cb415d8b567131d78c3faa99273 (KID=25a7a66dbccf5e6418e1d26aaa29c6bc)
Unfortunately, I have not had any success with it so far.
I have taken these steps, but the end result is an unplayable video file.
Step 1: Download
ffmpeg -i https://vodnowusoawsdash.secure.footprint.net/proxy11012/manifest/tvnow/3901103-2/0.ism/.mpd -acodec copy -vcodec copy video_encrypted.mp4
Step 2: Decrypt
mp4decrypt --key 25a7a66dbccf5e6418e1d26aaa29c6bc:875f6cb415d8b567131d78c3faa99273 video_encrypted.mp4 video_decrypted.mp4
What am I doing wrong?
Or do I have to decode the segments individually and only then can I assemble them into a video with FFmpeg?
| mp4decrypt wont decrypt this video | https://api.github.com/repos/axiomatic-systems/Bento4/issues/570/comments | 2 | 2021-01-06T12:09:06Z | 2021-02-14T04:05:47Z | https://github.com/axiomatic-systems/Bento4/issues/570 | 780,507,221 | 570 |
[
"axiomatic-systems",
"Bento4"
] | I'm trying to decrypt audio and it's not working. Video worked smoothly but the audio isn't somehow.
Used the video key + the KID key. Any idea? | Audio decryption problem | https://api.github.com/repos/axiomatic-systems/Bento4/issues/569/comments | 3 | 2020-12-17T20:42:27Z | 2021-02-14T04:04:55Z | https://github.com/axiomatic-systems/Bento4/issues/569 | 770,353,652 | 569 |
[
"axiomatic-systems",
"Bento4"
] | hey hi there , I tried to search for issues regarding this but couldn't find any which answers my question .
How can we decrypt a mpd file using mp4decrypt ?
File : https://m-storagellnw-j2apps.s.llnwi.net/content/d69be8417b474f3f95f0e13caf0af19b/1/dash/h264_baseline.mpd
Adaptation 0 - Key : 0d06bdb08b4d598d58f3d574cdf34b4a
KID : 1361be6048ca591fb6408bee9111dd90
Adaptation 1 - Key : 43a9d1b793a450134f039e8238cbcd78
KID : faaceec648d2564095e8c9e368eee7e6
It would be very helpful if you'd give a syntax for manifest files.
Thank you | Unable to Decrypt MPD - DASH using mp4decrypt | https://api.github.com/repos/axiomatic-systems/Bento4/issues/568/comments | 0 | 2020-12-17T18:34:11Z | 2020-12-26T18:54:18Z | https://github.com/axiomatic-systems/Bento4/issues/568 | 770,275,473 | 568 |
[
"axiomatic-systems",
"Bento4"
] | Is it possible to decrypt an mpegts hls if I have the key and iv for the encrypted stream? (The stream uses fairplay DRM).
Or if you know about a different soft doing this, it's appreciated...
Thank you | Can bento decrypt SAMPLE-AES encrypted mpegts? | https://api.github.com/repos/axiomatic-systems/Bento4/issues/567/comments | 1 | 2020-12-16T07:57:49Z | 2021-08-16T13:44:46Z | https://github.com/axiomatic-systems/Bento4/issues/567 | 768,558,402 | 567 |
[
"axiomatic-systems",
"Bento4"
] | When you decrypt a mp4 video using mp4decrypt with a wrong key, it outputs an apparently decrypted video.
No error messages. The video is of course still locked, you only see green pixels.
If you compare the output of mp4info of this wrong file with the right output one (right key), they are exactly the same.
Is there a way to distinguish a payable video from a one that is not, apart of course from trying them on a player? | mp4 CENC video decrypted but still unreproduceable | https://api.github.com/repos/axiomatic-systems/Bento4/issues/565/comments | 0 | 2020-12-05T15:18:52Z | 2020-12-05T15:18:52Z | https://github.com/axiomatic-systems/Bento4/issues/565 | 757,702,132 | 565 |
[
"axiomatic-systems",
"Bento4"
] | Track Id of Video and Audio are getting changed after segmenting mp4 files.
**Source Video Info:**
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '..\banjara.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf57.2.100
Duration: 00:05:33.53, start: 0.000000, bitrate: 2717 kb/s
**Stream #0:0(und)**: Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 2585 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc (default)
Metadata:
handler_name : VideoHandler
**Stream #0:1(und)**: Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 125 kb/s (default)
Metadata:
handler_name : SoundHandler
**after executing mp4hls.bat on the source**
Input #0, mpegts, from 'C:\bento4\1-6-0-637\bin\segment-39.ts':
Duration: 00:00:07.63, start: 302.202722, bitrate: 2764 kb/s
Program 1
**Stream #0:0[0x101]**: Audio: aac (LC) ([15][0][0][0] / 0x000F), 44100 Hz, stereo, fltp, 119 kb/s
**Stream #0:1[0x102]**: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
Can we have an option of not to change the order of track ids? | Video & Audio Track IDs getting changed | https://api.github.com/repos/axiomatic-systems/Bento4/issues/564/comments | 0 | 2020-11-26T08:26:10Z | 2020-11-26T08:26:10Z | https://github.com/axiomatic-systems/Bento4/issues/564 | 751,388,220 | 564 |
[
"axiomatic-systems",
"Bento4"
] | Is it possible to support `CLOSED-CAPTIONS` as another media type.
The HLS spec [seems to support it](https://developer.apple.com/documentation/http_live_streaming/example_playlists_for_http_live_streaming/adding_alternate_media_to_a_playlist) with appletv and other macos devices auto selecting captions over subtitles if they exist for the same language. | In-band Closed Captions support | https://api.github.com/repos/axiomatic-systems/Bento4/issues/563/comments | 0 | 2020-11-24T01:59:11Z | 2020-11-24T01:59:11Z | https://github.com/axiomatic-systems/Bento4/issues/563 | 749,276,364 | 563 |
[
"axiomatic-systems",
"Bento4"
] | Is there a limit to how many audio tracks I can package at a time? I've been able to do about 75 without a problem, but going to around 83 is causing me grief. | Limit to Audio tracks | https://api.github.com/repos/axiomatic-systems/Bento4/issues/562/comments | 0 | 2020-11-06T00:49:36Z | 2020-11-12T22:43:41Z | https://github.com/axiomatic-systems/Bento4/issues/562 | 737,370,766 | 562 |
[
"axiomatic-systems",
"Bento4"
] | I apologize for filing this under "issues" but I can't figure out how to create a AP4_FileByteStream object from a UTF-16 filename (Japanese characters) that cannot be converted to a ANSI string (on Windows)?
I've tried using GetShortPathName (and FindFirstFile) but there's no short name set for the files I'm looking at.
Any help would be appreciated.
Thanks,
-Gianluca.
| How can I open a AP4_FileByteStream from a UTF-16 Japanese file name? | https://api.github.com/repos/axiomatic-systems/Bento4/issues/561/comments | 5 | 2020-11-01T21:51:54Z | 2021-07-22T04:58:38Z | https://github.com/axiomatic-systems/Bento4/issues/561 | 734,070,555 | 561 |
[
"axiomatic-systems",
"Bento4"
] | {
"link": "https://mediacloudfront.zee5.com/drm1/elemental/dash/ON_AIR/DOMESTIC/ZEE_BANGLA/October2020/29102020/Seamless/Ki_Kore_Bolbo_Tomay_Ep183_Seamless_29102020_bn_d4f06505f615a10ab86b9054811fb9df/manifest.mpd",
"lic": "http://devtv.pro/movies/zee5/lic.php?key=f6b23130-c941-4153-a862-2479620a2666&id=0-1-manual_7t616ur1e0n0"
} | How can i download this video from this details? | https://api.github.com/repos/axiomatic-systems/Bento4/issues/560/comments | 1 | 2020-10-29T10:56:33Z | 2023-12-11T00:18:03Z | https://github.com/axiomatic-systems/Bento4/issues/560 | 732,211,066 | 560 |
[
"axiomatic-systems",
"Bento4"
] | Is there a way to have a separate audio manifest for HLS for an MP4 that has only a single audio stream. There currently exists a way in DASH, but I cannot find an option for this is HLS. | Separate audio manifest for HLS with single audio track | https://api.github.com/repos/axiomatic-systems/Bento4/issues/559/comments | 0 | 2020-10-28T11:40:27Z | 2020-10-28T11:40:27Z | https://github.com/axiomatic-systems/Bento4/issues/559 | 731,365,070 | 559 |
[
"axiomatic-systems",
"Bento4"
] | I have a set of video and audio files which both uses the same kid:key to decrypt them. Video decrypts fine but audio randomly fails to decrypt.
Video and audio fragments have 2 seconds duration.
When I merge both video and audio I get a final .mp4 file which has no sound parts(where audio decryption failed).
`[aac @ 0x55555775a9c0] Multiple frames in a packet.
[aac @ 0x55555775a9c0] channel element 2.1 is not allocated`
`[aac @ 0x5555576bb100] Multiple frames in a packet.
[aac @ 0x5555576bb100] Sample rate index in program config element does not match the sample rate index configured by the container.
[aac @ 0x5555576bb100] Inconsistent channel configuration.
[aac @ 0x5555576bb100] get_buffer() failed`
`[aac @ 0x55555762d8c0] channel element 3.14 is not allocated`
`[aac @ 0x55555760aa40] Multiple frames in a packet.
[aac @ 0x55555760aa40] channel element 2.1 is not allocated`
This is some of the results I see when combining video and audio using ffmpeg. Is this some sort of fix mp4decrypt needs or is it bad audio fragments I am trying to decrypt?
I ran mp4info on good audio fragments and bad audio fragments and they both show same results, nothing different its just the decryption part that fails. | Error decrypting audio files | https://api.github.com/repos/axiomatic-systems/Bento4/issues/558/comments | 1 | 2020-10-15T18:53:51Z | 2020-10-17T21:39:32Z | https://github.com/axiomatic-systems/Bento4/issues/558 | 722,584,949 | 558 |
[
"axiomatic-systems",
"Bento4"
] | Hello all,
Is there a way not to include PR and WV signaling into the HLS manifest when one packages the content using all 3 DRMs for example? I want the HLS manifest to only have FP related signaling and DASH manifest to have WV and PR related signaling. Instead,
For example, this command
```
python ./1.6.0.637/utils/mp4-dash.py -f ^
--widevine-header=#CAESEKHfoSxxxdjKgJIRA== ^
--playready-header=LA_URL:https://someurl.com#DS_ID:VlR7Ixxx06Laqs2jw== ^
--playready-version=4.3 ^
--widevine ^
--playready ^
--encryption-key=a1dfa1286xxxc47b0763:6828xxx45536b43:a1dfa1286a3xxxb0763 ^
--fairplay-key-uri=skd://a1dfa1xxb0763 ^
--encryption-cenc-scheme=cbcs ^
--hls ^
--no-split --profiles on-demand ^
--output-dir=./output ^
./input/sintel_trailer-480p.frag.mp4 ./input/sintel_trailer-720p.frag.mp4
```
Generates
```
#EXTM3U
# Created with Bento4 mp4-dash.py, VERSION=2.0.0-637
#
#EXT-X-VERSION:6
#EXT-X-PLAYLIST-TYPE:VOD
#EXT-X-INDEPENDENT-SEGMENTS
#EXT-X-TARGETDURATION:28
#EXT-X-MEDIA-SEQUENCE:0
#EXT-X-MAP:URI="media-video-avc1-1.mp4",BYTERANGE="1678@0"
#EXT-X-KEY:METHOD=SAMPLE-AES,URI="skd://a1dfa12xxx7b0763",KEYFORMAT="com.apple.streamingkeydelivery",KEYFORMATVERSIONS="1"
#EXT-X-KEY:METHOD=SAMPLE-AES,URI="data:text/plain;base64,AAAAV3Bzc2gAAxxx7B2MqAkhE",KEYFORMAT="urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed",KEYID=0xa1dfa128xxxb0763,KEYFORMATVERSIONS="1"
#EXT-X-KEY:METHOD=SAMPLE-AES,URI="data:text/plain;charset=UTF-16;base64,2AIAAAEAxxxxEEARABFAFIAPgA=",KEYFORMAT="com.microsoft.playready",KEYFORMATVERSIONS="1"
#EXTINF:27.416666666666668,
#EXT-X-BYTERANGE:2256634@1734
media-video-avc1-1.mp4
#EXTINF:24.791666666666668,
#EXT-X-BYTERANGE:1275265@2258368
media-video-avc1-1.mp4
#EXT-X-ENDLIST
```
Thank you. | Is there a way not to include PR and WV signaling into HLS manifests? | https://api.github.com/repos/axiomatic-systems/Bento4/issues/557/comments | 1 | 2020-10-10T08:30:28Z | 2020-10-13T10:58:21Z | https://github.com/axiomatic-systems/Bento4/issues/557 | 718,567,671 | 557 |
[
"axiomatic-systems",
"Bento4"
] | I am using ffmpeg to generate dash fragments.
These I would like to encrypt, and I tried with mp4encrypt.. there is no error, but the output file produced is not as expected.
* The command I use is like this:
mp4encrypt --method MPEG-CENC --key 1:a0a1a2a3a4a5a6a7a8a9aaabacadaeaf:0123456789abcdef --property 1:KID:121a0fca0f1b475b8910297fa8e0a07e chunk-stream0-00088.m4s test-enc.mp4
* output test-enc.mp4 is 9 bytes in size.
ls -l test-enc.mp4
-rw-rw-r-- 1 haris haris 96 Oct 9 12:52 test-enc.mp4
* mp4info chunk-stream0-00088.m4s
No movie found in the file
* mp4info test-enc.mp4
File:
major brand: mp42
minor version: 0
compatible brand: iso6
fast start: yes
No movie found in the file
* mp4dump test-enc.mp4
[ftyp] size=8+12
major_brand = mp42
minor_version = 0
compatible_brand = iso6
[styp] size=8+16
[sidx] size=12+40, version=1
reference_ID = 1
timescale = 12800
earliest_presentation_time = 10690560
first_offset = 0
Perhaps this should this be done with some other command?
Thank you in advance for any advice | Encrypt ffmpeg generated fragments possible? | https://api.github.com/repos/axiomatic-systems/Bento4/issues/556/comments | 2 | 2020-10-09T11:08:23Z | 2020-10-24T16:12:52Z | https://github.com/axiomatic-systems/Bento4/issues/556 | 718,059,297 | 556 |
[
"axiomatic-systems",
"Bento4"
] | Hi @barbibulle ,
I have some feedback on using mp4dash to create HLS multi-DRM with cbcs encryption:
When using a command such as the following:
`mp4dash --encryption-key=43215678123412341234123412341234:12341234123412341234123412341234 --encryption-cenc-scheme=cbcs --hls --fairplay-key-uri=skd://43215678123412341234123412341234 --widevine --widevine-header=provider:intertrust#content_id:2a ToS-360_keyint_24_frag_4s_wk.mp4 ToS-540_keyint_24_frag_4s_wk.mp4 ToS-720_keyint_24_frag_4s_wk.mp4`
Although it creates Widevine and FairPlay signaling, it can only playback properly with Widevine, and not FairPlay
1. FairPlay documentation state that
FPS does not support the IVs listed in EXT-X-KEY tags,
FPS does not support using IVs as media sequence numbers
All segments must be encrypted with the same IV
The license server must deliver the IV in the CKC response, hence has to know the IV upfront
The option I found to set the IV is to use --encryption-key option such as the following undocumented way:
`--encryption-key=<KID>:<KEY>:<IV>`
Could you add that in mp4dash documentation maybe ?
Also, since that is the only supported option with FPS, it would be good to restrict to only this encryption-key setting when hls and FairPlay are set. What do you think ?
2. As for Widevine signaling, an example of such signaling is
`AAAASXBzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAACkIARIQQyFWeBI0EjQSNBI0EjQSNBoKaW50ZXJ0cnVzdCIBKkjzxombBg==` which decodes into
{
"algorithm":"AESCTR",
"keyIds":["QyFWeBI0EjQSNBI0EjQSNA=="],
"provider":"intertrust",
"contentId":"Kg==",
"protectionScheme":1667392371
}
per Widevine UAT Diagnostic console https://integration.uat.widevine.com/diagnostics
In order to be consistent, I think it will be better to have the Widevine PSSH to signal CBCS instead of CTR encryption | CMAF HLS cbcs | https://api.github.com/repos/axiomatic-systems/Bento4/issues/555/comments | 2 | 2020-09-30T16:44:32Z | 2020-10-03T15:14:45Z | https://github.com/axiomatic-systems/Bento4/issues/555 | 712,107,252 | 555 |
[
"axiomatic-systems",
"Bento4"
] | I'm packaging together multiple audio and subtitles tracks to 1 video track using mp4dash. I get this error every time I run it:
`Traceback (most recent call last):
File "/usr/local/Cellar/bento4/1.6.0-632_1/libexec/Python/wrappers/../utils/mp4-dash.py", line 1983, in <module>
main()
File "/usr/local/Cellar/bento4/1.6.0-632_1/libexec/Python/wrappers/../utils/mp4-dash.py", line 1774, in main
PrepareSources(options, media_sources)
File "/usr/local/Cellar/bento4/1.6.0-632_1/libexec/Python/wrappers/../utils/mp4-dash.py", line 1343, in PrepareSources
for track in media_source.mp4_info['tracks']:
KeyError: 'tracks'`
Here is my command:
`'mp4dash --exec-dir=/video/sample/bento4 --debug --verbose --hls [type=video]/video/Test-Directory/encodes/prog/h265/prog-video1-encode-f.mp4 --encryption-cenc-scheme=cbcs --encryption-key=KID:Key --hls-key-url=http://org.mydomain/ [type=audio,+language=por]/video/Test-Directory/encodes/prog/h265/U__PO_2C-f.mp4 [type=audio,+language=ita]/video/Test-Directory/encodes/prog/h265/U__IT_2C-f.mp4 [type=audio,+language=eng]/video/Test-Directory/encodes/prog/h265/U__EN_2C-f.mp4 [type=audio,+language=spa]/video/Test-Directory/encodes/prog/h265/U__SP_2C-f.mp4 --output-dir=tmp --use-segment-timeline --subtitle [+format=webvtt,+language=it]/video/Test-Directory/encodes/prog/subtitles/ita/U__IT__C.vtt [+format=webvtt,+language=pt-BR]/video/Test-Directory/encodes/prog/subtitles/por/U__PO__C.vtt [+format=webvtt,+language=es]/video/Test-Directory/encodes/prog/subtitles/spa/U__SP__C.vtt [+format=webvtt,+language=en]/video/Test-Directory/encodes/prog/subtitles/eng/U__EN__C.vtt -fo /video/Test-Directory/encodes/prog/encrypt'` | Multiple External Audio and Subtitle Tracks | https://api.github.com/repos/axiomatic-systems/Bento4/issues/554/comments | 0 | 2020-09-16T20:48:24Z | 2020-09-16T21:54:56Z | https://github.com/axiomatic-systems/Bento4/issues/554 | 703,064,307 | 554 |
[
"axiomatic-systems",
"Bento4"
] | I have a manifest.mpd file. How do I take the information from this file, and create a single .mp4 file for decryption to use with Bento4? | How to convert a manifest.mpd file to a .mp4 file for decryption? | https://api.github.com/repos/axiomatic-systems/Bento4/issues/553/comments | 1 | 2020-09-12T23:57:08Z | 2021-07-02T07:09:36Z | https://github.com/axiomatic-systems/Bento4/issues/553 | 700,422,567 | 553 |
[
"axiomatic-systems",
"Bento4"
] | For educational purposes, I am hoping someone would be able to explain to me how to decrypt a manifest.mpd to a playable mp4 file using Bento4? Any help would be appreciated.
[manifest.zip](https://github.com/axiomatic-systems/Bento4/files/5213061/manifest.zip)
| How to decrypt an manifest.mpd to a playable mp4 file? | https://api.github.com/repos/axiomatic-systems/Bento4/issues/552/comments | 0 | 2020-09-12T17:49:05Z | 2020-09-12T17:52:06Z | https://github.com/axiomatic-systems/Bento4/issues/552 | 700,318,489 | 552 |
[
"axiomatic-systems",
"Bento4"
] | Hi,
with dash live profile (or not specifying a profile) I'm getting following debug log in chrome(media-internals):
> ISO-BMFF container metadata for video frame indicates that the frame is not a keyframe, but the video frame contents indicate the opposite
The stream plays without any problems. Is this log expected?
With the on-demand profile, I'm not getting this log.
Im forcing keyframes with ffmpeg every 3 seconds and my mp4 fragment duration is 6 seconds.
```
-force_key_frames expr:gte(t,n_forced*3)
``` | mp4dash - ISO-BMFF container metadata for video frame indicates that the frame is not a keyframe, but the video frame contents indicate the opposite | https://api.github.com/repos/axiomatic-systems/Bento4/issues/551/comments | 0 | 2020-09-01T16:23:18Z | 2020-09-02T14:13:08Z | https://github.com/axiomatic-systems/Bento4/issues/551 | 690,281,009 | 551 |
[
"axiomatic-systems",
"Bento4"
] | Hello,
so i am trying to cut segments to have a certain start_time and duration by constructing a video of a certain length then forcing ffmpeg to add an Iframe every **duration * fps** frames ` ffmpeg -i video.ts -force_key_frames "expr:gte(t,n_forced*GOP)" video.mp4` ,
The problem is that mp42ts doesn't always respect the ` --segment` option and just adds between 0.5-1.5 seconds,
So i suspected Iframes and i used ffmpeg to make every frame of the video an Iframe which resulted in a huge video but i can live with it and i checked that iframes truly exist `ffprobe -select_streams v -show_frames -show_entries frame=pict_type -of csv video.mp4 | grep -n I | cut -d ':' -f 1`,
The problem with that particular case is that mp42ts decides to ignore the decimal part and just treats as an integer so if i put an option `--segment 8.4` , it cuts to 8.0
I tried it with many videos.
The reason why i insist on using Bento4 actually is its extreme speed,
thx. | mp42ts ignoring --segment duration and segmenting by one second increments | https://api.github.com/repos/axiomatic-systems/Bento4/issues/550/comments | 0 | 2020-08-31T06:12:45Z | 2020-08-31T06:12:45Z | https://github.com/axiomatic-systems/Bento4/issues/550 | 688,934,446 | 550 |
[
"axiomatic-systems",
"Bento4"
] | In CommonEnctryption.cpp, for all GetSubSampleMap functions, if a NAL size is smaller than 6, the function will skip that NAL at the end of sample_data. Therefore, the subsample map for this sample is incomplete. In consequence, that NAL is filled with random data.
According to the specs of AVC and HEVC, the size of NAL can possibly be 5 (end of stream or end of sequence), so it should not be skipped. Please correct me if I'm wrong. | Encryption bug: Ignore NAL unit when NAL size smaller than 6. | https://api.github.com/repos/axiomatic-systems/Bento4/issues/549/comments | 0 | 2020-08-24T09:17:57Z | 2020-08-24T09:17:57Z | https://github.com/axiomatic-systems/Bento4/issues/549 | 684,509,470 | 549 |
[
"axiomatic-systems",
"Bento4"
] | It looks like there are a number of apps that will return a status code of 0, even if an error was encountered during processing. We noticed this when running Mp4Decrypt, which returns 0 even if the `result` variable assigned on [line 256/258 of Mp4Decrypt.cpp](https://github.com/axiomatic-systems/Bento4/blob/master/Source/C%2B%2B/Apps/Mp4Decrypt/Mp4Decrypt.cpp#L256) is non-zero.
I would open a pull request for this, but it seems to be the case across a number of apps, and I haven't looked at the others in great detail, so am unsure if there is a particular reason for this, but the list appears to be:
- FixAacSampleDescription.cpp: Line 124
- Mp42Avc.cpp: Lines 296, 303
- Mp42Hevc.cpp: Lines 363, 370
- Mp42Hls.cpp: Line 2100
- Mp42Ts.cpp: Line 641
- Mp4Compact.cpp: Line 222
- Mp4DcfPackager.cpp: Line 165
- Mp4Decrypt.cpp: Line 261
- Mp4Dump.cpp: Line 91
- Mp4Encrypt.cpp: Line 657
- Mp4IframeIndex.cpp: Lines 152, 243, 249
- Mp4Tag.cpp: Line 544
All line numbers as of commit 174b948be29b69009b235ae0aa92884d05bcea49. For reference, I produced this list by searching for `fprintf\(stderr, "ERROR[^;]*\);\s*}` in the repo (there are also two test files that matche). | Applications returning status code 0 despite error | https://api.github.com/repos/axiomatic-systems/Bento4/issues/548/comments | 0 | 2020-08-23T20:33:22Z | 2020-08-23T20:33:22Z | https://github.com/axiomatic-systems/Bento4/issues/548 | 684,251,806 | 548 |
[
"axiomatic-systems",
"Bento4"
] | ## System info
Ubuntu x86_64, clang 6.0, mp42aac (latest master [174b94](https://github.com/axiomatic-systems/Bento4/commit/174b948be29b69009b235ae0aa92884d05bcea49))
## Configure
cmake .. -DCMAKE_CXX_FLAGS="-fsanitize=address -g" -DCMAKE_C_FLAGS="-fsanitize=address -g" -DCMAKE_EXE_LINKER_FLAGS="-fsanitize=address" -DCMAKE_MODULE_LINKER_FLAGS="-fsanitize=address"
## Command line
./build/mp4info --show-layout --show-samples --show-sample-data @@
## Output
```
ile:
major brand: isom
minor version: 200
compatible brand: i{om
compatible brand: iso2
compatible brand: mp41
fast start: no
Movie:
duration: 47 ms
time scale: 1000
fragments: no
Found 1 Tracks
Track 1:
flags: 3 ENABLED IN-MOVIE
id: 2
type: Audio
duration: 47 ms
language: und
media:
sample count: 0
timescale: 44100
duration: 2048 (media timescale units)
duration: 46 (ms)
bitrate (computed): 0.000 Kbps
WARNING: atom serialized to fewer bytes than declared size
WARNING: atom serialized to fewer bytes than declared size
WARNING: atom serialized to fewer bytes than declared size
WARNING: atom serialized to fewer bytes than declared size
mp4info: /home/seviezhou/Bento4/Source/C++/Core/Ap4Atom.cpp:763: virtual AP4_Result AP4_AtomListWriter::Action(AP4_Atom *) const: Assertion `bytes_written <= atom->GetSize()' failed.
Aborted (core dumped)
```
## POC
[assert-fail-Action-Ap4Atom-763.zip](https://github.com/axiomatic-systems/Bento4/files/5111811/assert-fail-Action-Ap4Atom-763.zip)
| Assertion failed in Ap4Atom.cpp:763 | https://api.github.com/repos/axiomatic-systems/Bento4/issues/547/comments | 0 | 2020-08-22T01:52:24Z | 2020-08-22T01:52:24Z | https://github.com/axiomatic-systems/Bento4/issues/547 | 683,904,720 | 547 |
[
"axiomatic-systems",
"Bento4"
] | ## System info
Ubuntu x86_64, clang 6.0, mp42aac (latest master [174b94](https://github.com/axiomatic-systems/Bento4/commit/174b948be29b69009b235ae0aa92884d05bcea49))
## Configure
cmake .. -DCMAKE_CXX_FLAGS="-fsanitize=address -g" -DCMAKE_C_FLAGS="-fsanitize=address -g" -DCMAKE_EXE_LINKER_FLAGS="-fsanitize=address" -DCMAKE_MODULE_LINKER_FLAGS="-fsanitize=address"
## Command line
./build/mp4info --show-layout --show-samples --show-sample-data @@
## AddressSanitizer output
```
AddressSanitizer:DEADLYSIGNAL
=================================================================
==45338==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x00000063ec46 bp 0x0c0e000000f7 sp 0x7ffee9a5ce40 T0)
==45338==The signal is caused by a READ memory access.
==45338==Hint: address points to the zero page.
#0 0x63ec45 in AP4_StszAtom::WriteFields(AP4_ByteStream&) /home/seviezhou/Bento4/Source/C++/Core/Ap4StszAtom.cpp:122:39
#1 0x54a666 in AP4_Atom::Write(AP4_ByteStream&) /home/seviezhou/Bento4/Source/C++/Core/Ap4Atom.cpp:229:14
#2 0x54b09a in AP4_Atom::Clone() /home/seviezhou/Bento4/Source/C++/Core/Ap4Atom.cpp:316:9
#3 0x60a91b in AP4_SampleDescription::AP4_SampleDescription(AP4_SampleDescription::Type, unsigned int, AP4_AtomParent*) /home/seviezhou/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:132:41
#4 0x61a658 in AP4_GenericAudioSampleDescription::AP4_GenericAudioSampleDescription(unsigned int, unsigned int, unsigned short, unsigned short, AP4_AtomParent*) /home/seviezhou/Bento4/Source/C++/Core/Ap4SampleDescription.h:248:9
#5 0x61a658 in AP4_AudioSampleEntry::ToSampleDescription() /home/seviezhou/Bento4/Source/C++/Core/Ap4SampleEntry.cpp:625
#6 0x63a26e in AP4_StsdAtom::GetSampleDescription(unsigned int) /home/seviezhou/Bento4/Source/C++/Core/Ap4StsdAtom.cpp:181:53
#7 0x69f05e in AP4_AtomSampleTable::GetSampleDescription(unsigned int) /home/seviezhou/Bento4/Source/C++/Core/Ap4AtomSampleTable.cpp:207:37
#8 0x65a9cd in AP4_Track::GetSampleDescription(unsigned int) /home/seviezhou/Bento4/Source/C++/Core/Ap4Track.cpp:445:43
#9 0x51e2f4 in ShowTrackInfo_Text(AP4_Movie&, AP4_Track&, AP4_ByteStream&, bool, bool, bool, bool) /home/seviezhou/Bento4/Source/C++/Apps/Mp4Info/Mp4Info.cpp:1239:52
#10 0x51e2f4 in ShowTrackInfo(AP4_Movie&, AP4_Track&, AP4_ByteStream&, bool, bool, bool, bool) /home/seviezhou/Bento4/Source/C++/Apps/Mp4Info/Mp4Info.cpp:1363
#11 0x51d596 in ShowTracks(AP4_Movie&, AP4_List<AP4_Track>&, AP4_ByteStream&, bool, bool, bool, bool) /home/seviezhou/Bento4/Source/C++/Apps/Mp4Info/Mp4Info.cpp:1473:9
#12 0x519316 in main /home/seviezhou/Bento4/Source/C++/Apps/Mp4Info/Mp4Info.cpp:1755:13
#13 0x7f79bbdb4b96 in __libc_start_main /build/glibc-OTsEL5/glibc-2.27/csu/../csu/libc-start.c:310
#14 0x41b059 in _start (/home/seviezhou/bento4/build/mp4info+0x41b059)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /home/seviezhou/Bento4/Source/C++/Core/Ap4StszAtom.cpp:122:39 in AP4_StszAtom::WriteFields(AP4_ByteStream&)
==45338==ABORTING
```
## POC
[SEGV-WriteFields-Ap4StszAtom-122.zip](https://github.com/axiomatic-systems/Bento4/files/5111807/SEGV-WriteFields-Ap4StszAtom-122.zip)
| A Segmentation fault in Ap4StszAtom.cpp:122:39 | https://api.github.com/repos/axiomatic-systems/Bento4/issues/546/comments | 0 | 2020-08-22T01:49:29Z | 2020-08-22T01:49:29Z | https://github.com/axiomatic-systems/Bento4/issues/546 | 683,904,333 | 546 |
[
"axiomatic-systems",
"Bento4"
] | ## System info
Ubuntu x86_64, clang 6.0, mp42aac (latest master [174b94](https://github.com/axiomatic-systems/Bento4/commit/174b948be29b69009b235ae0aa92884d05bcea49))
## Configure
cmake .. -DCMAKE_CXX_FLAGS="-fsanitize=address -g" -DCMAKE_C_FLAGS="-fsanitize=address -g" -DCMAKE_EXE_LINKER_FLAGS="-fsanitize=address" -DCMAKE_MODULE_LINKER_FLAGS="-fsanitize=address"
## Command line
./build/mp4info --show-layout --show-samples --show-sample-data @@
## AddressSanitizer output
```
=================================================================
==47025==ERROR: AddressSanitizer: global-buffer-overflow on address 0x0000016a3561 at pc 0x0000004d9dd2 bp 0x7ffec88c7210 sp 0x7ffec88c69c0
READ of size 243 at 0x0000016a3561 thread T0
#0 0x4d9dd1 in __asan_memcpy (/home/seviezhou/bento4/build/mp4info+0x4d9dd1)
#1 0x56de75 in AP4_MemoryByteStream::WritePartial(void const*, unsigned int, unsigned int&) /home/seviezhou/Bento4/Source/C++/Core/Ap4ByteStream.cpp:783:5
#2 0x5681db in AP4_ByteStream::Write(void const*, unsigned int) /home/seviezhou/Bento4/Source/C++/Core/Ap4ByteStream.cpp:77:29
#3 0x58f7f3 in AP4_HdlrAtom::WriteFields(AP4_ByteStream&) /home/seviezhou/Bento4/Source/C++/Core/Ap4HdlrAtom.cpp:141:29
#4 0x54a666 in AP4_Atom::Write(AP4_ByteStream&) /home/seviezhou/Bento4/Source/C++/Core/Ap4Atom.cpp:229:14
#5 0x54b09a in AP4_Atom::Clone() /home/seviezhou/Bento4/Source/C++/Core/Ap4Atom.cpp:316:9
#6 0x60a91b in AP4_SampleDescription::AP4_SampleDescription(AP4_SampleDescription::Type, unsigned int, AP4_AtomParent*) /home/seviezhou/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:132:41
#7 0x61a658 in AP4_GenericAudioSampleDescription::AP4_GenericAudioSampleDescription(unsigned int, unsigned int, unsigned short, unsigned short, AP4_AtomParent*) /home/seviezhou/Bento4/Source/C++/Core/Ap4SampleDescription.h:248:9
#8 0x61a658 in AP4_AudioSampleEntry::ToSampleDescription() /home/seviezhou/Bento4/Source/C++/Core/Ap4SampleEntry.cpp:625
#9 0x63a26e in AP4_StsdAtom::GetSampleDescription(unsigned int) /home/seviezhou/Bento4/Source/C++/Core/Ap4StsdAtom.cpp:181:53
#10 0x69f05e in AP4_AtomSampleTable::GetSampleDescription(unsigned int) /home/seviezhou/Bento4/Source/C++/Core/Ap4AtomSampleTable.cpp:207:37
#11 0x65a9cd in AP4_Track::GetSampleDescription(unsigned int) /home/seviezhou/Bento4/Source/C++/Core/Ap4Track.cpp:445:43
#12 0x51e2f4 in ShowTrackInfo_Text(AP4_Movie&, AP4_Track&, AP4_ByteStream&, bool, bool, bool, bool) /home/seviezhou/Bento4/Source/C++/Apps/Mp4Info/Mp4Info.cpp:1239:52
#13 0x51e2f4 in ShowTrackInfo(AP4_Movie&, AP4_Track&, AP4_ByteStream&, bool, bool, bool, bool) /home/seviezhou/Bento4/Source/C++/Apps/Mp4Info/Mp4Info.cpp:1363
#14 0x51d596 in ShowTracks(AP4_Movie&, AP4_List<AP4_Track>&, AP4_ByteStream&, bool, bool, bool, bool) /home/seviezhou/Bento4/Source/C++/Apps/Mp4Info/Mp4Info.cpp:1473:9
#15 0x519316 in main /home/seviezhou/Bento4/Source/C++/Apps/Mp4Info/Mp4Info.cpp:1755:13
#16 0x7eff145b3b96 in __libc_start_main /build/glibc-OTsEL5/glibc-2.27/csu/../csu/libc-start.c:310
#17 0x41b059 in _start (/home/seviezhou/bento4/build/mp4info+0x41b059)
0x0000016a3561 is located 63 bytes to the left of global variable 'AP4_GlobalOptions::g_Entries' defined in '/home/seviezhou/Bento4/Source/C++/Core/Ap4Utils.cpp:37:56' (0x16a35a0) of size 8
0x0000016a3561 is located 0 bytes to the right of global variable 'AP4_String::EmptyString' defined in '/home/seviezhou/Bento4/Source/C++/Core/Ap4String.cpp:39:18' (0x16a3560) of size 1
'AP4_String::EmptyString' is ascii string ''
SUMMARY: AddressSanitizer: global-buffer-overflow (/home/seviezhou/bento4/build/mp4info+0x4d9dd1) in __asan_memcpy
Shadow bytes around the buggy address:
0x0000802cc650: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0000802cc660: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0000802cc670: 00 00 00 00 00 00 00 00 00 00 00 00 04 f9 f9 f9
0x0000802cc680: f9 f9 f9 f9 00 00 00 00 00 00 00 00 00 f9 f9 f9
0x0000802cc690: f9 f9 f9 f9 00 00 00 00 00 00 00 00 00 f9 f9 f9
=>0x0000802cc6a0: f9 f9 f9 f9 00 00 f9 f9 f9 f9 f9 f9[01]f9 f9 f9
0x0000802cc6b0: f9 f9 f9 f9 00 f9 f9 f9 f9 f9 f9 f9 00 00 00 f9
0x0000802cc6c0: f9 f9 f9 f9 00 00 00 00 00 00 00 00 00 00 00 00
0x0000802cc6d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0000802cc6e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0000802cc6f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Shadow byte legend (one shadow byte represents 8 application bytes):
Addressable: 00
Partially addressable: 01 02 03 04 05 06 07
Heap left redzone: fa
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack after return: f5
Stack use after scope: f8
Global redzone: f9
Global init order: f6
Poisoned by user: f7
Container overflow: fc
Array cookie: ac
Intra object redzone: bb
ASan internal: fe
Left alloca redzone: ca
Right alloca redzone: cb
==47025==ABORTING
```
## POC
[global-overflow-WritePartial-Ap4ByteStream-783.zip](https://github.com/axiomatic-systems/Bento4/files/5111802/global-overflow-WritePartial-Ap4ByteStream-783.zip)
| A global-buffer-overflow in Ap4ByteStream.cpp:783:5 | https://api.github.com/repos/axiomatic-systems/Bento4/issues/545/comments | 1 | 2020-08-22T01:47:18Z | 2022-05-01T20:31:46Z | https://github.com/axiomatic-systems/Bento4/issues/545 | 683,904,034 | 545 |
[
"axiomatic-systems",
"Bento4"
] | ## System info
Ubuntu x86_64, clang 6.0, mp4info (latest master [174b94](https://github.com/axiomatic-systems/Bento4/commit/174b948be29b69009b235ae0aa92884d05bcea49))
## Configure
cmake .. -DCMAKE_CXX_FLAGS="-fsanitize=address -g" -DCMAKE_C_FLAGS="-fsanitize=address -g" -DCMAKE_EXE_LINKER_FLAGS="-fsanitize=address" -DCMAKE_MODULE_LINKER_FLAGS="-fsanitize=address"
## Command line
./build/mp4info --show-layout --show-samples --show-sample-data @@
## AddressSanitizer output
```
AddressSanitizer:DEADLYSIGNAL
=================================================================
==54608==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x0000005cf545 bp 0x7ffd79ad31f0 sp 0x7ffd79ad3130 T0)
==54608==The signal is caused by a READ memory access.
==54608==Hint: address points to the zero page.
#0 0x5cf544 in AP4_DescriptorListWriter::Action(AP4_Descriptor*) const /home/seviezhou/Bento4/Source/C++/Core/Ap4Descriptor.h:108:28
#1 0x6d94a7 in AP4_List<AP4_Descriptor>::Apply(AP4_List<AP4_Descriptor>::Item::Operator const&) const /home/seviezhou/Bento4/Source/C++/Core/Ap4List.h:353:12
#2 0x6d94a7 in AP4_EsDescriptor::WriteFields(AP4_ByteStream&) /home/seviezhou/Bento4/Source/C++/Core/Ap4EsDescriptor.cpp:163
#3 0x6db54a in AP4_Expandable::Write(AP4_ByteStream&) /home/seviezhou/Bento4/Source/C++/Core/Ap4Expandable.cpp:109:5
#4 0x589243 in AP4_EsdsAtom::WriteFields(AP4_ByteStream&) /home/seviezhou/Bento4/Source/C++/Core/Ap4EsdsAtom.cpp:99:48
#5 0x54a666 in AP4_Atom::Write(AP4_ByteStream&) /home/seviezhou/Bento4/Source/C++/Core/Ap4Atom.cpp:229:14
#6 0x54b09a in AP4_Atom::Clone() /home/seviezhou/Bento4/Source/C++/Core/Ap4Atom.cpp:316:9
#7 0x60a91b in AP4_SampleDescription::AP4_SampleDescription(AP4_SampleDescription::Type, unsigned int, AP4_AtomParent*) /home/seviezhou/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:132:41
#8 0x61a658 in AP4_GenericAudioSampleDescription::AP4_GenericAudioSampleDescription(unsigned int, unsigned int, unsigned short, unsigned short, AP4_AtomParent*) /home/seviezhou/Bento4/Source/C++/Core/Ap4SampleDescription.h:248:9
#9 0x61a658 in AP4_AudioSampleEntry::ToSampleDescription() /home/seviezhou/Bento4/Source/C++/Core/Ap4SampleEntry.cpp:625
#10 0x63a26e in AP4_StsdAtom::GetSampleDescription(unsigned int) /home/seviezhou/Bento4/Source/C++/Core/Ap4StsdAtom.cpp:181:53
#11 0x69f05e in AP4_AtomSampleTable::GetSampleDescription(unsigned int) /home/seviezhou/Bento4/Source/C++/Core/Ap4AtomSampleTable.cpp:207:37
#12 0x65a9cd in AP4_Track::GetSampleDescription(unsigned int) /home/seviezhou/Bento4/Source/C++/Core/Ap4Track.cpp:445:43
#13 0x51e2f4 in ShowTrackInfo_Text(AP4_Movie&, AP4_Track&, AP4_ByteStream&, bool, bool, bool, bool) /home/seviezhou/Bento4/Source/C++/Apps/Mp4Info/Mp4Info.cpp:1239:52
#14 0x51e2f4 in ShowTrackInfo(AP4_Movie&, AP4_Track&, AP4_ByteStream&, bool, bool, bool, bool) /home/seviezhou/Bento4/Source/C++/Apps/Mp4Info/Mp4Info.cpp:1363
#15 0x51d596 in ShowTracks(AP4_Movie&, AP4_List<AP4_Track>&, AP4_ByteStream&, bool, bool, bool, bool) /home/seviezhou/Bento4/Source/C++/Apps/Mp4Info/Mp4Info.cpp:1473:9
#16 0x519316 in main /home/seviezhou/Bento4/Source/C++/Apps/Mp4Info/Mp4Info.cpp:1755:13
#17 0x7fc95ff11b96 in __libc_start_main /build/glibc-OTsEL5/glibc-2.27/csu/../csu/libc-start.c:310
#18 0x41b059 in _start (/home/seviezhou/bento4/build/mp4info+0x41b059)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /home/seviezhou/Bento4/Source/C++/Core/Ap4Descriptor.h:108:28 in AP4_DescriptorListWriter::Action(AP4_Descriptor*) const
==54608==ABORTING
```
## POC
[SEGV-Action-Ap4Descriptor-108.zip](https://github.com/axiomatic-systems/Bento4/files/5097469/SEGV-Action-Ap4Descriptor-108.zip)
| A Segmentation fault in Ap4Descriptor.h:108:28 | https://api.github.com/repos/axiomatic-systems/Bento4/issues/544/comments | 0 | 2020-08-19T15:33:10Z | 2020-08-19T15:33:10Z | https://github.com/axiomatic-systems/Bento4/issues/544 | 681,939,579 | 544 |
[
"axiomatic-systems",
"Bento4"
] | Hello all,
I have noticed that if you run the following command
```
python.exe ./mp4-hls.py -f ^
--... ^
--widevine ^
--fairplay ^
--output-dir=./output/hls-fp-wv ^
./input/sintel_trailer-480p.frag.mp4 ./input/sintel_trailer-720p.frag.mp4
```
To add FP and WV to the HLS output, the output is missing the WV signaling inside the iframe.m3u8 manifest
```
#EXTM3U
#EXT-X-VERSION:5
#EXT-X-PLAYLIST-TYPE:VOD
#EXT-X-I-FRAMES-ONLY
#EXT-X-INDEPENDENT-SEGMENTS
#EXT-X-TARGETDURATION:27
#EXT-X-MEDIA-SEQUENCE:0
#EXT-X-KEY:METHOD=SAMPLE-AES,URI="skd://0fda16c25ae198873dd948cdacc5b01c",KEYFORMAT="com.apple.streamingkeydelivery",KEYFORMATVERSIONS="1"
#EXTINF:27.416667,
#EXT-X-BYTERANGE:1128@376
segment-0.ts
#EXTINF:24.541667,
#EXT-X-BYTERANGE:16920@376
segment-1.ts
#EXT-X-ENDLIST
```
And the stream.m3u8 is missing the FP signaling
```
#EXTM3U
#EXT-X-VERSION:5
#EXT-X-PLAYLIST-TYPE:VOD
#EXT-X-INDEPENDENT-SEGMENTS
#EXT-X-TARGETDURATION:27
#EXT-X-MEDIA-SEQUENCE:0
#EXT-X-KEY:METHOD=SAMPLE-AES,URI="data:text/plain;base64,CAESEFrhmIc9xxxlIzazFsP2hbCAcKgJIRA==",KEYFORMAT="com.widevine",KEYFORMATVERSIONS="1",IV=0x5AE198873DD948CDACC5B0FDA16C201C
#EXTINF:27.416667,
segment-0.ts
#EXTINF:24.541667,
segment-1.ts
#EXT-X-ENDLIST
```
Tested with 1.6.0-637 version of Bento. | mp4hls ignoring DRM signaling | https://api.github.com/repos/axiomatic-systems/Bento4/issues/543/comments | 2 | 2020-08-14T13:48:01Z | 2020-08-17T12:29:43Z | https://github.com/axiomatic-systems/Bento4/issues/543 | 679,169,451 | 543 |
[
"axiomatic-systems",
"Bento4"
] | Good day, all!
I wonder if anyone tried playing back DASH + PR CBCS in Edge/IE? I tried a test content from MS Test Server (https://testweb.playready.microsoft.com/Content/Content4X - APPLESET-DASH-CBCS-bbb) in the dash.js (3.0.3) and it plays fine after getting a license in Edge Chromium and IE11. I have tried packaging my own content with the same keys and the playback fails.
```
python ./1.6.0.637/utils/mp4-dash.py -f ^
--playready-header=LA_URL:https://test.playready.microsoft.com/service/rightsmanager.asmx?cfg=(persist:false,ck:W31bfVt9W31bfVt9W31bfQ==,ckt:aescbc) ^
--playready-version=4.3 ^
--playready ^
--encryption-key=10000000100010001000100000000001:7d5b7d5b7d5b7d5b7d5b5b7d5b7d5b7d ^
--no-split --profiles on-demand ^
--output-dir=./output/dash-ms-cbcs ^
./input/sintel-480.frag.mp4 ./input/sintel-720.frag.mp4
```
The command that I have used is above. First four groups of data in the Content Key were reversed to be correctly represented in hex format. But, neither "7d5b7d5b7d5b7d5b7d5b5b7d5b7d5b7d", nor "5b7d5b7d5b7d5b7d5b7d5b7d5b7d5b7d" make the playback work, so it may be something different.
https://s3.us-east-1.amazonaws.com/test.vectors/roman/dash-ms/dash-ms-cbcs/index.html - 5b7d5b7d5b7d5b7d5b7d5b7d5b7d5b7d
https://s3.us-east-1.amazonaws.com/test.vectors/roman/dash-ms/dash-ms-cbcs-rev/index.html - 7d5b7d5b7d5b7d5b7d5b5b7d5b7d5b7d
https://s3.us-east-1.amazonaws.com/test.vectors/roman/dash-ms/index.html - link to the MS content.
Not sure if it's me using a wrong command or something else. Any advice is highly appreciated.
BR | PlayReady CBCS not playing back | https://api.github.com/repos/axiomatic-systems/Bento4/issues/542/comments | 6 | 2020-08-13T14:49:47Z | 2021-02-14T04:50:11Z | https://github.com/axiomatic-systems/Bento4/issues/542 | 678,498,825 | 542 |
[
"axiomatic-systems",
"Bento4"
] | > mp4hls is a tool that creates a multi-bitrate HLS master playlist from one or more MP4 files, including support for encryption and I-frame-only playlists. **This tool uses the mp42hls low level tool internally, _so all the options supported by that low level tool are also available_.**
This is not holding true here. A flag supported by `mp42hls` is not being respected by `mp4hls`.
Command:
```bash
$ mp4hls \
--hls-version 3 \
--encryption-key `openssl rand -hex 16` \
--encryption-iv-mode random \
--output-single-file \
--output-encryption-key \
--segment-duration 10 \
--segment-filename-template randomstrhere \
input.mp4
``` | mp4-hls.py: error: no such option: --segment-filename-template | https://api.github.com/repos/axiomatic-systems/Bento4/issues/541/comments | 3 | 2020-08-10T09:33:13Z | 2020-08-17T03:56:52Z | https://github.com/axiomatic-systems/Bento4/issues/541 | 675,999,528 | 541 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.