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"
] | A global-buffer-overflow has occurred when running ./mp4info
```
=================================================================
==10109==ERROR: AddressSanitizer: global-buffer-overflow on address 0x000000962cc1 at pc 0x7fb7f844e935 bp 0x7ffe06fca470 sp 0x7ffe06fc9c18
READ of size 28 at 0x000000962cc1 thread T0
#0 0x7fb7f844e934 in __asan_memcpy (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x8c934)
#1 0x56ff54 in memcpy /usr/include/x86_64-linux-gnu/bits/string3.h:53
#2 0x56ff54 in AP4_MemoryByteStream::WritePartial(void const*, unsigned int, unsigned int&) /home/swt_fuzz/Bento4/Source/C++/Core/Ap4ByteStream.cpp:789
#3 0x5739eb in AP4_ByteStream::Write(void const*, unsigned int) /home/swt_fuzz/Bento4/Source/C++/Core/Ap4ByteStream.cpp:78
#4 0x55bf16 in AP4_HdlrAtom::WriteFields(AP4_ByteStream&) /home/swt_fuzz/Bento4/Source/C++/Core/Ap4HdlrAtom.cpp:125
#5 0x587264 in AP4_Atom::Write(AP4_ByteStream&) /home/swt_fuzz/Bento4/Source/C++/Core/Ap4Atom.cpp:229
#6 0x587264 in AP4_Atom::Clone() /home/swt_fuzz/Bento4/Source/C++/Core/Ap4Atom.cpp:316
#7 0x54a772 in AP4_SampleDescription::AP4_SampleDescription(AP4_SampleDescription::Type, unsigned int, AP4_AtomParent*) /home/swt_fuzz/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:127
#8 0x54a772 in AP4_AvcSampleDescription::AP4_AvcSampleDescription(unsigned int, unsigned short, unsigned short, unsigned short, char const*, AP4_AtomParent*) /home/swt_fuzz/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:353
#9 0x699fa1 in AP4_AvcSampleEntry::ToSampleDescription() /home/swt_fuzz/Bento4/Source/C++/Core/Ap4SampleEntry.cpp:1028
#10 0x68659f in AP4_StsdAtom::GetSampleDescription(unsigned int) /home/swt_fuzz/Bento4/Source/C++/Core/Ap4StsdAtom.cpp:179
#11 0x456927 in ShowTrackInfo_Text /home/swt_fuzz/Bento4/Source/C++/Apps/Mp4Info/Mp4Info.cpp:1089
#12 0x457aaf in ShowTrackInfo /home/swt_fuzz/Bento4/Source/C++/Apps/Mp4Info/Mp4Info.cpp:1213
#13 0x457aaf in ShowTracks /home/swt_fuzz/Bento4/Source/C++/Apps/Mp4Info/Mp4Info.cpp:1323
#14 0x44030d in main /home/swt_fuzz/Bento4/Source/C++/Apps/Mp4Info/Mp4Info.cpp:1587
#15 0x7fb7f7a8082f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
#16 0x446508 in _start (/home/swt_fuzz/Bento4/cmakebuild/mp4info+0x446508)
0x000000962cc1 is located 0 bytes to the right of global variable 'EmptyString' defined in '/home/swt_fuzz/Bento4/Source/C++/Core/Ap4String.cpp:39:6' (0x962cc0) of size 1
'EmptyString' is ascii string ''
SUMMARY: AddressSanitizer: global-buffer-overflow ??:0 __asan_memcpy
Shadow bytes around the buggy address:
0x000080124540: 00 00 00 00 00 00 00 00 00 f9 f9 f9 f9 f9 f9 f9
0x000080124550: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x000080124560: 00 00 00 00 00 00 00 00 00 f9 f9 f9 f9 f9 f9 f9
0x000080124570: 00 00 00 00 00 00 00 00 00 00 f9 f9 f9 f9 f9 f9
0x000080124580: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
=>0x000080124590: 00 00 00 00 00 00 00 00[01]f9 f9 f9 f9 f9 f9 f9
0x0000801245a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0000801245b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0000801245c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0000801245d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0000801245e0: 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
Heap right redzone: fb
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack partial redzone: f4
Stack after return: f5
Stack use after scope: f8
Global redzone: f9
Global init order: f6
Poisoned by user: f7
Container overflow: fc
Array cookie: ac
Intra object redzone: bb
ASan internal: fe
==10109==ABORTING
```
The testing program is mp4info.
And the input file has been put at:
https://github.com/fCorleone/fuzz_programs/blob/master/Bento4/test9.dms | A global-buffer-overflow has occurred when running mp4info | https://api.github.com/repos/axiomatic-systems/Bento4/issues/301/comments | 0 | 2018-07-23T06:39:42Z | 2018-08-30T19:23:42Z | https://github.com/axiomatic-systems/Bento4/issues/301 | 343,505,895 | 301 |
[
"axiomatic-systems",
"Bento4"
] | A SEGV signal occurred when running mp42hls.
```
ASAN:SIGSEGV
=================================================================
==10104==ERROR: AddressSanitizer: SEGV on unknown address 0x00000000000c (pc 0x0000005bce48 bp 0x0fffe6d6d980 sp 0x7fff36b6cbd0 T0)
#0 0x5bce47 in AP4_Mpeg2TsAudioSampleStream::WriteSample(AP4_Sample&, AP4_DataBuffer&, AP4_SampleDescription*, bool, AP4_ByteStream&) /home/swt_fuzz/Bento4/Source/C++/Core/Ap4Mpeg2Ts.cpp:410
#1 0x454caa in WriteSamples /home/swt_fuzz/Bento4/Source/C++/Apps/Mp42Hls/Mp42Hls.cpp:1240
#2 0x444d7f in main /home/swt_fuzz/Bento4/Source/C++/Apps/Mp42Hls/Mp42Hls.cpp:2088
#3 0x7f45920c082f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
#4 0x44cc58 in _start (/home/swt_fuzz/Bento4/cmakebuild/mp42hls+0x44cc58)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /home/swt_fuzz/Bento4/Source/C++/Core/Ap4Mpeg2Ts.cpp:410 AP4_Mpeg2TsAudioSampleStream::WriteSample(AP4_Sample&, AP4_DataBuffer&, AP4_SampleDescription*, bool, AP4_ByteStream&)
==10104==ABORTING
```
The testing program is mp42hls.
And the input file has been put at:
https://github.com/fCorleone/fuzz_programs/blob/master/Bento4/test8 | A SEGV signal occurred when running mp42hls | https://api.github.com/repos/axiomatic-systems/Bento4/issues/300/comments | 0 | 2018-07-23T06:29:12Z | 2018-08-30T19:23:42Z | https://github.com/axiomatic-systems/Bento4/issues/300 | 343,503,673 | 300 |
[
"axiomatic-systems",
"Bento4"
] | A heap-buffer-overflow has occurred when running mp42ts.
```
=================================================================
==10098==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x60200000ef71 at pc 0x0000004f0fdd bp 0x7ffee6c6ed10 sp 0x7ffee6c6ed00
READ of size 1 at 0x60200000ef71 thread T0
#0 0x4f0fdc in AP4_BytesToUInt16BE(unsigned char const*) /home/swt_fuzz/Bento4/Source/C++/Core/Ap4Utils.h:113
#1 0x4f0fdc in AP4_Stz2Atom::AP4_Stz2Atom(unsigned int, unsigned char, unsigned int, AP4_ByteStream&) /home/swt_fuzz/Bento4/Source/C++/Core/Ap4Stz2Atom.cpp:117
#2 0x4f1522 in AP4_Stz2Atom::Create(unsigned int, AP4_ByteStream&) /home/swt_fuzz/Bento4/Source/C++/Core/Ap4Stz2Atom.cpp:52
#3 0x4a72b1 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/swt_fuzz/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:447
#4 0x4ae5d7 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/swt_fuzz/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:220
#5 0x5830ab in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /home/swt_fuzz/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:194
#6 0x5830ab in AP4_ContainerAtom::AP4_ContainerAtom(unsigned int, unsigned long long, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/swt_fuzz/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:139
#7 0x583c5e in AP4_ContainerAtom::Create(unsigned int, unsigned long long, bool, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/swt_fuzz/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:88
#8 0x4a99ee in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/swt_fuzz/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:755
#9 0x4ae5d7 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/swt_fuzz/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:220
#10 0x49cabf in AP4_DrefAtom::AP4_DrefAtom(unsigned int, unsigned char, unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/swt_fuzz/Bento4/Source/C++/Core/Ap4DrefAtom.cpp:84
#11 0x49cfb4 in AP4_DrefAtom::Create(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/swt_fuzz/Bento4/Source/C++/Core/Ap4DrefAtom.cpp:50
#12 0x4aa3d2 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/swt_fuzz/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:533
#13 0x4ae5d7 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/swt_fuzz/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:220
#14 0x5830ab in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /home/swt_fuzz/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:194
#15 0x5830ab in AP4_ContainerAtom::AP4_ContainerAtom(unsigned int, unsigned long long, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/swt_fuzz/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:139
#16 0x583c5e in AP4_ContainerAtom::Create(unsigned int, unsigned long long, bool, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/swt_fuzz/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:88
#17 0x4a99ee in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/swt_fuzz/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:755
#18 0x4ae5d7 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/swt_fuzz/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:220
#19 0x5830ab in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /home/swt_fuzz/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:194
#20 0x5830ab in AP4_ContainerAtom::AP4_ContainerAtom(unsigned int, unsigned long long, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/swt_fuzz/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:139
#21 0x4604c2 in AP4_TrakAtom::AP4_TrakAtom(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/swt_fuzz/Bento4/Source/C++/Core/Ap4TrakAtom.cpp:165
#22 0x4a96db in AP4_TrakAtom::Create(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/swt_fuzz/Bento4/Source/C++/Core/Ap4TrakAtom.h:58
#23 0x4a96db in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/swt_fuzz/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:377
#24 0x4ae5d7 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/swt_fuzz/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:220
#25 0x5830ab in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /home/swt_fuzz/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:194
#26 0x5830ab in AP4_ContainerAtom::AP4_ContainerAtom(unsigned int, unsigned long long, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/swt_fuzz/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:139
#27 0x48bc2c in AP4_MoovAtom::AP4_MoovAtom(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/swt_fuzz/Bento4/Source/C++/Core/Ap4MoovAtom.cpp:80
#28 0x4a9fec in AP4_MoovAtom::Create(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/swt_fuzz/Bento4/Source/C++/Core/Ap4MoovAtom.h:56
#29 0x4a9fec in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/swt_fuzz/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:357
#30 0x4ad785 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/swt_fuzz/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:220
#31 0x4ad785 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, AP4_Atom*&) /home/swt_fuzz/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:150
#32 0x45a2af in AP4_File::ParseStream(AP4_ByteStream&, AP4_AtomFactory&, bool) /home/swt_fuzz/Bento4/Source/C++/Core/Ap4File.cpp:104
#33 0x45a2af in AP4_File::AP4_File(AP4_ByteStream&, bool) /home/swt_fuzz/Bento4/Source/C++/Core/Ap4File.cpp:78
#34 0x44086c in main /home/swt_fuzz/Bento4/Source/C++/Apps/Mp42Ts/Mp42Ts.cpp:499
#35 0x7eff3d68e82f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
#36 0x446f08 in _start (/home/swt_fuzz/Bento4/cmakebuild/mp42ts+0x446f08)
0x60200000ef71 is located 0 bytes to the right of 1-byte region [0x60200000ef70,0x60200000ef71)
allocated by thread T0 here:
#0 0x7eff3e0696b2 in operator new[](unsigned long) (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x996b2)
#1 0x4ef49c in AP4_Stz2Atom::AP4_Stz2Atom(unsigned int, unsigned char, unsigned int, AP4_ByteStream&) /home/swt_fuzz/Bento4/Source/C++/Core/Ap4Stz2Atom.cpp:92
#2 0x705ca9 (/home/swt_fuzz/Bento4/cmakebuild/mp42ts+0x705ca9)
SUMMARY: AddressSanitizer: heap-buffer-overflow /home/swt_fuzz/Bento4/Source/C++/Core/Ap4Utils.h:113 AP4_BytesToUInt16BE(unsigned char const*)
Shadow bytes around the buggy address:
0x0c047fff9d90: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff9da0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff9db0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff9dc0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff9dd0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
=>0x0c047fff9de0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa[01]fa
0x0c047fff9df0: fa fa 00 00 fa fa 00 00 fa fa 00 00 fa fa 00 00
0x0c047fff9e00: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff9e10: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff9e20: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff9e30: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
Shadow byte legend (one shadow byte represents 8 application bytes):
Addressable: 00
Partially addressable: 01 02 03 04 05 06 07
Heap left redzone: fa
Heap right redzone: fb
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack partial redzone: f4
Stack after return: f5
Stack use after scope: f8
Global redzone: f9
Global init order: f6
Poisoned by user: f7
Container overflow: fc
Array cookie: ac
Intra object redzone: bb
ASan internal: fe
==10098==ABORTING
```
The testing program is mp42ts.
And the input file has been put at:
https://github.com/fCorleone/fuzz_programs/blob/master/Bento4/test7.dms | A heap-buffer-overflow has occurred when running mp42ts. | https://api.github.com/repos/axiomatic-systems/Bento4/issues/299/comments | 0 | 2018-07-23T06:23:34Z | 2018-08-30T19:23:42Z | https://github.com/axiomatic-systems/Bento4/issues/299 | 343,502,484 | 299 |
[
"axiomatic-systems",
"Bento4"
] | A heap buffer flow has occurred when running mp4dump.
```
=================================================================
==19001==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x60300000ed2c at pc 0x00000059e426 bp 0x7fff8afcf260 sp 0x7fff8afcf250
READ of size 1 at 0x60300000ed2c thread T0
#0 0x59e425 in AP4_AvccAtom::Create(unsigned int, AP4_ByteStream&) /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4AvccAtom.cpp:88
#1 0x45a23c in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:477
#2 0x4563e9 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:220
#3 0x54e023 in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:194
#4 0x4825da in AP4_SampleEntry::Read(AP4_ByteStream&, AP4_AtomFactory&) /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4SampleEntry.cpp:115
#5 0x48853b in AP4_VisualSampleEntry::AP4_VisualSampleEntry(unsigned int, unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4SampleEntry.cpp:742
#6 0x48a646 in AP4_AvcSampleEntry::AP4_AvcSampleEntry(unsigned int, unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4SampleEntry.cpp:994
#7 0x457687 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:305
#8 0x4563e9 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:220
#9 0x5311ca in AP4_StsdAtom::AP4_StsdAtom(unsigned int, unsigned char, unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4StsdAtom.cpp:101
#10 0x5308c8 in AP4_StsdAtom::Create(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4StsdAtom.cpp:57
#11 0x4598f5 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:422
#12 0x4563e9 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:220
#13 0x54e023 in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:194
#14 0x54d776 in AP4_ContainerAtom::AP4_ContainerAtom(unsigned int, unsigned long long, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:139
#15 0x54d05b in AP4_ContainerAtom::Create(unsigned int, unsigned long long, bool, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:88
#16 0x45c603 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:755
#17 0x4563e9 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:220
#18 0x54e023 in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:194
#19 0x54d776 in AP4_ContainerAtom::AP4_ContainerAtom(unsigned int, unsigned long long, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:139
#20 0x54d05b in AP4_ContainerAtom::Create(unsigned int, unsigned long long, bool, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:88
#21 0x45c603 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:755
#22 0x4563e9 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:220
#23 0x54e023 in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:194
#24 0x54d776 in AP4_ContainerAtom::AP4_ContainerAtom(unsigned int, unsigned long long, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:139
#25 0x54d05b in AP4_ContainerAtom::Create(unsigned int, unsigned long long, bool, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:88
#26 0x45c603 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:755
#27 0x4563e9 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:220
#28 0x54e023 in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:194
#29 0x54d776 in AP4_ContainerAtom::AP4_ContainerAtom(unsigned int, unsigned long long, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:139
#30 0x4fc7ca in AP4_TrakAtom::AP4_TrakAtom(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4TrakAtom.cpp:165
#31 0x45e3ef in AP4_TrakAtom::Create(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4TrakAtom.h:58
#32 0x459238 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:377
#33 0x4563e9 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:220
#34 0x54e023 in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:194
#35 0x54d776 in AP4_ContainerAtom::AP4_ContainerAtom(unsigned int, unsigned long long, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:139
#36 0x510645 in AP4_MoovAtom::AP4_MoovAtom(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4MoovAtom.cpp:80
#37 0x45e31f in AP4_MoovAtom::Create(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4MoovAtom.h:56
#38 0x458ee4 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:357
#39 0x4563e9 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:220
#40 0x4557cb in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, AP4_Atom*&) /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:150
#41 0x452bb0 in main /home/mfc_fuzz/Bento4/Source/C++/Apps/Mp4Dump/Mp4Dump.cpp:342
#42 0x7f828459e82f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
#43 0x450938 in _start (/home/sandy/swt_fuzz/Bento4/cmakebuild/mp4dump+0x450938)
0x60300000ed2c is located 0 bytes to the right of 28-byte region [0x60300000ed10,0x60300000ed2c)
allocated by thread T0 here:
#0 0x7f8284f796b2 in operator new[](unsigned long) (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x996b2)
#1 0x52a4fe in AP4_DataBuffer::AP4_DataBuffer(unsigned int) /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4DataBuffer.cpp:55
#2 0x59e0ed in AP4_AvccAtom::Create(unsigned int, AP4_ByteStream&) /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4AvccAtom.cpp:69
#3 0x45a23c in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:477
#4 0x4563e9 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:220
#5 0x54e023 in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:194
#6 0x4825da in AP4_SampleEntry::Read(AP4_ByteStream&, AP4_AtomFactory&) /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4SampleEntry.cpp:115
#7 0x48853b in AP4_VisualSampleEntry::AP4_VisualSampleEntry(unsigned int, unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4SampleEntry.cpp:742
#8 0x48a646 in AP4_AvcSampleEntry::AP4_AvcSampleEntry(unsigned int, unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4SampleEntry.cpp:994
#9 0x457687 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:305
#10 0x4563e9 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:220
#11 0x5311ca in AP4_StsdAtom::AP4_StsdAtom(unsigned int, unsigned char, unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4StsdAtom.cpp:101
#12 0x5308c8 in AP4_StsdAtom::Create(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4StsdAtom.cpp:57
#13 0x4598f5 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:422
#14 0x4563e9 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:220
#15 0x54e023 in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:194
#16 0x54d776 in AP4_ContainerAtom::AP4_ContainerAtom(unsigned int, unsigned long long, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:139
#17 0x54d05b in AP4_ContainerAtom::Create(unsigned int, unsigned long long, bool, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:88
#18 0x45c603 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:755
#19 0x4563e9 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:220
#20 0x54e023 in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:194
#21 0x54d776 in AP4_ContainerAtom::AP4_ContainerAtom(unsigned int, unsigned long long, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:139
#22 0x54d05b in AP4_ContainerAtom::Create(unsigned int, unsigned long long, bool, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:88
#23 0x45c603 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:755
#24 0x4563e9 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:220
#25 0x54e023 in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:194
#26 0x54d776 in AP4_ContainerAtom::AP4_ContainerAtom(unsigned int, unsigned long long, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:139
#27 0x54d05b in AP4_ContainerAtom::Create(unsigned int, unsigned long long, bool, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:88
#28 0x45c603 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:755
#29 0x4563e9 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:220
SUMMARY: AddressSanitizer: heap-buffer-overflow /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4AvccAtom.cpp:88 AP4_AvccAtom::Create(unsigned int, AP4_ByteStream&)
Shadow bytes around the buggy address:
0x0c067fff9d50: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c067fff9d60: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c067fff9d70: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c067fff9d80: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c067fff9d90: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
=>0x0c067fff9da0: fa fa 00 00 00[04]fa fa 00 00 00 fa fa fa 00 00
0x0c067fff9db0: 00 fa fa fa 00 00 00 fa fa fa 00 00 00 fa fa fa
0x0c067fff9dc0: 00 00 00 fa fa fa 00 00 00 fa fa fa 00 00 00 fa
0x0c067fff9dd0: fa fa 00 00 00 04 fa fa 00 00 00 fa fa fa 00 00
0x0c067fff9de0: 00 fa fa fa 00 00 00 fa fa fa 00 00 00 00 fa fa
0x0c067fff9df0: 00 00 00 fa fa fa 00 00 00 fa fa fa 00 00 00 fa
Shadow byte legend (one shadow byte represents 8 application bytes):
Addressable: 00
Partially addressable: 01 02 03 04 05 06 07
Heap left redzone: fa
Heap right redzone: fb
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack partial redzone: f4
Stack after return: f5
Stack use after scope: f8
Global redzone: f9
Global init order: f6
Poisoned by user: f7
Container overflow: fc
Array cookie: ac
Intra object redzone: bb
ASan internal: fe
==19001==ABORTING
```
The testing program is mp4dump.
And the input file has been put at:
https://github.com/fCorleone/fuzz_programs/blob/master/Bento4/test6 | A heap buffer flow has occurred when running mp4dump. | https://api.github.com/repos/axiomatic-systems/Bento4/issues/298/comments | 0 | 2018-07-23T02:25:41Z | 2018-08-30T19:22:59Z | https://github.com/axiomatic-systems/Bento4/issues/298 | 343,466,600 | 298 |
[
"axiomatic-systems",
"Bento4"
] | Memory leaks detected when I was running mp4fragment. #296
```
=================================================================
==27542==ERROR: LeakSanitizer: detected memory leaks
irect leak of 160 byte(s) in 2 object(s) allocated from:
#0 0x7f444e43b532 in operator new(unsigned long) (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x99532)
#1 0x458a40 in Fragment /home/mfc_fuzz/Bento4/Source/C++/Apps/Mp4Fragment/Mp4Fragment.cpp:639
#2 0x4622c2 in main /home/mfc_fuzz/Bento4/Source/C++/Apps/Mp4Fragment/Mp4Fragment.cpp:1410
#3 0x7f444da6082f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
Direct leak of 64 byte(s) in 1 object(s) allocated from:
#0 0x7f444e43b532 in operator new(unsigned long) (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x99532)
#1 0x454e74 in Fragment /home/mfc_fuzz/Bento4/Source/C++/Apps/Mp4Fragment/Mp4Fragment.cpp:324
#2 0x4622c2 in main /home/mfc_fuzz/Bento4/Source/C++/Apps/Mp4Fragment/Mp4Fragment.cpp:1410
#3 0x7f444da6082f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
Direct leak of 8 byte(s) in 1 object(s) allocated from:
#0 0x7f444e43b532 in operator new(unsigned long) (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x99532)
#1 0x4599dd in Fragment /home/mfc_fuzz/Bento4/Source/C++/Apps/Mp4Fragment/Mp4Fragment.cpp:726
#2 0x4622c2 in main /home/mfc_fuzz/Bento4/Source/C++/Apps/Mp4Fragment/Mp4Fragment.cpp:1410
#3 0x7f444da6082f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
Indirect leak of 3072 byte(s) in 2 object(s) allocated from:
#0 0x7f444e43b532 in operator new(unsigned long) (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x99532)
#1 0x5c673f in AP4_Array<AP4_ElstEntry>::EnsureCapacity(unsigned int) /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4Array.h:172
#2 0x5c6ebd in AP4_Array<AP4_ElstEntry>::Append(AP4_ElstEntry const&) /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4Array.h:252
#3 0x5c5cda in AP4_ElstAtom::AddEntry(AP4_ElstEntry const&) /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4ElstAtom.cpp:159
#4 0x4558a7 in Fragment /home/mfc_fuzz/Bento4/Source/C++/Apps/Mp4Fragment/Mp4Fragment.cpp:385
#5 0x4622c2 in main /home/mfc_fuzz/Bento4/Source/C++/Apps/Mp4Fragment/Mp4Fragment.cpp:1410
#6 0x7f444da6082f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
```
The input file I give to the program is init.mp4 | Memory leaks detected when I was running mp4fragment. | https://api.github.com/repos/axiomatic-systems/Bento4/issues/297/comments | 0 | 2018-07-22T11:18:27Z | 2018-08-30T19:22:47Z | https://github.com/axiomatic-systems/Bento4/issues/297 | 343,397,883 | 297 |
[
"axiomatic-systems",
"Bento4"
] | Memory leaks detected when I was running mp4fragment.
```
=================================================================
==27542==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 208 byte(s) in 2 object(s) allocated from:
#0 0x7f444e43b532 in operator new(unsigned long) (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x99532)
#1 0x460536 in main /home/mfc_fuzz/Bento4/Source/C++/Apps/Mp4Fragment/Mp4Fragment.cpp:1245
#2 0x7f444da6082f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
```
The input file I give to the program is init.mp4 | Memory leaks detected when I was running mp4fragment. | https://api.github.com/repos/axiomatic-systems/Bento4/issues/296/comments | 0 | 2018-07-22T11:14:40Z | 2018-08-30T19:22:33Z | https://github.com/axiomatic-systems/Bento4/issues/296 | 343,397,694 | 296 |
[
"axiomatic-systems",
"Bento4"
] | Memory leaks detected when I was running mp4tag.
```
=================================================================
==5750==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 40 byte(s) in 1 object(s) allocated from:
#0 0x7f109cf48532 in operator new(unsigned long) (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x99532)
#1 0x4528ad in ParseCommandLine /home/mfc_fuzz/Bento4/Source/C++/Apps/Mp4Tag/Mp4Tag.cpp:207
#2 0x458478 in main /home/mfc_fuzz/Bento4/Source/C++/Apps/Mp4Tag/Mp4Tag.cpp:783
#3 0x7f109c56d82f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
SUMMARY: AddressSanitizer: 40 byte(s) leaked in 1 allocation(s).
```
The input file I give to the program is test-001.mp4
I also set output option with empty or output,it is all memory leaks. | Memory leaks detected when I was running mp4tag. | https://api.github.com/repos/axiomatic-systems/Bento4/issues/295/comments | 0 | 2018-07-22T10:47:08Z | 2018-08-30T19:22:17Z | https://github.com/axiomatic-systems/Bento4/issues/295 | 343,395,965 | 295 |
[
"axiomatic-systems",
"Bento4"
] | A heap-buffer-overflow has occurred when running program mp42hls.
```
=================================================================
==9590==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x60200000ec34 at pc 0x000000484863 bp 0x7ffc0dccc260 sp 0x7ffc0dccc250
READ of size 1 at 0x60200000ec34 thread T0
#0 0x484862 in AP4_Mpeg2TsVideoSampleStream::WriteSample(AP4_Sample&, AP4_DataBuffer&, AP4_SampleDescription*, bool, AP4_ByteStream&) /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4Mpeg2Ts.cpp:663
#1 0x45d6af in WriteSamples /home/mfc_fuzz/Bento4/Source/C++/Apps/Mp42Hls/Mp42Hls.cpp:1271
#2 0x468865 in main /home/mfc_fuzz/Bento4/Source/C++/Apps/Mp42Hls/Mp42Hls.cpp:2088
#3 0x7f960571482f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
#4 0x4547b8 in _start (/home/sandy/swt_fuzz/Bento4/cmakebuild/mp42hls+0x4547b8)
0x60200000ec34 is located 0 bytes to the right of 4-byte region [0x60200000ec30,0x60200000ec34)
allocated by thread T0 here:
#0 0x7f96060ef6b2 in operator new[](unsigned long) (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x996b2)
#1 0x4c4272 in AP4_DataBuffer::ReallocateBuffer(unsigned int) /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4DataBuffer.cpp:210
#2 0x4c3c10 in AP4_DataBuffer::SetDataSize(unsigned int) /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4DataBuffer.cpp:151
#3 0x47efae in AP4_Sample::ReadData(AP4_DataBuffer&, unsigned int, unsigned int) /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4Sample.cpp:147
#4 0x47ee43 in AP4_Sample::ReadData(AP4_DataBuffer&) /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4Sample.cpp:127
#5 0x47be4c in AP4_Track::ReadSample(unsigned int, AP4_Sample&, AP4_DataBuffer&) /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4Track.cpp:473
#6 0x454acf in TrackSampleReader::ReadSample(AP4_Sample&, AP4_DataBuffer&) /home/mfc_fuzz/Bento4/Source/C++/Apps/Mp42Hls/Mp42Hls.cpp:217
#7 0x45abb7 in ReadSample /home/mfc_fuzz/Bento4/Source/C++/Apps/Mp42Hls/Mp42Hls.cpp:976
#8 0x45b5a0 in WriteSamples /home/mfc_fuzz/Bento4/Source/C++/Apps/Mp42Hls/Mp42Hls.cpp:1044
#9 0x468865 in main /home/mfc_fuzz/Bento4/Source/C++/Apps/Mp42Hls/Mp42Hls.cpp:2088
#10 0x7f960571482f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
SUMMARY: AddressSanitizer: heap-buffer-overflow /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4Mpeg2Ts.cpp:663 AP4_Mpeg2TsVideoSampleStream::WriteSample(AP4_Sample&, AP4_DataBuffer&, AP4_SampleDescription*, bool, AP4_ByteStream&)
Shadow bytes around the buggy address:
0x0c047fff9d30: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff9d40: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff9d50: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff9d60: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff9d70: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
=>0x0c047fff9d80: fa fa fa fa fa fa[04]fa fa fa 04 fa fa fa 01 fa
0x0c047fff9d90: fa fa 04 fa fa fa fd fa fa fa fd fa fa fa fd fd
0x0c047fff9da0: fa fa 02 fa fa fa 00 00 fa fa 00 00 fa fa 01 fa
0x0c047fff9db0: fa fa fd fa fa fa 00 fa fa fa 02 fa fa fa 00 05
0x0c047fff9dc0: fa fa fd fd fa fa 04 fa fa fa 04 fa fa fa fd fa
0x0c047fff9dd0: fa fa 00 fa fa fa 04 fa fa fa fd fa fa fa fd fa
Shadow byte legend (one shadow byte represents 8 application bytes):
Addressable: 00
Partially addressable: 01 02 03 04 05 06 07
Heap left redzone: fa
Heap right redzone: fb
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack partial redzone: f4
Stack after return: f5
Stack use after scope: f8
Global redzone: f9
Global init order: f6
Poisoned by user: f7
Container overflow: fc
Array cookie: ac
Intra object redzone: bb
ASan internal: fe
==9590==ABORTING
```
The testing program is mp42hls.
And the input file has been put at:
https://github.com/fCorleone/fuzz_programs/blob/master/Bento4/test5 | A heap-buffer-overflow has occurred when running program mp42hls. | https://api.github.com/repos/axiomatic-systems/Bento4/issues/294/comments | 0 | 2018-07-22T10:35:10Z | 2018-08-30T19:21:51Z | https://github.com/axiomatic-systems/Bento4/issues/294 | 343,395,267 | 294 |
[
"axiomatic-systems",
"Bento4"
] | A heap-buffer-overflow has occurred when running program mp4info.
```
SUMMARY: AddressSanitizer: heap-buffer-overflow /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4HvccAtom.cpp:282 AP4_HvccAtom::AP4_HvccAtom(unsigned int, unsigned char const*)
Shadow bytes around the buggy address:
0x0c067fff9d40: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c067fff9d50: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c067fff9d60: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c067fff9d70: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c067fff9d80: fa fa fa fa fa fa fa fa fa fa 00 00 06 fa fa fa
=>0x0c067fff9d90: 00 00[06]fa fa fa 00 00 00 fa fa fa 00 00 00 fa
0x0c067fff9da0: fa fa 00 00 00 fa fa fa 00 00 00 fa fa fa 00 00
0x0c067fff9db0: 00 fa fa fa 00 00 00 fa fa fa 00 00 00 fa fa fa
0x0c067fff9dc0: 00 00 00 fa fa fa 00 00 00 fa fa fa 00 00 00 fa
0x0c067fff9dd0: fa fa 00 00 00 fa fa fa 00 00 00 00 fa fa 00 00
0x0c067fff9de0: 00 fa fa fa 00 00 00 fa fa fa 00 00 00 fa fa fa
Shadow byte legend (one shadow byte represents 8 application bytes):
Addressable: 00
Partially addressable: 01 02 03 04 05 06 07
Heap left redzone: fa
Heap right redzone: fb
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack partial redzone: f4
Stack after return: f5
Stack use after scope: f8
Global redzone: f9
Global init order: f6
Poisoned by user: f7
Container overflow: fc
Array cookie: ac
Intra object redzone: bb
ASan internal: fe
==26163==ABORTING
```
The testing program is mp4info.
And the input file has been put at:
https://github.com/fCorleone/fuzz_programs/blob/master/Bento4/test4.dms | A heap-buffer-overflow has occurred when running program mp4info. | https://api.github.com/repos/axiomatic-systems/Bento4/issues/293/comments | 0 | 2018-07-22T08:57:37Z | 2018-08-30T19:21:36Z | https://github.com/axiomatic-systems/Bento4/issues/293 | 343,389,793 | 293 |
[
"axiomatic-systems",
"Bento4"
] | To reproduce:
./mp4dump --format json $poc
poc:
[poc.zip](https://github.com/axiomatic-systems/Bento4/files/2213274/poc.zip)
ASan:
==80662==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x0000005e2b1f bp 0x7fff14fa2cb0 sp 0x7fff14fa2aa0 T0)
#0 0x5e2b1e in AP4_JsonInspector::AddField(char const*, unsigned char const*, unsigned int, AP4_AtomInspector::FormatHint) /home/s2e/1/Bento4-master/Source/C++/Core/Ap4Atom.cpp:1166
#1 0x586bc7 in AP4_PsshAtom::InspectFields(AP4_AtomInspector&) /home/s2e/1/Bento4-master/Source/C++/Core/Ap4PsshAtom.cpp:238
#2 0x5d8b24 in AP4_Atom::Inspect(AP4_AtomInspector&) /home/s2e/1/Bento4-master/Source/C++/Core/Ap4Atom.cpp:263
#3 0x5312ec in AP4_AtomListInspector::Action(AP4_Atom*) const /home/s2e/1/Bento4-master/Source/C++/Core/Ap4Atom.h:528
#4 0x52f8b6 in AP4_List<AP4_Atom>::Apply(AP4_List<AP4_Atom>::Item::Operator const&) const /home/s2e/1/Bento4-master/Source/C++/Core/Ap4List.h:353
#5 0x52f8b6 in AP4_ContainerAtom::InspectChildren(AP4_AtomInspector&) /home/s2e/1/Bento4-master/Source/C++/Core/Ap4ContainerAtom.cpp:220
#6 0x5d8b24 in AP4_Atom::Inspect(AP4_AtomInspector&) /home/s2e/1/Bento4-master/Source/C++/Core/Ap4Atom.cpp:263
#7 0x527f9e in main /home/s2e/1/Bento4-master/Source/C++/Apps/Mp4Dump/Mp4Dump.cpp:350
#8 0x7fc5c6b8982f in __libc_start_main /build/glibc-Cl5G7W/glibc-2.23/csu/../csu/libc-start.c:291
#9 0x450e48 in _start (/home/s2e/1/Bento4-master/cmakebuild/mp4dump+0x450e48)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /home/s2e/1/Bento4-master/Source/C++/Core/Ap4Atom.cpp:1166 in AP4_JsonInspector::AddField(char const*, unsigned char const*, unsigned int, AP4_AtomInspector::FormatHint)
==80662==ABORTING
| one null pointer deference bug in AP4_JsonInspector::AddField in Ap4Atom.cpp | https://api.github.com/repos/axiomatic-systems/Bento4/issues/292/comments | 0 | 2018-07-20T09:19:47Z | 2018-07-21T18:31:11Z | https://github.com/axiomatic-systems/Bento4/issues/292 | 343,033,794 | 292 |
[
"axiomatic-systems",
"Bento4"
] | POC to trigger the two bugs.
[poc.zip](https://github.com/axiomatic-systems/Bento4/files/2212318/poc.zip)
(1)mp42ts poc1 out.ts
ASan:
==97945==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000008 (pc 0x000000537e60 bp 0x7ffc715da790 sp 0x7ffc715da5e0 T0)
#0 0x537e5f in AP4_SampleDescription::GetType() const /home/s2e/1/Bento4-master/Source/C++/Core/Ap4SampleDescription.h:127
#1 0x537e5f in AP4_Mpeg2TsVideoSampleStream::WriteSample(AP4_Sample&, AP4_DataBuffer&, AP4_SampleDescription*, bool, AP4_ByteStream&) /home/s2e/1/Bento4-master/Source/C++/Core/Ap4Mpeg2Ts.cpp:524
#2 0x529953 in WriteSamples(AP4_Mpeg2TsWriter&, AP4_Track*, SampleReader*, AP4_Mpeg2TsWriter::SampleStream*, AP4_Track*, SampleReader*, AP4_Mpeg2TsWriter::SampleStream*, unsigned int) /home/s2e/1/Bento4-master/Source/C++/Apps/Mp42Ts/Mp42Ts.cpp:305
#3 0x529953 in main /home/s2e/1/Bento4-master/Source/C++/Apps/Mp42Ts/Mp42Ts.cpp:620
#4 0x7fa66bec782f in __libc_start_main /build/glibc-Cl5G7W/glibc-2.23/csu/../csu/libc-start.c:291
#5 0x4527f8 in _start (/home/s2e/1/Bento4-master/cmakebuild/mp42ts+0x4527f8)
(2)mp42ts poc2 out.ts
ASan:
==104133==ERROR: AddressSanitizer: SEGV on unknown address 0x00000000000c (pc 0x000000536e46 bp 0x7ffed568fc30 sp 0x7ffed568fb00 T0)
#0 0x536e45 in AP4_SampleDescription::GetFormat() const /home/s2e/1/Bento4-master/Source/C++/Core/Ap4SampleDescription.h:128
#1 0x536e45 in AP4_Mpeg2TsAudioSampleStream::WriteSample(AP4_Sample&, AP4_DataBuffer&, AP4_SampleDescription*, bool, AP4_ByteStream&) /home/s2e/1/Bento4-master/Source/C++/Core/Ap4Mpeg2Ts.cpp:412
#2 0x529b1e in WriteSamples(AP4_Mpeg2TsWriter&, AP4_Track*, SampleReader*, AP4_Mpeg2TsWriter::SampleStream*, AP4_Track*, SampleReader*, AP4_Mpeg2TsWriter::SampleStream*, unsigned int) /home/s2e/1/Bento4-master/Source/C++/Apps/Mp42Ts/Mp42Ts.cpp:294
#3 0x529b1e in main /home/s2e/1/Bento4-master/Source/C++/Apps/Mp42Ts/Mp42Ts.cpp:620
#4 0x7f3ffb20582f in __libc_start_main /build/glibc-Cl5G7W/glibc-2.23/csu/../csu/libc-start.c:291
#5 0x4527f8 in _start (/home/s2e/1/Bento4-master/cmakebuild/mp42ts+0x4527f8)
| two segment fault in Ap4SampleDescription.h in when running mp42ts | https://api.github.com/repos/axiomatic-systems/Bento4/issues/291/comments | 0 | 2018-07-20T03:13:14Z | 2018-07-21T18:31:11Z | https://github.com/axiomatic-systems/Bento4/issues/291 | 342,958,255 | 291 |
[
"axiomatic-systems",
"Bento4"
] | Hi!
I use `mp4dash` for package encrypted fragmented mp4 files
`mp4dash --verbose --mpd-name=manifest.mpd -o packaged/ --widevine --widevine-header='provider:widevine_test#content_id:3336333561386639356166323434396661366636363538313633306130366661' out/e_f_tears_169_1080p.mp4 out/e_f_tears_169_720p.mp4 out/e_f_tears_169_576p.mp4 out/e_f_tears_169_432p.mp4 out/e_f_audio_0.mp4
`
And keep getting dash manifest with
```
<AdaptationSet ... minHeight="576...">
...
<Representation ...height="432".../>
...
</AdaptationSet>
```
`minHeight` from `AdaptationSet` bigger than minimal `height` from `Representation`.
I google meaning of this attributes, and found this document https://dashif.org/w/2015/04/DASH-IF-IOP-v3.0.pdf which says
> The attributes @minWidth and @minHeight should not be present. If present, they may be smaller than the smallest @width or smallest @height in the Adaptation Set.
So it's seems like this is not only incorrect but also redundant attributes.
My result manifest: https://tabroot.blob.core.windows.net/bento4/manifest.mpd
Files which was used to create this manifest: https://tabroot.blob.core.windows.net/bento4/e_f_audio_0.mp4
https://tabroot.blob.core.windows.net/bento4/e_f_tears_169_1080p.mp4
https://tabroot.blob.core.windows.net/bento4/e_f_tears_169_432p.mp4
https://tabroot.blob.core.windows.net/bento4/e_f_tears_169_504p.mp4
https://tabroot.blob.core.windows.net/bento4/e_f_tears_169_576p.mp4
https://tabroot.blob.core.windows.net/bento4/e_f_tears_169_720p.mp4 | Incorrect/redundant attribute created in dash manifest with mp4dash | https://api.github.com/repos/axiomatic-systems/Bento4/issues/290/comments | 0 | 2018-07-19T17:05:38Z | 2018-07-21T19:26:06Z | https://github.com/axiomatic-systems/Bento4/issues/290 | 342,813,806 | 290 |
[
"axiomatic-systems",
"Bento4"
] |
When open a crafted `mp4` file, The program could enter `AP4_File::ParseStream` , and it could hang on, then program could be not response
```
void
AP4_File::ParseStream(AP4_ByteStream& stream,
AP4_AtomFactory& atom_factory,
bool moov_only)
{
// parse top-level atoms
AP4_Atom* atom;
AP4_Position stream_position;
bool keep_parsing = true;
while (keep_parsing &&
AP4_SUCCEEDED(stream.Tell(stream_position)) &&
AP4_SUCCEEDED(atom_factory.CreateAtomFromStream(stream, atom))) {
AddChild(atom);
switch (atom->GetType()) {
case AP4_ATOM_TYPE_MOOV:
m_Movie = new AP4_Movie(AP4_DYNAMIC_CAST(AP4_MoovAtom, atom), stream, false);
if (moov_only) keep_parsing = false;
break;
case AP4_ATOM_TYPE_FTYP:
m_FileType = AP4_DYNAMIC_CAST(AP4_FtypAtom, atom);
break;
case AP4_ATOM_TYPE_MDAT:
// see if we are before the moov atom
if (m_Movie == NULL) m_MoovIsBeforeMdat = false;
break;
}
}
}
```
The poc
```
https://gitee.com/hac425/fuzz_data/blob/master/poc.mp4
```
| ddos in AP4_File::ParseStream | https://api.github.com/repos/axiomatic-systems/Bento4/issues/289/comments | 0 | 2018-07-18T02:17:33Z | 2018-07-21T19:15:30Z | https://github.com/axiomatic-systems/Bento4/issues/289 | 342,151,164 | 289 |
[
"axiomatic-systems",
"Bento4"
] | When using Bento4 to package a stream with stpp subtitles, mp4dash tool is producing an MPD Manifest where the "Representation" section for the subtitles Adaptation Set is positioned before the SegmentTemplate section. For some players, it may work (like for DASH_IF test player), but for example for Exoplayer it makes it not be able to read the subtitles.
After having filed an issue in Exoplayer GitHub project, it seems the DASH specification states the sections should be put in the right order. Please have a look at this:
https://github.com/google/ExoPlayer/issues/4524
Thanks | Subtitle issue with DASH output | https://api.github.com/repos/axiomatic-systems/Bento4/issues/288/comments | 1 | 2018-07-17T12:14:00Z | 2018-08-01T14:37:35Z | https://github.com/axiomatic-systems/Bento4/issues/288 | 341,893,052 | 288 |
[
"axiomatic-systems",
"Bento4"
] | Hi there. I'm using a fmp4 subtitle file with mp4dash trying to output an HLS stream, but getting an error (same error with 2 different subtitle files). I'm quite confident the subtitle file is fine, since it's a file we use in our production systems currently with no issue. An analysis of that file:
* Movie Info *
Timescale 1000 - 1 track
Computed Duration 00:00:00.000 - Indicated Duration 00:00:00.000
Fragmented File: yes - duration 01:01:09.808
62 fragments - 0 SegmentIndexes
File suitable for progressive download (moov before mdat)
File Brand iso2 - version 0
Compatible brands: iso2
Created: UNKNOWN DATE Modified: UNKNOWN DATE
File has no MPEG4 IOD/OD
Track # 1 Info - TrackID 1 - TimeScale 1000
Media Duration 00:00:00.000 - Indicated Duration 00:00:00.000
Media Info: Language "Arabic (ara)" - Type "subt:stpp" - 0 samples
Fragmented track: 62 samples - Media Duration 01:01:09.808
XML Subtitle Stream - namespace http://www.w3.org/ns/ttml
Size 0 x 0 - Translation X=0 Y=0 - Layer 0
RFC6381 Codec Parameters: stpp
All samples are sync
The command I'm using is: mp4dash --hls --subtitles subs.ismt video.mp4
Getting the error: ERROR: 'ascii' codec can't encode characters in position 0-6: ordinal not in
range(128) (Again, same error with 2 different subtitle files)
Also, the same subtitle file is perfectly processed when producing an MPD output with this:
mp4dash --profiles='live,urn:com:dashif:dash264' --subtitles subs.ismt video.mp4
How come the same subtitle file is only failing when producing HLS output? Any idea where the problem might be? Thank you | Subtitle issue with HLS output | https://api.github.com/repos/axiomatic-systems/Bento4/issues/287/comments | 0 | 2018-07-16T10:16:48Z | 2018-07-16T10:16:48Z | https://github.com/axiomatic-systems/Bento4/issues/287 | 341,461,337 | 287 |
[
"axiomatic-systems",
"Bento4"
] | Hello, I am writing a code to save decrypted segments on disk but getting bad alloc error. Pls help in resolving same.
```
// Write initialisation & data into decrypted file
std::vector<char> buffer;
int pos_decrypted = file_decrypted_data.tellp();
if(pos_decrypted < pos_init)
{
buffer.reserve(pos_init - pos_decrypted);
file_fragment.seekg(pos_decrypted, std::ios::beg);
file_fragment.read(buffer.data(), pos_init - pos_decrypted);
file_decrypted_data.write(buffer.data(), pos_init - pos_decrypted);
}
m_FragmentStream->Tell(pos_after_sample);
int metadata_length = pos_after_sample - m_sampleData.GetDataSize() - pos_init;
buffer.reserve(metadata_length);
file_fragment.seekg(pos_init, std::ios::beg);
file_fragment.read(buffer.data(), metadata_length);
file_decrypted_data.write(buffer.data(), metadata_length);
file_decrypted_data.write((const char*)m_sampleData.GetData(), m_sampleData.GetDataSize());
``` | Bad Alloc error | https://api.github.com/repos/axiomatic-systems/Bento4/issues/286/comments | 3 | 2018-07-15T21:22:06Z | 2018-08-28T15:17:04Z | https://github.com/axiomatic-systems/Bento4/issues/286 | 341,353,391 | 286 |
[
"axiomatic-systems",
"Bento4"
] |
A SEGV signal occurred when running mp4compact at Ap4StcoAtom.cpp:150
```
ASAN:SIGSEGV
=================================================================
==22735==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x000000471c70 bp 0x7ffd0713b440 sp 0x7ffd0713b420 T0)
#0 0x471c6f in AP4_StszAtom::GetSampleSize(unsigned int, unsigned int&) /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4StszAtom.cpp:150
#1 0x450548 in AP4_CompactingProcessor::TrackHandler::ProcessTrack() /home/mfc_fuzz/Bento4/Source/C++/Apps/Mp4Compact/Mp4Compact.cpp:132
#2 0x52dec2 in AP4_Processor::Process(AP4_ByteStream&, AP4_ByteStream&, AP4_ByteStream*, AP4_Processor::ProgressListener*, AP4_AtomFactory&) /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4Processor.cpp:617
#3 0x52fb9e in AP4_Processor::Process(AP4_ByteStream&, AP4_ByteStream&, AP4_Processor::ProgressListener*, AP4_AtomFactory&) /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4Processor.cpp:761
#4 0x4515ea in main /home/mfc_fuzz/Bento4/Source/C++/Apps/Mp4Compact/Mp4Compact.cpp:220
#5 0x7fc83901c82f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
#6 0x44f908 in _start (/home/sandy/swt_fuzz/Bento4/cmakebuild/mp4compact+0x44f908)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4StszAtom.cpp:150 AP4_StszAtom::GetSampleSize(unsigned int, unsigned int&)
==22735==ABORTING
```
The testing program is mp4compact.
And the input file has been put at:
https://github.com/fCorleone/fuzz_programs/blob/master/Bento4/test3 | A SEGV signal occurred when running mp4compact | https://api.github.com/repos/axiomatic-systems/Bento4/issues/285/comments | 0 | 2018-07-10T02:27:46Z | 2018-07-21T18:50:56Z | https://github.com/axiomatic-systems/Bento4/issues/285 | 339,670,356 | 285 |
[
"axiomatic-systems",
"Bento4"
] | . | https://api.github.com/repos/axiomatic-systems/Bento4/issues/284/comments | 0 | 2018-07-09T17:20:54Z | 2018-07-21T18:51:18Z | https://github.com/axiomatic-systems/Bento4/issues/284 | 339,537,981 | 284 | |
[
"axiomatic-systems",
"Bento4"
] |
A SEGV signal occurred when running mp4compact at Ap4StcoAtom.cpp:142
```
ASAN:SIGSEGV
=================================================================
==30883==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000030 (pc 0x000000474645 bp 0x7ffd435fb8c0 sp 0x7ffd435fb8a0 T0)
#0 0x474644 in AP4_StcoAtom::AdjustChunkOffsets(int) /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4StcoAtom.cpp:142
#1 0x4f014e in AP4_TrakAtom::AdjustChunkOffsets(long long) /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4TrakAtom.cpp:318
#2 0x52e10e in AP4_Processor::Process(AP4_ByteStream&, AP4_ByteStream&, AP4_ByteStream*, AP4_Processor::ProgressListener*, AP4_AtomFactory&) /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4Processor.cpp:640
#3 0x52fb9e in AP4_Processor::Process(AP4_ByteStream&, AP4_ByteStream&, AP4_Processor::ProgressListener*, AP4_AtomFactory&) /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4Processor.cpp:761
#4 0x4515ea in main /home/mfc_fuzz/Bento4/Source/C++/Apps/Mp4Compact/Mp4Compact.cpp:220
#5 0x7fb7a3da382f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
#6 0x44f908 in _start (/home/sandy/swt_fuzz/Bento4/cmakebuild/mp4compact+0x44f908)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4StcoAtom.cpp:142 AP4_StcoAtom::AdjustChunkOffsets(int)
==30883==ABORTING
```
The testing program is mp4compact.
And the input file has been put at: https://github.com/fCorleone/fuzz_programs/blob/master/Bento4/test2
| A SEGV signal occurred when running mp4compact | https://api.github.com/repos/axiomatic-systems/Bento4/issues/283/comments | 0 | 2018-07-09T08:01:09Z | 2018-07-21T18:55:26Z | https://github.com/axiomatic-systems/Bento4/issues/283 | 339,343,756 | 283 |
[
"axiomatic-systems",
"Bento4"
] | A heap buffer overflow problem has been found at Ap4Mpeg2Ts.cpp:663.
```
=================================================================
==20724==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x60200000ec34 at pc 0x000000466b63 bp 0x7fffaeec6980 sp 0x7fffaeec6970
READ of size 1 at 0x60200000ec34 thread T0
#0 0x466b62 in AP4_Mpeg2TsVideoSampleStream::WriteSample(AP4_Sample&, AP4_DataBuffer&, AP4_SampleDescription*, bool, AP4_ByteStream&) /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4Mpeg2Ts.cpp:663
#1 0x4550fb in WriteSamples /home/mfc_fuzz/Bento4/Source/C++/Apps/Mp42Ts/Mp42Ts.cpp:309
#2 0x457e3d in main /home/mfc_fuzz/Bento4/Source/C++/Apps/Mp42Ts/Mp42Ts.cpp:623
#3 0x7fb94b90082f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
#4 0x453938 in _start (/home/sandy/swt_fuzz/Bento4/cmakebuild/mp42ts+0x453938)
0x60200000ec34 is located 0 bytes to the right of 4-byte region [0x60200000ec30,0x60200000ec34)
allocated by thread T0 here:
#0 0x7fb94c2db6b2 in operator new[](unsigned long) (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x996b2)
#1 0x4a704a in AP4_DataBuffer::ReallocateBuffer(unsigned int) /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4DataBuffer.cpp:210
#2 0x4a69e8 in AP4_DataBuffer::SetDataSize(unsigned int) /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4DataBuffer.cpp:151
#3 0x46123e in AP4_Sample::ReadData(AP4_DataBuffer&, unsigned int, unsigned int) /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4Sample.cpp:147
#4 0x4610d3 in AP4_Sample::ReadData(AP4_DataBuffer&) /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4Sample.cpp:127
#5 0x45de2c in AP4_Track::ReadSample(unsigned int, AP4_Sample&, AP4_DataBuffer&) /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4Track.cpp:473
#6 0x453c8a in TrackSampleReader::ReadSample(AP4_Sample&, AP4_DataBuffer&) /home/mfc_fuzz/Bento4/Source/C++/Apps/Mp42Ts/Mp42Ts.cpp:121
#7 0x4541ab in ReadSample /home/mfc_fuzz/Bento4/Source/C++/Apps/Mp42Ts/Mp42Ts.cpp:179
#8 0x454789 in WriteSamples /home/mfc_fuzz/Bento4/Source/C++/Apps/Mp42Ts/Mp42Ts.cpp:230
#9 0x457e3d in main /home/mfc_fuzz/Bento4/Source/C++/Apps/Mp42Ts/Mp42Ts.cpp:623
#10 0x7fb94b90082f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
SUMMARY: AddressSanitizer: heap-buffer-overflow /home/mfc_fuzz/Bento4/Source/C++/Core/Ap4Mpeg2Ts.cpp:663 AP4_Mpeg2TsVideoSampleStream::WriteSample(AP4_Sample&, AP4_DataBuffer&, AP4_SampleDescription*, bool, AP4_ByteStream&)
Shadow bytes around the buggy address:
0x0c047fff9d30: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff9d40: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff9d50: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff9d60: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff9d70: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
=>0x0c047fff9d80: fa fa fa fa fa fa[04]fa fa fa 04 fa fa fa 01 fa
0x0c047fff9d90: fa fa 04 fa fa fa fd fa fa fa fd fa fa fa fd fd
0x0c047fff9da0: fa fa 02 fa fa fa 00 00 fa fa 00 00 fa fa 01 fa
0x0c047fff9db0: fa fa fd fa fa fa 00 fa fa fa 02 fa fa fa 00 05
0x0c047fff9dc0: fa fa fd fd fa fa 04 fa fa fa 04 fa fa fa fd fa
0x0c047fff9dd0: fa fa 00 fa fa fa 04 fa fa fa fd fa fa fa fd fa
Shadow byte legend (one shadow byte represents 8 application bytes):
Addressable: 00
Partially addressable: 01 02 03 04 05 06 07
Heap left redzone: fa
Heap right redzone: fb
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack partial redzone: f4
Stack after return: f5
Stack use after scope: f8
Global redzone: f9
Global init order: f6
Poisoned by user: f7
Container overflow: fc
Array cookie: ac
Intra object redzone: bb
ASan internal: fe
==20724==ABORTING
'''
The testing program is mp42ts.
And the input file has been put at:
https://github.com/fCorleone/fuzz_programs/blob/master/Bento4/test1 | A heap-buffer-overflow issue found | https://api.github.com/repos/axiomatic-systems/Bento4/issues/282/comments | 0 | 2018-07-09T07:30:42Z | 2018-07-21T19:08:08Z | https://github.com/axiomatic-systems/Bento4/issues/282 | 339,335,054 | 282 |
[
"axiomatic-systems",
"Bento4"
] | Hello all,
I wonder if anyone knows what the error code I get means? I have packaged MSS + PR and couldn't play it back in IE/Edge using dash.js player.
`
"../bin/mp4dash.bat"^
--smooth^
--encryption-key=xxx:yyy^
--playready-header=#vAMAAAEAAQCyAzwAVwB...truncated...ASABFAEEARABFAFIAPgA=^
--playready^
-o ./mss-pr^
media/sintel_trailer-480p.frag.mp4 media/sintel_trailer-720p.frag.mp4 media/sintel_trailer-1080p.frag.mp4
`
Were there any issues with latest version of Bento4 with MSS + PR?
Thank you in advance.
BR | Video Element Error: MEDIA_ERR_DECODE (0xC00D36BE) Edge/IE when MSS + PR | https://api.github.com/repos/axiomatic-systems/Bento4/issues/281/comments | 10 | 2018-07-05T13:57:10Z | 2018-08-31T17:27:32Z | https://github.com/axiomatic-systems/Bento4/issues/281 | 338,586,229 | 281 |
[
"axiomatic-systems",
"Bento4"
] | When using mp4dash --widevine-header "#[PSSH payload data]"
mp4dash does not maintain the precise PSSH payload data (as specified on the command line) in the output files.
Both init.mp4 and stream.mpd have different PSSH payload data than what was specified to --widevine-header, although parts are similar. If I read the init.mp4 with pywvpssh (see github), it reports the changed values.
Is there some way to force mp4dash to use the verbatim PSSH payload data as specified to --widevine-header?
I need the stream.mpd output from mp4dash to contain (after <cenc:pssh>) exactly what was specified on the command line, and for the corresponding equivalent to be within init.mp4. Is this possible? | mp4dash does not maintain exact PSSH payload data specified via --widevine-header | https://api.github.com/repos/axiomatic-systems/Bento4/issues/280/comments | 1 | 2018-07-04T04:31:50Z | 2018-07-05T03:21:47Z | https://github.com/axiomatic-systems/Bento4/issues/280 | 338,126,872 | 280 |
[
"axiomatic-systems",
"Bento4"
] | Just wondering if anyone has yet ported the mp4-dash.py Python 2 code to Python 3?
It's 10 years since Python 3 was released, so I assume all the dependencies (if any) have long ago been updated, so I assume it's just a matter of time to make the code changes required? Alas, Python is not a language that I have any real experience in to attempt it myself, so just wondering if this has been done yet, or is set as a milestone for future updates.
This is the only Python 2 code we need to support, so it would be great if this could be updated... | Python 3 | https://api.github.com/repos/axiomatic-systems/Bento4/issues/279/comments | 15 | 2018-06-30T14:09:07Z | 2020-03-29T18:43:20Z | https://github.com/axiomatic-systems/Bento4/issues/279 | 337,217,458 | 279 |
[
"axiomatic-systems",
"Bento4"
] | I have some abnormal mp4 file.
I tried to pack it with mp4-hls.py. And of course it was failed.
But the problem is that it takes too long until an error occurs.
So I traced it by log and I had figure out a problem with some function.
The function name is 'WalkAtoms()' in mp4utils.py.
It repeats a long time(more a few minutes) without getting out of the loop in this function.
```
def WalkAtoms(filename, until=None):
cursor = 0
atoms = []
file = io.FileIO(filename, "rb")
while True: # from this line
try:
size = struct.unpack('>I', file.read(4))[0]
type = file.read(4)
if type == until:
break
if size == 1:
size = struct.unpack('>Q', file.read(8))[0]
atoms.append(Mp4Atom(type, size, cursor))
cursor += size
file.seek(cursor) # to this line
except:
break
return atoms
```
I expected the parsing error occur right away, but it didn't.
Shouldn't it parsing error occurred before entering this function?
Thanks. | Excessive time delay when packaging unusual mp4 files | https://api.github.com/repos/axiomatic-systems/Bento4/issues/278/comments | 2 | 2018-06-28T10:53:44Z | 2018-07-03T05:20:34Z | https://github.com/axiomatic-systems/Bento4/issues/278 | 336,571,464 | 278 |
[
"axiomatic-systems",
"Bento4"
] | Hi everyone
I read Bento4 source code, and I know that mp4 file can be covert fmp4 by cmd "mp4fragment" , but I want to use h264 and aac frame encode fmp4 directly, the source code is very complicated | How to encode fragment mp4 (fmp4) used H.264/aac frame by Bento4 | https://api.github.com/repos/axiomatic-systems/Bento4/issues/277/comments | 2 | 2018-06-20T01:35:59Z | 2018-06-21T03:50:07Z | https://github.com/axiomatic-systems/Bento4/issues/277 | 333,894,303 | 277 |
[
"axiomatic-systems",
"Bento4"
] | Hello,
Configuring and building the project on Linux via cmake does not generate any of the mp4-dash packages.
**Example:**
```
git clone https://github.com/axiomatic-systems/Bento4
cd Bento4
mkdir cmakebuild
cd cmakebuild
cmake -DCMAKE_BUILD_TYPE=Release ..
make
```
**Results:**
In the build directory, the following binaries are present:
`ls | grep -e "mp4"`
```
aac2mp4
mp42aac
mp42hls
mp42ts
mp4compact
mp4dcfpackager
mp4decrypt
mp4diff
mp4dump
mp4edit
mp4encrypt
mp4extract
mp4fragment
mp4iframeindex
mp4info
mp4mux
mp4split
mp4tag
```
Has mp4-dash been dropped?
| mp4-dash binary is not generated on Linux when the project is configured via cmake | https://api.github.com/repos/axiomatic-systems/Bento4/issues/276/comments | 1 | 2018-06-19T19:24:51Z | 2018-06-19T20:34:24Z | https://github.com/axiomatic-systems/Bento4/issues/276 | 333,806,143 | 276 |
[
"axiomatic-systems",
"Bento4"
] | How can I include mp4dash in a c++ application without having to put the executables of MP4info, MP4Encrypt, ... etc in a bin directory ?
I need to call mp4dash from inside a C++ application to generate dash files of an mp4 and do other stuff and finally I want to generate an executable that runs without needing the other executables to be around, is this possible ? | Mp4Dash in a c++ application | https://api.github.com/repos/axiomatic-systems/Bento4/issues/274/comments | 4 | 2018-06-04T10:36:01Z | 2021-01-18T12:42:11Z | https://github.com/axiomatic-systems/Bento4/issues/274 | 329,000,167 | 274 |
[
"axiomatic-systems",
"Bento4"
] | translate mp4 to clear ts:
./mp42hls --verbose --audio-track-id 0 --video-track-id 1 ../../../cmakebuild/video.mp4
translate mp4 to encryped ts with the same mp4 file:
./mp42hls --verbose --encryption-key b0b1b2b3b4b5b6b7b8b9babbbcbdbebfb0b1b2b3b4b5b6b7b8b9babbbcbdbebf --encryption-iv-mode fps --encryption-mode SAMPLE-AES --audio-track-id 0 --video-track-id 1 ../../../cmakebuild/video.mp4
when i decrypted the encryped ts, i met a problem.
clear data:
65 88 84 00 23 FF FE F2 2B F0 29 A1 6B C6 C1 77 AA F7 61 16 58 90 9E CF 68 E1 0C C0 15 80 00 00 _**03 00 00 33 B5 00 00 06 46 19 44 8B BC A9 E1 81**_ 20 **_00 00 03 00_** 2F 00 0C D0 03 BF A3 68 00 BB B0 21 1C 43 90 84 16 E2 94 6E 43 4C 68 F2 C4 B9 57 B8 E4 E1 5E BE 06 CB 87 25 12 3B D3 26 D8 7F 7C D3 61 EF 35 9D 4D 82 79 B7
encrypted data:
65 88 84 00 23 FF FE F2 2B F0 29 A1 6B C6 C1 77 AA F7 61 16 58 90 9E CF 68 E1 0C C0 15 80 00 00 **_F2 69 5C F2 F9 6F 12 FC 6A 68 10 2A F1 18 92 3A_** 20 **_00 00 03 03 00_** 2F 00 0C D0 03 BF A3 68 00 BB B0 21 1C
After encryption, the bento4 insert 0x03 into 00 00 03 for emulation prevention, if i decrypt the encryted block, and skip the unencryped block, the length is wrong .
| is it standard way to do emulation prevention after encryption? | https://api.github.com/repos/axiomatic-systems/Bento4/issues/273/comments | 3 | 2018-06-01T07:42:56Z | 2020-07-21T09:25:53Z | https://github.com/axiomatic-systems/Bento4/issues/273 | 328,414,294 | 273 |
[
"axiomatic-systems",
"Bento4"
] | I believe Issue #224 is not quite fixed. For [this line](https://github.com/axiomatic-systems/Bento4/blob/master/Source/Python/utils/mp4-dash.py#L796), I think you want:
```
iframe_playlist_lines.append('#EXT-X-I-FRAME-STREAM-INF:AVERAGE-BANDWIDTH=%d,BANDWIDTH=%d,CODECS="%s",RESOLUTION=%dx%d,URI="%s"\r\n' % (
video_track.average_segment_bitrate,
video_track.max_segment_bitrate,
video_track.codec,
video_track.width,
video_track.height,
iframes_playlist_name))
```
Note the last argument should be `iframes_playlist_name` and not `media_playlist_path`.
Also, `AVERAGE-BANDWIDTH` and `BANDWIDTH` need to be those values for the **iframe playlist**, not the video itself. In `mp4hls`, it's taken from [media_info](https://github.com/axiomatic-systems/Bento4/blob/master/Source/Python/utils/mp4-hls.py#L473), but I'm not sure how to access that info from within `mp4dash`. | iframe-only playlists in HLS generated from mp4dash | https://api.github.com/repos/axiomatic-systems/Bento4/issues/272/comments | 1 | 2018-06-01T03:08:44Z | 2019-03-06T06:54:22Z | https://github.com/axiomatic-systems/Bento4/issues/272 | 328,365,192 | 272 |
[
"axiomatic-systems",
"Bento4"
] | Hello all,
I apologize for a weird question, but, is there a way to build Bento4 from Windows for other platforms like linux and macos?
Running `scons -u` on my Windows 10 x64 machine throws
> scons: *** Invalid value for option target: x86-microsoft-win32. Valid values are: ['any-blackberry-qnx', 'arm-android-linux', 'mipsel-sigma-linux', 'sh4-st-linux', 'x86-afl-linux', 'x86-unknown-cygwin', 'x86-unknown-linux', 'x86-unknown-mingw', 'x86_64-unknown-linux']
> File "D:\JOB\projects\multipack-update\keyosmultipack\Build\Boot.scons", line 58, in <module>
Which may mean that scons doesn't have build instructions for my platform. And running something like `scons -u build_config=Release target=x86_64-unknown-linux` gives me
> scons: Entering directory `D:\JOB\projects\multipack-update\keyosmultipack'
> scons: Reading SConscript files ...
> ********** Configuring Build Target = x86_64-unknown-linux / Release ********
>
> scons: *** A shared library should have exactly one target with the suffix: .dll
> File "D:\JOB\projects\multipack-update\keyosmultipack\Build\Build.scons", line 128, in Executable
I presume I'm missing something, but can't figure out what exactly.
Thank you in advance for your help.
| Building for Linux and Mac and Windows from Windows using scons | https://api.github.com/repos/axiomatic-systems/Bento4/issues/271/comments | 1 | 2018-05-30T14:12:03Z | 2018-07-21T19:18:26Z | https://github.com/axiomatic-systems/Bento4/issues/271 | 327,749,738 | 271 |
[
"axiomatic-systems",
"Bento4"
] | I would like to make MPEG-DASH chunk file of 2K/HEVC/Interlaced stream of Japanese ARIB standard.
There's no IDR frame in head SOP of successive GOP...
Please refer the following documents about the GOP header information.
<https://www.arib.or.jp/english/html/overview/doc/6-STD-B32v3_9-E1.pdf>
(P.162)4.5 Restrictions on VCL NALU in SOP
Regards | Supporting 2K/HEVC of ARIB standard | https://api.github.com/repos/axiomatic-systems/Bento4/issues/270/comments | 4 | 2018-05-25T10:04:55Z | 2018-06-19T04:42:08Z | https://github.com/axiomatic-systems/Bento4/issues/270 | 326,460,547 | 270 |
[
"axiomatic-systems",
"Bento4"
] | Bento4 is lacking Opus support for mp4.
ffmpeg has support opus in mp4 since https://github.com/FFmpeg/FFmpeg/commit/0c4d2082961f23bb8d5b8f9e963bbecf4147d699. There is a specs for how to support Opus in mp4 at https://www.opus-codec.org/docs/opus_in_isobmff.html | Opus support lacking | https://api.github.com/repos/axiomatic-systems/Bento4/issues/269/comments | 4 | 2018-05-16T17:18:03Z | 2018-08-24T09:02:57Z | https://github.com/axiomatic-systems/Bento4/issues/269 | 323,712,848 | 269 |
[
"axiomatic-systems",
"Bento4"
] | Is there a way to preserve timestamps when converting from mp4 to hls?
I'm attempting to split an mp4 video into multiple mp4 segments, convert these segments with mp4hls, and then join the stream-levels together.
For example,
frame timestamps in mp4 inputs:
[0,1,2]
[3,4,5]
[6,7,8]
frame timestamps in m3u8 outputs:
[0,1,2]
[0,1,2]
[0,1,2]
This causes a problem with most HLS players. It either freezes at the boundary of the first segment, or replaces video frames of an earlier segment with those of a later segment. I assume it's looking at the timestamps of the latest downloaded fragment and queuing them up accordingly, ignoring the order of the fragment in the manifest.
example of inputs and combined output:
https://nofile.io/f/kpPMxe19N0O/test.zip
| mp4hls preserve timestamps? | https://api.github.com/repos/axiomatic-systems/Bento4/issues/268/comments | 4 | 2018-04-24T20:06:32Z | 2023-08-04T05:26:45Z | https://github.com/axiomatic-systems/Bento4/issues/268 | 317,375,462 | 268 |
[
"axiomatic-systems",
"Bento4"
] | **hello . i download video mp4 with url m3u8 and i useing kid i don't know if right or wrong and i useing mp4 decrypt but don't work with me and i trying with another video but no new still don't work with me ... please help me with decrypt mp4 videos** | can't decrypt mp4 videos | https://api.github.com/repos/axiomatic-systems/Bento4/issues/267/comments | 1 | 2018-04-23T18:33:51Z | 2018-04-24T22:20:49Z | https://github.com/axiomatic-systems/Bento4/issues/267 | 316,931,326 | 267 |
[
"axiomatic-systems",
"Bento4"
] | Win 10
mp4hls 1.1.0 r621
After running the cmd tool, `mp4hls` on a 10 second mp4, all of the frames are shifted.
frames gathered with ffprobe -show_frames
video: https://nofile.io/f/nmAU0z1gNOm/segment-0.mp4
input frames: https://pastebin.com/8Qu7fsw4
output frames: https://pastebin.com/FwYLcgQi
The first frame timestamp of the input is 0.0
The first frame timestamp of the output is 0.08
The last frame of the input is 9.96
The last frame of the output is 10.04
There should be a complete GOP at the end of the input file, as in [the complete video](https://nofile.io/f/mWJqyz1sfDc/av-output.mp4) the input was clipped from, it has a keyframe on the next frame (10)
Why would this happen? Can I avoid/negate this, or is this an issue with bento?
I'm trying to solve this problem: https://github.com/axiomatic-systems/Bento4/issues/173
by inserting key-frames at intended cue points, creating segments between cue points, and concatenating everything back together. It mostly works, but I'm seeing some hiccups with playback around the boundaries of the segments. | Frames shifted after mp4hls conversion | https://api.github.com/repos/axiomatic-systems/Bento4/issues/266/comments | 4 | 2018-04-20T21:25:10Z | 2021-08-17T13:13:22Z | https://github.com/axiomatic-systems/Bento4/issues/266 | 316,416,403 | 266 |
[
"axiomatic-systems",
"Bento4"
] | I have an fmp4 file encrypted with a test key (SAMPLE-AES, cbcs) that plays back on the iPad (with a valid m3u8) but when I decrypt the same file using mp4decrypt and verify the decrypted output, the video looks garbled.
Has anyone seen this? I am using Version 1.5.1-622 compiled from source on Linux. | mp4decrypt for sample-aes doesn't decrypt the file but playable on iPad | https://api.github.com/repos/axiomatic-systems/Bento4/issues/265/comments | 6 | 2018-04-12T17:02:51Z | 2018-07-03T01:02:33Z | https://github.com/axiomatic-systems/Bento4/issues/265 | 313,812,170 | 265 |
[
"axiomatic-systems",
"Bento4"
] | What if there is a need to create FPS encrypted HLS where unique key is used per quality or per type (video/audio) - how is it possible to do?
**Given:**
`video.mp4, audio_eng.mp4, audio_fra.mp4`
**Then do:**
```
mp42hls --encryption-key <key1> ... --index-filename video.m3u8 video.mp4
mp42hls --encryption-key <key2> ... --index-filename audio_eng.m3u8 audio_eng.mp4
mp42hls --encryption-key <key3> ... --index-filename audio_fra.m3u8 audio_fra.mp4
```
**Result:**
3 playlists: `video.m3u8, audio_eng.m3u8, audio_fra.m3u8`
So now how to create variant playlist? Create by your own? | HLS encrypted with key per track quality or type | https://api.github.com/repos/axiomatic-systems/Bento4/issues/264/comments | 0 | 2018-04-11T22:27:02Z | 2018-04-16T20:36:52Z | https://github.com/axiomatic-systems/Bento4/issues/264 | 313,509,626 | 264 |
[
"axiomatic-systems",
"Bento4"
] | I am facing the following issue:
1. The inputs are 5 multi bit-rate mp4 files. Four of these have a frame rate of 25 fps and the fifth one has 10 fps.
2. I checked the GOP size on each of them. The 25 fps files have GOP size of 1 second (i.e., one I-frame every 25 frames). The 10 fps file has the GOP size of 1 second (i.e., one I-frame every 10 frames).
3. mp4fragment command seems to work fine:
mp4fragment.exe --fragment-duration 10000 inputfile.mp4 outputfile.mp4
4. mp4dash always returns the following error:
WARNING: video sample count mismatch between "File 5#1" and "File 4#1"
ERROR: video tracks are not aligned ("File 5#1" differs from File 1#1)
5. If I remove the 10 fps file from the mp4dash command, it works fine and generates the dash manifest.
I understand that mp4dash requires the key-frames to align, but when you have files with different frame rates, the key frames do not align by frame count but they do align if you consider the time in seconds or milliseconds.
What am I doing wrong? | Video tracks are not aligned (different frame rates) | https://api.github.com/repos/axiomatic-systems/Bento4/issues/263/comments | 16 | 2018-04-09T11:34:06Z | 2024-06-19T18:25:43Z | https://github.com/axiomatic-systems/Bento4/issues/263 | 312,495,286 | 263 |
[
"axiomatic-systems",
"Bento4"
] | Hi
We are facing a issue of wrong data written to dash.mpd file for minHeight in adaptation set but minimum profile height is proper under representation tag.
<!-- Video -->
<AdaptationSet maxHeight="720" maxWidth="1280" mimeType="video/mp4" minHeight="720" minWidth="1024" segmentAlignment="true" startWithSAP="1">
<Representation bandwidth="1008260" codecs="avc1.64001F" frameRate="24000/1001" height="576" id="video-1" scanType="progressive" width="1024">
<BaseURL>media-video-1.mp4</BaseURL>
<SegmentBase indexRange="2012-29355">
<Initialization range="0-2011"/>
</SegmentBase>
</Representation>
</AdaptationSet>
Due to this mismatch data in adaptationset and representation tag will create playback problem or while profile switching from higher profile to lower profile will there be problem?
Bento4 version details for dash.py
./mp4-dash.py
Usage: mp4-dash.py [options] <media-file> [<media-file> ...]
Each <media-file> is the path to a fragmented MP4 file, optionally prefixed
with a stream selector delimited by [ and ]. The same input MP4 file may be
repeated, provided that the stream selector prefixes select different streams.
Version 1.7.0 r613
| Wrong value written for minimum height in adaptation set of dash manifest file | https://api.github.com/repos/axiomatic-systems/Bento4/issues/262/comments | 7 | 2018-04-06T18:25:35Z | 2018-04-21T18:07:31Z | https://github.com/axiomatic-systems/Bento4/issues/262 | 312,072,488 | 262 |
[
"axiomatic-systems",
"Bento4"
] | Hi,
AP4_Array::EnsureCapacity has the [following code](https://github.com/axiomatic-systems/Bento4/blob/3afdaaf61dc514a58d3b726be7a8039455d9b97c/Source/C%2B%2B/Core/Ap4Array.h#L176):
```
if (m_ItemCount && m_Items) {
for (unsigned int i=0; i<m_ItemCount; i++) {
new ((void*)&new_items[i]) T(m_Items[i]);
m_Items[i].~T();
}
::operator delete((void*)m_Items);
}
m_Items = new_items;
```
So, when (m_ItemCount == 0) then m_Items will not be deleted, it will just replaced with the new pointer. But m_Items is allocated always in constructor, [even for 0 items](https://github.com/axiomatic-systems/Bento4/blob/3afdaaf61dc514a58d3b726be7a8039455d9b97c/Source/C%2B%2B/Core/Ap4Array.h#L87):
```
template <typename T>
AP4_Array<T>::AP4_Array(const T* items, AP4_Size count) :
m_AllocatedCount(count),
m_ItemCount(count),
m_Items((T*)::operator new(count*sizeof(T)))
```
So, when I create AP_Array with 0 items and then append something to it, there will be a leaked block of memory with 0 bytes of content.
I think, the condition `if (m_ItemCount && m_Items)` isn't needed at all, since destructors of 0 items will not be called and it is always safe to delete NULL.
Best regards,
Michael Chelnokov. | Memory leak in AP4_Array::EnsureCapacity | https://api.github.com/repos/axiomatic-systems/Bento4/issues/261/comments | 1 | 2018-04-04T14:01:31Z | 2018-04-07T17:55:57Z | https://github.com/axiomatic-systems/Bento4/issues/261 | 311,242,964 | 261 |
[
"axiomatic-systems",
"Bento4"
] | Have a testing requirement for a HbbTV 2.0.2 compliant device. Am wondering whether mp4-dash command line params can be set to 'emulate' compliance (with the 2.0.2 spec.), as I can't really use the 'hbbtv-1.5='urn:hbbtv:dash:profile:isoff-live:2012' profile...
Jon | HbbTV 2.0.2 | https://api.github.com/repos/axiomatic-systems/Bento4/issues/260/comments | 2 | 2018-03-27T21:58:04Z | 2018-04-02T09:11:07Z | https://github.com/axiomatic-systems/Bento4/issues/260 | 309,148,765 | 260 |
[
"axiomatic-systems",
"Bento4"
] | I'm using Bento4 and ExpressPlay to package content and Shaka Player / VideoJS to play back content. I want to have both DASH and HLS playlists for multi-device support. Here is the script I'm using:
#### DASH + HLS with DRM
```
KID=18E93B2068ACAECBF142EF0266A23383
KEY=FF434A8474BD63EC1456E812F18424B7
CID=01af1718424ae08b
mp4fragment video.mp4 video_frag.mp4
mp4dash \
--force \
--subtitles \
--use-segment-timeline \
--profiles='on-demand' \
--marlin \
--widevine \
--widevine-header=provider:intertrust#content_id:${CID}#kid:${KID} \
--encryption-key=${KID}:${KEY} \
--encryption-cenc-scheme=cbcs \
--hls \
--hls-master-playlist-name=pl.m3u8 \
video_frag.mp4
```
#### DASH with DRM
```
mp4dash \
--force \
--subtitles \
--profiles='on-demand' \
--marlin \
--widevine \
--widevine-header=provider:intertrust#content_id:${CID}#kid:${KID} \
--encryption-key=${KID}:${KEY} \
--eme-signaling=pssh-v1 \
--use-segment-timeline \
video_frag.mp4
```
The results:
- With all DRM-specific options in _DASH + HLS with DRM_, the DASH and HLS content does NOT play back with Widevine token
- When I remove all DRM-specific options in _DASH + HLS with DRM_, both DASH and HLS content plays back
- When I use the _DASH with DRM_ script above, the DASH content plays back using Shaka Player using Widevine token
Am I missing something @barbibulle ? I'm using Bento4-SDK-1-5-1-622 on MacOS | Encrypted MP4DASH --hls content does not play back | https://api.github.com/repos/axiomatic-systems/Bento4/issues/259/comments | 12 | 2018-03-20T11:53:13Z | 2021-04-23T21:23:25Z | https://github.com/axiomatic-systems/Bento4/issues/259 | 306,833,866 | 259 |
[
"axiomatic-systems",
"Bento4"
] | Input: [test_encode.mp4.zip](https://github.com/axiomatic-systems/Bento4/files/1804936/test_encode.mp4.zip)
Duration: `00:01:00.03`
```
$ ffmpeg -i test_encode.mp4
ffmpeg version 3.4.2 Copyright (c) 2000-2018 the FFmpeg developers
built with Apple LLVM version 9.0.0 (clang-900.0.39.2)
configuration: --prefix=/usr/local/Cellar/ffmpeg/3.4.2 --enable-shared --enable-pthreads --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --disable-jack --enable-gpl --enable-ffplay --enable-frei0r --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopus --enable-librtmp --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-opencl --enable-videotoolbox --enable-openssl --disable-lzma --enable-libopenjpeg --disable-decoder=jpeg2000 --extra-cflags=-I/usr/local/Cellar/openjpeg/2.3.0/include/openjpeg-2.3 --enable-nonfree
libavutil 55. 78.100 / 55. 78.100
libavcodec 57.107.100 / 57.107.100
libavformat 57. 83.100 / 57. 83.100
libavdevice 57. 10.100 / 57. 10.100
libavfilter 6.107.100 / 6.107.100
libavresample 3. 7. 0 / 3. 7. 0
libswscale 4. 8.100 / 4. 8.100
libswresample 2. 9.100 / 2. 9.100
libpostproc 54. 7.100 / 54. 7.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test_encode.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf57.83.100
Duration: 00:01:00.03, start: 0.000000, bitrate: 1247 kb/s
Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 568x320 [SAR 1:1 DAR 71:40], 1152 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc (default)
Metadata:
handler_name : VideoHandler
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 87 kb/s (default)
Metadata:
handler_name : SoundHandler
At least one output file must be specified
```
Fragment using mp4fragment with --index option:
```
$ mp4fragment --fragment-duration 2002 test_encode.mp4 bento_fragmented.m4f --index --debug
Using track ID 1 as anchor
==== Track ID 1 - dts=0, target=60060, start=0, end=91/1799
---- Track ID 2 - dts=0, target=145746, start=0, end=142/2814
==== Track ID 1 - dts=91091, target=180180, start=91, end=172/1799
---- Track ID 2 - dts=145408, target=275475, start=142, end=269/2814
==== Track ID 1 - dts=172172, target=240240, start=172, end=230/1799
---- Track ID 2 - dts=275456, target=368368, start=269, end=360/2814
==== Track ID 1 - dts=230230, target=300300, start=230, end=289/1799
---- Track ID 2 - dts=368640, target=462862, start=360, end=452/2814
==== Track ID 1 - dts=289289, target=360360, start=289, end=373/1799
---- Track ID 2 - dts=462848, target=597397, start=452, end=583/2814
==== Track ID 1 - dts=373373, target=420420, start=373, end=404/1799
---- Track ID 2 - dts=596992, target=647046, start=583, end=632/2814
==== Track ID 1 - dts=404404, target=480480, start=404, end=475/1799
---- Track ID 2 - dts=647168, target=760760, start=632, end=743/2814
==== Track ID 1 - dts=475475, target=540540, start=475, end=524/1799
---- Track ID 2 - dts=760832, target=839238, start=743, end=820/2814
==== Track ID 1 - dts=524524, target=600600, start=524, end=598/1799
---- Track ID 2 - dts=839680, target=957757, start=820, end=935/2814
==== Track ID 1 - dts=598598, target=660660, start=598, end=668/1799
---- Track ID 2 - dts=957440, target=1069869, start=935, end=1045/2814
==== Track ID 1 - dts=668668, target=720720, start=668, end=724/1799
---- Track ID 2 - dts=1070080, target=1159558, start=1045, end=1132/2814
==== Track ID 1 - dts=724724, target=780780, start=724, end=775/1799
---- Track ID 2 - dts=1159168, target=1241240, start=1132, end=1212/2814
==== Track ID 1 - dts=775775, target=840840, start=775, end=841/1799
---- Track ID 2 - dts=1241088, target=1346946, start=1212, end=1315/2814
==== Track ID 1 - dts=841841, target=900900, start=841, end=900/1799
---- Track ID 2 - dts=1346560, target=1441440, start=1315, end=1408/2814
==== Track ID 1 - dts=900900, target=960960, start=900, end=958/1799
---- Track ID 2 - dts=1441792, target=1534333, start=1408, end=1498/2814
==== Track ID 1 - dts=958958, target=1021020, start=958, end=992/1799
---- Track ID 2 - dts=1533952, target=1588787, start=1498, end=1552/2814
==== Track ID 1 - dts=992992, target=1081080, start=992, end=1080/1799
---- Track ID 2 - dts=1589248, target=1729728, start=1552, end=1689/2814
==== Track ID 1 - dts=1081080, target=1141140, start=1080, end=1141/1799
---- Track ID 2 - dts=1729536, target=1827426, start=1689, end=1785/2814
==== Track ID 1 - dts=1142141, target=1201200, start=1141, end=1197/1799
---- Track ID 2 - dts=1827840, target=1917115, start=1785, end=1872/2814
==== Track ID 1 - dts=1198197, target=1261260, start=1197, end=1267/1799
---- Track ID 2 - dts=1916928, target=2029227, start=1872, end=1982/2814
==== Track ID 1 - dts=1268267, target=1321320, start=1267, end=1312/1799
---- Track ID 2 - dts=2029568, target=2101299, start=1982, end=2052/2814
==== Track ID 1 - dts=1313312, target=1381380, start=1312, end=1360/1799
---- Track ID 2 - dts=2101248, target=2178176, start=2052, end=2127/2814
==== Track ID 1 - dts=1361360, target=1441440, start=1360, end=1412/1799
---- Track ID 2 - dts=2178048, target=2261459, start=2127, end=2208/2814
==== Track ID 1 - dts=1413412, target=1501500, start=1412, end=1564/1799
---- Track ID 2 - dts=2260992, target=2504902, start=2208, end=2446/2814
==== Track ID 1 - dts=1565564, target=1621620, start=1564, end=1629/1799
---- Track ID 2 - dts=2504704, target=2609006, start=2446, end=2548/2814
==== Track ID 1 - dts=1630629, target=1681680, start=1629, end=1658/1799
---- Track ID 2 - dts=2609152, target=2655453, start=2548, end=2593/2814
==== Track ID 1 - dts=1659658, target=1741740, start=1658, end=1749/1799
---- Track ID 2 - dts=2655232, target=2801198, start=2593, end=2736/2814
==== Track ID 1 - dts=1750749, target=1801800, start=1749, end=1799/1799
[Track ID 1 has reached the end]
---- Track ID 2 - dts=2801664, target=2881278, start=2736, end=2814/2814
[Track ID 2 has reached the end]
```
Output: [bento_fragmented.m4f.zip](https://github.com/axiomatic-systems/Bento4/files/1804934/bento_fragmented.m4f.zip)
FFmpeg says of output as `00:02:36.08`
```
$ ffmpeg -i bento_fragmented.m4f
ffmpeg version 3.4.2 Copyright (c) 2000-2018 the FFmpeg developers
built with Apple LLVM version 9.0.0 (clang-900.0.39.2)
configuration: --prefix=/usr/local/Cellar/ffmpeg/3.4.2 --enable-shared --enable-pthreads --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --disable-jack --enable-gpl --enable-ffplay --enable-frei0r --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopus --enable-librtmp --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-opencl --enable-videotoolbox --enable-openssl --disable-lzma --enable-libopenjpeg --disable-decoder=jpeg2000 --extra-cflags=-I/usr/local/Cellar/openjpeg/2.3.0/include/openjpeg-2.3 --enable-nonfree
libavutil 55. 78.100 / 55. 78.100
libavcodec 57.107.100 / 57.107.100
libavformat 57. 83.100 / 57. 83.100
libavdevice 57. 10.100 / 57. 10.100
libavfilter 6.107.100 / 6.107.100
libavresample 3. 7. 0 / 3. 7. 0
libswscale 4. 8.100 / 4. 8.100
libswresample 2. 9.100 / 2. 9.100
libpostproc 54. 7.100 / 54. 7.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'bento_fragmented.m4f':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41iso5
Duration: 00:02:36.08, start: 0.000000, bitrate: 478 kb/s
Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 568x320 [SAR 1:1 DAR 71:40], 443 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc (default)
Metadata:
handler_name : Bento4 Video Handler
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 87 kb/s (default)
Metadata:
handler_name : Bento4 Sound Handler
At least one output file must be specified
```
The output when played with player like ffplay , MplayerX has stutter around the fragment start/end.
This happens only when the source media has both audio and video. If we fragment audio-only / video-only source, then there is no problem with the playback.
Also I tried fragmenting with MP4Box (gpac).
```
$ MP4Box -dash 2002 -single-segment test_encode.mp4 -out gpac_fragmented
```
```
$ ffmpeg -i gpac_fragmented.mp4
ffmpeg version 3.4.2 Copyright (c) 2000-2018 the FFmpeg developers
built with Apple LLVM version 9.0.0 (clang-900.0.39.2)
configuration: --prefix=/usr/local/Cellar/ffmpeg/3.4.2 --enable-shared --enable-pthreads --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --disable-jack --enable-gpl --enable-ffplay --enable-frei0r --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopus --enable-librtmp --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-opencl --enable-videotoolbox --enable-openssl --disable-lzma --enable-libopenjpeg --disable-decoder=jpeg2000 --extra-cflags=-I/usr/local/Cellar/openjpeg/2.3.0/include/openjpeg-2.3 --enable-nonfree
libavutil 55. 78.100 / 55. 78.100
libavcodec 57.107.100 / 57.107.100
libavformat 57. 83.100 / 57. 83.100
libavdevice 57. 10.100 / 57. 10.100
libavfilter 6.107.100 / 6.107.100
libavresample 3. 7. 0 / 3. 7. 0
libswscale 4. 8.100 / 4. 8.100
libswresample 2. 9.100 / 2. 9.100
libpostproc 54. 7.100 / 54. 7.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'gpac_fragmented.mp4':
Metadata:
major_brand : iso5
minor_version : 1
compatible_brands: avc1iso5dsmsmsixdash
encoder : Lavf57.83.100
Duration: 00:01:00.03, start: 0.000000, bitrate: 1246 kb/s
Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 568x320 [SAR 1:1 DAR 71:40], 0 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc (default)
Metadata:
handler_name : VideoHandler
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 0 kb/s (default)
Metadata:
handler_name : SoundHandler
At least one output file must be specified
```
Fragmented output from gpac do not have this problem.
[gpac_fragmented.mp4.zip](https://github.com/axiomatic-systems/Bento4/files/1804946/gpac_fragmented.mp4.zip)
| Playback stutters for output with sidx box ( --index option ) | https://api.github.com/repos/axiomatic-systems/Bento4/issues/258/comments | 10 | 2018-03-13T00:03:05Z | 2018-05-27T17:11:31Z | https://github.com/axiomatic-systems/Bento4/issues/258 | 304,583,041 | 258 |
[
"axiomatic-systems",
"Bento4"
] | Hi,
Whilst it is possible to set filters/mapping on encryption keys (e.g only use this key for audio).
It appears that it is still only possible to have one global PSSH box (per DRM system) shared between tracks in this instance.
It is common with many DRM systems that the PSSH data would be different for each track in this case (since they may include references to the keyId in the PSSH payload).
MP4Encrypt should support filter criteria on the PSSH args also (instead of only on the Key/Propery args.
To be clear - I am referring to the insertion of PSSH atoms into the init fragment here... | Not possible to set distinct PSSH data for different encryption key(s)/keyid(s) | https://api.github.com/repos/axiomatic-systems/Bento4/issues/257/comments | 4 | 2018-03-12T16:45:05Z | 2018-09-10T06:32:05Z | https://github.com/axiomatic-systems/Bento4/issues/257 | 304,451,590 | 257 |
[
"axiomatic-systems",
"Bento4"
] | Hi,
I have a video with 30 fps of length 75 seconds.
When i use mp42aac and mp42avc to get the raw video and audio streams.
Then, i use mp4mux to get an mp4 file compilant with CMAF specification.
The generated mp4 file has 24 fps of length 95 seconds.
I think there is a problem in the time scale and duration values of the new generated video.
Would you please help me how i can solve this issue ? | mp4mux generate video frame rate | https://api.github.com/repos/axiomatic-systems/Bento4/issues/256/comments | 1 | 2018-03-06T18:05:41Z | 2018-03-18T03:38:58Z | https://github.com/axiomatic-systems/Bento4/issues/256 | 302,807,326 | 256 |
[
"axiomatic-systems",
"Bento4"
] | Hello,
I would like to know if Bento4 tool offer possibility to convert live mpd streaming to Hls ?
Regards | Can we convert live streaming mpeg-dash to Hls m3u8 | https://api.github.com/repos/axiomatic-systems/Bento4/issues/255/comments | 2 | 2018-03-04T09:25:32Z | 2018-03-05T00:24:58Z | https://github.com/axiomatic-systems/Bento4/issues/255 | 302,070,702 | 255 |
[
"axiomatic-systems",
"Bento4"
] | Creating an HLS m3u8 playlist using the same fMP4 segments as the DASH version, does not play on IOS or MS Edge? | https://api.github.com/repos/axiomatic-systems/Bento4/issues/253/comments | 0 | 2018-03-01T10:10:05Z | 2018-03-01T10:10:05Z | https://github.com/axiomatic-systems/Bento4/issues/253 | 301,346,210 | 253 | |
[
"axiomatic-systems",
"Bento4"
] | Hi,
What are the steps that i should follow to create a CMAF-compliant fragmented MP4 files ?
Assuming that i have an already encoded mp4 file.
Best Regards,
Omar | CMAF Compliant fMP4 Files | https://api.github.com/repos/axiomatic-systems/Bento4/issues/252/comments | 7 | 2018-03-01T02:32:02Z | 2020-03-30T07:11:59Z | https://github.com/axiomatic-systems/Bento4/issues/252 | 301,256,643 | 252 |
[
"axiomatic-systems",
"Bento4"
] | Hi, I'm currently working on my research involving DASH.
Simply I would like to make video(fragmented mp4) start at the specific time just like any m4s media segment from Dash.
For example, if a segment is for timestamp 4 sec, I would like to make similar fmp4 to that segment which starts from 4 sec and no video before 4 sec, so that I could replace the segment.
My question is
1) If I want the fragmented mp4 video [moof mdat] to start at specific time, is
'base media decode time' (in moof/traf/tfdt path) the correct field that I have to change?
2) If 1) is correct, is there any way or supported tool that I could set or change [tfdt] field of the mp4 ?
- I tried `mp4edit --replace` to replace tfdt from other video segment, but it seems that mp4edit replace is limited tool and doesn't support what I need.
- It prints error like
`ERROR: atom 'moof/traf/tfdt' not found` | How to set(change) tfdt field? | https://api.github.com/repos/axiomatic-systems/Bento4/issues/251/comments | 3 | 2018-02-27T11:30:37Z | 2021-07-23T08:14:36Z | https://github.com/axiomatic-systems/Bento4/issues/251 | 300,594,202 | 251 |
[
"axiomatic-systems",
"Bento4"
] | Command: `mp4fragment --tfdt-start 1519350239.52 --fragment-duration 999999999 y.mp4 z.mp4`
Input file: [y.zip](https://github.com/axiomatic-systems/Bento4/files/1750757/y.zip)
App version: 1.5.1-622 from https://www.bento4.com/downloads/
Expected result:
```
[tfdt] size=12+8, version=1
base media decode time = 136741521556800
```
At 90000 timescale that is 1519350239.52 seconds.
Actual result:
When executing mp4fragment on Windows, actual result matches expected result.
When executing mp4fragment on Linux (Docker container from `ubuntu:latest` image):
```
[tfdt] size=12+8, version=1
base media decode time = 136741524480000
```
At 90000 timescale that is 1519350272 seconds which is 32.48 seconds too large a value.
With smaller values in input, the tfdt in the output appears to be correct. The idea here is to use 1970 as the zero point, hence the large numbers. | mp4fragment command produces wrong tfdt on Linux, correct on Windows | https://api.github.com/repos/axiomatic-systems/Bento4/issues/250/comments | 1 | 2018-02-23T07:29:46Z | 2018-02-25T00:54:40Z | https://github.com/axiomatic-systems/Bento4/issues/250 | 299,622,264 | 250 |
[
"axiomatic-systems",
"Bento4"
] | Bento4 can read faststart with "mp4info", but it seems to have no way to write - these other programs can do it
~~~
ffmpeg -i infile.m4a -c copy -movflags faststart outfile.m4a
~~~
~~~
mp4box -ipod infile.m4a
~~~ | write faststart | https://api.github.com/repos/axiomatic-systems/Bento4/issues/249/comments | 2 | 2018-02-19T03:34:38Z | 2018-02-19T03:58:44Z | https://github.com/axiomatic-systems/Bento4/issues/249 | 298,153,081 | 249 |
[
"axiomatic-systems",
"Bento4"
] | Mp4Box can do this:
~~~
mp4box -add xr.mp4 -add xr.srt -new ya.mp4
~~~
I did not see a Bento4 tool that can do this | Add subtitles to MP4 file | https://api.github.com/repos/axiomatic-systems/Bento4/issues/248/comments | 1 | 2018-02-19T02:34:32Z | 2018-02-19T03:35:56Z | https://github.com/axiomatic-systems/Bento4/issues/248 | 298,146,535 | 248 |
[
"axiomatic-systems",
"Bento4"
] | how to decrypt segment files ?????
whether to combine all those segment files and decrypt
or
is decrypt each segment file and combine it
help me to solve...... | how to decrypt segment files | https://api.github.com/repos/axiomatic-systems/Bento4/issues/247/comments | 1 | 2018-02-15T09:44:06Z | 2018-02-19T03:57:50Z | https://github.com/axiomatic-systems/Bento4/issues/247 | 297,381,951 | 247 |
[
"axiomatic-systems",
"Bento4"
] | I have encrypted a video
mp4dash --marlin --encryption-key=121a0fca0f1b475b8910297fa8e0a07e:a0a1a2a3a4a5a6a7a8a9aaabacadaeaf a.mp4 --init-segment=init.mp4
while decrypting with same kid and key the output file is not opening
| decryption of video failed | https://api.github.com/repos/axiomatic-systems/Bento4/issues/246/comments | 1 | 2018-02-15T09:42:03Z | 2018-02-19T03:56:07Z | https://github.com/axiomatic-systems/Bento4/issues/246 | 297,381,393 | 246 |
[
"axiomatic-systems",
"Bento4"
] | ```
mp4fragment low.mp4 lowf.mp4
ffprobe -v error -print_format json -show_format -show_streams lowf.mp4
{
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x322df00] invalid STSD entries 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x322df00] error reading header
lowf.mp4: Invalid data found when processing input
}
```
I have the video (low.mp4) exhibiting the problem, but I'm not at liberty to share it publicly, so if you can reach out to me at calvin@correli.me, I'm happy to provide a URL where you can download it. | ffprobe says "invalid STSD entries 0" after mp4fragment | https://api.github.com/repos/axiomatic-systems/Bento4/issues/245/comments | 5 | 2018-02-12T02:22:52Z | 2019-05-25T19:10:04Z | https://github.com/axiomatic-systems/Bento4/issues/245 | 296,251,293 | 245 |
[
"axiomatic-systems",
"Bento4"
] | Version 1.8.0 r621
*This command :*
`mp4dash -o test --hls --no-media -v -f --profiles='on-demand' V_CUBEMAP_B5000R2064x1376.mp4 V_CUBEMAP_B3000R1584x1056.mp4 V_CUBEMAP_B1500R1152x768.mp4 A_AAC96.mp4`
*results in :*
```
Profiles: urn:mpeg:dash:profile:isoff-on-demand:2011
Parsing media file 1: V_CUBEMAP_B5000R2064x1376.mp4
Parsing media file 2: V_CUBEMAP_B3000R1584x1056.mp4
Parsing media file 3: V_CUBEMAP_B1500R1152x768.mp4
Parsing media file 4: A_AAC96.mp4
Extracting track 1 from A_AAC96.mp4
Extracting track 1 from V_CUBEMAP_B5000R2064x1376.mp4
Extracting track 1 from V_CUBEMAP_B3000R1584x1056.mp4
Extracting track 1 from V_CUBEMAP_B1500R1152x768.mp4
Parsing media file 1: tmpsqQlWa = Extracted[track 1 from A_AAC96.mp4]
Parsing media file 2: tmpIe66Ay = Extracted[track 1 from V_CUBEMAP_B5000R2064x1376.mp4]
Parsing media file 3: tmpwJnmQq = Extracted[track 1 from V_CUBEMAP_B3000R1584x1056.mp4]
Parsing media file 4: tmpr7Py6C = Extracted[track 1 from V_CUBEMAP_B1500R1152x768.mp4]
Audio: {('audio', u'und', u'mp4a'): [File 1#1]}
Video: {('video', u'avc1'): [File 2#1, File 3#1, File 4#1]}
Subtitles: {}
INFO: adjusting segment duration for audio track File 1#1 to 2.002 to match the video
audio track: File 1#1 - language=und, max bitrate=105255, avg bitrate=98000, req bandwidth=105255, codec=mp4a.40.2
video track: File 2#1 - language=und, max bitrate=6672163, avg bitrate=4890082, req bandwidth=4807898, codec=avc1.640033
video track: File 3#1 - language=und, max bitrate=4077542, avg bitrate=2938419, req bandwidth=2884466, codec=avc1.64002A
video track: File 4#1 - language=und, max bitrate=2039852, avg bitrate=1475055, req bandwidth=1456954, codec=avc1.640020
ERROR: cannot open input file test/media-video-avc1-1.mp4 (-4)
```
removing `--hls` or `--no-media` solves the problem (at the cost of functionality) | mp4dash fails when using both --hls and --no-media | https://api.github.com/repos/axiomatic-systems/Bento4/issues/244/comments | 0 | 2018-02-08T14:27:04Z | 2018-02-08T14:27:04Z | https://github.com/axiomatic-systems/Bento4/issues/244 | 295,531,390 | 244 |
[
"axiomatic-systems",
"Bento4"
] | I get this fairly regularly.
People upload videos, which I process with ffmpeg, then mp4fragment, and then mp4dash.
My command line is something like this, but the parameters don't seem to matter:
```mp4dash --verbose --profiles=on-demand --no-split --hls -o hls1 ffmpeg-output-general-fragmented.mp4```
Output:
```Profiles: urn:mpeg:dash:profile:isoff-on-demand:2011
Parsing media file 1: ffmpeg-output-general-fragmented.mp4
ERROR: float division by zero
```
Here's the output from mp4info:
```$ mp4info ffmpeg-output-general-fragmented.mp4
File:
major brand: isom
minor version: 200
compatible brand: isom
compatible brand: iso2
compatible brand: avc1
compatible brand: iso6
compatible brand: mp41
compatible brand: iso5
fast start: yes
Movie:
duration: 0 ms
time scale: 1000
fragments: yes
Found 3 Tracks
Track 1:
flags: 7 ENABLED IN-MOVIE IN-PREVIEW
id: 1
type: Video
duration: 0 ms
language: und
media:
sample count: 0
timescale: 30000
duration: 0 (media timescale units)
duration: 0 (ms)
bitrate (computed): 236.567 Kbps
sample count with fragments: 10398
duration with fragments: 10408398
duration with fragments: 346947 (ms)
display width: 1280.000000
display height: 720.000000
Sample Description 0
Coding: avc1 (H.264)
Width: 1280
Height: 720
Depth: 24
AVC Profile: 100 (High)
AVC Profile Compat: 0
AVC Level: 42
AVC NALU Length Size: 4
AVC SPS: [6764002aacd9405005bb011000003e90000ea600f1831960]
AVC PPS: [68ebe3cb22c0]
Codecs String: avc1.64002A
Track 2:
flags: 7 ENABLED IN-MOVIE IN-PREVIEW
id: 2
type: Audio
duration: 0 ms
language: dan
media:
sample count: 0
timescale: 44100
duration: 0 (media timescale units)
duration: 0 (ms)
bitrate (computed): 96.007 Kbps
sample count with fragments: 14944
duration with fragments: 15303289
duration with fragments: 347013 (ms)
Sample Description 0
Coding: mp4a (MPEG-4 Audio)
Stream Type: Audio
Object Type: MPEG-4 Audio
Max Bitrate: 96000
Avg Bitrate: 0
Buffer Size: 0
Codecs String: mp4a.40.2
MPEG-4 Audio Object Type: 2 (AAC Low Complexity)
MPEG-4 Audio Decoder Config:
Sampling Frequency: 44100
Channels: 2
Sample Rate: 44100
Sample Size: 16
Channels: 2
Track 3:
flags: 7 ENABLED IN-MOVIE IN-PREVIEW
id: 3
type: Unknown [tmcd]
duration: 0 ms
language: ```
media:
sample count: 0
timescale: 30000
duration: 0 (media timescale units)
duration: 0 (ms)
bitrate (computed): 0.000 Kbps
sample count with fragments: 1
duration with fragments: 0
duration with fragments: 0 (ms)
Sample Description 0
Coding: tmcd
```
I'm guessing it's because of Track 3 with a duration of 0, but I'm not sure, as there's no more information other than the above.
I've tried to figure out how to remove this track using ffmpeg, but so far I've been unsuccessful. I've tried ``-dn``, ``-sn``, ``-map 0:0 -map 0:1`` and other things that seem like they should work, but the third track (third rail? haha) remains, and the division by zero remains as well. | mp4dash throws ERROR: float division by zero | https://api.github.com/repos/axiomatic-systems/Bento4/issues/243/comments | 3 | 2018-02-07T19:57:25Z | 2018-04-21T18:17:20Z | https://github.com/axiomatic-systems/Bento4/issues/243 | 295,271,990 | 243 |
[
"axiomatic-systems",
"Bento4"
] | Does bento4 have support for unix pipes, like ffmpeg? https://ffmpeg.org/ffmpeg-protocols.html#pipe
Or is there a way to use a url as input? mp4hls http://path_to_mp4.mp4
I really love the speed and ease of use of the mp4hls tool, and I'd prefer to not fall back to ffmpeg just for hls segmenting.
I am trying to avoid downloading files to disk to run mp4hls, so I'm looking for a way to stream a download through bento. I'm not sure if this is possible with this tool yet, but I haven't been able to get it to work at all. I don't see any support for it in the python script as far as I can see.
Let me know if I'm missing something, or if you have any suggestions. If it's not possible yet, it would be a really handy feature! Thanks. | Support for unix pipes or downloads | https://api.github.com/repos/axiomatic-systems/Bento4/issues/242/comments | 1 | 2018-01-22T21:40:46Z | 2018-01-26T05:47:52Z | https://github.com/axiomatic-systems/Bento4/issues/242 | 290,625,652 | 242 |
[
"axiomatic-systems",
"Bento4"
] | Hello,
I've been digging around in the code to find out how the bandwidth was calculated and came across this code
```
for atom in self.tree:
segment_size += atom['size']
```
Inside the mp4utils.py. After printing out the names of the atom and its size I found out that the first fragment size contains not only moof + mdat boxes, but also the size of the ftyp and moov box. Was it done intentionally?
Thank you! | First segment size contains ftyp + moov + moof + mdat. Ok? | https://api.github.com/repos/axiomatic-systems/Bento4/issues/241/comments | 1 | 2018-01-19T18:06:07Z | 2018-02-20T03:19:03Z | https://github.com/axiomatic-systems/Bento4/issues/241 | 290,060,756 | 241 |
[
"axiomatic-systems",
"Bento4"
] | Hi,
Hls.js refuses to play SAMPLE-AES encrypted audio, but plays just fine SAMPLE-AES encrypted video (.ts). It can be seen in the bento4's output that the audio playlist contains byte-range request of odd sizes (purely speculating), not sure whether that could potentially create a problem to hls.js or not:
[demo link](http://streambox.fr/mse/hls.js-0.8.9/demo/?src=https%3A%2F%2Fvideo-8f60.kxcdn.com%2Fdemo_sample-aes_BAD%2Fmaster.m3u8&enableStreaming=true&autoRecoverError=true&enableWorker=true&dumpfMP4=false&levelCapping=-1&defaultAudioCodec=undefined) (there might be a delay before playback start, when it tries to get the sound to work, but fails)
[master.m3u8 link](https://video-8f60.kxcdn.com/demo_sample-aes_BAD/master.m3u8)
When I replace the audio stream by the same but AES-128 encrypted, then it plays fine, byte-range request sizes are all even (and divisible by 16):
[demo link](http://streambox.fr/mse/hls.js-0.8.9/demo/?src=https%3A%2F%2Fvideo-8f60.kxcdn.com%2Fdemo_sample-aes_GOOD%2Fmaster.m3u8&enableStreaming=true&autoRecoverError=true&enableWorker=true&dumpfMP4=false&levelCapping=-1&defaultAudioCodec=undefined)
[master.m3u8 link](https://video-8f60.kxcdn.com/demo_sample-aes_GOOD/master.m3u8) | Unplayable SAMPLE-AES encrypted sound rendition in hls.js [bug] | https://api.github.com/repos/axiomatic-systems/Bento4/issues/240/comments | 0 | 2018-01-19T11:05:10Z | 2018-01-20T03:24:29Z | https://github.com/axiomatic-systems/Bento4/issues/240 | 289,939,202 | 240 |
[
"axiomatic-systems",
"Bento4"
] | Hello,
I am trying to process encrypted test audio file using `AP4_CencDecryptingProcessor` which succeeds (returns `AP4_Success`) but I am getting output file with only 512 bytes. It's not even calling my custom `AP4_CencSingleSampleDecrypter`. File can be downloaded [here](https://demo.cf.castlabs.com/media/bbb_abr/BBBa.mp4).
Code looks something like this:
```
...
AP4_ByteStream* audio_file_input;
AP4_ByteStream* audio_output;
AP4_Processor *p;
p = new AP4_CencDecryptingProcessor(&dummy_keys, NULL, new MY_CencSingleSampleDecrypter(my_decrypter));
AP4_FileByteStream::Create(audio_in_file.c_str(), AP4_FileByteStream::STREAM_MODE_READ, audio_file_input);
AP4_FileByteStream::Create("/tmp/test_output.mp4", AP4_FileByteStream::STREAM_MODE_WRITE, audio_output);
p->Process(*audio_file_input, *audio_output, NULL); // this returns AP4_SUCCESS
```
This is info about the file:
```
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: 48000
fragments: yes
Found 1 Tracks
Track 1:
flags: 7 ENABLED IN-MOVIE IN-PREVIEW
id: 1
type: Audio
duration: 0 ms
language: und
media:
sample count: 0
timescale: 48000
duration: 0 (media timescale units)
duration: 0 (ms)
bitrate (computed): 125.437 Kbps
sample count with fragments: 27960
duration with fragments: 28631040
duration with fragments: 596480 (ms)
Sample Description 0
[ENCRYPTED]
Coding: enca
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 = [ba 8b 9b b6 b5 5a 4f f6 b5 cc 0e 80 67 34 ad 80]
Bytes: 000000000000000100000000000000000002001000000000bb80000000000027657364730000000003190000000411401500018d0001f4980001e9f805021190060102
Coding: mp4a (MPEG-4 Audio)
Stream Type: Audio
Object Type: MPEG-4 Audio
Max Bitrate: 128152
Avg Bitrate: 125432
Buffer Size: 397
Codecs String: mp4a.40.2
MPEG-4 Audio Object Type: 2 (AAC Low Complexity)
MPEG-4 Audio Decoder Config:
Sampling Frequency: 48000
Channels: 2
Sample Rate: 48000
Sample Size: 16
Channels: 2
``` | Problem with AP4_CencDecryptingProcessor processing audio file | https://api.github.com/repos/axiomatic-systems/Bento4/issues/239/comments | 2 | 2018-01-18T09:32:44Z | 2019-01-22T00:11:44Z | https://github.com/axiomatic-systems/Bento4/issues/239 | 289,560,300 | 239 |
[
"axiomatic-systems",
"Bento4"
] | Hi,
Is it possible to add some custom atom in the header of a MP4 video file?
I need to add the terms "beam" and "loop" in the header of MP4 files before the "moov" atom.
More information can be found here :
https://stackoverflow.com/questions/44893316/whatsapp-video-as-gif-sharing-on-android-programatically
I do not want to edit the headers via too much calculations, as the answer suggests. Is there a simple way to add the atom "loop" to any MP4 files?
How does one go about using your library, and adding a custom atom to any MP4 file?
Use Case :-
WhatsApp does a smart thing. Their animated GIFs are actually MP4 files (which contain this atom "loop"), and the MP4 files which it wants to treat as videos in their UI, they do not add that "loop" atom. We wish to do something similar.
Any help would be truly appreciated! | Adding custom atoms to MP4 files? | https://api.github.com/repos/axiomatic-systems/Bento4/issues/238/comments | 12 | 2018-01-15T10:20:22Z | 2018-02-25T19:35:04Z | https://github.com/axiomatic-systems/Bento4/issues/238 | 288,543,876 | 238 |
[
"axiomatic-systems",
"Bento4"
] | Hi, I would like to Fairplay-encrypt some content using fmp4 source files, but I don't find the way to include the following options that I need:
--encryption-args="--encryption-iv-mode=fps --encryption_key_format=com.apple.streamingkeydelivery --encryption-key-format-versions=1
....within the mp4dash command. If there any way? Thank you in advance | HLS encryption options from mp4dash app | https://api.github.com/repos/axiomatic-systems/Bento4/issues/237/comments | 4 | 2018-01-09T16:25:48Z | 2018-02-19T04:56:09Z | https://github.com/axiomatic-systems/Bento4/issues/237 | 287,148,574 | 237 |
[
"axiomatic-systems",
"Bento4"
] | So I'm trying to use `mp4fragment` and `mp4dash` to generate fMP4 HLS streams with four video variants (360p, 480p, 720p, 1080p), but I'm running into an issue that ends up with `ERROR: video tracks are not aligned`.
All the streams have been encoded with I-frames at fixed 192 frame intervals - I use a qpfile with x264 to ensure this, and I've verified that they are indeed in place in all variants with ffprobe. The problem is that for better quality I still allow the encoder to insert additional keyframes within those 192 frame segments where necessary, and this seems to cause issues for `mp4fragment`. Instead of proper constant 192 frame/sample fragments, `mp4fragment` (with `--verbosity 3`) gives slightly varying fragment lengths, like so:
```
...
fragment: track ID 1
192 samples
constant sample duration: no
fragment: track ID 1
191 samples
constant sample duration: no
fragment: track ID 1
191 samples
constant sample duration: no
fragment: track ID 1
194 samples
constant sample duration: no
fragment: track ID 1
192 samples
constant sample duration: no
...
```
This happens with basically all the variants. On top of that, mp4dash seems to have issues with the fragment duration too (which is 8 seconds at 192 frames at 23.976 fps), as it reports `auto-detected fragment duration too large, using default` when parsing/extracting the video tracks.
Would it be possible to specify fragment duration in frames with `mp4fragment`? Shouldn't `mp4dash` allow 192 sample fragments? `mp4hls` with 8 second segment duration works with my source files just fine, but it doesn't support generating (f)MP4 files, so right now I'm kinda stuck here... | mp4fragment not fragmenting fixed I-frame interval properly | https://api.github.com/repos/axiomatic-systems/Bento4/issues/236/comments | 11 | 2018-01-08T15:33:35Z | 2020-04-27T13:57:32Z | https://github.com/axiomatic-systems/Bento4/issues/236 | 286,782,929 | 236 |
[
"axiomatic-systems",
"Bento4"
] | I downloaded a file to make some tests along with mpd
Separate audio/video files both encrypted
key is: 43D1465BE137D6ED0100000000000000
I know its not KID as I got it from licensing request (private connection)
command: mp4decrypt --key 1:43D1465BE137D6ED0100000000000000 --key 2:43D1465BE137D6ED0100000000000000 encrypted.mp4 decrypted.mp4
everything is fine and no errors but still file is encrypted (in media info shows also encrypted)
what is wrong ? | Can't decrypt mp4 file | https://api.github.com/repos/axiomatic-systems/Bento4/issues/235/comments | 2 | 2018-01-08T12:09:19Z | 2018-02-11T00:20:04Z | https://github.com/axiomatic-systems/Bento4/issues/235 | 286,726,217 | 235 |
[
"axiomatic-systems",
"Bento4"
] | Is this scenario supported by mp4dash? | Support for HLS fmp4 clear key AES-128 | https://api.github.com/repos/axiomatic-systems/Bento4/issues/234/comments | 4 | 2018-01-08T10:41:53Z | 2024-05-06T15:42:17Z | https://github.com/axiomatic-systems/Bento4/issues/234 | 286,705,658 | 234 |
[
"axiomatic-systems",
"Bento4"
] | MP4 To AAC File Converter - Version 1.0
(Bento4 Version 1.5.1.0)
(c) 2002-2008 Axiomatic Systems, LLC
#### ./mp42aac @@testcase ./out.aac
```
(gdb) bt
#0 0x00007ffff756c230 in __read_nocancel () at ../sysdeps/unix/syscall-template.S:84
#1 0x00007ffff74ef5e8 in _IO_new_file_underflow (fp=0x87b110) at fileops.c:592
#2 0x00007ffff74ee058 in __GI__IO_file_xsgetn (fp=0x87b110, data=<optimized out>, n=4) at fileops.c:1414
#3 0x00007ffff74e3236 in __GI__IO_fread (buf=<optimized out>, size=size@entry=1, count=4, fp=0x87b110) at iofread.c:38
#4 0x0000000000556017 in fread (__stream=<optimized out>, __n=<optimized out>, __size=1, __ptr=<optimized out>) at /usr/include/x86_64-linux-gnu/bits/stdio2.h:295
#5 AP4_StdcFileByteStream::ReadPartial (this=0x87c350, buffer=<optimized out>, bytesToRead=<optimized out>, bytesRead=@0x7fffffffdcfc: 0) at /home/fuzz/fuzz/Bento4/Source/C++/System/StdC/Ap4StdCFileByteStream.cpp:237
#6 0x00000000004466ac in AP4_ByteStream::Read (bytes_to_read=4, buffer=0x7fffffffdd00, this=0x87c350) at /home/fuzz/fuzz/Bento4/Source/C++/Core/Ap4ByteStream.cpp:55
#7 AP4_ByteStream::ReadUI32 (this=this@entry=0x87c350, value=@0x7fffffffdd44: 0) at /home/fuzz/fuzz/Bento4/Source/C++/Core/Ap4ByteStream.cpp:242
#8 0x000000000051deb5 in AP4_FtypAtom::AP4_FtypAtom (this=0x87dd10, size=4278466413, stream=...) at /home/fuzz/fuzz/Bento4/Source/C++/Core/Ap4FtypAtom.cpp:52
#9 0x00000000005c3a8a in AP4_FtypAtom::Create (stream=..., size=37) at /home/fuzz/fuzz/Bento4/Source/C++/Core/Ap4FtypAtom.h:66
#10 AP4_AtomFactory::CreateAtomFromStream (this=0x7fffffffe330, stream=..., type=<optimized out>, size_32=37, size_64=37, atom=@0x7fffffffde88: 0x0) at /home/fuzz/fuzz/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:583
#11 0x00000000005cb68f in AP4_AtomFactory::CreateAtomFromStream (this=this@entry=0x7fffffffe330, stream=..., bytes_available=@0x7fffffffde90: 1052, atom=@0x7fffffffde88: 0x0)
at /home/fuzz/fuzz/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:220
#12 0x00000000005d0aa5 in AP4_ContainerAtom::ReadChildren (size=<optimized out>, stream=..., atom_factory=..., this=0x87dc10) at /home/fuzz/fuzz/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:194
#13 AP4_ContainerAtom::AP4_ContainerAtom (this=0x87dc10, type=<optimized out>, size=<optimized out>, force_64=<optimized out>, stream=..., atom_factory=...) at /home/fuzz/fuzz/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:139
#14 0x00000000005d13b5 in AP4_ContainerAtom::Create (type=type@entry=1835297121, size=size@entry=1092, is_full=is_full@entry=false, force_64=<optimized out>, stream=..., atom_factory=...)
at /home/fuzz/fuzz/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:88
#15 0x00000000005c78c2 in AP4_AtomFactory::CreateAtomFromStream (this=0x7fffffffe330, stream=..., type=1835297121, size_32=1092, size_64=1092, atom=@0x7fffffffe038: 0x0) at /home/fuzz/fuzz/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:755
#16 0x00000000005cb68f in AP4_AtomFactory::CreateAtomFromStream (this=this@entry=0x7fffffffe330, stream=..., bytes_available=@0x7fffffffe040: 1092, atom=@0x7fffffffe038: 0x0)
at /home/fuzz/fuzz/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:220
#17 0x00000000005d0aa5 in AP4_ContainerAtom::ReadChildren (size=<optimized out>, stream=..., atom_factory=..., this=0x87daf0) at /home/fuzz/fuzz/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:194
#18 AP4_ContainerAtom::AP4_ContainerAtom (this=0x87daf0, type=<optimized out>, size=<optimized out>, force_64=<optimized out>, stream=..., atom_factory=...) at /home/fuzz/fuzz/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:139
#19 0x00000000004e4e67 in AP4_TrakAtom::AP4_TrakAtom (this=0x87daf0, size=<optimized out>, stream=..., atom_factory=...) at /home/fuzz/fuzz/Bento4/Source/C++/Core/Ap4TrakAtom.cpp:165
#20 0x00000000005c6f6d in AP4_TrakAtom::Create (atom_factory=..., stream=..., size=1192) at /home/fuzz/fuzz/Bento4/Source/C++/Core/Ap4TrakAtom.h:58
#21 AP4_AtomFactory::CreateAtomFromStream (this=0x7fffffffe330, stream=..., type=<optimized out>, size_32=1192, size_64=1192, atom=@0x7fffffffe1a8: 0x0) at /home/fuzz/fuzz/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:377
#22 0x00000000005cb68f in AP4_AtomFactory::CreateAtomFromStream (this=this@entry=0x7fffffffe330, stream=..., bytes_available=@0x7fffffffe1b0: 1405, atom=@0x7fffffffe1a8: 0x0)
at /home/fuzz/fuzz/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:220
#23 0x00000000005d0aa5 in AP4_ContainerAtom::ReadChildren (size=<optimized out>, stream=..., atom_factory=..., this=0x87d750) at /home/fuzz/fuzz/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:194
#24 AP4_ContainerAtom::AP4_ContainerAtom (this=0x87d750, type=<optimized out>, size=<optimized out>, force_64=<optimized out>, stream=..., atom_factory=...) at /home/fuzz/fuzz/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:139
#25 0x000000000050db63 in AP4_MoovAtom::AP4_MoovAtom (this=0x87d750, size=<optimized out>, stream=..., atom_factory=...) at /home/fuzz/fuzz/Bento4/Source/C++/Core/Ap4MoovAtom.cpp:80
#26 0x00000000005c6089 in AP4_MoovAtom::Create (atom_factory=..., stream=..., size=1554) at /home/fuzz/fuzz/Bento4/Source/C++/Core/Ap4MoovAtom.h:56
#27 AP4_AtomFactory::CreateAtomFromStream (this=0x7fffffffe330, stream=..., type=<optimized out>, size_32=1554, size_64=1554, atom=@0x7fffffffe320: 0x0) at /home/fuzz/fuzz/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:357
#28 0x00000000005cada4 in AP4_AtomFactory::CreateAtomFromStream (atom=@0x7fffffffe320: 0x0, bytes_available=<synthetic pointer>, stream=..., this=0x7fffffffe330) at /home/fuzz/fuzz/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:220
#29 AP4_AtomFactory::CreateAtomFromStream (this=this@entry=0x7fffffffe330, stream=..., atom=@0x7fffffffe320: 0x0) at /home/fuzz/fuzz/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:150
#30 0x000000000048585a in AP4_File::ParseStream (moov_only=<optimized out>, atom_factory=..., stream=..., this=<optimized out>) at /home/fuzz/fuzz/Bento4/Source/C++/Core/Ap4File.cpp:104
#31 AP4_File::AP4_File (this=0x87d610, stream=..., moov_only=false) at /home/fuzz/fuzz/Bento4/Source/C++/Core/Ap4File.cpp:78
#32 0x000000000043c424 in main (argc=<optimized out>, argv=<optimized out>) at /home/fuzz/fuzz/Bento4/Source/C++/Apps/Mp42Aac/Mp42Aac.cpp:250
```
AP4_FtypAtom: if size not zero Infinite loop
```
44 AP4_FtypAtom::AP4_FtypAtom(AP4_UI32 size, AP4_ByteStream& stream) :
45 AP4_Atom(AP4_ATOM_TYPE_FTYP, size)
46 {
47 stream.ReadUI32(m_MajorBrand);
48 stream.ReadUI32(m_MinorVersion);
49 size -= 16;
50 while (size) {
51 AP4_UI32 compatible_brand;
52 stream.ReadUI32(compatible_brand);
53 m_CompatibleBrands.Append(compatible_brand);
54 size -= 4;
55 }
56 }
```
testcase:https://github.com/xcainiao/poc/blob/master/Bento4_AP4_FtypAtom_Infinite_loop
Credit: topsec@zhangwy | Infinite loop in AP4_FtypAtom | https://api.github.com/repos/axiomatic-systems/Bento4/issues/233/comments | 4 | 2018-01-04T12:48:08Z | 2019-01-09T08:54:06Z | https://github.com/axiomatic-systems/Bento4/issues/233 | 285,975,800 | 233 |
[
"axiomatic-systems",
"Bento4"
] | Hi,
A question, how exactly mp4dash calculates the BANDWIDTH value for HLS master playlist? Could you show in which file exactly this calculation (or estimation) is being done? Is there a way to automate this exact estimation with mp4info or some other utility?
The mystery of how exactly Apple's native variantplaylistcreator calculates this value always intrigued me. I have impression that nobody calculate the exact peak, everybody just estimate it in its own way, probably because no standard way exist to measure bitrate peak correctly, if I am not wrong. Or because it is just an incredibly difficult task to do it right.
E.g. when I test it with a sample, mp4dash estimates its 1080p BANDWIDTH to be 4.5 mbps. While if I open it with Telestream Switch Pro, it visualizes all videostream's bitrate fluctuations and indicates a clearly different peak - 5.8 mbps. So I sort of don't know how should I measure it, and moreover, how to automate this measure in my scripts.
If I underreport BANDWIDTH, it leads to player stalls. If I overreport it, then such stream is being "punished" by the automatic quality selector - it rarely selects 1080p, even when it can and should. So the task of putting a real correct BANDWIDTH value becomes imperative, the question is just how to correctly measure it. BTW Telestream Switch Pro takes time to visualize bitrate fluctuations... it really seems to calculate rather than estimate.
P.S.: Though when one calculate the peak of that same sample, now accordingly to HLS spec:
> The segment bit rate of a Media Segment is the size of the Media
Segment divided by its EXTINF duration (Section 4.3.2.1). Note that
this includes container overhead but does not include overhead
imposed by the delivery system, such as HTTP, TCP or IP headers.
> The peak segment bit rate of a Media Playlist is the largest bit rate
of any contiguous set of segments whose total duration is between 0.5
and 1.5 times the target duration. The bit rate of a set is
calculated by dividing the sum of the segment sizes by the sum of the
segment durations.
...then, surprisingly, it gives even higher value - around 6.8 mbps (video only).
So, mp4dash says 4.5 mbps, Telestream Switch Pro says 5.8 mbps, manual calculation says 6.8 mbps. All about one same sample. I also tried Shaka packager, it says the same as Bento4 - 4.5 mbps.
I take another, different sample, 576p resolution. mp4dash says 1.7 mbps. Shaka Packager says 1.3 mbps. Telestream reports its peak as being 2.2 mbps. Manual calculation according to HLS spec shows it to be around 1.5 mbps.
Enough to be confused... | HLS fmp4 "BANDWIDTH" calculation | https://api.github.com/repos/axiomatic-systems/Bento4/issues/232/comments | 2 | 2018-01-01T02:26:28Z | 2018-01-03T03:20:07Z | https://github.com/axiomatic-systems/Bento4/issues/232 | 285,285,317 | 232 |
[
"axiomatic-systems",
"Bento4"
] | Hi, just wanted to check does this support the .ap4 file format ? | Does this support .ap4 files | https://api.github.com/repos/axiomatic-systems/Bento4/issues/231/comments | 1 | 2017-12-26T14:27:53Z | 2017-12-30T05:38:18Z | https://github.com/axiomatic-systems/Bento4/issues/231 | 284,563,362 | 231 |
[
"axiomatic-systems",
"Bento4"
] | I convert mp4dash with mode --no-split (mp4dash fragment_video20.mp4 --no-split --use-segment-list --use-segment-timeline). but when i test video convert. i can't play it.
Please help me solve it.
Thanks,
Mr.Nguyen | Mode --no-split don't play | https://api.github.com/repos/axiomatic-systems/Bento4/issues/230/comments | 10 | 2017-12-21T03:33:41Z | 2021-07-28T00:52:54Z | https://github.com/axiomatic-systems/Bento4/issues/230 | 283,763,756 | 230 |
[
"axiomatic-systems",
"Bento4"
] | Does Bento4 implement that part of the specification? | Rotating AES-128 Keys | https://api.github.com/repos/axiomatic-systems/Bento4/issues/229/comments | 7 | 2017-12-20T17:45:54Z | 2020-10-04T20:41:55Z | https://github.com/axiomatic-systems/Bento4/issues/229 | 283,643,945 | 229 |
[
"axiomatic-systems",
"Bento4"
] | Hello!
We'd like to use timed metadata using ID3. Example use-case: https://developer.jwplayer.com/jw-player/docs/javascript-api-reference/#metadata
Apple HLS tools support it, but does bento? | ID3 Timed Metadata | https://api.github.com/repos/axiomatic-systems/Bento4/issues/228/comments | 2 | 2017-12-20T17:44:42Z | 2017-12-31T07:39:44Z | https://github.com/axiomatic-systems/Bento4/issues/228 | 283,643,605 | 228 |
[
"axiomatic-systems",
"Bento4"
] | I am trying to get subtitles with fragmented mp4 HLS.
While I am at it, found a bug
```
mp4dash --subtitles frag_with_sub.mp4 --hls --debug
Parsing media file 1: frag_with_sub.mp4
Processing MP4 file frag_with_sub.mp4
found 10 segments
COMMAND: ../bin/mp4info --fast --format json frag_with_sub.mp4 ['../bin/mp4info', '--fast', '--format', 'json', 'frag_with_sub.mp4']
COMMAND: ../bin/mp4dump --verbosity 1 --format json frag_with_sub.mp4 ['../bin/mp4dump', '--verbosity', '1', '--format', 'json', 'frag_with_sub.mp4']
Traceback (most recent call last):
File "../utils/mp4-dash.py", line 1837, in <module>
main()
File "../utils/mp4-dash.py", line 1619, in main
(audio_sets, video_sets, subtitles_sets, mp4_files) = SelectTracks(options, media_sources)
File "../utils/mp4-dash.py", line 1039, in SelectTracks
mp4_file = Mp4File(Options, media_source)
File "../utils/mp4utils.py", line 632, in __init__
self.tracks[track_id].update(options)
File "../utils/mp4utils.py", line 457, in update
self.bandwidth = ComputeBandwidth(options.min_buffer_time, self.segment_sizes, self.segment_durations)
File "../utils/mp4utils.py", line 700, in ComputeBandwidth
bandwidth = 8.0*(accu_size-buffer_size)/accu_duration
```
Checking for `accu_duraion > 0` [here](https://github.com/axiomatic-systems/Bento4/blob/master/Source/Python/utils/mp4utils.py#L699) fixed this.
However I am not seeing any subtitle track added to the master.m3u8.
```
#EXTM3U
# Created with Bento4 mp4-dash.py, VERSION=1.8.0-621
#
#EXT-X-VERSION:6
# Media Playlists
# Audio
#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="audio/mp4a",LANGUAGE="und",NAME="Unknown",AUTOSELECT=YES,DEFAULT=YES,URI="audio/und/mp4a/media.m3u8"
# Video
#EXT-X-STREAM-INF:AUDIO="audio/mp4a",AVERAGE-BANDWIDTH=720437,BANDWIDTH=797414,CODECS="avc1.42C01F,mp4a.40.2",RESOLUTION=1280x720
video/avc1/media.m3u8
# I-Frame Playlists
#EXT-X-I-FRAME-STREAM-INF:AVERAGE-BANDWIDTH=641907,BANDWIDTH=718414,CODECS="avc1.42C01F",RESOLUTION=1280x720,URI="video/avc1/media.m3u8"
```
What kind of subtitle tracks are supported at the input? and how do I use bento to get IMSC1 compatible subtitles added?
Media:
[bento_test_sample.zip](https://github.com/axiomatic-systems/Bento4/files/1544275/bento_test_sample.zip)
| Including subtitles for HLS FMP4 | https://api.github.com/repos/axiomatic-systems/Bento4/issues/225/comments | 3 | 2017-12-09T02:09:06Z | 2017-12-17T04:13:43Z | https://github.com/axiomatic-systems/Bento4/issues/225 | 280,666,597 | 225 |
[
"axiomatic-systems",
"Bento4"
] | Using Bento4 v1.5.1-621 and mp4dash 1.8.0 r621
```
$ mp4dash -o out -f --mpd-name=master.mpd --hls *.fmp4
Parsing media file 1: 1080p.fmp4
Parsing media file 2: 240p.fmp4
Parsing media file 3: 360p.fmp4
Parsing media file 4: 480p.fmp4
Parsing media file 5: 720p.fmp4
Splitting media file (audio) 1080p.fmp4
Splitting media file (video) 1080p.fmp4
Splitting media file (video) 240p.fmp4
Splitting media file (video) 360p.fmp4
Splitting media file (video) 480p.fmp4
Splitting media file (video) 720p.fmp4
```
resulting HLS master playlist references the I-Frame playlists like this:
```
#EXTM3U
# Created with Bento4 mp4-dash.py, VERSION=1.8.0-621
#
#EXT-X-VERSION:6
# Media Playlists
# Audio
#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="audio/mp4a",LANGUAGE="en",NAME="English",AUTOSELECT=YES,DEFAULT=YES,URI="audio/en/mp4a/media.m3u8"
# Video
#EXT-X-STREAM-INF:AUDIO="audio/mp4a",AVERAGE-BANDWIDTH=5382265,BANDWIDTH=12209182,CODECS="avc1.640029,mp4a.40.2",RESOLUTION=1920x1080
video/avc1/1/media.m3u8
#EXT-X-STREAM-INF:AUDIO="audio/mp4a",AVERAGE-BANDWIDTH=521998,BANDWIDTH=1233726,CODECS="avc1.64000D,mp4a.40.2",RESOLUTION=426x240
video/avc1/2/media.m3u8
#EXT-X-STREAM-INF:AUDIO="audio/mp4a",AVERAGE-BANDWIDTH=831982,BANDWIDTH=2114030,CODECS="avc1.64001E,mp4a.40.2",RESOLUTION=640x360
video/avc1/3/media.m3u8
#EXT-X-STREAM-INF:AUDIO="audio/mp4a",AVERAGE-BANDWIDTH=1489877,BANDWIDTH=3959242,CODECS="avc1.64001F,mp4a.40.2",RESOLUTION=854x480
video/avc1/4/media.m3u8
#EXT-X-STREAM-INF:AUDIO="audio/mp4a",AVERAGE-BANDWIDTH=2457036,BANDWIDTH=6700538,CODECS="avc1.640020,mp4a.40.2",RESOLUTION=1280x720
video/avc1/5/media.m3u8
# I-Frame Playlists
#EXT-X-I-FRAME-STREAM-INF:AVERAGE-BANDWIDTH=5252471,BANDWIDTH=12077696,CODECS="avc1.640029",RESOLUTION=1920x1080,URI="video/avc1/5/media.m3u8"
#EXT-X-I-FRAME-STREAM-INF:AVERAGE-BANDWIDTH=392204,BANDWIDTH=1102240,CODECS="avc1.64000D",RESOLUTION=426x240,URI="video/avc1/5/media.m3u8"
#EXT-X-I-FRAME-STREAM-INF:AVERAGE-BANDWIDTH=702188,BANDWIDTH=1982544,CODECS="avc1.64001E",RESOLUTION=640x360,URI="video/avc1/5/media.m3u8"
#EXT-X-I-FRAME-STREAM-INF:AVERAGE-BANDWIDTH=1360083,BANDWIDTH=3827756,CODECS="avc1.64001F",RESOLUTION=854x480,URI="video/avc1/5/media.m3u8"
#EXT-X-I-FRAME-STREAM-INF:AVERAGE-BANDWIDTH=2327242,BANDWIDTH=6569052,CODECS="avc1.640020",RESOLUTION=1280x720,URI="video/avc1/5/media.m3u8"
```
instead of
```
# I-Frame Playlists
#EXT-X-I-FRAME-STREAM-INF:AVERAGE-BANDWIDTH=5252471,BANDWIDTH=12077696,CODECS="avc1.640029",RESOLUTION=1920x1080,URI="video/avc1/1/iframes.m3u8"
#EXT-X-I-FRAME-STREAM-INF:AVERAGE-BANDWIDTH=392204,BANDWIDTH=1102240,CODECS="avc1.64000D",RESOLUTION=426x240,URI="video/avc1/2/iframes.m3u8"
#EXT-X-I-FRAME-STREAM-INF:AVERAGE-BANDWIDTH=702188,BANDWIDTH=1982544,CODECS="avc1.64001E",RESOLUTION=640x360,URI="video/avc1/3/iframes.m3u8"
#EXT-X-I-FRAME-STREAM-INF:AVERAGE-BANDWIDTH=1360083,BANDWIDTH=3827756,CODECS="avc1.64001F",RESOLUTION=854x480,URI="video/avc1/4/iframes.m3u8"
#EXT-X-I-FRAME-STREAM-INF:AVERAGE-BANDWIDTH=2327242,BANDWIDTH=6569052,CODECS="avc1.640020",RESOLUTION=1280x720,URI="video/avc1/5/iframes.m3u8"
```
Apple's HLS validator complains with
```JSON
{
"errorComment" : "Media playlist declared as EXT-X-I-FRAME-STREAM-INF in master playlist, MUST contain an EXT-X-I-FRAMES-ONLY tag",
"errorDomain" : "ValidatorErrorDomain",
"errorReferenceDataID" : 13,
"errorStatusCode" : -50025,
"errorRequirementLevel" : 1
},
{
"errorComment" : "Playlist video resolution doesn't match parsed video resolution",
"errorDomain" : "ValidatorErrorDomain",
"errorReferenceDataID" : 8,
"errorStatusCode" : -50020,
"errorRequirementLevel" : 1,
"errorDetail" : "Playlist: 1920 x 1080, Video: 320 x 180"
},
```
for each I-Frame playlist reference in the original master playlist.
| mp4dash: HLS playlist references wrong iframe-only playlists | https://api.github.com/repos/axiomatic-systems/Bento4/issues/224/comments | 2 | 2017-11-30T14:11:33Z | 2018-05-28T17:52:08Z | https://github.com/axiomatic-systems/Bento4/issues/224 | 278,133,020 | 224 |
[
"axiomatic-systems",
"Bento4"
] | Hello
Im trying to figure out the correct way to decrypt a mp4 with a Widewine challenge key and track KID
I tried
```
mp4decrypt "file_encrypted.mp4" Widewinekey_in_hex:KID_id_for track
```
But dont seem to have any effect, and i dont get any errors regarding key either.
```
mp4decrypt "file_encrypted.mp4" "out_decrypted.mp4"--key Widewinekey_in_hex:KID_id_for track
```
dont have any effect also.
In the tut its descibed as
```
mp4decrypt "file_encrypted.mp4" "out_decrypted.mp4"--key 1:KID_id_for track
````
any suggestions
| correct command for Widevine challenge | https://api.github.com/repos/axiomatic-systems/Bento4/issues/223/comments | 10 | 2017-11-08T12:53:18Z | 2019-04-18T18:53:09Z | https://github.com/axiomatic-systems/Bento4/issues/223 | 272,187,788 | 223 |
[
"axiomatic-systems",
"Bento4"
] | Hi all.
I found two resource leak vulnerabilities in file [MP4MUX.cpp](https://github.com/axiomatic-systems/Bento4/blob/master/Source/C%2B%2B/Apps/Mp4Mux/Mp4Mux.cpp) at line 389 and line 603 respectively.
`input` was allocated before, however, it is not freed properly under these exceptions.
`input->release()` is needed before the function returns.
Here is one possible patch.
```
-- Bento4/Source/C++/Apps/Mp4Mux/Mp4Mux.cpp 2017-11-03 09:15:16.000000000 +0800
+++ Mp4Mux-patched.cpp 2017-11-08 16:30:09.000000000 +0800
@@ -388,6 +388,7 @@
double frame_rate = atof(parameters[i].m_Value.GetChars());
if (frame_rate == 0.0) {
fprintf(stderr, "ERROR: invalid video frame rate %s\n", parameters[i].m_Value.GetChars());
+ input->release();
return;
}
video_frame_rate = (unsigned int)(1000.0*frame_rate);
@@ -602,6 +603,7 @@
double frame_rate = atof(parameters[i].m_Value.GetChars());
if (frame_rate == 0.0) {
fprintf(stderr, "ERROR: invalid video frame rate %s\n", parameters[i].m_Value.GetChars());
+ input->release();
return;
}
video_frame_rate = (unsigned int)(1000.0*frame_rate);
```
Thanks,
shqking | Resource is not freed properly when certain exception happens | https://api.github.com/repos/axiomatic-systems/Bento4/issues/222/comments | 1 | 2017-11-08T08:33:05Z | 2017-12-17T00:55:39Z | https://github.com/axiomatic-systems/Bento4/issues/222 | 272,112,804 | 222 |
[
"axiomatic-systems",
"Bento4"
] | Hi,
I just start to learn how to use Bento4 to fragment/dash mp4.
Now I am confusing about the parameter for playready encryption.
According to the Bento4 document, I should use --encryption-key=KID:EncryptionKey --plready-header=LA_URL:License Acquisition URL source.mp4 -o output folder.
I am using Azure document sample to get the information through AMS .Net SDK.
https://docs.microsoft.com/en-us/azure/media-services/media-services-deliver-keys-and-licenses
http://mingfeiy.com/integrate-azure-playready-license-service-encryptorstreaming-server
From the output, I can see following information:
Created key nb:kid:UUID:60ab7db0-3301-4592-9ca7-9382aeee9ccb with key value 5ZSO
yMbNvfML3jJYtudHUg==
PlayReady License Key delivery URL: https://AMS_LAURL
Widevine License Key delivery URL: https://AMS_LAURL
Added authorization policy: nb:ckpid:UUID:444100d9-b21c-4e2f-a720-7bc46731c72d
What is the KID and Encryption key I from here??
Hope someone can help me to clarify.
Thank you. | Playready encryption parameter question | https://api.github.com/repos/axiomatic-systems/Bento4/issues/221/comments | 3 | 2017-10-27T05:49:36Z | 2017-11-09T04:52:04Z | https://github.com/axiomatic-systems/Bento4/issues/221 | 268,994,885 | 221 |
[
"axiomatic-systems",
"Bento4"
] | [https://a56avoddashs3ww-a.akamaihd.net/d/2$o-57kEyyDe_VLCwMfFll1rx8qSA~/ondemand/sin-dub-iad/7925/3405/64bd/4f29-ba34-885b2260d343/ba945d08-7843-45d2-90ea-d347ba493031_video_1.mp4
](url) | Unable to Decrypt this Video | https://api.github.com/repos/axiomatic-systems/Bento4/issues/220/comments | 6 | 2017-10-21T10:37:13Z | 2018-01-09T07:42:57Z | https://github.com/axiomatic-systems/Bento4/issues/220 | 267,370,040 | 220 |
[
"axiomatic-systems",
"Bento4"
] | Hi after some help please...
I can see the README.md here https://www.bento4.com/ includes
Features
MPEG CMAF (Common Media Application Format)
Yet I can't seem to find that in the GitHub sources? Where should I look? | Which branch for CMAF? | https://api.github.com/repos/axiomatic-systems/Bento4/issues/219/comments | 13 | 2017-10-19T21:57:38Z | 2020-03-14T04:18:21Z | https://github.com/axiomatic-systems/Bento4/issues/219 | 267,002,474 | 219 |
[
"axiomatic-systems",
"Bento4"
] | The api for AP4_CencSampleEncryption doesn't work for stream use-cases because it assumes that you know the size of samples before calling the api. This makes it hard to do on the fly-encryption and also means that the Ap4SencAtom is really brittle. | api for AP4_CencSampleEncryption doesn't support streaming usecases | https://api.github.com/repos/axiomatic-systems/Bento4/issues/217/comments | 0 | 2017-10-13T17:00:06Z | 2017-10-13T17:00:06Z | https://github.com/axiomatic-systems/Bento4/issues/217 | 265,355,292 | 217 |
[
"axiomatic-systems",
"Bento4"
] | Hi,
I'm using mp4fragment and need to preserve the metadata from the original unfragmented mp4. It looks like this information is contained in the moov/udta atom.
Extracting this atom with mp4extract, then inserting it into the fragmented mp4 appears to work correctly. Is there anything wrong with this approach or is there a better way to do it?
```
mp4fragment input.mp4 fragmented.mp4
mp4extract moov/udta input.mp4 moov-udta.atom
mp4edit --insert moov:moov-udta.atom fragmented.mp4 fragment-udta.mp4
```
Thanks in advance. | Preserving metadata with mp4fragment | https://api.github.com/repos/axiomatic-systems/Bento4/issues/216/comments | 1 | 2017-10-09T21:47:33Z | 2017-10-16T05:26:29Z | https://github.com/axiomatic-systems/Bento4/issues/216 | 264,036,333 | 216 |
[
"axiomatic-systems",
"Bento4"
] | Hello,
I am not able to decrypt an encrypted ISMV file. The MP4DECRYPT tool runs fine but the output is still encrypted.
You can reproduce the behavior by encrypting/decrypting a clear ISMV file using the file:
https://mediasvcs6gbv2zdblgmj.blob.core.windows.net/asset-e2047cbb-ccdf-442a-81d5-b5124c7813a6/BigBuckBunny_1272k.ismv?sv=2015-07-08&sr=c&si=ea20aa87-90fb-42da-8e6d-cea3b97375c8&sig=fPKhLnNFoOdz9Z4Xrw2AMWNchIqvIPBI1RM0D1n1KqA%3D&se=2027-09-28T09%3A05%3A00Z
Encrypt it this way:
mp4encrypt --method PIFF-CTR --key 4:7C719DFA88D893D5A60CECFC0F094EB6:random --property 4:KID:a09e825f1b72434e84cb192f69fc715f C:\video\BigBuckBunny_1272k.ismv C:\video\BigBuckB
unny_1272k-encrypted.ismv
Decrypt the output file this way:
mp4decrypt --key a09e825f1b72434e84cb192f69fc715f:7C719DFA88D893D5A60CECFC0F094EB6 C:\video\BigBuckBunny_1272k-encrypted.ismv -out C:\video\BigBuckBunny_1272k-decrypted.ismv
With MP4Info, we see that BigBuckBunny_1272k-decrypted.ismv is still encrypted....
| ISMV file is not decrypted by MP4Decrypt | https://api.github.com/repos/axiomatic-systems/Bento4/issues/213/comments | 5 | 2017-09-30T09:13:37Z | 2019-07-04T11:10:32Z | https://github.com/axiomatic-systems/Bento4/issues/213 | 261,831,229 | 213 |
[
"axiomatic-systems",
"Bento4"
] | Hi Again,It is not clear how to pass optional params like frame_rate into the app.It also looks like the initial params parsing doesn't take into account optional params at all.
```
while (char* arg = *++argv) {
if (!strcmp(arg, "--verbose")) {
Options.verbose = true;
} else if (!strcmp(arg, "--track")) {
input_names.Append(*++argv);
} else if (output_filename == NULL) {
output_filename = arg;
} else {
fprintf(stderr, "ERROR: unexpected argument '%s'\n", arg);
return 1;
}
}
```
This doc example:
> usage: mp4mux [options] --track [<type>:]<input>[#<params] [--track [<type>:]<input>[#<params] ...] <output>
Is very confusing. I was trying all kind of combinations but it always throw 👍
> ERROR: unexpected argument 'frame_rate=60.0'
My command line: --verbose --track h264:test.h264 #params frame_rate=60.0 --track aac:sample1.aac test.mp4
| Optional params for mp4mux don't work | https://api.github.com/repos/axiomatic-systems/Bento4/issues/212/comments | 1 | 2017-09-26T12:07:03Z | 2017-10-07T16:53:44Z | https://github.com/axiomatic-systems/Bento4/issues/212 | 260,599,245 | 212 |
[
"axiomatic-systems",
"Bento4"
] | Hi! I am trying to mux h264 file which I am generating using Nvidia Video SDK. Using Mp4Mux tool.
I am getting thrown inside AP4_AvcFrameParser::Feed() method .
nal_unit retuns NULL from the m_NalParser.Feed() . Also there is no null handling for this case and the app crashes when dereferencing null in
return Feed(nal_unit->GetData(), nal_unit->GetDataSize(), access_unit_info, eos);
Thanks.
| Mp4Mux:NULL nal_unit crashes app when parsing from h264 file | https://api.github.com/repos/axiomatic-systems/Bento4/issues/211/comments | 3 | 2017-09-26T11:39:50Z | 2017-12-17T00:56:22Z | https://github.com/axiomatic-systems/Bento4/issues/211 | 260,592,319 | 211 |
[
"axiomatic-systems",
"Bento4"
] | Could you share the command line for bento4 with DRMtoday CEC | Bento4 with DRMtoday | https://api.github.com/repos/axiomatic-systems/Bento4/issues/209/comments | 3 | 2017-09-25T18:09:07Z | 2017-10-07T16:53:18Z | https://github.com/axiomatic-systems/Bento4/issues/209 | 260,366,484 | 209 |
[
"axiomatic-systems",
"Bento4"
] | I am using mp4hls to convert mp4 video in HLS playlist.
$ mp4hls test.mp4 --> works fine, but the generated video is black screen with audio only, Am i missing something ?
I am using mp4hls.bat on windows | Bad conversion mp4hls | https://api.github.com/repos/axiomatic-systems/Bento4/issues/208/comments | 7 | 2017-09-25T15:28:02Z | 2017-12-17T23:48:36Z | https://github.com/axiomatic-systems/Bento4/issues/208 | 260,318,438 | 208 |
[
"axiomatic-systems",
"Bento4"
] | - With latest version of samsung internet explorer (android), MediaPlayer error:
"java.io.FileNotFoundException: No content provider"
#EXTM3U**CR**
**CRLF**
#Created with Bento4 mp4-hls.py version 1.1.0r615**CR**
**CRLF**
**CR**
**CRLF**
#Media Playlists**CR**
Removing all blank lines and it work. I thought it was a pb with CRLF but it's ok with same blank lines after # Media Playlist line...
- Another pb with old version of samsung internet browser (or Edge, don't remember) i have to change this
media_info = {
'source': media_source,
'dir': 'media-'+str(media_index)
}
to this
media_info = {
'source': media_source,
'dir': './media-'+str(media_index)
}
Browsers incompatibility forever | mp4-hls -> hls master playlist error with samsung internet browser. issue and fix | https://api.github.com/repos/axiomatic-systems/Bento4/issues/207/comments | 1 | 2017-09-21T16:15:36Z | 2017-12-17T23:43:57Z | https://github.com/axiomatic-systems/Bento4/issues/207 | 259,553,078 | 207 |
[
"axiomatic-systems",
"Bento4"
] | On master compiled on 2017-09-10 (but please confirm if this affects current stable):
```
# mp4compact $FILE out.mp4
==182171==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000028 (pc 0x0000005b504a bp 0x7ffe75068100 sp 0x7ffe75067e80 T0)
==182171==The signal is caused by a READ memory access.
==182171==Hint: address points to the zero page.
#0 0x5b5049 in AP4_TfhdAtom::GetTrackId() /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4TfhdAtom.h:71:67
#1 0x5b5049 in AP4_Processor::ProcessFragments(AP4_MoovAtom*, AP4_List<AP4_AtomLocator>&, AP4_ContainerAtom*, AP4_SidxAtom*, unsigned long long, AP4_ByteStream&, AP4_ByteStream&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4Processor.cpp:229
#2 0x5bbed1 in AP4_Processor::Process(AP4_ByteStream&, AP4_ByteStream&, AP4_ByteStream*, AP4_Processor::ProgressListener*, AP4_AtomFactory&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4Processor.cpp:711:18
#3 0x542f69 in main /tmp/Bento4-master-2017-09-10/Source/C++/Apps/Mp4Compact/Mp4Compact.cpp:220:25
#4 0x7f6c071bf680 in __libc_start_main /var/tmp/portage/sys-libs/glibc-2.23-r4/work/glibc-2.23/csu/../csu/libc-start.c:289
#5 0x44ec88 in _start (/usr/bin/mp4compact+0x44ec88)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4TfhdAtom.h:71:67 in AP4_TfhdAtom::GetTrackId()
==182171==ABORTING
WARNING: atom serialized to fewer bytes than declared size
WARNING: padding would be too large
```
Testcase:
https://github.com/asarubbo/poc/blob/master/00365-bento4-NULLptr-AP4_TfhdAtom_GetTrackId | NULL pointer dereference in AP4_TfhdAtom::GetTrackId (Ap4TfhdAtom.h) | https://api.github.com/repos/axiomatic-systems/Bento4/issues/206/comments | 0 | 2017-09-18T09:19:41Z | 2017-12-17T00:59:26Z | https://github.com/axiomatic-systems/Bento4/issues/206 | 258,414,420 | 206 |
[
"axiomatic-systems",
"Bento4"
] | On master compiled on 2017-09-10 (but please confirm if this affects current stable):
```
# mp4compact $FILE out.mp4
ASAN:DEADLYSIGNAL
=================================================================
==156190==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000030 (pc 0x0000005fe125 bp 0x7fffd4e82b40 sp 0x7fffd4e82b40 T0)
==156190==The signal is caused by a READ memory access.
==156190==Hint: address points to the zero page.
#0 0x5fe124 in AP4_StcoAtom::AdjustChunkOffsets(int) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4StcoAtom.cpp:142:29
#1 0x6221c6 in AP4_TrakAtom::AdjustChunkOffsets(long long) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4TrakAtom.cpp:318:22
#2 0x5bb9e3 in AP4_Processor::Process(AP4_ByteStream&, AP4_ByteStream&, AP4_ByteStream*, AP4_Processor::ProgressListener*, AP4_AtomFactory&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4Processor.cpp:640:19
#3 0x542f69 in main /tmp/Bento4-master-2017-09-10/Source/C++/Apps/Mp4Compact/Mp4Compact.cpp:220:25
#4 0x7f29f1750680 in __libc_start_main /var/tmp/portage/sys-libs/glibc-2.23-r4/work/glibc-2.23/csu/../csu/libc-start.c:289
#5 0x44ec88 in _start (/usr/bin/mp4compact+0x44ec88)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4StcoAtom.cpp:142:29 in AP4_StcoAtom::AdjustChunkOffsets(int)
==156190==ABORTING
```
Testcase:
https://github.com/asarubbo/poc/blob/master/00364-bento4-NULLptr-AP4_StcoAtom_AdjustChunkOffsets | NULL pointer dereference in AP4_StcoAtom::AdjustChunkOffsets (Ap4StcoAtom.cpp) | https://api.github.com/repos/axiomatic-systems/Bento4/issues/205/comments | 0 | 2017-09-15T07:13:20Z | 2017-12-17T00:59:26Z | https://github.com/axiomatic-systems/Bento4/issues/205 | 257,947,645 | 205 |
[
"axiomatic-systems",
"Bento4"
] | On master compiled on 2017-09-10 (but please confirm if this affects current stable):
```
# mp4compact $FILE out.mp4
ASAN:DEADLYSIGNAL
=================================================================
==156195==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x00000060a4b3 bp 0x7ffed6dd9e30 sp 0x7ffed6dd9e30 T0)
==156195==The signal is caused by a READ memory access.
==156195==Hint: address points to the zero page.
#0 0x60a4b2 in AP4_StszAtom::GetSampleSize(unsigned int, unsigned int&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4StszAtom.cpp:150:27
#1 0x5421ec in AP4_CompactingProcessor::TrackHandler::ProcessTrack() /tmp/Bento4-master-2017-09-10/Source/C++/Apps/Mp4Compact/Mp4Compact.cpp:132:15
#2 0x5bef58 in AP4_Processor::Process(AP4_ByteStream&, AP4_ByteStream&, AP4_ByteStream*, AP4_Processor::ProgressListener*, AP4_AtomFactory&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4Processor.cpp:617:35
#3 0x542f69 in main /tmp/Bento4-master-2017-09-10/Source/C++/Apps/Mp4Compact/Mp4Compact.cpp:220:25
#4 0x7f96ff492680 in __libc_start_main /var/tmp/portage/sys-libs/glibc-2.23-r4/work/glibc-2.23/csu/../csu/libc-start.c:289
#5 0x44ec88 in _start (/usr/bin/mp4compact+0x44ec88)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4StszAtom.cpp:150:27 in AP4_StszAtom::GetSampleSize(unsigned int, unsigned int&)
==156195==ABORTING
```
Testcase:
https://github.com/asarubbo/poc/blob/master/00363-bento4-NULLptr-AP4_StszAtom_GetSampleSize | NULL pointer dereference in AP4_StszAtom::GetSampleSize (Ap4StszAtom.cpp) | https://api.github.com/repos/axiomatic-systems/Bento4/issues/204/comments | 0 | 2017-09-15T07:10:24Z | 2017-12-17T00:59:26Z | https://github.com/axiomatic-systems/Bento4/issues/204 | 257,947,117 | 204 |
[
"axiomatic-systems",
"Bento4"
] | See https://github.com/axiomatic-systems/Bento4/blob/ce01e533ffe4b06668473406ab286a9afc5fbe76/Source/Python/utils/aes.py#L297 | undefined name 'plaintext' in aes.py | https://api.github.com/repos/axiomatic-systems/Bento4/issues/203/comments | 2 | 2017-09-14T17:34:01Z | 2017-12-17T00:55:39Z | https://github.com/axiomatic-systems/Bento4/issues/203 | 257,798,872 | 203 |
[
"axiomatic-systems",
"Bento4"
] | Hello,
I am trying to package a video with multiple audio tracks including 4 different English tracks, 1 Spanish and 1 French. My problem is when there are more than 1 audio track with the same language, the audio files are overwritten because they are named like: media-audio-$lang-mp4a-1.mp4,media-audio-$lang-mp4a-2.mp4, ...
The only solution I've found is to overwrite the language like this:
[+language=en-1]audio_en_1.mp4 [+language=en-2]audio_en_2.mp4
Is there a better solution to achieve this?
Thanks! | Multi audio tracks with same language | https://api.github.com/repos/axiomatic-systems/Bento4/issues/202/comments | 5 | 2017-09-14T12:45:00Z | 2018-08-06T11:34:10Z | https://github.com/axiomatic-systems/Bento4/issues/202 | 257,706,045 | 202 |
[
"axiomatic-systems",
"Bento4"
] | On master compiled on 2017-09-10 (but please confirm if this affects current stable):
```
# mp42ts $FILE out
==180353==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x603000000383 at pc 0x0000006435b2 bp 0x7ffcffd2d0d0 sp 0x7ffcffd2d0c8
READ of size 4 at 0x603000000383 thread T0
#0 0x6435b1 in AP4_Stz2Atom::AP4_Stz2Atom(unsigned int, unsigned char, unsigned int, AP4_ByteStream&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4Stz2Atom.cpp:111:32
#1 0x641d3d in AP4_Stz2Atom::Create(unsigned int, AP4_ByteStream&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4Stz2Atom.cpp:52:16
#2 0x56f1e8 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4AtomFactory.cpp:447:20
#3 0x56cffd in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4AtomFactory.cpp:220:14
#4 0x58eea7 in AP4_DrefAtom::AP4_DrefAtom(unsigned int, unsigned char, unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4DrefAtom.cpp:84:16
#5 0x58e55d in AP4_DrefAtom::Create(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4DrefAtom.cpp:50:16
#6 0x56e0f0 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4AtomFactory.cpp:533:20
#7 0x56cffd in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4AtomFactory.cpp:220:14
#8 0x585fb1 in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4ContainerAtom.cpp:194:12
#9 0x584bba in AP4_ContainerAtom::AP4_ContainerAtom(unsigned int, unsigned long long, bool, AP4_ByteStream&, AP4_AtomFactory&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4ContainerAtom.cpp:139:5
#10 0x584bba in AP4_ContainerAtom::Create(unsigned int, unsigned long long, bool, bool, AP4_ByteStream&, AP4_AtomFactory&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4ContainerAtom.cpp:88
#11 0x56f4d0 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4AtomFactory.cpp:755:20
#12 0x56cffd in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4AtomFactory.cpp:220:14
#13 0x58eea7 in AP4_DrefAtom::AP4_DrefAtom(unsigned int, unsigned char, unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4DrefAtom.cpp:84:16
#14 0x58e55d in AP4_DrefAtom::Create(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4DrefAtom.cpp:50:16
#15 0x56e0f0 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4AtomFactory.cpp:533:20
#16 0x56cffd in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4AtomFactory.cpp:220:14
#17 0x585cef in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4ContainerAtom.cpp:194:12
#18 0x584bba in AP4_ContainerAtom::AP4_ContainerAtom(unsigned int, unsigned long long, bool, AP4_ByteStream&, AP4_AtomFactory&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4ContainerAtom.cpp:139:5
#19 0x584bba in AP4_ContainerAtom::Create(unsigned int, unsigned long long, bool, bool, AP4_ByteStream&, AP4_AtomFactory&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4ContainerAtom.cpp:88
#20 0x56f4d0 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4AtomFactory.cpp:755:20
#21 0x56cffd in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4AtomFactory.cpp:220:14
#22 0x585fb1 in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4ContainerAtom.cpp:194:12
#23 0x584bba in AP4_ContainerAtom::AP4_ContainerAtom(unsigned int, unsigned long long, bool, AP4_ByteStream&, AP4_AtomFactory&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4ContainerAtom.cpp:139:5
#24 0x584bba in AP4_ContainerAtom::Create(unsigned int, unsigned long long, bool, bool, AP4_ByteStream&, AP4_AtomFactory&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4ContainerAtom.cpp:88
#25 0x56f4d0 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4AtomFactory.cpp:755:20
#26 0x56cffd in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4AtomFactory.cpp:220:14
#27 0x585fb1 in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4ContainerAtom.cpp:194:12
#28 0x584bba in AP4_ContainerAtom::AP4_ContainerAtom(unsigned int, unsigned long long, bool, AP4_ByteStream&, AP4_AtomFactory&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4ContainerAtom.cpp:139:5
#29 0x584bba in AP4_ContainerAtom::Create(unsigned int, unsigned long long, bool, bool, AP4_ByteStream&, AP4_AtomFactory&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4ContainerAtom.cpp:88
#30 0x56f4d0 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4AtomFactory.cpp:755:20
#31 0x56cffd in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4AtomFactory.cpp:220:14
#32 0x585fb1 in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4ContainerAtom.cpp:194:12
#33 0x585ae9 in AP4_ContainerAtom::AP4_ContainerAtom(unsigned int, unsigned long long, bool, AP4_ByteStream&, AP4_AtomFactory&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4ContainerAtom.cpp:139:5
#34 0x655a6d in AP4_TrakAtom::AP4_TrakAtom(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4TrakAtom.cpp:165:5
#35 0x56de7d in AP4_TrakAtom::Create(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4TrakAtom.h:58:20
#36 0x56de7d in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4AtomFactory.cpp:377
#37 0x56cffd in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4AtomFactory.cpp:220:14
#38 0x585fb1 in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4ContainerAtom.cpp:194:12
#39 0x585ae9 in AP4_ContainerAtom::AP4_ContainerAtom(unsigned int, unsigned long long, bool, AP4_ByteStream&, AP4_AtomFactory&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4ContainerAtom.cpp:139:5
#40 0x5c6f30 in AP4_MoovAtom::AP4_MoovAtom(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4MoovAtom.cpp:79:5
#41 0x56fda1 in AP4_MoovAtom::Create(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4MoovAtom.h:56:20
#42 0x56fda1 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4AtomFactory.cpp:357
#43 0x56cffd in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4AtomFactory.cpp:220:14
#44 0x56c600 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, AP4_Atom*&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4AtomFactory.cpp:150:12
#45 0x5943ac in AP4_File::ParseStream(AP4_ByteStream&, AP4_AtomFactory&, bool) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4File.cpp:104:12
#46 0x594a7a in AP4_File::AP4_File(AP4_ByteStream&, bool) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4File.cpp:78:5
#47 0x54a529 in main /tmp/Bento4-master-2017-09-10/Source/C++/Apps/Mp42Hls/Mp42Hls.cpp:1837:32
#48 0x7f997de41680 in __libc_start_main /var/tmp/portage/sys-libs/glibc-2.23-r4/work/glibc-2.23/csu/../csu/libc-start.c:289
#49 0x4516a8 in _start (/usr/bin/mp42hls+0x4516a8)
0x603000000383 is located 1 bytes to the right of 18-byte region [0x603000000370,0x603000000382)
allocated by thread T0 here:
#0 0x540260 in operator new[](unsigned long) /var/tmp/portage/sys-libs/compiler-rt-sanitizers-4.0.1/work/compiler-rt-4.0.1.src/lib/asan/asan_new_delete.cc:84
#1 0x64261e in AP4_Stz2Atom::AP4_Stz2Atom(unsigned int, unsigned char, unsigned int, AP4_ByteStream&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4Stz2Atom.cpp:92:29
#2 0x641d3d in AP4_Stz2Atom::Create(unsigned int, AP4_ByteStream&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4Stz2Atom.cpp:52:16
#3 0x56f1e8 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4AtomFactory.cpp:447:20
#4 0x56cffd in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4AtomFactory.cpp:220:14
#5 0x58eea7 in AP4_DrefAtom::AP4_DrefAtom(unsigned int, unsigned char, unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4DrefAtom.cpp:84:16
#6 0x58e55d in AP4_DrefAtom::Create(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4DrefAtom.cpp:50:16
#7 0x56e0f0 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4AtomFactory.cpp:533:20
#8 0x56cffd in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4AtomFactory.cpp:220:14
#9 0x585fb1 in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4ContainerAtom.cpp:194:12
#10 0x584bba in AP4_ContainerAtom::AP4_ContainerAtom(unsigned int, unsigned long long, bool, AP4_ByteStream&, AP4_AtomFactory&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4ContainerAtom.cpp:139:5
#11 0x584bba in AP4_ContainerAtom::Create(unsigned int, unsigned long long, bool, bool, AP4_ByteStream&, AP4_AtomFactory&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4ContainerAtom.cpp:88
#12 0x56f4d0 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4AtomFactory.cpp:755:20
#13 0x56cffd in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4AtomFactory.cpp:220:14
#14 0x58eea7 in AP4_DrefAtom::AP4_DrefAtom(unsigned int, unsigned char, unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4DrefAtom.cpp:84:16
#15 0x58e55d in AP4_DrefAtom::Create(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4DrefAtom.cpp:50:16
#16 0x56e0f0 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4AtomFactory.cpp:533:20
#17 0x56cffd in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4AtomFactory.cpp:220:14
#18 0x585cef in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4ContainerAtom.cpp:194:12
#19 0x584bba in AP4_ContainerAtom::AP4_ContainerAtom(unsigned int, unsigned long long, bool, AP4_ByteStream&, AP4_AtomFactory&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4ContainerAtom.cpp:139:5
#20 0x584bba in AP4_ContainerAtom::Create(unsigned int, unsigned long long, bool, bool, AP4_ByteStream&, AP4_AtomFactory&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4ContainerAtom.cpp:88
#21 0x56f4d0 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4AtomFactory.cpp:755:20
#22 0x56cffd in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4AtomFactory.cpp:220:14
#23 0x585fb1 in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4ContainerAtom.cpp:194:12
#24 0x584bba in AP4_ContainerAtom::AP4_ContainerAtom(unsigned int, unsigned long long, bool, AP4_ByteStream&, AP4_AtomFactory&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4ContainerAtom.cpp:139:5
#25 0x584bba in AP4_ContainerAtom::Create(unsigned int, unsigned long long, bool, bool, AP4_ByteStream&, AP4_AtomFactory&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4ContainerAtom.cpp:88
#26 0x56f4d0 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4AtomFactory.cpp:755:20
#27 0x56cffd in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4AtomFactory.cpp:220:14
#28 0x585fb1 in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4ContainerAtom.cpp:194:12
#29 0x584bba in AP4_ContainerAtom::AP4_ContainerAtom(unsigned int, unsigned long long, bool, AP4_ByteStream&, AP4_AtomFactory&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4ContainerAtom.cpp:139:5
#30 0x584bba in AP4_ContainerAtom::Create(unsigned int, unsigned long long, bool, bool, AP4_ByteStream&, AP4_AtomFactory&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4ContainerAtom.cpp:88
#31 0x56f4d0 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4AtomFactory.cpp:755:20
#32 0x56cffd in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4AtomFactory.cpp:220:14
#33 0x585fb1 in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4ContainerAtom.cpp:194:12
SUMMARY: AddressSanitizer: heap-buffer-overflow /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4Stz2Atom.cpp:111:32 in AP4_Stz2Atom::AP4_Stz2Atom(unsigned int, unsigned char, unsigned int, AP4_ByteStream&)
Shadow bytes around the buggy address:
0x0c067fff8020: 00 00 00 fa fa fa 00 00 00 00 fa fa 00 00 00 fa
0x0c067fff8030: fa fa 00 00 00 fa fa fa 00 00 00 fa fa fa 00 00
0x0c067fff8040: 00 fa fa fa 00 00 00 05 fa fa 00 00 00 fa fa fa
0x0c067fff8050: 00 00 00 fa fa fa 00 00 00 fa fa fa 00 00 00 fa
0x0c067fff8060: fa fa 00 00 00 fa fa fa 00 00 00 fa fa fa 00 00
=>0x0c067fff8070:[02]fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c067fff8080: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c067fff8090: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c067fff80a0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c067fff80b0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c067fff80c0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
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
==180353==ABORTING
```
Testcase:
https://github.com/asarubbo/poc/blob/master/00362-bento4-heapoverflow-AP4_Stz2Atom_AP4_Stz2Atom | heap-based buffer overflow in AP4_Stz2Atom::AP4_Stz2Atom (Ap4Stz2Atom.cpp) | https://api.github.com/repos/axiomatic-systems/Bento4/issues/201/comments | 0 | 2017-09-14T10:19:28Z | 2017-12-17T00:59:26Z | https://github.com/axiomatic-systems/Bento4/issues/201 | 257,667,794 | 201 |
[
"axiomatic-systems",
"Bento4"
] | I have been working with Bento on a windows development machine and have code working that I am using to call mp4hls.py. In order to test things out, I am not doing any encryption on this content.
I am now working to move this code to run on a linux docker container. I have my (dotnet core) code, and the linux build (Bento4-SDK-1-5-0-617.x86_64-unknown-linux.zip) and installed it in the container. When I call mp4hls I get an error "no encryption key was specified". If I provide the encryption-key option with a value then mp4hls succeeds, albeit with encrypted output.
It seems like there is a bug in the linux build which causes it to now be able to package content without having to encrypt it.
Is there something different I need to do on linux? | Encryption-key option required on linux build but not on windows | https://api.github.com/repos/axiomatic-systems/Bento4/issues/200/comments | 4 | 2017-09-12T20:26:42Z | 2017-09-25T16:13:13Z | https://github.com/axiomatic-systems/Bento4/issues/200 | 257,170,126 | 200 |
[
"axiomatic-systems",
"Bento4"
] | On master compiled on 2017-09-10 (but please confirm if this affects current stable):
```
# mp42hls $FILE
ASAN:DEADLYSIGNAL
=================================================================
==176423==ERROR: AddressSanitizer: SEGV on unknown address 0x00000000000c (pc 0x0000005cedf9 bp 0x7ffe94460990 sp 0x7ffe944608e0 T0)
==176423==The signal is caused by a READ memory access.
==176423==Hint: address points to the zero page.
#0 0x5cedf8 in AP4_SampleDescription::GetFormat() const /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4SampleDescription.h:128:55
#1 0x5cedf8 in AP4_Mpeg2TsAudioSampleStream::WriteSample(AP4_Sample&, AP4_DataBuffer&, AP4_SampleDescription*, bool, AP4_ByteStream&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4Mpeg2Ts.cpp:412
#2 0x54c9ed in WriteSamples(AP4_Mpeg2TsWriter*, PackedAudioWriter*, AP4_Track*, SampleReader*, AP4_Mpeg2TsWriter::SampleStream*, AP4_Track*, SampleReader*, AP4_Mpeg2TsWriter::SampleStream*, unsigned int, unsigned char) /tmp/Bento4-master-2017-09-10/Source/C++/Apps/Mp42Hls/Mp42Hls.cpp:1236:40
#3 0x54c9ed in main /tmp/Bento4-master-2017-09-10/Source/C++/Apps/Mp42Hls/Mp42Hls.cpp:2080
#4 0x7f0e32964680 in __libc_start_main /var/tmp/portage/sys-libs/glibc-2.23-r4/work/glibc-2.23/csu/../csu/libc-start.c:289
#5 0x4516a8 in _start (/usr/bin/mp42hls+0x4516a8)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4SampleDescription.h:128:55 in AP4_SampleDescription::GetFormat() const
==176423==ABORTING
```
Testcase:
https://github.com/asarubbo/poc/blob/master/00361-bento4-NULLptr-AP4_Mpeg2TsAudioSampleStream_WriteSample | NULL pointer dereference in AP4_SampleDescription::GetFormat (Ap4SampleDescription.h) | https://api.github.com/repos/axiomatic-systems/Bento4/issues/199/comments | 0 | 2017-09-11T10:45:05Z | 2017-12-17T00:59:25Z | https://github.com/axiomatic-systems/Bento4/issues/199 | 256,658,875 | 199 |
[
"axiomatic-systems",
"Bento4"
] | On master compiled on 2017-09-10 (but please confirm if this affects current stable):
```
# mp4info $FILE
==79574==ERROR: AddressSanitizer: global-buffer-overflow on address 0x00000168cbe1 at pc 0x0000004efd55 bp 0x7ffda7343670 sp 0x7ffda7342e20
READ of size 28 at 0x00000168cbe1 thread T0
#0 0x4efd54 in __asan_memcpy /var/tmp/portage/sys-libs/compiler-rt-sanitizers-4.0.1/work/compiler-rt-4.0.1.src/lib/asan/asan_interceptors.cc:453
#1 0x586c72 in AP4_MemoryByteStream::WritePartial(void const*, unsigned int, unsigned int&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4ByteStream.cpp:789:5
#2 0x580ff3 in AP4_ByteStream::Write(void const*, unsigned int) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4ByteStream.cpp:78:29
#3 0x59f4dc in AP4_HdlrAtom::WriteFields(AP4_ByteStream&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4HdlrAtom.cpp:125:25
#4 0x566f80 in AP4_Atom::Write(AP4_ByteStream&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4Atom.cpp:229:14
#5 0x567789 in AP4_Atom::Clone() /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4Atom.cpp:316:9
#6 0x60f728 in AP4_SampleDescription::AP4_SampleDescription(AP4_SampleDescription::Type, unsigned int, AP4_AtomParent*) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4SampleDescription.cpp:127:41
#7 0x60f728 in AP4_AvcSampleDescription::AP4_AvcSampleDescription(unsigned int, unsigned short, unsigned short, unsigned short, char const*, AP4_AtomParent*) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4SampleDescription.cpp:351
#8 0x61fe53 in AP4_AvcSampleEntry::ToSampleDescription() /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4SampleEntry.cpp:1022:16
#9 0x638acc in AP4_StsdAtom::GetSampleDescription(unsigned int) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4StsdAtom.cpp:179:53
#10 0x68bd58 in AP4_AtomSampleTable::GetSampleDescription(unsigned int) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4AtomSampleTable.cpp:207:37
#11 0x6513f7 in AP4_Track::GetSampleDescription(unsigned int) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4Track.cpp:445:43
#12 0x5484a4 in ShowTrackInfo_Text(AP4_Movie&, AP4_Track&, AP4_ByteStream&, bool, bool, bool, bool) /tmp/Bento4-master-2017-09-10/Source/C++/Apps/Mp4Info/Mp4Info.cpp:1089:52
#13 0x5484a4 in ShowTrackInfo(AP4_Movie&, AP4_Track&, AP4_ByteStream&, bool, bool, bool, bool) /tmp/Bento4-master-2017-09-10/Source/C++/Apps/Mp4Info/Mp4Info.cpp:1213
#14 0x547825 in ShowTracks(AP4_Movie&, AP4_List<AP4_Track>&, AP4_ByteStream&, bool, bool, bool, bool) /tmp/Bento4-master-2017-09-10/Source/C++/Apps/Mp4Info/Mp4Info.cpp:1323:9
#15 0x544f5e in main /tmp/Bento4-master-2017-09-10/Source/C++/Apps/Mp4Info/Mp4Info.cpp:1587:13
#16 0x7feb2de53680 in __libc_start_main /var/tmp/portage/sys-libs/glibc-2.23-r4/work/glibc-2.23/csu/../csu/libc-start.c:289
#17 0x450c38 in _start (/usr/bin/mp4info+0x450c38)
0x00000168cbe1 is located 63 bytes to the left of global variable 'AP4_GlobalOptions::g_Entries' defined in '/tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4Utils.cpp:37:56' (0x168cc20) of size 8
0x00000168cbe1 is located 0 bytes to the right of global variable 'AP4_String::EmptyString' defined in '/tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4String.cpp:39:18' (0x168cbe0) of size 1
'AP4_String::EmptyString' is ascii string ''
SUMMARY: AddressSanitizer: global-buffer-overflow /var/tmp/portage/sys-libs/compiler-rt-sanitizers-4.0.1/work/compiler-rt-4.0.1.src/lib/asan/asan_interceptors.cc:453 in __asan_memcpy
Shadow bytes around the buggy address:
0x0000802c9920: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0000802c9930: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0000802c9940: 00 00 00 00 00 00 00 00 00 00 00 00 04 f9 f9 f9
0x0000802c9950: f9 f9 f9 f9 00 00 00 00 00 00 00 00 00 f9 f9 f9
0x0000802c9960: f9 f9 f9 f9 00 00 00 00 00 00 00 00 00 f9 f9 f9
=>0x0000802c9970: f9 f9 f9 f9 00 00 f9 f9 f9 f9 f9 f9[01]f9 f9 f9
0x0000802c9980: f9 f9 f9 f9 00 f9 f9 f9 f9 f9 f9 f9 00 00 00 f9
0x0000802c9990: f9 f9 f9 f9 00 00 00 00 00 00 00 00 00 00 00 00
0x0000802c99a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0000802c99b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0000802c99c0: 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
==79574==ABORTING
Movie:
duration: 0 ms
time scale: -150994344
fragments: no
Found 1 Tracks
Track 1:
flags: 0
id: 0
type: Video
duration: 0 ms
language: eng
media:
sample count: 0
timescale: 30000
duration: 4004 (media timescale units)
duration: 133 (ms)
bitrate (computed): 0.000 Kbps
```
Testcase:
https://github.com/asarubbo/poc/blob/master/00360-bento4-globaloverflow-AP4_MemoryByteStream_WritePartial | global buffer overflow in AP4_MemoryByteStream::WritePartial (Ap4ByteStream.cpp) | https://api.github.com/repos/axiomatic-systems/Bento4/issues/198/comments | 0 | 2017-09-11T10:19:34Z | 2017-12-17T00:59:25Z | https://github.com/axiomatic-systems/Bento4/issues/198 | 256,652,440 | 198 |
[
"axiomatic-systems",
"Bento4"
] | On master compiled on 2017-09-10 (but please confirm if this affects current stable):
```
# mp4info $FILE
mp4info: /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4Atom.cpp:737: virtual AP4_Result AP4_AtomListWriter::Action(AP4_Atom *) const: Assertion `bytes_written <= atom->GetSize()' failed.
```
Testcase:
https://github.com/asarubbo/poc/blob/master/00359-bento4-assertionfailureAp4Atom_cpp | Assertion failure in Ap4Atom.cpp | https://api.github.com/repos/axiomatic-systems/Bento4/issues/197/comments | 0 | 2017-09-11T09:55:07Z | 2017-12-17T00:59:25Z | https://github.com/axiomatic-systems/Bento4/issues/197 | 256,645,570 | 197 |
[
"axiomatic-systems",
"Bento4"
] | Some mp4 here hang the process (maybe an infinite loop not visible with a stacktrace)
To reproduce: mp4info $FILE
Testcases attached
[bento-infinite-loop.zip](https://github.com/axiomatic-systems/Bento4/files/1290386/bento-infinite-loop.zip)
| process hang with some mp4 | https://api.github.com/repos/axiomatic-systems/Bento4/issues/196/comments | 0 | 2017-09-10T09:00:02Z | 2017-12-17T00:59:25Z | https://github.com/axiomatic-systems/Bento4/issues/196 | 256,495,556 | 196 |
[
"axiomatic-systems",
"Bento4"
] | On master compiled right now, so on 2017-09-10 (but please confirm if this affects current stable):
```
ASAN:DEADLYSIGNAL
=================================================================
==102951==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x0000004efc91 bp 0x7ffc416f39b0 sp 0x7ffc416f3140 T0)
==102951==The signal is caused by a READ memory access.
==102951==Hint: address points to the zero page.
#0 0x4efc90 in AddressIsPoisoned /var/tmp/portage/sys-libs/compiler-rt-sanitizers-4.0.1/work/compiler-rt-4.0.1.src/lib/asan/asan_mapping.h:322
#1 0x4efc90 in QuickCheckForUnpoisonedRegion /var/tmp/portage/sys-libs/compiler-rt-sanitizers-4.0.1/work/compiler-rt-4.0.1.src/lib/asan/asan_interceptors.cc:43
#2 0x4efc90 in __asan_memcpy /var/tmp/portage/sys-libs/compiler-rt-sanitizers-4.0.1/work/compiler-rt-4.0.1.src/lib/asan/asan_interceptors.cc:453
#3 0x591c1b in AP4_DataBuffer::SetData(unsigned char const*, unsigned int) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4DataBuffer.cpp:175:5
#4 0x57cb47 in AP4_AvccAtom::AP4_AvccAtom(unsigned int, unsigned char const*) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4AvccAtom.cpp:160:41
#5 0x57a09b in AP4_AvccAtom::Create(unsigned int, AP4_ByteStream&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4AvccAtom.cpp:95:16
#6 0x576171 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4AtomFactory.cpp:477:20
#7 0x572ddd in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4AtomFactory.cpp:220:14
#8 0x58bd91 in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4ContainerAtom.cpp:194:12
#9 0x58a99a in AP4_ContainerAtom::AP4_ContainerAtom(unsigned int, unsigned long long, bool, AP4_ByteStream&, AP4_AtomFactory&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4ContainerAtom.cpp:139:5
#10 0x58a99a in AP4_ContainerAtom::Create(unsigned int, unsigned long long, bool, bool, AP4_ByteStream&, AP4_AtomFactory&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4ContainerAtom.cpp:88
#11 0x5752b0 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4AtomFactory.cpp:755:20
#12 0x572ddd in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4AtomFactory.cpp:220:14
#13 0x594c87 in AP4_DrefAtom::AP4_DrefAtom(unsigned int, unsigned char, unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4DrefAtom.cpp:84:16
#14 0x59433d in AP4_DrefAtom::Create(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4DrefAtom.cpp:50:16
#15 0x573ed0 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4AtomFactory.cpp:533:20
#16 0x572ddd in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4AtomFactory.cpp:220:14
#17 0x58bacf in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4ContainerAtom.cpp:194:12
#18 0x58a99a in AP4_ContainerAtom::AP4_ContainerAtom(unsigned int, unsigned long long, bool, AP4_ByteStream&, AP4_AtomFactory&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4ContainerAtom.cpp:139:5
#19 0x58a99a in AP4_ContainerAtom::Create(unsigned int, unsigned long long, bool, bool, AP4_ByteStream&, AP4_AtomFactory&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4ContainerAtom.cpp:88
#20 0x5752b0 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4AtomFactory.cpp:755:20
#21 0x572ddd in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4AtomFactory.cpp:220:14
#22 0x58bd91 in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4ContainerAtom.cpp:194:12
#23 0x58a99a in AP4_ContainerAtom::AP4_ContainerAtom(unsigned int, unsigned long long, bool, AP4_ByteStream&, AP4_AtomFactory&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4ContainerAtom.cpp:139:5
#24 0x58a99a in AP4_ContainerAtom::Create(unsigned int, unsigned long long, bool, bool, AP4_ByteStream&, AP4_AtomFactory&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4ContainerAtom.cpp:88
#25 0x5752b0 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4AtomFactory.cpp:755:20
#26 0x572ddd in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4AtomFactory.cpp:220:14
#27 0x58bd91 in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4ContainerAtom.cpp:194:12
#28 0x58a99a in AP4_ContainerAtom::AP4_ContainerAtom(unsigned int, unsigned long long, bool, AP4_ByteStream&, AP4_AtomFactory&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4ContainerAtom.cpp:139:5
#29 0x58a99a in AP4_ContainerAtom::Create(unsigned int, unsigned long long, bool, bool, AP4_ByteStream&, AP4_AtomFactory&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4ContainerAtom.cpp:88
#30 0x5752b0 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4AtomFactory.cpp:755:20
#31 0x572ddd in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4AtomFactory.cpp:220:14
#32 0x58bd91 in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4ContainerAtom.cpp:194:12
#33 0x58b8c9 in AP4_ContainerAtom::AP4_ContainerAtom(unsigned int, unsigned long long, bool, AP4_ByteStream&, AP4_AtomFactory&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4ContainerAtom.cpp:139:5
#34 0x6533bd in AP4_TrakAtom::AP4_TrakAtom(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4TrakAtom.cpp:165:5
#35 0x573c5d in AP4_TrakAtom::Create(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4TrakAtom.h:58:20
#36 0x573c5d in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4AtomFactory.cpp:377
#37 0x572ddd in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4AtomFactory.cpp:220:14
#38 0x58bd91 in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4ContainerAtom.cpp:194:12
#39 0x58b8c9 in AP4_ContainerAtom::AP4_ContainerAtom(unsigned int, unsigned long long, bool, AP4_ByteStream&, AP4_AtomFactory&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4ContainerAtom.cpp:139:5
#40 0x5cca60 in AP4_MoovAtom::AP4_MoovAtom(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4MoovAtom.cpp:79:5
#41 0x575b81 in AP4_MoovAtom::Create(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4MoovAtom.h:56:20
#42 0x575b81 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4AtomFactory.cpp:357
#43 0x572ddd in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4AtomFactory.cpp:220:14
#44 0x5723e0 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, AP4_Atom*&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4AtomFactory.cpp:150:12
#45 0x59a18c in AP4_File::ParseStream(AP4_ByteStream&, AP4_AtomFactory&, bool) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4File.cpp:104:12
#46 0x59a85a in AP4_File::AP4_File(AP4_ByteStream&, bool) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4File.cpp:78:5
#47 0x5440b7 in main /tmp/Bento4-master-2017-09-10/Source/C++/Apps/Mp4Info/Mp4Info.cpp:1571:26
#48 0x7f788aea7680 in __libc_start_main /var/tmp/portage/sys-libs/glibc-2.23-r4/work/glibc-2.23/csu/../csu/libc-start.c:289
#49 0x450c38 in _start (/usr/bin/mp4info+0x450c38)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /var/tmp/portage/sys-libs/compiler-rt-sanitizers-4.0.1/work/compiler-rt-4.0.1.src/lib/asan/asan_mapping.h:322 in AddressIsPoisoned
==102951==ABORTING
```
Testcase:
https://github.com/asarubbo/poc/blob/master/00358-bento4-NULLptr-AP4_DataBuffer_SetData
| NULL pointer dereference in AP4_DataBuffer::SetData (Ap4DataBuffer.cpp) | https://api.github.com/repos/axiomatic-systems/Bento4/issues/195/comments | 0 | 2017-09-10T08:57:52Z | 2017-12-17T00:59:25Z | https://github.com/axiomatic-systems/Bento4/issues/195 | 256,495,453 | 195 |
[
"axiomatic-systems",
"Bento4"
] | On master compiled right now, so on 2017-09-10 (but please confirm if this affects current stable):
```
# mp4info $FILE
==87194==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x6020000001f4 at pc 0x000000561e8b bp 0x7ffe5fb5e2c0 sp 0x7ffe5fb5e2b8
READ of size 1 at 0x6020000001f4 thread T0
#0 0x561e8a in AP4_Mp4AudioDsiParser::ReadBits(unsigned int) /tmp/Bento4-master-2017-09-10/Source/C++/Codecs/Ap4Mp4AudioInfo.cpp:66:56
#1 0x561e8a in AP4_Mp4AudioDecoderConfig::ParseExtension(AP4_Mp4AudioDsiParser&) /tmp/Bento4-master-2017-09-10/Source/C++/Codecs/Ap4Mp4AudioInfo.cpp:136
#2 0x5642ba in AP4_Mp4AudioDecoderConfig::Parse(unsigned char const*, unsigned int) /tmp/Bento4-master-2017-09-10/Source/C++/Codecs/Ap4Mp4AudioInfo.cpp:314:30
#3 0x61371a in AP4_MpegAudioSampleDescription::GetCodecString(AP4_String&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4SampleDescription.cpp:744:52
#4 0x553ac7 in ShowMpegAudioSampleDescription(AP4_MpegAudioSampleDescription&) /tmp/Bento4-master-2017-09-10/Source/C++/Apps/Mp4Info/Mp4Info.cpp:303:21
#5 0x54c61a in ShowSampleDescription_Text(AP4_SampleDescription&, bool) /tmp/Bento4-master-2017-09-10/Source/C++/Apps/Mp4Info/Mp4Info.cpp:412:34
#6 0x54c61a in ShowSampleDescription(AP4_SampleDescription&, bool) /tmp/Bento4-master-2017-09-10/Source/C++/Apps/Mp4Info/Mp4Info.cpp:783
#7 0x548526 in ShowTrackInfo_Text(AP4_Movie&, AP4_Track&, AP4_ByteStream&, bool, bool, bool, bool) /tmp/Bento4-master-2017-09-10/Source/C++/Apps/Mp4Info/Mp4Info.cpp:1092:9
#8 0x548526 in ShowTrackInfo(AP4_Movie&, AP4_Track&, AP4_ByteStream&, bool, bool, bool, bool) /tmp/Bento4-master-2017-09-10/Source/C++/Apps/Mp4Info/Mp4Info.cpp:1213
#9 0x547825 in ShowTracks(AP4_Movie&, AP4_List<AP4_Track>&, AP4_ByteStream&, bool, bool, bool, bool) /tmp/Bento4-master-2017-09-10/Source/C++/Apps/Mp4Info/Mp4Info.cpp:1323:9
#10 0x544f5e in main /tmp/Bento4-master-2017-09-10/Source/C++/Apps/Mp4Info/Mp4Info.cpp:1587:13
#11 0x7f87a39e2680 in __libc_start_main /var/tmp/portage/sys-libs/glibc-2.23-r4/work/glibc-2.23/csu/../csu/libc-start.c:289
#12 0x450c38 in _start (/usr/bin/mp4info+0x450c38)
0x6020000001f4 is located 0 bytes to the right of 4-byte region [0x6020000001f0,0x6020000001f4)
allocated by thread T0 here:
#0 0x53f7f0 in operator new[](unsigned long) /var/tmp/portage/sys-libs/compiler-rt-sanitizers-4.0.1/work/compiler-rt-4.0.1.src/lib/asan/asan_new_delete.cc:84
#1 0x5907d6 in AP4_DataBuffer::AP4_DataBuffer(void const*, unsigned int) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4DataBuffer.cpp:68:20
#2 0x5633e4 in AP4_Mp4AudioDsiParser::AP4_Mp4AudioDsiParser(unsigned char const*, unsigned int) /tmp/Bento4-master-2017-09-10/Source/C++/Codecs/Ap4Mp4AudioInfo.cpp:56:9
#3 0x5633e4 in AP4_Mp4AudioDecoderConfig::Parse(unsigned char const*, unsigned int) /tmp/Bento4-master-2017-09-10/Source/C++/Codecs/Ap4Mp4AudioInfo.cpp:248
#4 0x61371a in AP4_MpegAudioSampleDescription::GetCodecString(AP4_String&) /tmp/Bento4-master-2017-09-10/Source/C++/Core/Ap4SampleDescription.cpp:744:52
#5 0x553ac7 in ShowMpegAudioSampleDescription(AP4_MpegAudioSampleDescription&) /tmp/Bento4-master-2017-09-10/Source/C++/Apps/Mp4Info/Mp4Info.cpp:303:21
#6 0x54c61a in ShowSampleDescription_Text(AP4_SampleDescription&, bool) /tmp/Bento4-master-2017-09-10/Source/C++/Apps/Mp4Info/Mp4Info.cpp:412:34
#7 0x54c61a in ShowSampleDescription(AP4_SampleDescription&, bool) /tmp/Bento4-master-2017-09-10/Source/C++/Apps/Mp4Info/Mp4Info.cpp:783
#8 0x548526 in ShowTrackInfo_Text(AP4_Movie&, AP4_Track&, AP4_ByteStream&, bool, bool, bool, bool) /tmp/Bento4-master-2017-09-10/Source/C++/Apps/Mp4Info/Mp4Info.cpp:1092:9
#9 0x548526 in ShowTrackInfo(AP4_Movie&, AP4_Track&, AP4_ByteStream&, bool, bool, bool, bool) /tmp/Bento4-master-2017-09-10/Source/C++/Apps/Mp4Info/Mp4Info.cpp:1213
#10 0x547825 in ShowTracks(AP4_Movie&, AP4_List<AP4_Track>&, AP4_ByteStream&, bool, bool, bool, bool) /tmp/Bento4-master-2017-09-10/Source/C++/Apps/Mp4Info/Mp4Info.cpp:1323:9
#11 0x544f5e in main /tmp/Bento4-master-2017-09-10/Source/C++/Apps/Mp4Info/Mp4Info.cpp:1587:13
#12 0x7f87a39e2680 in __libc_start_main /var/tmp/portage/sys-libs/glibc-2.23-r4/work/glibc-2.23/csu/../csu/libc-start.c:289
SUMMARY: AddressSanitizer: heap-buffer-overflow /tmp/Bento4-master-2017-09-10/Source/C++/Codecs/Ap4Mp4AudioInfo.cpp:66:56 in AP4_Mp4AudioDsiParser::ReadBits(unsigned int)
Shadow bytes around the buggy address:
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 fd fd
0x0c047fff8010: fa fa 04 fa fa fa fd fd fa fa 00 05 fa fa 04 fa
0x0c047fff8020: fa fa 00 fa fa fa fd fd fa fa 04 fa fa fa fd fa
=>0x0c047fff8030: fa fa fd fa fa fa 01 fa fa fa 04 fa fa fa[04]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
0x0c047fff8080: 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
==87194==ABORTING
File:
major brand: isom
minor version: 200
compatible brand: isom
compatible brand: iso2
compatible brand: mp41
fast start: no
Movie:
duration: 1045 ms
time scale: 1000
fragments: no
Found 1 Tracks
Track 1:
flags: 3 ENABLED IN-MOVIE
id: 1
type: Audio
duration: 1045 ms
language: und
media:
sample count: 45
timescale: 44100
duration: 46080 (media timescale units)
duration: 1045 (ms)
bitrate (computed): 266.503 Kbps
Sample Description 0
Coding: mp4a (MPEG-4 Audio)
Stream Type: Audio
Object Type: MPEG-4 Audio
Max Bitrate: 266529
Avg Bitrate: 266529
Buffer Size: 0
```
Testcase:
https://github.com/asarubbo/poc/blob/master/00357-bento4-heapoverflow-AP4_Mp4AudioDsiParser_ReadBits | heap-based buffer overflow in AP4_Mp4AudioDsiParser::ReadBits (Ap4Mp4AudioInfo.cpp) | https://api.github.com/repos/axiomatic-systems/Bento4/issues/194/comments | 0 | 2017-09-10T08:53:39Z | 2017-12-17T00:59:25Z | https://github.com/axiomatic-systems/Bento4/issues/194 | 256,495,213 | 194 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.