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" ]
## System info Ubuntu X64, gcc (Ubuntu 5.5.0-12ubuntu1), mp42aac (latest master [174b94](https://github.com/axiomatic-systems/Bento4/commit/174b948be29b69009b235ae0aa92884d05bcea49)) ## Configure cmake .. -DCMAKE_CXX_FLAGS="-fsanitize=address -g" -DCMAKE_C_FLAGS="-fsanitize=address -g" -DCMAKE_EXE_LINKER_FLAGS="-fsanitize=address" -DCMAKE_MODULE_LINKER_FLAGS="-fsanitize=address" ## Command line ./build/mp42aac ./Bento4/SEGV-GetSampleSize-Ap4StszAtom-154 -o /dev/null ## Output ``` Audio Track: duration: 3623 ms sample count: 2147483726 Segmentation fault (core dumped) ``` ## AddressSanitizer output ``` AddressSanitizer:DEADLYSIGNAL ================================================================= ==64813==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x00000068ee18 bp 0x7ffd9fff70c0 sp 0x7ffd9fff6ef0 T0) ==64813==The signal is caused by a READ memory access. ==64813==Hint: address points to the zero page. #0 0x68ee17 in AP4_StszAtom::GetSampleSize(unsigned int, unsigned int&) /home/seviezhou/Bento4/Source/C++/Core/Ap4StszAtom.cpp:154:27 #1 0x5b166c in AP4_AtomSampleTable::GetSample(unsigned int, AP4_Sample&) /home/seviezhou/Bento4/Source/C++/Core/Ap4AtomSampleTable.cpp #2 0x564f45 in AP4_Track::GetSample(unsigned int, AP4_Sample&) /home/seviezhou/Bento4/Source/C++/Core/Ap4Track.cpp:435:43 #3 0x564f45 in AP4_Track::ReadSample(unsigned int, AP4_Sample&, AP4_DataBuffer&) /home/seviezhou/Bento4/Source/C++/Core/Ap4Track.cpp:469 #4 0x51826d in WriteSamples(AP4_Track*, AP4_SampleDescription*, AP4_ByteStream*) /home/seviezhou/Bento4/Source/C++/Apps/Mp42Aac/Mp42Aac.cpp:192:12 #5 0x51826d in main /home/seviezhou/Bento4/Source/C++/Apps/Mp42Aac/Mp42Aac.cpp:281 #6 0x7f7ae36e1b96 in __libc_start_main /build/glibc-OTsEL5/glibc-2.27/csu/../csu/libc-start.c:310 #7 0x41afc9 in _start (/home/seviezhou/Bento4/build/mp42aac+0x41afc9) AddressSanitizer can not provide additional info. SUMMARY: AddressSanitizer: SEGV /home/seviezhou/Bento4/Source/C++/Core/Ap4StszAtom.cpp:154:27 in AP4_StszAtom::GetSampleSize(unsigned int, unsigned int&) ==64813==ABORTING ``` ## POC [SEGV-GetSampleSize-Ap4StszAtom-154.zip](https://github.com/axiomatic-systems/Bento4/files/5009742/SEGV-GetSampleSize-Ap4StszAtom-154.zip)
A Segmentation fault in Ap4StszAtom.cpp:154
https://api.github.com/repos/axiomatic-systems/Bento4/issues/540/comments
0
2020-08-01T02:45:57Z
2020-08-01T02:45:57Z
https://github.com/axiomatic-systems/Bento4/issues/540
670,451,905
540
[ "axiomatic-systems", "Bento4" ]
## System info Ubuntu X64, gcc (Ubuntu 5.5.0-12ubuntu1), mp42aac (latest master [174b94](https://github.com/axiomatic-systems/Bento4/commit/174b948be29b69009b235ae0aa92884d05bcea49)) ## Command line ./build/mp42aac ./Bento4/SEGV-AP4_Descriptor-GetTag-Ap4Descriptor-61 -o /dev/null ## Output ``` Segmentation fault (core dumped) ``` ## AddressSanitizer output ``` AddressSanitizer:DEADLYSIGNAL ================================================================= ==79042==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000008 (pc 0x0000005ff16f bp 0x000000131628 sp 0x7ffc9778d530 T0) ==79042==The signal is caused by a READ memory access. ==79042==Hint: address points to the zero page. #0 0x5ff16e in AP4_Descriptor::GetTag() /home/seviezhou/Bento4/Source/C++/Core/Ap4Descriptor.h:61:42 #1 0x5ff16e in AP4_DescriptorFinder::Test(AP4_Descriptor*) const /home/seviezhou/Bento4/Source/C++/Core/Ap4Descriptor.h:92 #2 0x5febf4 in AP4_List<AP4_Descriptor>::Find(AP4_List<AP4_Descriptor>::Item::Finder const&, AP4_Descriptor*&) const /home/seviezhou/Bento4/Source/C++/Core/Ap4List.h:431:20 #3 0x5fe28e in AP4_DecoderConfigDescriptor::GetDecoderSpecificInfoDescriptor() const /home/seviezhou/Bento4/Source/C++/Core/Ap4DecoderConfigDescriptor.cpp:159:26 #4 0x547827 in AP4_MpegSampleDescription::AP4_MpegSampleDescription(unsigned int, AP4_EsdsAtom*) /home/seviezhou/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:595:26 #5 0x5489b5 in AP4_MpegAudioSampleDescription::AP4_MpegAudioSampleDescription(unsigned int, unsigned short, unsigned short, AP4_EsdsAtom*) /home/seviezhou/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:700:5 #6 0x552603 in AP4_MpegAudioSampleEntry::ToSampleDescription() /home/seviezhou/Bento4/Source/C++/Core/Ap4SampleEntry.cpp:675:16 #7 0x55fd4e in AP4_StsdAtom::GetSampleDescription(unsigned int) /home/seviezhou/Bento4/Source/C++/Core/Ap4StsdAtom.cpp:181:53 #8 0x5b1fee in AP4_AtomSampleTable::GetSampleDescription(unsigned int) /home/seviezhou/Bento4/Source/C++/Core/Ap4AtomSampleTable.cpp:207:37 #9 0x56438d in AP4_Track::GetSampleDescription(unsigned int) /home/seviezhou/Bento4/Source/C++/Core/Ap4Track.cpp:445:43 #10 0x517e77 in main /home/seviezhou/Bento4/Source/C++/Apps/Mp42Aac/Mp42Aac.cpp:268:39 #11 0x7fa6c8d62b96 in __libc_start_main /build/glibc-OTsEL5/glibc-2.27/csu/../csu/libc-start.c:310 #12 0x41afc9 in _start (/home/seviezhou/Bento4/build/mp42aac+0x41afc9) AddressSanitizer can not provide additional info. SUMMARY: AddressSanitizer: SEGV /home/seviezhou/Bento4/Source/C++/Core/Ap4Descriptor.h:61:42 in AP4_Descriptor::GetTag() ==79042==ABORTING ``` ## POC [SEGV-AP4_Descriptor-GetTag-Ap4Descriptor-61.zip](https://github.com/axiomatic-systems/Bento4/files/5007295/SEGV-AP4_Descriptor-GetTag-Ap4Descriptor-61.zip)
Segmentation fault in AP4_Descriptor::GetTag()
https://api.github.com/repos/axiomatic-systems/Bento4/issues/539/comments
0
2020-07-31T13:47:48Z
2020-07-31T13:47:48Z
https://github.com/axiomatic-systems/Bento4/issues/539
669,835,839
539
[ "axiomatic-systems", "Bento4" ]
Hi, I am having similar issue like this post here https://github.com/axiomatic-systems/Bento4/issues/450 I can decrypt video with key in format 1:key and kid:key and audio only decrypts with kid:key(windows). When I try replicate the same on ubuntu 18 the audio doesn’t decrypt. I already tried downloading latest code from this repo and building it but it just doesn’t work. I followed these steps git clone mkdir cmakebuild cd cmakebuild cmake -DCMAKE_BUILD_TYPE=Release .. make Then tried decrypting using the binary I just compiled. Maybe I am using the wrong binary or doing something wrong? I am suprised it works on windows and not on ubuntu 18.04. Any guesses?
mp4decrypt decrypts audio on windows but not on linux
https://api.github.com/repos/axiomatic-systems/Bento4/issues/538/comments
2
2020-07-27T03:11:10Z
2020-07-29T19:57:20Z
https://github.com/axiomatic-systems/Bento4/issues/538
665,942,102
538
[ "axiomatic-systems", "Bento4" ]
Hi ! Is it possible to use an rtsp stream (Xamera IP stream) as "source" input? Thank's
input type
https://api.github.com/repos/axiomatic-systems/Bento4/issues/537/comments
1
2020-07-23T19:22:23Z
2020-07-29T06:04:15Z
https://github.com/axiomatic-systems/Bento4/issues/537
664,711,246
537
[ "axiomatic-systems", "Bento4" ]
Hiho. I want t o decrypt a video file in linux with mp4decrypt. The video file i have must be decrypted with 4 keys... ./mp4decrypt --show-progress --key 2:66b4f4520b9257c1a429b7517deee02f --key 2:ad1dfd6c6929b13ea89a557f9890b410 --key 2:5d63fb5b60e7289b2ca719a4336702e1 --key 2:839ec82f1c0a94e9f8d94bee458cb9e3 videoencrypted.mp4 test_out.mp4 in Linux that wont work.. video is not derypted properly. In windows with same line/keys all is fine. Any suggestions ??
mp4decrypt doesnt decrypt properly in linux when using several keys for one track
https://api.github.com/repos/axiomatic-systems/Bento4/issues/536/comments
2
2020-07-19T10:43:04Z
2020-07-29T06:07:10Z
https://github.com/axiomatic-systems/Bento4/issues/536
660,756,422
536
[ "axiomatic-systems", "Bento4" ]
# Summary heap-buffer-overflow Bento4-1.6.0-637/Source/C++/Core/Ap4AvccAtom.cpp:165:31 in AP4_AvccAtom::AP4_AvccAtom(unsigned int, unsigned char const*) # Version Bento4-1.6.0-637 # How to build ```shell cmake -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_INSTALL_PREFIX=`pwd`/mybin -DCMAKE_C_FLAGS="-g -O0 -fsanitize=address" -DCMAKE_CXX_FLAGS="-g -O0 -fsanitize=address" ../ ``` # Commandline ```shell mp42aac @@ a.aac ``` # ASAN report ```txt ================================================================= ==32574==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x60600000ef94 at pc 0x000000580c53 bp 0x7ffc2d062c50 sp 0x7ffc2d062c48 READ of size 1 at 0x60600000ef94 thread T0 #0 0x580c52 in AP4_AvccAtom::AP4_AvccAtom(unsigned int, unsigned char const*) /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4AvccAtom.cpp:165:31 #1 0x57f0c0 in AP4_AvccAtom::Create(unsigned int, AP4_ByteStream&) /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4AvccAtom.cpp:95:16 #2 0x576afc in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4AtomFactory.cpp:499:20 #3 0x573d68 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4AtomFactory.cpp:233:14 #4 0x5ac5a3 in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4ContainerAtom.cpp:194:12 #5 0x51c2bd in AP4_SampleEntry::Read(AP4_ByteStream&, AP4_AtomFactory&) /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4SampleEntry.cpp:115:9 #6 0x521459 in AP4_VisualSampleEntry::AP4_VisualSampleEntry(unsigned int, unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4SampleEntry.cpp:742:5 #7 0x52305d in AP4_AvcSampleEntry::AP4_AvcSampleEntry(unsigned int, unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4SampleEntry.cpp:994:5 #8 0x574d99 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4AtomFactory.cpp:318:24 #9 0x573d68 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4AtomFactory.cpp:233:14 #10 0x52939c in AP4_StsdAtom::AP4_StsdAtom(unsigned int, unsigned char, unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4StsdAtom.cpp:101:13 #11 0x52891e in AP4_StsdAtom::Create(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4StsdAtom.cpp:57:16 #12 0x5765c9 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4AtomFactory.cpp:444:20 #13 0x573d68 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4AtomFactory.cpp:233:14 #14 0x5ac5a3 in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4ContainerAtom.cpp:194:12 #15 0x5ac31a in AP4_ContainerAtom::AP4_ContainerAtom(unsigned int, unsigned long long, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4ContainerAtom.cpp:139:5 #16 0x5abc43 in AP4_ContainerAtom::Create(unsigned int, unsigned long long, bool, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4ContainerAtom.cpp:88:20 #17 0x5785e3 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4AtomFactory.cpp:796:20 #18 0x573d68 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4AtomFactory.cpp:233:14 #19 0x5bf57f in AP4_DrefAtom::AP4_DrefAtom(unsigned int, unsigned char, unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4DrefAtom.cpp:84:16 #20 0x5bef6e in AP4_DrefAtom::Create(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4DrefAtom.cpp:50:16 #21 0x577222 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4AtomFactory.cpp:560:20 #22 0x573d68 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4AtomFactory.cpp:233:14 #23 0x5ac5a3 in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4ContainerAtom.cpp:194:12 #24 0x5ac31a in AP4_ContainerAtom::AP4_ContainerAtom(unsigned int, unsigned long long, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4ContainerAtom.cpp:139:5 #25 0x5abc43 in AP4_ContainerAtom::Create(unsigned int, unsigned long long, bool, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4ContainerAtom.cpp:88:20 #26 0x5785e3 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4AtomFactory.cpp:796:20 #27 0x573d68 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4AtomFactory.cpp:233:14 #28 0x5ac5a3 in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4ContainerAtom.cpp:194:12 #29 0x5ac31a in AP4_ContainerAtom::AP4_ContainerAtom(unsigned int, unsigned long long, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4ContainerAtom.cpp:139:5 #30 0x5abc43 in AP4_ContainerAtom::Create(unsigned int, unsigned long long, bool, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4ContainerAtom.cpp:88:20 #31 0x5785e3 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4AtomFactory.cpp:796:20 #32 0x573d68 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4AtomFactory.cpp:233:14 #33 0x5ac5a3 in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4ContainerAtom.cpp:194:12 #34 0x5ac31a in AP4_ContainerAtom::AP4_ContainerAtom(unsigned int, unsigned long long, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4ContainerAtom.cpp:139:5 #35 0x5abc43 in AP4_ContainerAtom::Create(unsigned int, unsigned long long, bool, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4ContainerAtom.cpp:88:20 #36 0x5785e3 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4AtomFactory.cpp:796:20 #37 0x573d68 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4AtomFactory.cpp:233:14 #38 0x5ac5a3 in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4ContainerAtom.cpp:194:12 #39 0x5ac31a in AP4_ContainerAtom::AP4_ContainerAtom(unsigned int, unsigned long long, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4ContainerAtom.cpp:139:5 #40 0x530d34 in AP4_TrakAtom::AP4_TrakAtom(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4TrakAtom.cpp:165:5 #41 0x5799fd in AP4_TrakAtom::Create(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4TrakAtom.h:58:20 #42 0x576181 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4AtomFactory.cpp:399:20 #43 0x573d68 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4AtomFactory.cpp:233:14 #44 0x5ac5a3 in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4ContainerAtom.cpp:194:12 #45 0x5ac31a in AP4_ContainerAtom::AP4_ContainerAtom(unsigned int, unsigned long long, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4ContainerAtom.cpp:139:5 #46 0x4fca1e in AP4_MoovAtom::AP4_MoovAtom(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4MoovAtom.cpp:79:5 #47 0x57997d in AP4_MoovAtom::Create(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4MoovAtom.h:56:20 #48 0x575f96 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4AtomFactory.cpp:379:20 #49 0x573d68 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4AtomFactory.cpp:233:14 #50 0x572e9e in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, AP4_Atom*&) /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4AtomFactory.cpp:153:12 #51 0x4f908c in AP4_File::ParseStream(AP4_ByteStream&, AP4_AtomFactory&, bool) /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4File.cpp:104:12 #52 0x4f978d in AP4_File::AP4_File(AP4_ByteStream&, bool) /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4File.cpp:78:5 #53 0x4edbdc in main /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Apps/Mp42Aac/Mp42Aac.cpp:250:22 #54 0x7f1b61a4e82f in __libc_start_main /build/glibc-LK5gWL/glibc-2.23/csu/../csu/libc-start.c:291 #55 0x419218 in _start (/home/cszx/zhanggen/overflow/Bento4-1.6.0-637/build-orig-asan/mp42aac+0x419218) 0x60600000ef94 is located 0 bytes to the right of 52-byte region [0x60600000ef60,0x60600000ef94) allocated by thread T0 here: #0 0x4eaa90 in operator new[](unsigned long) (/home/cszx/zhanggen/overflow/Bento4-1.6.0-637/build-orig-asan/mp42aac+0x4eaa90) #1 0x4f7587 in AP4_DataBuffer::AP4_DataBuffer(unsigned int) /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4DataBuffer.cpp:55:16 #2 0x57eccd in AP4_AvccAtom::Create(unsigned int, AP4_ByteStream&) /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4AvccAtom.cpp:69:20 #3 0x576afc in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4AtomFactory.cpp:499:20 #4 0x573d68 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4AtomFactory.cpp:233:14 #5 0x5ac5a3 in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4ContainerAtom.cpp:194:12 #6 0x51c2bd in AP4_SampleEntry::Read(AP4_ByteStream&, AP4_AtomFactory&) /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4SampleEntry.cpp:115:9 #7 0x521459 in AP4_VisualSampleEntry::AP4_VisualSampleEntry(unsigned int, unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4SampleEntry.cpp:742:5 #8 0x52305d in AP4_AvcSampleEntry::AP4_AvcSampleEntry(unsigned int, unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4SampleEntry.cpp:994:5 #9 0x574d99 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4AtomFactory.cpp:318:24 #10 0x573d68 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4AtomFactory.cpp:233:14 #11 0x52939c in AP4_StsdAtom::AP4_StsdAtom(unsigned int, unsigned char, unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4StsdAtom.cpp:101:13 #12 0x52891e in AP4_StsdAtom::Create(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4StsdAtom.cpp:57:16 #13 0x5765c9 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4AtomFactory.cpp:444:20 #14 0x573d68 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4AtomFactory.cpp:233:14 #15 0x5ac5a3 in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4ContainerAtom.cpp:194:12 #16 0x5ac31a in AP4_ContainerAtom::AP4_ContainerAtom(unsigned int, unsigned long long, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4ContainerAtom.cpp:139:5 #17 0x5abc43 in AP4_ContainerAtom::Create(unsigned int, unsigned long long, bool, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4ContainerAtom.cpp:88:20 #18 0x5785e3 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4AtomFactory.cpp:796:20 #19 0x573d68 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4AtomFactory.cpp:233:14 #20 0x5bf57f in AP4_DrefAtom::AP4_DrefAtom(unsigned int, unsigned char, unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4DrefAtom.cpp:84:16 #21 0x5bef6e in AP4_DrefAtom::Create(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4DrefAtom.cpp:50:16 #22 0x577222 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4AtomFactory.cpp:560:20 #23 0x573d68 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4AtomFactory.cpp:233:14 #24 0x5ac5a3 in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4ContainerAtom.cpp:194:12 #25 0x5ac31a in AP4_ContainerAtom::AP4_ContainerAtom(unsigned int, unsigned long long, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4ContainerAtom.cpp:139:5 #26 0x5abc43 in AP4_ContainerAtom::Create(unsigned int, unsigned long long, bool, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4ContainerAtom.cpp:88:20 #27 0x5785e3 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4AtomFactory.cpp:796:20 #28 0x573d68 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4AtomFactory.cpp:233:14 #29 0x5ac5a3 in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4ContainerAtom.cpp:194:12 SUMMARY: AddressSanitizer: heap-buffer-overflow /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4AvccAtom.cpp:165:31 in AP4_AvccAtom::AP4_AvccAtom(unsigned int, unsigned char const*) Shadow bytes around the buggy address: 0x0c0c7fff9da0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c0c7fff9db0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c0c7fff9dc0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c0c7fff9dd0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c0c7fff9de0: 00 00 00 00 00 00 04 fa fa fa fa fa 00 00 00 00 =>0x0c0c7fff9df0: 00 00[04]fa fa fa fa fa 00 00 00 00 00 00 00 fa 0x0c0c7fff9e00: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c0c7fff9e10: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c0c7fff9e20: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c0c7fff9e30: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c0c7fff9e40: 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 Left alloca redzone: ca Right alloca redzone: cb ==32574==ABORTING ``` # Input [input](https://github.com/zhanggenex/poc/blob/master/bento4/mp42aac/2/id:000003%2Csig:06%2Csrc:000749%2Cop:flip1%2Cpos:972)
heap-buffer-overflow Bento4-1.6.0-637/Source/C++/Core/Ap4AvccAtom.cpp:165:31 in AP4_AvccAtom::AP4_AvccAtom(unsigned int, unsigned char const*)
https://api.github.com/repos/axiomatic-systems/Bento4/issues/535/comments
0
2020-07-14T12:23:50Z
2020-07-14T12:23:50Z
https://github.com/axiomatic-systems/Bento4/issues/535
656,571,786
535
[ "axiomatic-systems", "Bento4" ]
# Summary heap-buffer-overflow Bento4-1.6.0-637/Source/C++/Core/Ap4HvccAtom.cpp:282:24 in AP4_HvccAtom::AP4_HvccAtom(unsigned int, unsigned char const*) # Version Bento4-1.6.0-637 # How to build ```shell cmake -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_INSTALL_PREFIX=`pwd`/mybin -DCMAKE_C_FLAGS="-g -O0 -fsanitize=address" -DCMAKE_CXX_FLAGS="-g -O0 -fsanitize=address" ../ ``` # Commandline ```shell mp42aac @@ a.aac ``` # ASAN report ```txt ================================================================= ==9947==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x60300000ef36 at pc 0x0000005d0fac bp 0x7ffdd5010f00 sp 0x7ffdd5010ef8 READ of size 1 at 0x60300000ef36 thread T0 #0 0x5d0fab in AP4_HvccAtom::AP4_HvccAtom(unsigned int, unsigned char const*) /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4HvccAtom.cpp:282:24 #1 0x5cba32 in AP4_HvccAtom::Create(unsigned int, AP4_ByteStream&) /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4HvccAtom.cpp:90:16 #2 0x576b75 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4AtomFactory.cpp:504:20 #3 0x573d68 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4AtomFactory.cpp:233:14 #4 0x572e9e in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, AP4_Atom*&) /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4AtomFactory.cpp:153:12 #5 0x4f908c in AP4_File::ParseStream(AP4_ByteStream&, AP4_AtomFactory&, bool) /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4File.cpp:104:12 #6 0x4f978d in AP4_File::AP4_File(AP4_ByteStream&, bool) /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4File.cpp:78:5 #7 0x4edbdc in main /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Apps/Mp42Aac/Mp42Aac.cpp:250:22 #8 0x7f39dce1582f in __libc_start_main /build/glibc-LK5gWL/glibc-2.23/csu/../csu/libc-start.c:291 #9 0x419218 in _start (/home/cszx/zhanggen/overflow/Bento4-1.6.0-637/build-orig-asan/mp42aac+0x419218) 0x60300000ef36 is located 0 bytes to the right of 22-byte region [0x60300000ef20,0x60300000ef36) allocated by thread T0 here: #0 0x4eaa90 in operator new[](unsigned long) (/home/cszx/zhanggen/overflow/Bento4-1.6.0-637/build-orig-asan/mp42aac+0x4eaa90) #1 0x4f7587 in AP4_DataBuffer::AP4_DataBuffer(unsigned int) /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4DataBuffer.cpp:55:16 #2 0x5cb96b in AP4_HvccAtom::Create(unsigned int, AP4_ByteStream&) /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4HvccAtom.cpp:86:20 #3 0x576b75 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4AtomFactory.cpp:504:20 #4 0x573d68 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4AtomFactory.cpp:233:14 #5 0x572e9e in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, AP4_Atom*&) /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4AtomFactory.cpp:153:12 #6 0x4f908c in AP4_File::ParseStream(AP4_ByteStream&, AP4_AtomFactory&, bool) /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4File.cpp:104:12 #7 0x4f978d in AP4_File::AP4_File(AP4_ByteStream&, bool) /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4File.cpp:78:5 #8 0x4edbdc in main /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Apps/Mp42Aac/Mp42Aac.cpp:250:22 #9 0x7f39dce1582f in __libc_start_main /build/glibc-LK5gWL/glibc-2.23/csu/../csu/libc-start.c:291 SUMMARY: AddressSanitizer: heap-buffer-overflow /home/cszx/zhanggen/overflow/Bento4-1.6.0-637/Source/C++/Core/Ap4HvccAtom.cpp:282:24 in AP4_HvccAtom::AP4_HvccAtom(unsigned int, unsigned char const*) Shadow bytes around the buggy address: 0x0c067fff9d90: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c067fff9da0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c067fff9db0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c067fff9dc0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c067fff9dd0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa 00 00 =>0x0c067fff9de0: 06 fa fa fa 00 00[06]fa fa fa 00 00 00 fa fa fa 0x0c067fff9df0: 00 00 00 fa fa fa 00 00 00 fa fa fa 00 00 00 fa 0x0c067fff9e00: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c067fff9e10: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c067fff9e20: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c067fff9e30: 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 Left alloca redzone: ca Right alloca redzone: cb ==9947==ABORTING ``` # Input [input](https://github.com/zhanggenex/poc/blob/master/bento4/mp42aac/1/id:000000%2Csig:06%2Csrc:000681%2Cop:havoc%2Crep:2)
heap-buffer-overflow Bento4-1.6.0-637/Source/C++/Core/Ap4HvccAtom.cpp:282:24 in AP4_HvccAtom::AP4_HvccAtom(unsigned int, unsigned char const*)
https://api.github.com/repos/axiomatic-systems/Bento4/issues/534/comments
0
2020-07-14T12:22:51Z
2020-07-14T12:22:51Z
https://github.com/axiomatic-systems/Bento4/issues/534
656,571,216
534
[ "axiomatic-systems", "Bento4" ]
Hello, i was trying to read https://www.bento4.com/developers/hls/ but i couldn't understand how i can convert multiple videos to a single master.m3u8 playlist, So currently i have (same video only quality changes as file name says) ``` root@ffmpeg:/store# ls 1 240p.mp4 360p.mp4 480p.mp4 720p.mp4 ``` How would you suggest me to convert these on hls and have only a single master.m3u8 ? i was thinking to convert them one by one and then manually merge playlist .m3u8 files to a single master.m3u8 file but i was thinking maybe there's some different easier method ? Thank you.
convert multi bitrate on a single master.m3u8
https://api.github.com/repos/axiomatic-systems/Bento4/issues/533/comments
0
2020-07-14T11:27:15Z
2022-04-25T12:18:01Z
https://github.com/axiomatic-systems/Bento4/issues/533
656,539,819
533
[ "axiomatic-systems", "Bento4" ]
Hi, I am looking for a solution for AES-128 support for HLS with Fairplay but still no luck. I have tried with the following methods: > /var/www/html/bento4/bin/mp4hls --verbose --encryption-mode=AES-128 --encryption-key=01fd4a2885bfff4213b3c23c511764ccdcc662932883a33905aa2d01f260291c --encryption-iv-mode=fps --encryption-key-format=com.apple.streamingkeydelivery --encryption-key-uri=skd://expressplay_token /var/www/html/encoding-test/39774/sample.mf4 > /var/www/html/bento4/bin/mp4dash --encryption-key=30537460994376649869149380419693:58043169292813174717439662781721 --use-segment-list --marlin --hls --encryption-cenc-scheme=cbcs --widevine --widevine-header=provider:intertrust#content_id:2a --playready --playready-version=4.3 --playready-header=https://expressplay-licensing.axprod.net/LicensingService.ashx --fairplay-key-uri=skd://expressplay_token sample.mf4 > /var/www/html/bento4/bin/mp4hls --encryption-key=01fd4a2885bfff4213b3c23c511764ccdcc662932883a33905aa2d01f260291c --encryption-iv-mode=fps --encryption-key-format=com.apple.streamingkeydelivery --encryption-key-uri=skd://expressplay_token /var/www/html/encoding-test/39774/sample_360.mf4 I have encoded with ffmpeg and fragmented with mp4fragment tool with 4000 fragment duration. Could any one suggest me the correct way to do this. Additional notes: - In Roku device Sample-AES is not supported so want to use AES-128 - I am using expressplay DRM - I am not sure if I am correctly packing this or not. - Tried all the 3 commands separately and then generated decryption key from expressplay for the mentioned encryption key and content key. But no luck.
AES-128 HLS not playing with Fairplay
https://api.github.com/repos/axiomatic-systems/Bento4/issues/532/comments
1
2020-07-13T09:52:50Z
2021-07-02T07:16:23Z
https://github.com/axiomatic-systems/Bento4/issues/532
655,714,859
532
[ "axiomatic-systems", "Bento4" ]
I get some cases like this: #EXTM3U #EXT-X-VERSION:3 #EXT-X-STREAM-INF:PROGRAM-ID=0,BANDWIDTH=**2414679**,AVERAGE-BANDWIDTH=286714,CODECS="avc1.640015,mp4a.40.2",RESOLUTION=426x240 video_12_0.m3u8 #EXT-X-STREAM-INF:PROGRAM-ID=0,BANDWIDTH=**1287313**,AVERAGE-BANDWIDTH=428162,CODECS="avc1.64001E,mp4a.40.2",RESOLUTION=852x480 video_12_1.m3u8 #EXT-X-STREAM-INF:PROGRAM-ID=0,BANDWIDTH=1593286,AVERAGE-BANDWIDTH=672588,CODECS="avc1.64001F,mp4a.40.2",RESOLUTION=1280x720 video_12_2.m3u8 As it shows, the BANDWIDTH in lower resolution stream is much bigger than that in higher resolution stream. While the "AVERAGE-BANDWIDTH" is correct in every stream. Is it related to the input media sources? The consequence is that the player will not select the correct stream to play (most players is based on BANDWIDTH property).
Wrong BANDWIDTH in master playlist
https://api.github.com/repos/axiomatic-systems/Bento4/issues/531/comments
0
2020-07-07T12:15:24Z
2020-07-14T04:09:07Z
https://github.com/axiomatic-systems/Bento4/issues/531
652,273,778
531
[ "axiomatic-systems", "Bento4" ]
I can't find guides or anything. Just binaries for a lot of Targets. The one which seems to be the correct for my Raspberry Pi 3B + is arm-android-linux but still cant install it, neither call the binary files. Could you give me some clues? Is possible? Thank you in advance!
Can I run Bento4 on my Raspberry Pi?
https://api.github.com/repos/axiomatic-systems/Bento4/issues/530/comments
2
2020-06-29T19:05:34Z
2022-07-31T12:32:54Z
https://github.com/axiomatic-systems/Bento4/issues/530
647,598,576
530
[ "axiomatic-systems", "Bento4" ]
Hello, I am opening an AP4_FileByteStream from a *.m4a file, which contains chapter markers. I then open a AP4_File using the above stream. I then save the size of the moov atom *(GetMovie() -> GetMoovAtom() -> GetSize()) All is good, no problem here. I then proceed to save the opened stream to a new file with AP4_FileCopier::Write This is the method to save to the new file ``` bool MP4FileWrapper::saveTo(const char* szOutputFileName) { bool success = false; assert(this->isOpen() && szOutputFileName); if (this->isOpen() && szOutputFileName) { // create the output stream AP4_ByteStream* pOutputStream = NULL; AP4_Result result = AP4_FileByteStream::Create(szOutputFileName, AP4_FileByteStream::STREAM_MODE_WRITE, pOutputStream); assert(AP4_SUCCEEDED(result)); success = AP4_SUCCEEDED(result); if (success && pOutputStream) { // adjust the chunk offsets if the moov is before the mdat if (this->m_moov && this->m_pAP4_File->IsMoovBeforeMdat()) { AP4_LargeSize new_moov_size = this->m_moov->GetSize(); AP4_SI64 size_diff = new_moov_size - this->m_moov_size; if (size_diff) { this->m_moov->AdjustChunkOffsets(size_diff); } } AP4_Result result = AP4_FileCopier::Write(*this->m_pAP4_File, *pOutputStream); success = AP4_SUCCEEDED(result); assert(AP4_SUCCEEDED(result)); delete pOutputStream; } } return success; } ``` After this the new m4a file does not show chapter markers anymore. I'm attaching the before (with-chapters.m4a) and after (no-chapters.m4a) files here. Thanks for your help! [m4a-chapters.zip](https://github.com/axiomatic-systems/Bento4/files/4834144/m4a-chapters.zip)
Saving new stream of MP4 audio file loses the existing chapter markers information.
https://api.github.com/repos/axiomatic-systems/Bento4/issues/529/comments
3
2020-06-25T22:41:28Z
2020-06-26T12:32:28Z
https://github.com/axiomatic-systems/Bento4/issues/529
645,893,007
529
[ "axiomatic-systems", "Bento4" ]
Hi Giles, Missing a tag for r637 on the source which has quite an important fix for the sample count not being calculated correctly. We had mistakenly been using r636 as the latest available tag but were striking the sample count issue - interestingly not for encrypted files. Issue was fixed in r637 Thanks, James
Tag r637
https://api.github.com/repos/axiomatic-systems/Bento4/issues/528/comments
2
2020-06-24T01:29:14Z
2020-06-24T04:34:18Z
https://github.com/axiomatic-systems/Bento4/issues/528
644,250,694
528
[ "axiomatic-systems", "Bento4" ]
I'd like to be able to analyze the fields of `trun` box entries by using Bento4, and I'd hoped that they would be exposed to the `AP4_AtomInspector` visitor classes, but they are currently only exposed via strings when run with a verbose flag. I need to process this data programmatically, so I don't want to rely on parsing the verbose output. I've implemented a change that adds the visit methods I need to the AtomInspector (and related) classes, and make use of them in `Ap4TrunAtom.cpp`; I can prepare a PR with those changes if it would be of interest to you folks. Essentially, I just added these methods to the visitor: ``` /// Start a TRUN sample entry. virtual void StartSampleEntry(unsigned int uEntry, AP4_UI32 sample_duration, AP4_UI32 sample_size, AP4_UI32 sample_flags, AP4_UI32 sample_composition_time_offset) {} virtual void EndSampleEntry() {} ```
Expose sample duration (and other entity fields) in the visitor
https://api.github.com/repos/axiomatic-systems/Bento4/issues/527/comments
2
2020-06-23T22:06:34Z
2020-06-24T18:53:12Z
https://github.com/axiomatic-systems/Bento4/issues/527
644,177,439
527
[ "axiomatic-systems", "Bento4" ]
Hi, Is it possible to do packaging of mp3 encoded files using Bento4.
Packaging of mp3 encoded files using Bento4
https://api.github.com/repos/axiomatic-systems/Bento4/issues/526/comments
3
2020-06-22T09:36:48Z
2022-10-04T03:01:13Z
https://github.com/axiomatic-systems/Bento4/issues/526
642,914,596
526
[ "axiomatic-systems", "Bento4" ]
Hi Team, I want to create a encrypted mp4dash using different audio and video. Currently i have merged audio and video using ffmpeg and video seems to proper but when I am encrypt it using bento4 and create mp4dash it defualt picking video duration(which is lower) and video seems to be half. Can anyone here help me, how I can achieve it. Let me know if I can share my sample audio and video and finally generated dash video. Thanks in Advance.
How we can create mp4dash video with encryption with different audio and video length
https://api.github.com/repos/axiomatic-systems/Bento4/issues/525/comments
2
2020-06-15T14:16:05Z
2020-06-16T05:07:44Z
https://github.com/axiomatic-systems/Bento4/issues/525
638,890,011
525
[ "axiomatic-systems", "Bento4" ]
We have recently upgraded from an older version of Bento4 and are having trouble with the mp4-dash.py command when using the --no-media option. 1) if the directories do not already exist for the output manifests then it fails to run. 2) if you are trying to generate HLS manifests then the --no-media option no longer works - it throws a Divide by Zero error. The same command will work if you do not include the --no-media option Example command: ` python3 /usr/local/bento4/utils/mp4-dash.py --debug --verbose --profiles live --no-media --encryption-key 20CB603EB1004631995F10632886436E:E1D1720390175EC741C4ED64CEC4B91B:5406893dbf67e0e42ff42c21e1f72ad5 --encryption-cenc-scheme=cbcs --hls --hls-master-playlist-name 2514352DA3173658674E78FEFF499004_fmp4.m3u8 --fairplay-key-uri skd://randomkeyserver.com/FairPlay/?KID=20cb603e-b100-4631-995f-10632886436e --force --use-segment-timeline -o fairplay 2514352DA3173658674E78FEFF499004_1080p-clean.mp4-fragmented.mp4 2514352DA3173658674E78FEFF499004_720p-clean.mp4-fragmented.mp4 2514352DA3173658674E78FEFF499004_480p-clean.mp4-fragmented.mp4` Traceback (most recent call last): File "/usr/local/bento4/utils/mp4-dash.py", line 2142, in <module> main() File "/usr/local/bento4/utils/mp4-dash.py", line 2124, in main OutputHls(options, set_attributes, audio_sets, video_sets, subtitles_sets, subtitles_files) File "/usr/local/bento4/utils/mp4-dash.py", line 940, in OutputHls iframe_average_segment_bitrate,iframe_max_bitrate = OutputHlsIframeIndex(options, video_track, all_audio_tracks + all_video_tracks, media_subdir, iframes_playlist_name, media_file_name) File "/usr/local/bento4/utils/mp4-dash.py", line 817, in OutputHlsIframeIndex iframe_average_segment_bitrate = 8.0*(iframe_total_segment_size/iframe_total_segment_duration) ZeroDivisionError: division by zero
Issue with mp4-dash.py --no-media is failing when generating HLS
https://api.github.com/repos/axiomatic-systems/Bento4/issues/524/comments
3
2020-06-12T08:13:23Z
2020-06-17T06:58:52Z
https://github.com/axiomatic-systems/Bento4/issues/524
637,572,222
524
[ "axiomatic-systems", "Bento4" ]
I am currently trying to decrypt an only video file using mp4decrypt. I already have the decryption key but when I decrypt the file the result says its a corrupted file when I try to play it on VLC. I ran mp4info to check file before and after decryption and here is the results. Before decryption ``` root@me:/home/myvideo# /home/Bento4/cmakebuild/./mp4info output.mp4 File: major brand: dash minor version: 0 compatible brand: iso2 compatible brand: dash fast start: yes Movie: duration: -1161359157 ms time scale: 10000000 fragments: yes Found 1 Tracks Track 1: flags: 7 ENABLED IN-MOVIE IN-PREVIEW id: 1 type: Video duration: -1161359157 ms language: und media: sample count: 0 timescale: 10000000 duration: -1 (media timescale units) duration: -1161359157 (ms) bitrate (computed): 273.581 Kbps sample count with fragments: 180 duration with fragments: 60000000 duration with fragments: 6000 (ms) display width: 398.000000 display height: 224.000000 Sample Description 0 [ENCRYPTED] Coding: encv Scheme Type: cenc Scheme Version: 65536 Scheme URI: Coding: avc3 (H.264) Width: 398 Height: 224 Depth: 24 AVC Profile: 100 (High) AVC Profile Compat: 0 AVC Level: 13 AVC NALU Length Size: 4 AVC SPS: [6764000dac3ca506477afff070006ff420202028000003000800000301e700000afc80015f91f89f05] AVC PPS: [68ef7525] Codecs String: avc3.64000D ``` After decryption ``` root@me:/home/myvideo# /home/Bento4/cmakebuild/./mp4info decrypted.mp4 File: major brand: dash minor version: 0 compatible brand: iso2 compatible brand: dash fast start: yes Movie: duration: -1161359157 ms time scale: 10000000 fragments: yes Found 1 Tracks Track 1: flags: 7 ENABLED IN-MOVIE IN-PREVIEW id: 1 type: Video duration: -1161359157 ms language: und media: sample count: 0 timescale: 10000000 duration: -1 (media timescale units) duration: -1161359157 (ms) bitrate (computed): 273.581 Kbps sample count with fragments: 180 duration with fragments: 60000000 duration with fragments: 6000 (ms) display width: 398.000000 display height: 224.000000 Sample Description 0 Coding: avc3 (H.264) Width: 398 Height: 224 Depth: 24 AVC Profile: 100 (High) AVC Profile Compat: 0 AVC Level: 13 AVC NALU Length Size: 4 AVC SPS: [6764000dac3ca506477afff070006ff420202028000003000800000301e700000afc80015f91f89f05] AVC PPS: [68ef7525] Codecs String: avc3.64000D ``` My output.mp4 is generated using cat. `cat init.mp4 segment1.mp4 > output.mp4` to decrypt this file I use `mp4decrypt —key mykey output.mp4 decrypted.mp4` What am I possibly doing wrong? My bento4 tools files are up to date, downloaded them 3 days ago from this same repo. Thanks in advance.
Issue when decrypting content
https://api.github.com/repos/axiomatic-systems/Bento4/issues/523/comments
11
2020-06-11T23:16:24Z
2020-06-28T01:05:14Z
https://github.com/axiomatic-systems/Bento4/issues/523
637,376,229
523
[ "axiomatic-systems", "Bento4" ]
I am trying to decrypt an mp4 file. When using mp4decrypt i get pixel/frame errors but it seems mp4box decrypts the file correctly. **xml for decrypting with mp4box:** ``` <?xml version="1.0" encoding="UTF-8" ?> <GPACDRM type="cbcs"> <CrypTrack trackID="1" IsEncrypted="1" IV_size="16" first_IV="0x0eae03b3c9c43e0f29c81da04d619e85" saiSavedBox="senc"> <key KID="0x00000000000000000000000000000000" value="0x4541b680b07db1fd3f8256a141aa100b"/> </CrypTrack> </GPACDRM> ``` **Here is the test file:** https://www.file-upload.net/download-14136548/encrypted.mp4.html
mp4 decrypt error
https://api.github.com/repos/axiomatic-systems/Bento4/issues/522/comments
6
2020-06-11T17:53:39Z
2020-06-13T18:27:00Z
https://github.com/axiomatic-systems/Bento4/issues/522
637,214,985
522
[ "axiomatic-systems", "Bento4" ]
I came across ASAN stack (which unfortunately I cannot share) which was a heap-buffer-overflow at the memcpy of `AP4_CencCbcSubSampleEncrypter::EncryptSampleData` current L686 of https://github.com/axiomatic-systems/Bento4/blob/master/Source/C%2B%2B/Core/Ap4CommonEncryption.cpp. The root cause seems to be that the subsample map (by AP4_CencCbcsSubSampleMapper) is not created properly. My suspicion is that we are extracting the slice header but failing to verify that the total size is less than the buffer.
AP4_CencCbcsSubSampleMapper can potentially generate invalid sub sample map
https://api.github.com/repos/axiomatic-systems/Bento4/issues/521/comments
0
2020-06-11T04:47:24Z
2020-06-16T05:18:19Z
https://github.com/axiomatic-systems/Bento4/issues/521
636,713,354
521
[ "axiomatic-systems", "Bento4" ]
According to an issue in Shaka Player ( https://github.com/google/shaka-player/issues/1813 ), this error occurs when 16-byte IV is used. I use this command to encrypt the file: ``` var start = new ProcessStartInfo( @"mp4encrypt.exe", "--method MPEG-CENC " + $"--property 1:KID:{keyId} " + $"--key 1:{keyValue}:random " + $"--key 2:{keyValue}:random " + $"--pssh \"{systemId}:{psshFile}\" \"{inputFile}\" \"{outFile}\"") ``` According to the documentation, `MPEG-CENC` expects 8-byte IV, so I expect it generates an 8-byte one as well. For testing, I supplied an explicitly generated IV, the result is the same. The result is that the file can be played back on my machine, but fails on another machine with error 8004B8D2. The playback is performed by a UWP app. Have you seen this before? Is there something the other machine is missing in terms of installation? Or is it because I have the development environment, which the other machine does not?
Error 8004B8D2 when playing back a CENC-encrypted file
https://api.github.com/repos/axiomatic-systems/Bento4/issues/520/comments
6
2020-06-02T17:17:11Z
2020-06-10T08:01:02Z
https://github.com/axiomatic-systems/Bento4/issues/520
629,373,596
520
[ "axiomatic-systems", "Bento4" ]
Is audio grouping for video feature implemented? If yes, give an example please, I can not find (or understand) from the documentation. I am looking for command, that allows grouping of DASH/HLS audio for different quality videos. EXAMPLE HLS #EXT-X-MEDIA:TYPE=AUDIO,URI="audio/en_high/en_high.m3u8",GROUP-ID="surround",LANGUAGE="en",NAME="English",AUTOSELECT=YES,CHANNELS="6" #EXT-X-MEDIA:TYPE=AUDIO,URI="audio/ru_high/ru_high.m3u8",GROUP-ID="surround",LANGUAGE="ru",NAME="Русский",DEFAULT=YES,AUTOSELECT=YES,CHANNELS="6" #EXT-X-MEDIA:TYPE=AUDIO,URI="audio/en_low/en_low.m3u8",GROUP-ID="stereo",LANGUAGE="en",NAME="English",AUTOSELECT=YES,CHANNELS="2" #EXT-X-MEDIA:TYPE=AUDIO,URI="audio/ru_low/ru_low.m3u8",GROUP-ID="stereo",LANGUAGE="ru",NAME="Русский",DEFAULT=YES,AUTOSELECT=YES,CHANNELS="2" #EXT-X-STREAM-INF:BANDWIDTH=3514211,AVERAGE-BANDWIDTH=1930570,CODECS="avc1.640020,mp4a.40.2",RESOLUTION=1280x536,FRAME-RATE=23.976,AUDIO="surround",SUBTITLES="subs" video/hd/hd.m3u8 #EXT-X-STREAM-INF:BANDWIDTH=1883250,AVERAGE-BANDWIDTH=954387,CODECS="avc1.64001e,mp4a.40.2",RESOLUTION=721x302,FRAME-RATE=23.976,AUDIO="stereo",SUBTITLES="subs" video/sd/sd.m3u8
HLS audio group for different quality videos (e.g. stereo for low quality video, surround for high quality video)
https://api.github.com/repos/axiomatic-systems/Bento4/issues/519/comments
2
2020-05-29T15:00:25Z
2020-06-16T20:46:37Z
https://github.com/axiomatic-systems/Bento4/issues/519
627,333,501
519
[ "axiomatic-systems", "Bento4" ]
I have this requirement where the PTS has to start at 4958860037 for the transport stream, but the -pcr-offset option for the MP42TS command seem to be taking maximum offset of 4294970895. If not with -pcr-offset, is there any way with which I can have PTS starting at 4958860037 ?
MP42TS : PTS start time
https://api.github.com/repos/axiomatic-systems/Bento4/issues/518/comments
0
2020-05-29T05:53:12Z
2020-05-29T06:28:31Z
https://github.com/axiomatic-systems/Bento4/issues/518
627,017,372
518
[ "axiomatic-systems", "Bento4" ]
I use mp4dash to encrypt my MP4 Dolby Vision video with Playready. The video cannot play because the payload data at the "mdat" box is bad. The first 4 bytes of the payload data is supposed to be the size of the payload. Currently the size number is too big so the data got rejected. When I use mp4dash with MP4 video without Dolby Vision and encrypt with Playready, video can play fine. The data at the box "mdat" is good, the first 4 bytes of the data has the correct size. So I have to conclude that may be mp4dash does not work correctly with Dolby Vision + Playready.
Bento4 mp4dash to encrypt Dolby Vision MP4 video with Playready does not play
https://api.github.com/repos/axiomatic-systems/Bento4/issues/517/comments
19
2020-05-27T21:25:55Z
2020-07-03T18:56:52Z
https://github.com/axiomatic-systems/Bento4/issues/517
626,042,700
517
[ "axiomatic-systems", "Bento4" ]
Hi Bento4 support, During our unit testing with our 1.5.1-628 fork, I may have found a memleak when an atom is not of type MOOF. So I added a line to delete this atom, after being written to output (AP4_Processor::ProcessFragments line 151). I observed that this fix does not appear in official github sources, so I wonder if it is the good way to solve this memleak. It is greatly possible that I had not correctly understood how to use this code, so I by advance apology for my lack of knowledge with this library. Best regards, Alex.
Potential Memleak in AP4Processor ?
https://api.github.com/repos/axiomatic-systems/Bento4/issues/516/comments
0
2020-05-27T13:49:42Z
2020-05-27T13:49:42Z
https://github.com/axiomatic-systems/Bento4/issues/516
625,713,553
516
[ "axiomatic-systems", "Bento4" ]
Bonjour! Do you know if it's covered by the HLS spec and Bento?
Does Bento have a way to add DRM (AES-128) on Subtitles/Closed Captioning?
https://api.github.com/repos/axiomatic-systems/Bento4/issues/515/comments
6
2020-05-23T11:33:34Z
2020-09-25T16:41:21Z
https://github.com/axiomatic-systems/Bento4/issues/515
623,640,218
515
[ "axiomatic-systems", "Bento4" ]
I have doubt in bento4's memory recycling. See the graph of machine: ![image](https://user-images.githubusercontent.com/17777977/82627363-d8e31700-9c1c-11ea-9098-6cc84581ec54.png) The machine's memory became full since 14:30, and it lasted a few hours. As I know, several tasks with big source files were executed. And I check the code here, it seems the tasks are processed in sequence. https://github.com/axiomatic-systems/Bento4/blob/86f86fb268a4fb9a46d1970931586ef92785e180/Source/Python/utils/mp4-hls.py#L259 Relative code: ```python for media_source in mp4_sources: ... # process the source out_dir = path.join(options.output_dir, media_info['dir']) MakeNewDir(out_dir) ProcessSource(options, media_info, out_dir) ... main_media.append(media_info) ``` So , when is the memory recycled?(Not quite familiar with python)
Big files results in OOM
https://api.github.com/repos/axiomatic-systems/Bento4/issues/513/comments
2
2020-05-22T03:18:08Z
2020-07-01T08:01:22Z
https://github.com/axiomatic-systems/Bento4/issues/513
622,920,500
513
[ "axiomatic-systems", "Bento4" ]
I build mp4dump myself from master branch code. The relative issue is [issue 505](https://github.com/axiomatic-systems/Bento4/issues/505). It seems that this fix introduces a new bug here. As far as I know, the old version mpd4dump works. user data in mp4: ``` 113136 { 113137 "name":".nam", 113138 "header_size":8, 113139 "size":49, 113140 "children":[ 113141 { 113142 "name":"data", 113143 "header_size":8, 113144 "size":41, 113145 "type":1, 113146 "lang":0, 113147 "value":"EV\u00 5\u00 D\u00 5\u00 5\u00 1\u00 F3.9.7\u00 8\u00 D\u00 F\u00 4\u00 B\u00 6\u00 5\u00 D\u00 5\u00 5\u00 8\u00 6" 113148 }] 113149 }, ``` cmd: ``` /usr/local/services/bento4-1.0/bin/mp4hls --hls-version=3 --audio-format=ts --master-playlist-name=adp.10.m3u8 --media-playlist-name=media.m3u8 f0.mp4 f1.mp4 f2.mp4 -o output -d ``` traceback: ``` Traceback (most recent call last): File "/usr/local/services/bento4-1.0/bin/../utils/mp4-hls.py", line 657, in <module> main() File "/usr/local/services/bento4-1.0/bin/../utils/mp4-hls.py", line 647, in main OutputHls(options, media_sources) File "/usr/local/services/bento4-1.0/bin/../utils/mp4-hls.py", line 254, in OutputHls AnalyzeSources(options, media_sources) File "/usr/local/services/bento4-1.0/bin/../utils/mp4-hls.py", line 102, in AnalyzeSources mp4_file = Mp4File(Options, media_source) File "/usr/local/services/bento4-1.0/utils/mp4utils.py", line 520, in __init__ self.tree = json.loads(json_dump, strict=False, object_pairs_hook=collections.OrderedDict) File "/usr/local/services/python/lib/python2.7/json/__init__.py", line 352, in loads return cls(encoding=encoding, **kw).decode(s) File "/usr/local/services/python/lib/python2.7/json/decoder.py", line 364, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/local/services/python/lib/python2.7/json/decoder.py", line 380, in raw_decode obj, end = self.scan_once(s, idx) ValueError: Invalid \uXXXX escape: line 113147 column 25 (char 6051478) ```
mp4dump doesn't support unicode
https://api.github.com/repos/axiomatic-systems/Bento4/issues/512/comments
7
2020-05-21T09:26:42Z
2020-06-28T02:31:39Z
https://github.com/axiomatic-systems/Bento4/issues/512
622,372,230
512
[ "axiomatic-systems", "Bento4" ]
# Command: ./mp42aac @@ /tmp/out.aac # Information provided by address sanitizer AddressSanitizer:DEADLYSIGNAL ================================================================= ==22974==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x00000068223f bp 0x7ffedd403b10 sp 0x7ffedd403970 T0) ==22974==The signal is caused by a READ memory access. ==22974==Hint: address points to the zero page. #0 0x68223e in AP4_Stz2Atom::GetSampleSize(unsigned int, unsigned int&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4Stz2Atom.cpp:197:23 #1 0x5d8790 in AP4_AtomSampleTable::GetSample(unsigned int, AP4_Sample&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4AtomSampleTable.cpp #2 0x5a32ce in AP4_Track::GetSample(unsigned int, AP4_Sample&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4Track.cpp:435:43 #3 0x5a32ce in AP4_Track::ReadSample(unsigned int, AP4_Sample&, AP4_DataBuffer&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4Track.cpp:469 #4 0x571a80 in WriteSamples(AP4_Track*, AP4_SampleDescription*, AP4_ByteStream*) /home/natalie/Downloads/Bento4-master/Source/C++/Apps/Mp42Aac/Mp42Aac.cpp:192:12 #5 0x571a80 in main /home/natalie/Downloads/Bento4-master/Source/C++/Apps/Mp42Aac/Mp42Aac.cpp:281 #6 0x7f865b36f1e2 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x271e2) #7 0x45c96d in _start (/home/natalie/Desktop/research/Bug/bento4-06c39d9/mp42aac-asan+0x45c96d) AddressSanitizer can not provide additional info. SUMMARY: AddressSanitizer: SEGV /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4Stz2Atom.cpp:197:23 in AP4_Stz2Atom::GetSampleSize(unsigned int, unsigned int&) ==22974==ABORTING # Information provided by crashwalk: ---CRASH SUMMARY--- Filename: id:000397,sig:11,src:005796+004474,op:splice,rep:4 SHA1: 3765c3464711c3352df8daac331db1a61870e86a Classification: PROBABLY_NOT_EXPLOITABLE Hash: 07d82808978ec56bef294c76fd303f3b.07d82808978ec56bef294c76fd303f3b Command: ./mp42aac psym-crashes/id:000397,sig:11,src:005796+004474,op:splice,rep:4 /tmp/out.aac Faulting Frame: AP4_Stz2Atom::GetSampleSize(unsigned int, unsigned int&) @ 0x00005555555f9b74: in /home/natalie/Desktop/research/Bug/bento4-06c39d9/mp42aac Disassembly: 0x00005555555f9b67: jb 0x5555555f9b80 <_ZN12AP4_Stz2Atom13GetSampleSizeEjRj+32> 0x00005555555f9b69: test esi,esi 0x00005555555f9b6b: je 0x5555555f9b80 <_ZN12AP4_Stz2Atom13GetSampleSizeEjRj+32> 0x00005555555f9b6d: mov rax,QWORD PTR [rdi+0x40] 0x00005555555f9b71: lea ecx,[rsi-0x1] => 0x00005555555f9b74: mov ecx,DWORD PTR [rax+rcx*4] 0x00005555555f9b77: xor eax,eax 0x00005555555f9b79: mov DWORD PTR [rdx],ecx 0x00005555555f9b7b: ret 0x00005555555f9b7c: nop DWORD PTR [rax+0x0] Stack Head (4 entries): AP4_Stz2Atom::GetSampleSi @ 0x00005555555f9b74: in /home/natalie/Desktop/research/Bug/bento4-06c39d9/mp42aac AP4_AtomSampleTable::GetS @ 0x00005555555ce999: in /home/natalie/Desktop/research/Bug/bento4-06c39d9/mp42aac AP4_Track::ReadSample(uns @ 0x00005555555bd910: in /home/natalie/Desktop/research/Bug/bento4-06c39d9/mp42aac main @ 0x00005555555ab76c: in /home/natalie/Desktop/research/Bug/bento4-06c39d9/mp42aac Registers: rax=0x0000000000000000 rbx=0x00005555556559c0 rcx=0x0000000000000000 rdx=0x00007fffffffdb04 rsi=0x0000000000000001 rdi=0x00005555556554a0 rbp=0x0000000000000001 rsp=0x00007fffffffdae8 r8=0x0000000000000000 r9=0x0000000000000000 r10=0x0000000000000000 r11=0x000000000000000a r12=0x0000000000000000 r13=0x00007fffffffdb10 r14=0x00007fffffffdbf0 r15=0x0000000000000001 rip=0x00005555555f9b74 efl=0x0000000000010202 cs=0x0000000000000033 ss=0x000000000000002b ds=0x0000000000000000 es=0x0000000000000000 fs=0x0000000000000000 gs=0x0000000000000000 Extra Data: Description: Access violation near NULL on source operand Short description: SourceAvNearNull (16/22) Explanation: The target crashed on an access violation at an address matching the source operand of the current instruction. This likely indicates a read access violation, which may mean the application crashed on a simple NULL dereference to data structure that has no immediate effect on control of the processor. ---END SUMMARY---
SEGV by a READ memory access (address points to the zero page)
https://api.github.com/repos/axiomatic-systems/Bento4/issues/511/comments
1
2020-05-16T12:08:52Z
2020-05-22T00:41:45Z
https://github.com/axiomatic-systems/Bento4/issues/511
619,458,135
511
[ "axiomatic-systems", "Bento4" ]
# Command: ./mp42aac @@ /tmp/out.aac # Information provided by address sanitizer: ================================================================= ==22589==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x6020000000b1 at pc 0x0000004e57a0 bp 0x7ffddd2a7340 sp 0x7ffddd2a6af0 WRITE of size 439 at 0x6020000000b1 thread T0 #0 0x4e579f in __interceptor_fread.part.52 /home/natalie/Research/LLVM/src/llvm-8.0.1.src/projects/compiler-rt/lib/asan/../sanitizer_common/sanitizer_common_interceptors.inc:1001:16 #1 0x5c40ab in AP4_StdcFileByteStream::ReadPartial(void*, unsigned int, unsigned int&) /home/natalie/Downloads/Bento4-master/Source/C++/System/StdC/Ap4StdCFileByteStream.cpp:250:14 #2 0x57260a in AP4_ByteStream::Read(void*, unsigned int) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4ByteStream.cpp:54:29 #3 0x662a82 in AP4_RtpAtom::AP4_RtpAtom(unsigned int, AP4_ByteStream&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4RtpAtom.cpp:50:16 #4 0x5d40a7 in AP4_RtpAtom::Create(unsigned int, AP4_ByteStream&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4RtpAtom.h:53:20 #5 0x5d40a7 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4AtomFactory.cpp:669 #6 0x5d2922 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4AtomFactory.cpp:233:14 #7 0x60e44b in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4ContainerAtom.cpp:194:12 #8 0x60d6ee in AP4_ContainerAtom::AP4_ContainerAtom(unsigned int, unsigned long long, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4ContainerAtom.cpp:139:5 #9 0x60d6ee in AP4_ContainerAtom::Create(unsigned int, unsigned long long, bool, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4ContainerAtom.cpp:88 #10 0x5d42b2 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4AtomFactory.cpp:796:20 #11 0x5d2922 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4AtomFactory.cpp:233:14 #12 0x60e44b in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4ContainerAtom.cpp:194:12 #13 0x60d6ee in AP4_ContainerAtom::AP4_ContainerAtom(unsigned int, unsigned long long, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4ContainerAtom.cpp:139:5 #14 0x60d6ee in AP4_ContainerAtom::Create(unsigned int, unsigned long long, bool, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4ContainerAtom.cpp:88 #15 0x5d42b2 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4AtomFactory.cpp:796:20 #16 0x5d2922 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4AtomFactory.cpp:233:14 #17 0x60e44b in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4ContainerAtom.cpp:194:12 #18 0x60e126 in AP4_ContainerAtom::AP4_ContainerAtom(unsigned int, unsigned long long, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4ContainerAtom.cpp:139:5 #19 0x5a3e4b in AP4_TrakAtom::AP4_TrakAtom(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4TrakAtom.cpp:165:5 #20 0x5d37f8 in AP4_TrakAtom::Create(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4TrakAtom.h:58:20 #21 0x5d37f8 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4AtomFactory.cpp:399 #22 0x5d2922 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4AtomFactory.cpp:233:14 #23 0x60e44b in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4ContainerAtom.cpp:194:12 #24 0x60e126 in AP4_ContainerAtom::AP4_ContainerAtom(unsigned int, unsigned long long, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4ContainerAtom.cpp:139:5 #25 0x57ccec in AP4_MoovAtom::AP4_MoovAtom(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4MoovAtom.cpp:79:5 #26 0x5d4251 in AP4_MoovAtom::Create(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4MoovAtom.h:56:20 #27 0x5d4251 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4AtomFactory.cpp:379 #28 0x5d2922 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4AtomFactory.cpp:233:14 #29 0x5d21eb in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, AP4_Atom*&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4AtomFactory.cpp:153:12 #30 0x57920e in AP4_File::ParseStream(AP4_ByteStream&, AP4_AtomFactory&, bool) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4File.cpp:104:12 #31 0x5797bb in AP4_File::AP4_File(AP4_ByteStream&, bool) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4File.cpp:78:5 #32 0x571465 in main /home/natalie/Downloads/Bento4-master/Source/C++/Apps/Mp42Aac/Mp42Aac.cpp:250:22 #33 0x7fb0adb691e2 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x271e2) #34 0x45c96d in _start (/home/natalie/Desktop/research/Bug/bento4-06c39d9/mp42aac-asan+0x45c96d) 0x6020000000b1 is located 0 bytes to the right of 1-byte region [0x6020000000b0,0x6020000000b1) allocated by thread T0 here: #0 0x56de20 in operator new[](unsigned long) /home/natalie/Research/LLVM/src/llvm-8.0.1.src/projects/compiler-rt/lib/asan/asan_new_delete.cc:109:3 #1 0x662a72 in AP4_RtpAtom::AP4_RtpAtom(unsigned int, AP4_ByteStream&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4RtpAtom.cpp:49:21 SUMMARY: AddressSanitizer: heap-buffer-overflow /home/natalie/Research/LLVM/src/llvm-8.0.1.src/projects/compiler-rt/lib/asan/../sanitizer_common/sanitizer_common_interceptors.inc:1001:16 in __interceptor_fread.part.52 Shadow bytes around the buggy address: 0x0c047fff7fc0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x0c047fff7fd0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x0c047fff7fe0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x0c047fff7ff0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x0c047fff8000: fa fa 00 00 fa fa 00 00 fa fa 00 00 fa fa 00 00 =>0x0c047fff8010: fa fa 04 fa fa fa[01]fa fa fa fa fa fa fa fa fa 0x0c047fff8020: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c047fff8030: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c047fff8040: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c047fff8050: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c047fff8060: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa Shadow byte legend (one shadow byte represents 8 application bytes): Addressable: 00 Partially addressable: 01 02 03 04 05 06 07 Heap left redzone: fa Freed heap region: fd Stack left redzone: f1 Stack mid redzone: f2 Stack right redzone: f3 Stack after return: f5 Stack use after scope: f8 Global redzone: f9 Global init order: f6 Poisoned by user: f7 Container overflow: fc Array cookie: ac Intra object redzone: bb ASan internal: fe Left alloca redzone: ca Right alloca redzone: cb Shadow gap: cc ==22589==ABORTING # Information provided by crashwalk: ---CRASH SUMMARY--- Filename: id:000346,sig:06,src:005414,op:ext_AO,pos:773 SHA1: 47de1f27633138a72eb87e0b9183a6a434bc6a71 Classification: EXPLOITABLE Hash: 2bffe3e28b7d836de8df2bd02ca37d2b.8940a281b43ef80c9adc7f441d8810f4 Command: ./mp42aac psym-crashes/id:000346,sig:06,src:005414,op:ext_AO,pos:773 /tmp/out.aac Faulting Frame: operator new(unsigned long) @ 0x00007ffff7e5f1d9: in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.28 Disassembly: 0x00007ffff7bef3da: xor edx,edx 0x00007ffff7bef3dc: mov rsi,r9 0x00007ffff7bef3df: mov edi,0x2 0x00007ffff7bef3e4: mov eax,0xe 0x00007ffff7bef3e9: syscall => 0x00007ffff7bef3eb: mov rax,QWORD PTR [rsp+0x108] 0x00007ffff7bef3f3: xor rax,QWORD PTR fs:0x28 0x00007ffff7bef3fc: jne 0x7ffff7bef424 <__GI_raise+260> 0x00007ffff7bef3fe: mov eax,r8d 0x00007ffff7bef401: add rsp,0x118 Stack Head (32 entries): __GI_raise @ 0x00007ffff7bef3eb: in (BL) __GI_abort @ 0x00007ffff7bce899: in (BL) __libc_message @ 0x00007ffff7c3938e: in (BL) malloc_printerr @ 0x00007ffff7c414dc: in (BL) _int_malloc @ 0x00007ffff7c4488a: in (BL) __GI___libc_malloc @ 0x00007ffff7c46304: in (BL) operator @ 0x00007ffff7e5f1d9: in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.28 AP4_String::operator=(cha @ 0x00005555555bbc77: in /home/natalie/Desktop/research/Bug/bento4-06c39d9/mp42aac AP4_RtpAtom::AP4_RtpAtom( @ 0x00005555555f3fee: in /home/natalie/Desktop/research/Bug/bento4-06c39d9/mp42aac AP4_AtomFactory::CreateAt @ 0x00005555555ccadd: in /home/natalie/Desktop/research/Bug/bento4-06c39d9/mp42aac AP4_AtomFactory::CreateAt @ 0x00005555555cdb9c: in /home/natalie/Desktop/research/Bug/bento4-06c39d9/mp42aac AP4_ContainerAtom::ReadCh @ 0x00005555555db882: in /home/natalie/Desktop/research/Bug/bento4-06c39d9/mp42aac AP4_ContainerAtom::Create @ 0x00005555555dbbfd: in /home/natalie/Desktop/research/Bug/bento4-06c39d9/mp42aac AP4_AtomFactory::CreateAt @ 0x00005555555cb892: in /home/natalie/Desktop/research/Bug/bento4-06c39d9/mp42aac AP4_AtomFactory::CreateAt @ 0x00005555555cdb9c: in /home/natalie/Desktop/research/Bug/bento4-06c39d9/mp42aac AP4_ContainerAtom::ReadCh @ 0x00005555555db882: in /home/natalie/Desktop/research/Bug/bento4-06c39d9/mp42aac Registers: rax=0x0000000000000000 rbx=0x00007ffff7a59100 rcx=0x00007ffff7bef3eb rdx=0x0000000000000000 rsi=0x00007fffffffce40 rdi=0x0000000000000002 rbp=0x00007fffffffd190 rsp=0x00007fffffffce40 r8=0x0000000000000000 r9=0x00007fffffffce40 r10=0x0000000000000008 r11=0x0000000000000246 r12=0x00007fffffffd0b0 r13=0x0000000000000010 r14=0x00007ffff7ffb000 r15=0x0000000000000002 rip=0x00007ffff7bef3eb efl=0x0000000000000246 cs=0x0000000000000033 ss=0x000000000000002b ds=0x0000000000000000 es=0x0000000000000000 fs=0x0000000000000000 gs=0x0000000000000000 Extra Data: Description: Heap error Short description: HeapError (10/22) Explanation: The target's backtrace indicates that libc has detected a heap error or that the target was executing a heap function when it stopped. This could be due to heap corruption, passing a bad pointer to a heap function such as free(), etc. Since heap errors might include buffer overflows, use-after-free situations, etc. they are generally considered exploitable. ---END SUMMARY---
Heap buffer overflow in AP4_StdcFileByteStream::ReadPartial
https://api.github.com/repos/axiomatic-systems/Bento4/issues/510/comments
1
2020-05-16T11:33:57Z
2020-05-18T06:14:32Z
https://github.com/axiomatic-systems/Bento4/issues/510
619,451,101
510
[ "axiomatic-systems", "Bento4" ]
# Command line: ./mp42aac @@ /tmp/out.aac # Information provided by crashwalk: ---CRASH SUMMARY--- Filename: psym-crashes/id:000544,sig:11,src:001515+007343,op:splice,rep:2 SHA1: 20de771b6086b1a3398115e4e2fc2841d0e50b64 Classification: PROBABLY_NOT_EXPLOITABLE Hash: f580ca995a6ddc20b994fa723585917b.571d196ddb038b3eaa29ec225bc0ad52 Command: ./mp42aac psym-crashes/id:000544,sig:11,src:001515+007343,op:splice,rep:2 /tmp/out.aac Faulting Frame: AP4_DecoderConfigDescriptor::WriteFields(AP4_ByteStream&) @ 0x00005555555de356: in /home/natalie/Desktop/research/Bug/bento4-06c39d9/mp42aac Disassembly: 0x00005555555de342: test rbx,rbx 0x00005555555de345: je 0x5555555de365 <_ZN27AP4_DecoderConfigDescriptor11WriteFieldsER14AP4_ByteStream+133> 0x00005555555de347: nop WORD PTR [rax+rax*1+0x0] 0x00005555555de350: mov rdi,QWORD PTR [rbx] 0x00005555555de353: mov rsi,rbp => 0x00005555555de356: mov rax,QWORD PTR [rdi] 0x00005555555de359: call QWORD PTR [rax+0x10] 0x00005555555de35c: mov rbx,QWORD PTR [rbx+0x8] 0x00005555555de360: test rbx,rbx 0x00005555555de363: jne 0x5555555de350 <_ZN27AP4_DecoderConfigDescriptor11WriteFieldsER14AP4_ByteStream+112> Stack Head (11 entries): AP4_DecoderConfigDescript @ 0x00005555555de356: in /home/natalie/Desktop/research/Bug/bento4-06c39d9/mp42aac AP4_Expandable::Write(AP4 @ 0x00005555555e109d: in /home/natalie/Desktop/research/Bug/bento4-06c39d9/mp42aac AP4_DecoderConfigDescript @ 0x00005555555de35c: in /home/natalie/Desktop/research/Bug/bento4-06c39d9/mp42aac AP4_Expandable::Write(AP4 @ 0x00005555555e109d: in /home/natalie/Desktop/research/Bug/bento4-06c39d9/mp42aac AP4_EsDescriptor::WriteFi @ 0x00005555555e06fc: in /home/natalie/Desktop/research/Bug/bento4-06c39d9/mp42aac AP4_Expandable::Write(AP4 @ 0x00005555555e109d: in /home/natalie/Desktop/research/Bug/bento4-06c39d9/mp42aac AP4_Atom::Clone() @ 0x00005555555c87e7: in /home/natalie/Desktop/research/Bug/bento4-06c39d9/mp42aac AP4_AvcSampleDescription: @ 0x00005555555b4eef: in /home/natalie/Desktop/research/Bug/bento4-06c39d9/mp42aac AP4_AvcSampleEntry::ToSam @ 0x00005555555b7b5f: in /home/natalie/Desktop/research/Bug/bento4-06c39d9/mp42aac AP4_StsdAtom::GetSampleDe @ 0x00005555555bbf0d: in /home/natalie/Desktop/research/Bug/bento4-06c39d9/mp42aac main @ 0x00005555555ab4d2: in /home/natalie/Desktop/research/Bug/bento4-06c39d9/mp42aac Registers: rax=0x0000000000000000 rbx=0x000055555568e4e0 rcx=0x0000000000000000 rdx=0x0000000000000004 rsi=0x000055555568f5a0 rdi=0x0000000000000000 rbp=0x000055555568f5a0 rsp=0x00007fffffffd940 r8=0x000055555568f5d0 r9=0x000000000000007c r10=0x0000000000000000 r11=0x00007ffff7d93be0 r12=0x0000000000000000 r13=0x000055555568f5a0 r14=0x000055555568f540 r15=0x0000555555636d10 rip=0x00005555555de356 efl=0x0000000000010202 cs=0x0000000000000033 ss=0x000000000000002b ds=0x0000000000000000 es=0x0000000000000000 fs=0x0000000000000000 gs=0x0000000000000000 Extra Data: Description: Access violation near NULL on source operand Short description: SourceAvNearNull (16/22) Explanation: The target crashed on an access violation at an address matching the source operand of the current instruction. This likely indicates a read access violation, which may mean the application crashed on a simple NULL dereference to data structure that has no immediate effect on control of the processor. ---END SUMMARY--- # Information provided by address sanitizer: AddressSanitizer:DEADLYSIGNAL ================================================================= ==22201==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x00000061a6d8 bp 0x7ffdd0eee230 sp 0x7ffdd0eee170 T0) ==22201==The signal is caused by a READ memory access. ==22201==Hint: address points to the zero page. #0 0x61a6d7 in AP4_DescriptorListWriter::Action(AP4_Descriptor*) const /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4Descriptor.h:108:28 #1 0x6199fe in AP4_List<AP4_Descriptor>::Apply(AP4_List<AP4_Descriptor>::Item::Operator const&) const /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4List.h:353:12 #2 0x6199fe in AP4_DecoderConfigDescriptor::WriteFields(AP4_ByteStream&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4DecoderConfigDescriptor.cpp:123 #3 0x622297 in AP4_Expandable::Write(AP4_ByteStream&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4Expandable.cpp:109:5 #4 0x6199fe in AP4_List<AP4_Descriptor>::Apply(AP4_List<AP4_Descriptor>::Item::Operator const&) const /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4List.h:353:12 #5 0x6199fe in AP4_DecoderConfigDescriptor::WriteFields(AP4_ByteStream&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4DecoderConfigDescriptor.cpp:123 #6 0x622297 in AP4_Expandable::Write(AP4_ByteStream&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4Expandable.cpp:109:5 #7 0x620603 in AP4_List<AP4_Descriptor>::Apply(AP4_List<AP4_Descriptor>::Item::Operator const&) const /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4List.h:353:12 #8 0x620603 in AP4_EsDescriptor::WriteFields(AP4_ByteStream&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4EsDescriptor.cpp:163 #9 0x622297 in AP4_Expandable::Write(AP4_ByteStream&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4Expandable.cpp:109:5 #10 0x5c8e54 in AP4_Atom::Clone() /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4Atom.cpp:316:9 #11 0x58ddc6 in AP4_SampleDescription::AP4_SampleDescription(AP4_SampleDescription::Type, unsigned int, AP4_AtomParent*) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4SampleDescription.cpp:132:41 #12 0x58ddc6 in AP4_AvcSampleDescription::AP4_AvcSampleDescription(unsigned int, unsigned short, unsigned short, unsigned short, char const*, AP4_AtomParent*) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4SampleDescription.cpp:356 #13 0x59882a in AP4_AvcSampleEntry::ToSampleDescription() /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4SampleEntry.cpp:1022:16 #14 0x5a091e in AP4_StsdAtom::GetSampleDescription(unsigned int) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4StsdAtom.cpp:181:53 #15 0x5714b2 in main /home/natalie/Downloads/Bento4-master/Source/C++/Apps/Mp42Aac/Mp42Aac.cpp:268:39 #16 0x7f26839a31e2 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x271e2) #17 0x45c96d in _start (/home/natalie/Desktop/research/Bug/bento4-06c39d9/mp42aac-asan+0x45c96d) AddressSanitizer can not provide additional info. SUMMARY: AddressSanitizer: SEGV /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4Descriptor.h:108:28 in AP4_DescriptorListWriter::Action(AP4_Descriptor*) const ==22201==ABORTING
SEGV by a READ memory access in AP4_DecoderConfigDescriptor::WriteFields
https://api.github.com/repos/axiomatic-systems/Bento4/issues/509/comments
1
2020-05-16T11:29:41Z
2020-05-18T06:12:29Z
https://github.com/axiomatic-systems/Bento4/issues/509
619,450,232
509
[ "axiomatic-systems", "Bento4" ]
I found a crash by running "./mp42aac @@ /tmp/out.aac". The crash is identified as "EXPLOITABLE" by crashwalk. # Information provided by crashwalk (!exploitable) ---CRASH SUMMARY--- Filename: id:000436,sig:11,src:005777,op:ext_AO,pos:697 SHA1: 6e5f8913397067951eb2e963701fd605b3bc168b Classification: EXPLOITABLE Hash: 7606cf035283a6a1bf64fe4bdc424dfb.c7ad0413c824b07ed97b196265be5bd9 Command: ./mp42aac psym-crashes/id:000436,sig:11,src:005777,op:ext_AO,pos:697 /tmp/out.aac Faulting Frame: AP4_NullTerminatedStringAtom::AP4_NullTerminatedStringAtom(unsigned int, unsigned long long, AP4_ByteStream&) @ 0x00005555555cac74: in /home/natalie/Desktop/research/Bug/bento4-06c39d9/mp42aac Disassembly: 0x00005555555cac63: mov r12,rax 0x00005555555cac66: call 0x5555555ac890 <_ZN14AP4_ByteStream4ReadEPvj> 0x00005555555cac6b: lea eax,[rbx-0x9] 0x00005555555cac6e: mov rsi,r12 0x00005555555cac71: mov rdi,rbp => 0x00005555555cac74: mov BYTE PTR [r12+rax*1],0x0 0x00005555555cac79: call 0x5555555bbc30 <_ZN10AP4_StringaSEPKc> 0x00005555555cac7e: pop rbx 0x00005555555cac7f: pop rbp 0x00005555555cac80: pop r12 Stack Head (20 entries): AP4_NullTerminatedStringA @ 0x00005555555cac74: in /home/natalie/Desktop/research/Bug/bento4-06c39d9/mp42aac AP4_AtomFactory::CreateAt @ 0x00005555555cbac2: in /home/natalie/Desktop/research/Bug/bento4-06c39d9/mp42aac AP4_AtomFactory::CreateAt @ 0x00005555555cdb9c: in /home/natalie/Desktop/research/Bug/bento4-06c39d9/mp42aac AP4_ContainerAtom::ReadCh @ 0x00005555555db882: in /home/natalie/Desktop/research/Bug/bento4-06c39d9/mp42aac AP4_ContainerAtom::Create @ 0x00005555555dbbfd: in /home/natalie/Desktop/research/Bug/bento4-06c39d9/mp42aac AP4_AtomFactory::CreateAt @ 0x00005555555cb892: in /home/natalie/Desktop/research/Bug/bento4-06c39d9/mp42aac AP4_AtomFactory::CreateAt @ 0x00005555555cdb9c: in /home/natalie/Desktop/research/Bug/bento4-06c39d9/mp42aac AP4_ContainerAtom::ReadCh @ 0x00005555555db882: in /home/natalie/Desktop/research/Bug/bento4-06c39d9/mp42aac AP4_ContainerAtom::AP4_Co @ 0x00005555555db999: in /home/natalie/Desktop/research/Bug/bento4-06c39d9/mp42aac AP4_TrakAtom::AP4_TrakAto @ 0x00005555555bdef3: in /home/natalie/Desktop/research/Bug/bento4-06c39d9/mp42aac AP4_AtomFactory::CreateAt @ 0x00005555555cbf9c: in /home/natalie/Desktop/research/Bug/bento4-06c39d9/mp42aac AP4_AtomFactory::CreateAt @ 0x00005555555cdb9c: in /home/natalie/Desktop/research/Bug/bento4-06c39d9/mp42aac AP4_ContainerAtom::ReadCh @ 0x00005555555db882: in /home/natalie/Desktop/research/Bug/bento4-06c39d9/mp42aac AP4_ContainerAtom::AP4_Co @ 0x00005555555db999: in /home/natalie/Desktop/research/Bug/bento4-06c39d9/mp42aac AP4_MoovAtom::AP4_MoovAto @ 0x00005555555aee5a: in /home/natalie/Desktop/research/Bug/bento4-06c39d9/mp42aac AP4_AtomFactory::CreateAt @ 0x00005555555cc87a: in /home/natalie/Desktop/research/Bug/bento4-06c39d9/mp42aac Registers: rax=0x00000000ffffffff rbx=0x0000000000000008 rcx=0x0000555555654fe0 rdx=0x0000000000000000 rsi=0x0000555555654fd0 rdi=0x0000555555654fb8 rbp=0x0000555555654fb8 rsp=0x00007fffffffd470 r8=0x0000555555654fd0 r9=0x00007fffffffd598 r10=0x0000000000000008 r11=0x00007ffff7d93be0 r12=0x0000555555654fd0 r13=0x00005555556535a0 r14=0x0000000000000000 r15=0x00005555556535a0 rip=0x00005555555cac74 efl=0x0000000000010206 cs=0x0000000000000033 ss=0x000000000000002b ds=0x0000000000000000 es=0x0000000000000000 fs=0x0000000000000000 gs=0x0000000000000000 Extra Data: Description: Access violation on destination operand Short description: DestAv (8/22) Explanation: The target crashed on an access violation at an address matching the destination operand of the instruction. This likely indicates a write access violation, which means the attacker may control the write address and/or value. ---END SUMMARY--- # Information provided by address sanitizer ================================================================= ==21893==ERROR: AddressSanitizer: SEGV on unknown address 0x6021000000cf (pc 0x0000005ca6ca bp 0x7ffdfe80f7d0 sp 0x7ffdfe80f6b0 T0) ==21893==The signal is caused by a WRITE memory access. #0 0x5ca6c9 in AP4_NullTerminatedStringAtom::AP4_NullTerminatedStringAtom(unsigned int, unsigned long long, AP4_ByteStream&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4Atom.cpp:474:21 #1 0x5d46e8 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4AtomFactory.cpp:550:24 #2 0x5d2922 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4AtomFactory.cpp:233:14 #3 0x60e44b in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4ContainerAtom.cpp:194:12 #4 0x60d6ee in AP4_ContainerAtom::AP4_ContainerAtom(unsigned int, unsigned long long, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4ContainerAtom.cpp:139:5 #5 0x60d6ee in AP4_ContainerAtom::Create(unsigned int, unsigned long long, bool, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4ContainerAtom.cpp:88 #6 0x5d42b2 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4AtomFactory.cpp:796:20 #7 0x5d2922 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4AtomFactory.cpp:233:14 #8 0x60e44b in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4ContainerAtom.cpp:194:12 #9 0x60e126 in AP4_ContainerAtom::AP4_ContainerAtom(unsigned int, unsigned long long, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4ContainerAtom.cpp:139:5 #10 0x5a3e4b in AP4_TrakAtom::AP4_TrakAtom(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4TrakAtom.cpp:165:5 #11 0x5d37f8 in AP4_TrakAtom::Create(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4TrakAtom.h:58:20 #12 0x5d37f8 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4AtomFactory.cpp:399 #13 0x5d2922 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4AtomFactory.cpp:233:14 #14 0x60e44b in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4ContainerAtom.cpp:194:12 #15 0x60e126 in AP4_ContainerAtom::AP4_ContainerAtom(unsigned int, unsigned long long, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4ContainerAtom.cpp:139:5 #16 0x57ccec in AP4_MoovAtom::AP4_MoovAtom(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4MoovAtom.cpp:79:5 #17 0x5d4251 in AP4_MoovAtom::Create(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4MoovAtom.h:56:20 #18 0x5d4251 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4AtomFactory.cpp:379 #19 0x5d2922 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4AtomFactory.cpp:233:14 #20 0x5d21eb in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, AP4_Atom*&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4AtomFactory.cpp:153:12 #21 0x57920e in AP4_File::ParseStream(AP4_ByteStream&, AP4_AtomFactory&, bool) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4File.cpp:104:12 #22 0x5797bb in AP4_File::AP4_File(AP4_ByteStream&, bool) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4File.cpp:78:5 #23 0x571465 in main /home/natalie/Downloads/Bento4-master/Source/C++/Apps/Mp42Aac/Mp42Aac.cpp:250:22 #24 0x7f2bab9ae1e2 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x271e2) #25 0x45c96d in _start (/home/natalie/Desktop/research/Bug/bento4-06c39d9/mp42aac-asan+0x45c96d) AddressSanitizer can not provide additional info. SUMMARY: AddressSanitizer: SEGV /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4Atom.cpp:474:21 in AP4_NullTerminatedStringAtom::AP4_NullTerminatedStringAtom(unsigned int, unsigned long long, AP4_ByteStream&) ==21893==ABORTING
SEGV on unknown address by a WRITE memory access in AP4_NullTerminatedStringAtom::AP4_NullTerminatedStringAtom(unsigned int, unsigned long long, AP4_ByteStream&)
https://api.github.com/repos/axiomatic-systems/Bento4/issues/508/comments
1
2020-05-16T07:59:15Z
2020-05-22T00:41:44Z
https://github.com/axiomatic-systems/Bento4/issues/508
619,408,633
508
[ "axiomatic-systems", "Bento4" ]
I use my fuzzing project framework to find some vulnerabilities in mp42aac with command line: mp42aac @@ /tmp/out.aac I found a heap buffer overflow in AP4_CttsAtom::AP4_CttsAtom(unsigned int, unsigned char, unsigned int, AP4_ByteStream&). # Information provided by address sanitizer ================================================================= ==21708==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x607000001180 at pc 0x000000611503 bp 0x7ffdf3387750 sp 0x7ffdf3387748 READ of size 1 at 0x607000001180 thread T0 #0 0x611502 in AP4_BytesToUInt32BE(unsigned char const*) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4Utils.h:78:22 #1 0x611502 in AP4_CttsAtom::AP4_CttsAtom(unsigned int, unsigned char, unsigned int, AP4_ByteStream&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4CttsAtom.cpp:89 #2 0x60fce2 in AP4_CttsAtom::Create(unsigned int, AP4_ByteStream&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4CttsAtom.cpp:52:16 #3 0x5d310c in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4AtomFactory.cpp:479:20 #4 0x5d2922 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4AtomFactory.cpp:233:14 #5 0x60e44b in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4ContainerAtom.cpp:194:12 #6 0x60d6ee in AP4_ContainerAtom::AP4_ContainerAtom(unsigned int, unsigned long long, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4ContainerAtom.cpp:139:5 #7 0x60d6ee in AP4_ContainerAtom::Create(unsigned int, unsigned long long, bool, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4ContainerAtom.cpp:88 #8 0x5d42b2 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4AtomFactory.cpp:796:20 #9 0x5d2922 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4AtomFactory.cpp:233:14 #10 0x61bf3d in AP4_DrefAtom::AP4_DrefAtom(unsigned int, unsigned char, unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4DrefAtom.cpp:84:16 #11 0x61b922 in AP4_DrefAtom::Create(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4DrefAtom.cpp:50:16 #12 0x5d4fd8 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4AtomFactory.cpp:560:20 #13 0x5d2922 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4AtomFactory.cpp:233:14 #14 0x60e27d in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4ContainerAtom.cpp:194:12 #15 0x60d6ee in AP4_ContainerAtom::AP4_ContainerAtom(unsigned int, unsigned long long, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4ContainerAtom.cpp:139:5 #16 0x60d6ee in AP4_ContainerAtom::Create(unsigned int, unsigned long long, bool, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4ContainerAtom.cpp:88 #17 0x5d42b2 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4AtomFactory.cpp:796:20 #18 0x5d2922 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4AtomFactory.cpp:233:14 #19 0x61bf3d in AP4_DrefAtom::AP4_DrefAtom(unsigned int, unsigned char, unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4DrefAtom.cpp:84:16 #20 0x61b922 in AP4_DrefAtom::Create(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4DrefAtom.cpp:50:16 #21 0x5d4fd8 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4AtomFactory.cpp:560:20 #22 0x5d2922 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4AtomFactory.cpp:233:14 #23 0x61bf3d in AP4_DrefAtom::AP4_DrefAtom(unsigned int, unsigned char, unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4DrefAtom.cpp:84:16 #24 0x61b922 in AP4_DrefAtom::Create(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4DrefAtom.cpp:50:16 #25 0x5d4fd8 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4AtomFactory.cpp:560:20 #26 0x5d2922 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4AtomFactory.cpp:233:14 #27 0x60e27d in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4ContainerAtom.cpp:194:12 #28 0x60d6ee in AP4_ContainerAtom::AP4_ContainerAtom(unsigned int, unsigned long long, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4ContainerAtom.cpp:139:5 #29 0x60d6ee in AP4_ContainerAtom::Create(unsigned int, unsigned long long, bool, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4ContainerAtom.cpp:88 #30 0x5d42b2 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4AtomFactory.cpp:796:20 #31 0x5d2922 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4AtomFactory.cpp:233:14 #32 0x61bf3d in AP4_DrefAtom::AP4_DrefAtom(unsigned int, unsigned char, unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4DrefAtom.cpp:84:16 #33 0x61b922 in AP4_DrefAtom::Create(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4DrefAtom.cpp:50:16 #34 0x5d4fd8 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4AtomFactory.cpp:560:20 #35 0x5d2922 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4AtomFactory.cpp:233:14 #36 0x60e27d in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4ContainerAtom.cpp:194:12 #37 0x60d6ee in AP4_ContainerAtom::AP4_ContainerAtom(unsigned int, unsigned long long, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4ContainerAtom.cpp:139:5 #38 0x60d6ee in AP4_ContainerAtom::Create(unsigned int, unsigned long long, bool, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4ContainerAtom.cpp:88 #39 0x5d42b2 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4AtomFactory.cpp:796:20 #40 0x5d2922 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4AtomFactory.cpp:233:14 #41 0x61bf3d in AP4_DrefAtom::AP4_DrefAtom(unsigned int, unsigned char, unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4DrefAtom.cpp:84:16 #42 0x61b922 in AP4_DrefAtom::Create(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4DrefAtom.cpp:50:16 #43 0x5d4fd8 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4AtomFactory.cpp:560:20 #44 0x5d2922 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4AtomFactory.cpp:233:14 #45 0x61bf3d in AP4_DrefAtom::AP4_DrefAtom(unsigned int, unsigned char, unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4DrefAtom.cpp:84:16 #46 0x61b922 in AP4_DrefAtom::Create(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4DrefAtom.cpp:50:16 #47 0x5d4fd8 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4AtomFactory.cpp:560:20 #48 0x5d2922 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4AtomFactory.cpp:233:14 #49 0x60e27d in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4ContainerAtom.cpp:194:12 #50 0x60d6ee in AP4_ContainerAtom::AP4_ContainerAtom(unsigned int, unsigned long long, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4ContainerAtom.cpp:139:5 #51 0x60d6ee in AP4_ContainerAtom::Create(unsigned int, unsigned long long, bool, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4ContainerAtom.cpp:88 #52 0x5d42b2 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4AtomFactory.cpp:796:20 #53 0x5d2922 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4AtomFactory.cpp:233:14 #54 0x60e44b in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4ContainerAtom.cpp:194:12 #55 0x60d6ee in AP4_ContainerAtom::AP4_ContainerAtom(unsigned int, unsigned long long, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4ContainerAtom.cpp:139:5 #56 0x60d6ee in AP4_ContainerAtom::Create(unsigned int, unsigned long long, bool, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4ContainerAtom.cpp:88 #57 0x5d42b2 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4AtomFactory.cpp:796:20 #58 0x5d2922 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4AtomFactory.cpp:233:14 #59 0x61bf3d in AP4_DrefAtom::AP4_DrefAtom(unsigned int, unsigned char, unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4DrefAtom.cpp:84:16 #60 0x61b922 in AP4_DrefAtom::Create(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4DrefAtom.cpp:50:16 #61 0x5d4fd8 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4AtomFactory.cpp:560:20 #62 0x5d2922 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4AtomFactory.cpp:233:14 #63 0x60e27d in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4ContainerAtom.cpp:194:12 #64 0x60d6ee in AP4_ContainerAtom::AP4_ContainerAtom(unsigned int, unsigned long long, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4ContainerAtom.cpp:139:5 #65 0x60d6ee in AP4_ContainerAtom::Create(unsigned int, unsigned long long, bool, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4ContainerAtom.cpp:88 #66 0x5d42b2 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4AtomFactory.cpp:796:20 #67 0x5d2922 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4AtomFactory.cpp:233:14 #68 0x61bf3d in AP4_DrefAtom::AP4_DrefAtom(unsigned int, unsigned char, unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4DrefAtom.cpp:84:16 #69 0x61b922 in AP4_DrefAtom::Create(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4DrefAtom.cpp:50:16 #70 0x5d4fd8 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4AtomFactory.cpp:560:20 #71 0x5d2922 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4AtomFactory.cpp:233:14 #72 0x60e27d in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4ContainerAtom.cpp:194:12 #73 0x60d6ee in AP4_ContainerAtom::AP4_ContainerAtom(unsigned int, unsigned long long, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4ContainerAtom.cpp:139:5 #74 0x60d6ee in AP4_ContainerAtom::Create(unsigned int, unsigned long long, bool, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4ContainerAtom.cpp:88 #75 0x5d42b2 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4AtomFactory.cpp:796:20 #76 0x5d2922 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4AtomFactory.cpp:233:14 #77 0x61bf3d in AP4_DrefAtom::AP4_DrefAtom(unsigned int, unsigned char, unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4DrefAtom.cpp:84:16 #78 0x61b922 in AP4_DrefAtom::Create(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4DrefAtom.cpp:50:16 #79 0x5d4fd8 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4AtomFactory.cpp:560:20 #80 0x5d2922 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4AtomFactory.cpp:233:14 #81 0x60e27d in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4ContainerAtom.cpp:194:12 #82 0x598644 in AP4_VisualSampleEntry::AP4_VisualSampleEntry(unsigned int, unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4SampleEntry.cpp:742:5 #83 0x598644 in AP4_AvcSampleEntry::AP4_AvcSampleEntry(unsigned int, unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4SampleEntry.cpp:994 #84 0x5d3e82 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4AtomFactory.cpp:318:24 #85 0x5d2922 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4AtomFactory.cpp:233:14 #86 0x59de4e in AP4_StsdAtom::AP4_StsdAtom(unsigned int, unsigned char, unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4StsdAtom.cpp:101:13 #87 0x59c6e5 in AP4_StsdAtom::Create(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4StsdAtom.cpp:57:16 #88 0x5d4507 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4AtomFactory.cpp:444:20 #89 0x5d2922 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4AtomFactory.cpp:233:14 #90 0x60e27d in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4ContainerAtom.cpp:194:12 #91 0x60d6ee in AP4_ContainerAtom::AP4_ContainerAtom(unsigned int, unsigned long long, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4ContainerAtom.cpp:139:5 #92 0x60d6ee in AP4_ContainerAtom::Create(unsigned int, unsigned long long, bool, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4ContainerAtom.cpp:88 #93 0x5d42b2 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4AtomFactory.cpp:796:20 #94 0x5d2922 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4AtomFactory.cpp:233:14 #95 0x60e44b in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4ContainerAtom.cpp:194:12 #96 0x60d6ee in AP4_ContainerAtom::AP4_ContainerAtom(unsigned int, unsigned long long, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4ContainerAtom.cpp:139:5 #97 0x60d6ee in AP4_ContainerAtom::Create(unsigned int, unsigned long long, bool, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4ContainerAtom.cpp:88 #98 0x5d42b2 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4AtomFactory.cpp:796:20 #99 0x5d2922 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4AtomFactory.cpp:233:14 #100 0x60e44b in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4ContainerAtom.cpp:194:12 #101 0x60d6ee in AP4_ContainerAtom::AP4_ContainerAtom(unsigned int, unsigned long long, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4ContainerAtom.cpp:139:5 #102 0x60d6ee in AP4_ContainerAtom::Create(unsigned int, unsigned long long, bool, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4ContainerAtom.cpp:88 #103 0x5d42b2 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4AtomFactory.cpp:796:20 #104 0x5d2922 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4AtomFactory.cpp:233:14 #105 0x60e44b in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4ContainerAtom.cpp:194:12 #106 0x60e126 in AP4_ContainerAtom::AP4_ContainerAtom(unsigned int, unsigned long long, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4ContainerAtom.cpp:139:5 #107 0x5a3e4b in AP4_TrakAtom::AP4_TrakAtom(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4TrakAtom.cpp:165:5 #108 0x5d37f8 in AP4_TrakAtom::Create(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4TrakAtom.h:58:20 #109 0x5d37f8 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4AtomFactory.cpp:399 #110 0x5d2922 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4AtomFactory.cpp:233:14 #111 0x60e44b in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4ContainerAtom.cpp:194:12 #112 0x60e126 in AP4_ContainerAtom::AP4_ContainerAtom(unsigned int, unsigned long long, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4ContainerAtom.cpp:139:5 #113 0x57ccec in AP4_MoovAtom::AP4_MoovAtom(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4MoovAtom.cpp:79:5 #114 0x5d4251 in AP4_MoovAtom::Create(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4MoovAtom.h:56:20 #115 0x5d4251 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4AtomFactory.cpp:379 #116 0x5d2922 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4AtomFactory.cpp:233:14 #117 0x5d21eb in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, AP4_Atom*&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4AtomFactory.cpp:153:12 #118 0x57920e in AP4_File::ParseStream(AP4_ByteStream&, AP4_AtomFactory&, bool) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4File.cpp:104:12 #119 0x5797bb in AP4_File::AP4_File(AP4_ByteStream&, bool) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4File.cpp:78:5 #120 0x571465 in main /home/natalie/Downloads/Bento4-master/Source/C++/Apps/Mp42Aac/Mp42Aac.cpp:250:22 #121 0x7f479e6fc1e2 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x271e2) #122 0x45c96d in _start (/home/natalie/Desktop/research/Bug/bento4-06c39d9/mp42aac-asan+0x45c96d) 0x607000001180 is located 0 bytes to the right of 80-byte region [0x607000001130,0x607000001180) allocated by thread T0 here: #0 0x56de20 in operator new[](unsigned long) /home/natalie/Research/LLVM/src/llvm-8.0.1.src/projects/compiler-rt/lib/asan/asan_new_delete.cc:109:3 #1 0x6110ed in AP4_CttsAtom::AP4_CttsAtom(unsigned int, unsigned char, unsigned int, AP4_ByteStream&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4CttsAtom.cpp:80:29 #2 0x60fce2 in AP4_CttsAtom::Create(unsigned int, AP4_ByteStream&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4CttsAtom.cpp:52:16 #3 0x5d310c in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4AtomFactory.cpp:479:20 #4 0x5d2922 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4AtomFactory.cpp:233:14 #5 0x60e44b in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4ContainerAtom.cpp:194:12 #6 0x60d6ee in AP4_ContainerAtom::AP4_ContainerAtom(unsigned int, unsigned long long, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4ContainerAtom.cpp:139:5 #7 0x60d6ee in AP4_ContainerAtom::Create(unsigned int, unsigned long long, bool, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4ContainerAtom.cpp:88 #8 0x5d42b2 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4AtomFactory.cpp:796:20 #9 0x5d2922 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4AtomFactory.cpp:233:14 #10 0x61bf3d in AP4_DrefAtom::AP4_DrefAtom(unsigned int, unsigned char, unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4DrefAtom.cpp:84:16 #11 0x61b922 in AP4_DrefAtom::Create(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4DrefAtom.cpp:50:16 #12 0x5d4fd8 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4AtomFactory.cpp:560:20 #13 0x5d2922 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4AtomFactory.cpp:233:14 #14 0x60e27d in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4ContainerAtom.cpp:194:12 #15 0x60d6ee in AP4_ContainerAtom::AP4_ContainerAtom(unsigned int, unsigned long long, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4ContainerAtom.cpp:139:5 #16 0x60d6ee in AP4_ContainerAtom::Create(unsigned int, unsigned long long, bool, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4ContainerAtom.cpp:88 #17 0x5d42b2 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4AtomFactory.cpp:796:20 #18 0x5d2922 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4AtomFactory.cpp:233:14 #19 0x61bf3d in AP4_DrefAtom::AP4_DrefAtom(unsigned int, unsigned char, unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4DrefAtom.cpp:84:16 #20 0x61b922 in AP4_DrefAtom::Create(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4DrefAtom.cpp:50:16 #21 0x5d4fd8 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4AtomFactory.cpp:560:20 #22 0x5d2922 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4AtomFactory.cpp:233:14 #23 0x61bf3d in AP4_DrefAtom::AP4_DrefAtom(unsigned int, unsigned char, unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4DrefAtom.cpp:84:16 #24 0x61b922 in AP4_DrefAtom::Create(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4DrefAtom.cpp:50:16 #25 0x5d4fd8 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4AtomFactory.cpp:560:20 #26 0x5d2922 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4AtomFactory.cpp:233:14 #27 0x60e27d in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4ContainerAtom.cpp:194:12 #28 0x60d6ee in AP4_ContainerAtom::AP4_ContainerAtom(unsigned int, unsigned long long, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4ContainerAtom.cpp:139:5 #29 0x60d6ee in AP4_ContainerAtom::Create(unsigned int, unsigned long long, bool, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4ContainerAtom.cpp:88 #30 0x5d42b2 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4AtomFactory.cpp:796:20 #31 0x5d2922 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4AtomFactory.cpp:233:14 #32 0x61bf3d in AP4_DrefAtom::AP4_DrefAtom(unsigned int, unsigned char, unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4DrefAtom.cpp:84:16 SUMMARY: AddressSanitizer: heap-buffer-overflow /home/natalie/Downloads/Bento4-master/Source/C++/Core/Ap4Utils.h:78:22 in AP4_BytesToUInt32BE(unsigned char const*) Shadow bytes around the buggy address: 0x0c0e7fff81e0: 00 00 00 00 00 00 00 00 00 00 fa fa fa fa 00 00 0x0c0e7fff81f0: 00 00 00 00 00 00 00 00 fa fa fa fa 00 00 00 00 0x0c0e7fff8200: 00 00 00 00 00 00 fa fa fa fa 00 00 00 00 00 00 0x0c0e7fff8210: 00 00 00 00 fa fa fa fa 00 00 00 00 00 00 00 00 0x0c0e7fff8220: 00 fa fa fa fa fa 00 00 00 00 00 00 00 00 00 00 =>0x0c0e7fff8230:[fa]fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c0e7fff8240: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c0e7fff8250: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c0e7fff8260: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c0e7fff8270: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c0e7fff8280: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa Shadow byte legend (one shadow byte represents 8 application bytes): Addressable: 00 Partially addressable: 01 02 03 04 05 06 07 Heap left redzone: fa Freed heap region: fd Stack left redzone: f1 Stack mid redzone: f2 Stack right redzone: f3 Stack after return: f5 Stack use after scope: f8 Global redzone: f9 Global init order: f6 Poisoned by user: f7 Container overflow: fc Array cookie: ac Intra object redzone: bb ASan internal: fe Left alloca redzone: ca Right alloca redzone: cb Shadow gap: cc ==21708==ABORTING # Information provided by crashwalk ---CRASH SUMMARY--- Filename: psym-crashes/id:000382,sig:06,src:005991,op:flip1,pos:3837 SHA1: 5c2e8caa3c148bb05c322da182cadbc2072fb82e Classification: UNKNOWN Hash: f937118ff00ccff334602ba62160ed8c.1396527138624a36d1c970a348bf5074 Command: ./mp42aac psym-crashes/id:000382,sig:06,src:005991,op:flip1,pos:3837 /tmp/out.aac Faulting Frame: AP4_CttsAtom::AP4_CttsAtom(unsigned int, unsigned char, unsigned int, AP4_ByteStream&) @ 0x00005555555dc14a: in /home/natalie/Desktop/research/Bug/bento4-06c39d9/mp42aac Disassembly: 0x00005555555dc134: mov rcx,QWORD PTR [rbx+0x38] 0x00005555555dc138: lea rsi,[rax*8+0x8] 0x00005555555dc140: xor eax,eax 0x00005555555dc142: nop WORD PTR [rax+rax*1+0x0] 0x00005555555dc148: mov edx,eax => 0x00005555555dc14a: mov edx,DWORD PTR [rbp+rdx*1+0x0] 0x00005555555dc14e: bswap edx 0x00005555555dc150: mov DWORD PTR [rcx+rax*1],edx 0x00005555555dc153: lea edx,[rax+0x4] 0x00005555555dc156: mov edx,DWORD PTR [rbp+rdx*1+0x0] Stack Head (105 entries): AP4_CttsAtom::AP4_CttsAto @ 0x00005555555dc14a: in /home/natalie/Desktop/research/Bug/bento4-06c39d9/mp42aac AP4_CttsAtom::Create(unsi @ 0x00005555555dc286: in /home/natalie/Desktop/research/Bug/bento4-06c39d9/mp42aac AP4_AtomFactory::CreateAt @ 0x00005555555cb9c8: in /home/natalie/Desktop/research/Bug/bento4-06c39d9/mp42aac AP4_AtomFactory::CreateAt @ 0x00005555555cdb9c: in /home/natalie/Desktop/research/Bug/bento4-06c39d9/mp42aac AP4_ContainerAtom::ReadCh @ 0x00005555555db882: in /home/natalie/Desktop/research/Bug/bento4-06c39d9/mp42aac AP4_ContainerAtom::Create @ 0x00005555555dbbfd: in /home/natalie/Desktop/research/Bug/bento4-06c39d9/mp42aac AP4_AtomFactory::CreateAt @ 0x00005555555cb892: in /home/natalie/Desktop/research/Bug/bento4-06c39d9/mp42aac AP4_AtomFactory::CreateAt @ 0x00005555555cdb9c: in /home/natalie/Desktop/research/Bug/bento4-06c39d9/mp42aac AP4_DrefAtom::AP4_DrefAto @ 0x00005555555df391: in /home/natalie/Desktop/research/Bug/bento4-06c39d9/mp42aac AP4_DrefAtom::Create(unsi @ 0x00005555555df47e: in /home/natalie/Desktop/research/Bug/bento4-06c39d9/mp42aac AP4_AtomFactory::CreateAt @ 0x00005555555cb8c7: in /home/natalie/Desktop/research/Bug/bento4-06c39d9/mp42aac AP4_AtomFactory::CreateAt @ 0x00005555555cdb9c: in /home/natalie/Desktop/research/Bug/bento4-06c39d9/mp42aac AP4_ContainerAtom::ReadCh @ 0x00005555555db882: in /home/natalie/Desktop/research/Bug/bento4-06c39d9/mp42aac AP4_ContainerAtom::Create @ 0x00005555555dbbfd: in /home/natalie/Desktop/research/Bug/bento4-06c39d9/mp42aac AP4_AtomFactory::CreateAt @ 0x00005555555cb892: in /home/natalie/Desktop/research/Bug/bento4-06c39d9/mp42aac AP4_AtomFactory::CreateAt @ 0x00005555555cdb9c: in /home/natalie/Desktop/research/Bug/bento4-06c39d9/mp42aac Registers: rax=0x00000000000091e0 rbx=0x0000555555657dd0 rcx=0x00007ffbf7a55010 rdx=0x00000000000091e0 rsi=0x0000000400000050 rdi=0x0000555555652480 rbp=0x0000555555657e20 rsp=0x00007fffffffb220 r8=0x0000000000000050 r9=0x0000000000000000 r10=0x0000000000000022 r11=0x00007ffff7d93be0 r12=0x00005555556535a0 r13=0x0000555555638208 r14=0x00007ffbf7a55010 r15=0x00005555556535a0 rip=0x00005555555dc14a efl=0x0000000000010202 cs=0x0000000000000033 ss=0x000000000000002b ds=0x0000000000000000 es=0x0000000000000000 fs=0x0000000000000000 gs=0x0000000000000000 Extra Data: Description: Access violation on source operand Short description: SourceAv (19/22) Explanation: The target crashed on an access violation at an address matching the source operand of the current instruction. This likely indicates a read access violation. ---END SUMMARY---
Heap buffer overflow in AP4_CttsAtom::AP4_CttsAtom(unsigned int, unsigned char, unsigned int, AP4_ByteStream&)
https://api.github.com/repos/axiomatic-systems/Bento4/issues/507/comments
2
2020-05-16T07:46:13Z
2020-05-22T00:41:43Z
https://github.com/axiomatic-systems/Bento4/issues/507
619,406,496
507
[ "axiomatic-systems", "Bento4" ]
First off, I know this is a dumb question. I'm new to the need for encryption on my HLS streams. What is the KID, I know its the Key ID. When I generate a key using openssl, is using openssl for the key even possible, is it s 3rd party service to provide the key? thanks in advance, how do I get this KID?
HLS encryption
https://api.github.com/repos/axiomatic-systems/Bento4/issues/506/comments
0
2020-05-13T20:51:31Z
2020-05-14T14:50:13Z
https://github.com/axiomatic-systems/Bento4/issues/506
617,746,451
506
[ "axiomatic-systems", "Bento4" ]
This file has a meta item ©cmt, whose value is `{"source":"m2u"}`. The output json is ``` ... 1484 { 1485 "name":".cmt", 1486 "header_size":8, 1487 "size":40, 1488 "children":[ 1489 { 1490 "name":"data", 1491 "header_size":8, 1492 "size":32, 1493 "type":1, 1494 "lang":0, 1495 "value":"{"source":"m2u"}" 1496 }] 1497 }, ... ``` ![image](https://user-images.githubusercontent.com/17777977/81690008-5ffdf580-948d-11ea-823c-6cb3d9f0ffca.png) And the following command failed: ``` /usr/local/services/bento4-1.0/bin/mp4hls --hls-version=3 --audio-format=ts --master-playlist-name=adp.10.m3u8 --media-playlist-name=media.m3u8 file1.mp4 file2.mp4 file3.mp4 -o output Traceback (most recent call last): File "/usr/local/services/bento4-1.0/bin/../utils/mp4-hls.py", line 657, in <module> main() File "/usr/local/services/bento4-1.0/bin/../utils/mp4-hls.py", line 647, in main OutputHls(options, media_sources) File "/usr/local/services/bento4-1.0/bin/../utils/mp4-hls.py", line 254, in OutputHls AnalyzeSources(options, media_sources) File "/usr/local/services/bento4-1.0/bin/../utils/mp4-hls.py", line 102, in AnalyzeSources mp4_file = Mp4File(Options, media_source) File "/usr/local/services/bento4-1.0/utils/mp4utils.py", line 520, in __init__ self.tree = json.loads(json_dump, strict=False, object_pairs_hook=collections.OrderedDict) File "/usr/local/services/python/lib/python2.7/json/__init__.py", line 352, in loads return cls(encoding=encoding, **kw).decode(s) File "/usr/local/services/python/lib/python2.7/json/decoder.py", line 364, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/local/services/python/lib/python2.7/json/decoder.py", line 380, in raw_decode obj, end = self.scan_once(s, idx) ValueError: Expecting , delimiter: line 1495 column 24 (char 65194) ```
mp4dump outputs illegal json string
https://api.github.com/repos/axiomatic-systems/Bento4/issues/505/comments
2
2020-05-12T12:26:49Z
2020-05-18T12:25:58Z
https://github.com/axiomatic-systems/Bento4/issues/505
616,615,438
505
[ "axiomatic-systems", "Bento4" ]
how can i demux a subtitle like this? In Bento4 is there some help I can use to do this? ``` General Complete name : SUB_0.mp4 Format : MPEG-4 Format profile : Base Media Codec ID : iso5 (avc1/iso5/dsms/msix/dash/cmfc) File size : 52.1 KiB Duration : 11 min 11 s Overall bit rate : 635 b/s Encoded date : UTC 2020-04-05 22:51:46 Tagged date : UTC 2020-04-05 22:51:46 Text ID : 7 Format : wvtt Codec ID : wvtt Duration : 11 min 11 s Bit rate : 291 b/s Stream size : 23.9 KiB (46%) Title : wvtt Language : English Forced : No Encoded date : UTC 2020-04-05 22:51:46 Tagged date : UTC 2020-04-05 22:51:46 ``` > > > **mp4info SUB_0.mp4** ``` File: major brand: iso5 minor version: 200 compatible brand: avc1 compatible brand: iso5 compatible brand: dsms compatible brand: msix compatible brand: dash compatible brand: cmfc fast start: yes Movie: duration: -1 ms time scale: 1000 fragments: yes Found 1 Tracks Track 1: flags: 7 ENABLED IN-MOVIE IN-PREVIEW id: 7 type: Text duration: 0 ms language: eng media: sample count: 0 timescale: 48000 duration: 0 (media timescale units) duration: 0 (ms) bitrate (computed): 0.291 Kbps sample count with fragments: 394 duration with fragments: 32248187 duration with fragments: 671837 (ms) Sample Description 0 Coding: wvtt ```
demux subtitle from a mpd
https://api.github.com/repos/axiomatic-systems/Bento4/issues/504/comments
0
2020-05-11T02:29:36Z
2020-05-13T02:57:31Z
https://github.com/axiomatic-systems/Bento4/issues/504
615,543,907
504
[ "axiomatic-systems", "Bento4" ]
While building a Dash validator, we noted that bento is not correctly encrypting hevc content when using cbc1 scheme. The problem seems to apply both to non-VCL and VCL Nalus . This is how to replicate (only for VCL nalus) ffmpeg -f lavfi -i testsrc=size=352x288 -t 30 -g 25 -pix_fmt yuv420p -vcodec libx265 -movflags empty_moov+default_base_moof+frag_keyframe testsrc.mp4 Bento4-SDK-1-6-0-634.x86_64-unknown-linux/bin/mp4dash -o bento-hevc-sample-cbc1 -f --encryption-key=000102030405060708090a0b0c0d0e0f:75c5709c3f058d4f3680e8c2ad47d8ec:d5fbd6b82ed93e4ef98ae40931ee33b7 --encryption-cenc-scheme=cbc1 testsrc.mp4 We noted the problem also on SPS / PPS / VPS, but in another setup. Hope I'm not wrong....
Non compliant Cbc1 encryption of HEVC files (Encryption applied to NALU portions which must be in the clear)
https://api.github.com/repos/axiomatic-systems/Bento4/issues/503/comments
1
2020-05-07T12:43:04Z
2020-05-08T00:07:54Z
https://github.com/axiomatic-systems/Bento4/issues/503
614,027,755
503
[ "axiomatic-systems", "Bento4" ]
I've recently found on my hard drive some (10) mp4 files that I copied from my android phone (recorded with it) that are either 2,83GB or 6,63GB. I really don't know what caused these file sizes (maybe a virus, antivirus doesn't find anything strange). dumping the information I can see typical atoms but at the end there are strange "no names" atoms, represented with [...] (three dots), other software puts direcly no name to them. ``` [mdat] size=16+26488377 [....] size=8+1966620317 [....] size=16+4843859375 ``` I would like to use mp4edit to remove that strange empty (all zeroes) atoms, but it says that ... is invalid atom. How can I do it? Edit, i tried (and all failed with ERROR: atom not found): mp4edit.exe --remove "" mp4edit.exe --remove [...] mp4edit.exe --remove ... mp4edit.exe --remove [3] (third item) Edit2: For now what I did is that I run mp4fragment with input and output and no other argument over all the files and it seems it copied audio and video without fragmenting. I'm keeping original files just in case I'm able to delete those strange atoms.
Huge files containing atoms without name (..., three dots)
https://api.github.com/repos/axiomatic-systems/Bento4/issues/502/comments
2
2020-05-04T18:24:00Z
2020-05-05T05:33:44Z
https://github.com/axiomatic-systems/Bento4/issues/502
612,074,925
502
[ "axiomatic-systems", "Bento4" ]
https://github.com/axiomatic-systems/Bento4/blob/master/Source/Python/utils/mp4-dash.py I believe that clearkey option is not checked for adding content protection. Line 450 and line 506 : ``` # setup content protection if options.encryption_key or options.marlin or options.playready or options.widevine: AddContentProtection(options, adaptation_set, video_tracks, all_audio_tracks + all_video_tracks) ``` isn't the check for options.clearkey missing here? ContentProtection element is not being added to the mpd when I run mp4dash with clearkey option. Please let me know If I am missing out something here!
mp4dash.py : No content protection setup for clearkey?
https://api.github.com/repos/axiomatic-systems/Bento4/issues/501/comments
2
2020-05-04T06:05:16Z
2020-05-18T09:32:16Z
https://github.com/axiomatic-systems/Bento4/issues/501
611,625,025
501
[ "axiomatic-systems", "Bento4" ]
I'm getting a strange error when I attempt to dash an MP4 file. I encoded it with ffmpeg and then fragmented it with `mp4fragment big-buck-bunny-av1-512.mp4 big-buck-bunny-av1-512-frag.mp4` which gave the output: > found regular I-frame interval: 73 frames (at 24.000 frames per second) But, when I try to dash the file I get an error: ``` mp4dash big-buck-bunny-av1-512-frag.mp4 Parsing media file 1: big-buck-bunny-av1-512-frag.mp4 ERROR: 'width' ``` This happens with several other files as well. I ran into it on Windows and an Ubuntu 18 virtual machine both running Version 2.0.0 r634. Any idea where this error is coming from and how I can work around it?
ERROR: 'width' when running mp4dash
https://api.github.com/repos/axiomatic-systems/Bento4/issues/499/comments
9
2020-05-02T06:28:23Z
2020-12-03T22:06:19Z
https://github.com/axiomatic-systems/Bento4/issues/499
611,118,693
499
[ "axiomatic-systems", "Bento4" ]
I encounter this error when running the following command on MacOS. If I run the same command with the same files from within Bento4's docker container, the command runs successfully. My host machine is running MacOS High Sierra 10.13.4. mp4hls on my host machine is on version `1.2.0 r632`. The docker container is running mp4hls `1.2.0 r630`. Anyone have any idea how to fix this issue? ``` ✗ mp4hls -v -d -f -o output/stream --hls-version 3 --output-single-file \[type=video\]output/video0.mp4.frag \[type=audio,language=eng\]output/audio1.mp4.frag \[+format=webvtt,+language=eng\]output/subtitle2.vtt COMMAND: mp4info --format json --fast output/video0.mp4.frag ['mp4info', '--format', 'json', '--fast', 'output/video0.mp4.frag'] COMMAND: mp4info --format json --fast output/audio1.mp4.frag ['mp4info', '--format', 'json', '--fast', 'output/audio1.mp4.frag'] Parsing media file output/video0.mp4.frag Processing MP4 file output/video0.mp4.frag found 273 segments COMMAND: mp4dump --format json --verbosity 1 output/video0.mp4.frag ['mp4dump', '--format', 'json', '--verbosity', '1', 'output/video0.mp4.frag'] Track ID = 1 Segment Count = 273 Type = video Sample Count = 31213 Average segment bitrate = 4223015 Max segment bitrate = 13980125 Required bandwidth = 6301510 Average segment duration = 4.782145525830257 Parsing media file output/audio1.mp4.frag Processing MP4 file output/audio1.mp4.frag found 651 segments COMMAND: mp4dump --format json --verbosity 1 output/audio1.mp4.frag ['mp4dump', '--format', 'json', '--verbosity', '1', 'output/audio1.mp4.frag'] Track ID = 1 Segment Count = 651 Type = audio Sample Count = 56063 Average segment bitrate = 128733 Max segment bitrate = 133030 Required bandwidth = 131850 Average segment duration = 2.0000162119290437 Processing output/video0.mp4.frag COMMAND: mp42hls --index-filename output/stream/media-1/stream.m3u8 --segment-filename-template output/stream/media-1/media.ts --segment-url-template media.ts --show-info --output-single-file --encryption-key-uri key.bin --audio-track-id 0 output/video0.mp4.frag ['mp42hls', '--index-filename', 'output/stream/media-1/stream.m3u8', '--segment-filename-template', 'output/stream/media-1/media.ts', '--segment-url-template', 'media.ts', '--show-info', '--output-single-file', '--encryption-key-uri', 'key.bin', '--audio-track-id', '0', 'output/video0.mp4.frag'] { "stats": { "duration": 0.000000, "avg_segment_bitrate": 4336767.176728, "max_segment_bitrate": 8478079.828556, "avg_iframe_bitrate": 397872.448864, "max_iframe_bitrate": 2754327.737810, "frame_rate": 0.000000 }, "video": { "codec": "avc1.640829", "width": 1920, "height": 1080 } } Processing output/audio1.mp4.frag COMMAND: mp42hls --index-filename output/stream/audio/aac/eng/stream.m3u8 --segment-filename-template output/stream/audio/aac/eng/media.aac --segment-url-template media.aac --show-info --output-single-file --audio-format packed --encryption-key-uri key.bin --audio-track-id 1 --video-track-id 0 output/audio1.mp4.frag ['mp42hls', '--index-filename', 'output/stream/audio/aac/eng/stream.m3u8', '--segment-filename-template', 'output/stream/audio/aac/eng/media.aac', '--segment-url-template', 'media.aac', '--show-info', '--output-single-file', '--audio-format', 'packed', '--encryption-key-uri', 'key.bin', '--audio-track-id', '1', '--video-track-id', '0', 'output/audio1.mp4.frag'] Traceback (most recent call last): File "/usr/local/Cellar/bento4/1.6.0-632/libexec/Python/utils/mp4utils.py", line 279, in Bento4Command return check_output(cmd) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/subprocess.py", line 395, in check_output **kwargs).stdout File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/subprocess.py", line 487, in run output=stdout, stderr=stderr) subprocess.CalledProcessError: Command '['mp42hls', '--index-filename', 'output/stream/audio/aac/eng/stream.m3u8', '--segment-filename-template', 'output/stream/audio/aac/eng/media.aac', '--segment-url-template', 'media.aac', '--show-info', '--output-single-file', '--audio-format', 'packed', '--encryption-key-uri', 'key.bin', '--audio-track-id', '1', '--video-track-id', '0', 'output/audio1.mp4.frag']' died with <Signals.SIGSEGV: 11>. During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/Cellar/bento4/1.6.0-632/libexec/Python/wrappers/../utils/mp4-hls.py", line 662, in <module> main() File "/usr/local/Cellar/bento4/1.6.0-632/libexec/Python/wrappers/../utils/mp4-hls.py", line 652, in main OutputHls(options, media_sources) File "/usr/local/Cellar/bento4/1.6.0-632/libexec/Python/wrappers/../utils/mp4-hls.py", line 344, in OutputHls ProcessSource(options, audio_track.media_info, out_dir) File "/usr/local/Cellar/bento4/1.6.0-632/libexec/Python/wrappers/../utils/mp4-hls.py", line 239, in ProcessSource **kwargs) File "/usr/local/Cellar/bento4/1.6.0-632/libexec/Python/utils/mp4utils.py", line 310, in Mp42Hls return Bento4Command(options, 'mp42hls', input_filename, *args, **kwargs) File "/usr/local/Cellar/bento4/1.6.0-632/libexec/Python/utils/mp4utils.py", line 289, in Bento4Command raise Exception(message) Exception: binary tool failed with error -11 - ['mp42hls', '--index-filename', 'output/stream/audio/aac/eng/stream.m3u8', '--segment-filename-template', 'output/stream/audio/aac/eng/media.aac', '--segment-url-template', 'media.aac', '--show-info', '--output-single-file', '--audio-format', 'packed', '--encryption-key-uri', 'key.bin', '--audio-track-id', '1', '--video-track-id', '0', 'output/audio1.mp4.frag'] ```
Exception: binary tool failed with error -11 when running mp4hls on MacOS
https://api.github.com/repos/axiomatic-systems/Bento4/issues/498/comments
1
2020-05-01T16:10:18Z
2020-05-01T23:22:36Z
https://github.com/axiomatic-systems/Bento4/issues/498
610,831,021
498
[ "axiomatic-systems", "Bento4" ]
I have a DRM + mpeg fragmented mp4 file video file with mpd-file but am really new to this and I can't use mpdash to do any stuff because the documentation is not deeply detailed. Someone should pleas put me through the usage of mp4dash thanks ❤❤ here is the link of the files: https://drive.google.com/open?id=1CwcshHWjPHKQ9KbNN78xL7HDOgjhshME here is my mail: iamvictorm96@gmail.com
help me out; Dash fragmented mp4 with mpeg cenc with key
https://api.github.com/repos/axiomatic-systems/Bento4/issues/495/comments
0
2020-04-29T10:39:44Z
2020-04-29T10:39:44Z
https://github.com/axiomatic-systems/Bento4/issues/495
608,951,852
495
[ "axiomatic-systems", "Bento4" ]
Have been facing the issue of how to use bento4 on my Workstation but i couldn't find any helpful instruction on how to go through it. I ![Annotation 2020-04-28 111717](https://user-images.githubusercontent.com/32099649/80494110-322d9280-895e-11ea-9bbd-e66704e54ae8.png) ![Annotation 2020-04-28 111718](https://user-images.githubusercontent.com/32099649/80494120-35c11980-895e-11ea-9774-d4415e55bac8.png) ![Annotation 2020-04-28 111719](https://user-images.githubusercontent.com/32099649/80494125-378add00-895e-11ea-83cb-3d7cce1d2672.png) ![Annotation 2020-04-28 112215](https://user-images.githubusercontent.com/32099649/80494132-39ed3700-895e-11ea-8780-572233525e02.png) really need assistance here, someone should please come to my aid 💕
HOW TO SET UP BENTO4 ON WINDOWS 10 X64 AFTER SUCCESSFUL BUILD WITH C++
https://api.github.com/repos/axiomatic-systems/Bento4/issues/494/comments
0
2020-04-28T13:42:42Z
2020-04-28T13:42:42Z
https://github.com/axiomatic-systems/Bento4/issues/494
608,329,933
494
[ "axiomatic-systems", "Bento4" ]
Hello! Can support for CBCS be added to the mp4decrypt tool? I use this a lot for validation of CTR CENC content, but would like to use it for CBCS too :)
cbcs support for mp4decrypt?
https://api.github.com/repos/axiomatic-systems/Bento4/issues/493/comments
5
2020-04-27T21:45:58Z
2020-05-06T22:23:24Z
https://github.com/axiomatic-systems/Bento4/issues/493
607,875,177
493
[ "axiomatic-systems", "Bento4" ]
1. mp4fragment an mp4 file with an ac3-Audio stream in it. 2. mp4dash.bat audio.mp4 3. get the Error: `ERROR: Expecting property name enclosed in double quotes: line 44 column 3 (char 841)` Whenever I try to put in an AC3 Audio File (in an mp4 Container) this Python error pops up I tried it with various different files. And if there is no ac3-Audio in them everything is working fine. I tried Python 3.8.2 (32bit) and (64bit). I also tried runnin mp4dash.py directly giving the same error. Bento4 mp4-dash.py VERSION=2.0.0-632 Windows 10 Pro 64bit ``` File: major brand: isom minor version: 200 compatible brand: isom compatible brand: iso2 compatible brand: mp41 compatible brand: iso5 fast start: yes Movie: duration: 2531264 ms time scale: 1000 fragments: yes Found 1 Tracks Track 1: flags: 7 ENABLED IN-MOVIE IN-PREVIEW id: 1 type: Audio duration: 2531264 ms language: ger media: sample count: 0 timescale: 48000 duration: 0 (media timescale units) duration: 0 (ms) bitrate (computed): 384.000 Kbps sample count with fragments: 79102 duration with fragments: 121500672 duration with fragments: 2531264 (ms) Sample Description 0 Coding: ac-3 (Dolby Digital (AC-3)) Sample Rate: 48000 Sample Size: 16 Channels: 2 AC-3 Data Rate: 384 AC-3 Stream: fscod = 0 bsid = 8 bsmod = 0 acmod = 7 lfeon = 1 AC-3 dac3 payload: [103dc0] ```
mp4dash.bat Python Error for AC-3 Audio in mp4 Container
https://api.github.com/repos/axiomatic-systems/Bento4/issues/490/comments
0
2020-04-21T16:57:09Z
2020-04-25T01:34:13Z
https://github.com/axiomatic-systems/Bento4/issues/490
604,134,032
490
[ "axiomatic-systems", "Bento4" ]
Hello there, Does the tool `mp4encrypt` support SAMPLE-AES, like its' counterpart `mp42hls`? I came across [this](https://github.com/axiomatic-systems/Bento4/issues/63) issue where [passing custom fields to mp4encrypt](https://github.com/axiomatic-systems/Bento4/issues/63#issuecomment-257175758) allows for clear lead to be enabled in encrypted mp4s, and I ask if a similar option exists to toggle on SAMPLE-AES via such an option? Thanks, Brainiarc7.
[Question] A query on mp4encrypt: Support for SAMPLE-AES
https://api.github.com/repos/axiomatic-systems/Bento4/issues/489/comments
3
2020-04-21T09:05:14Z
2020-04-27T15:44:15Z
https://github.com/axiomatic-systems/Bento4/issues/489
603,834,799
489
[ "axiomatic-systems", "Bento4" ]
I've been trying to rebuild the MOOV / Movie header for an Encrypted stream through bento4, it works fine with AVC context but with HEVC it seems the Codec Private Data doesn't parse correctly it seems and the hvcC configuration seems seems to be all wrong. The chroma depth and luma depth are wrong and the Profile Compatibility and Constraint are also incorrect. The codec private data is this `0000000140010C01FFFF01600000030090000003000003009695940900000001420101016000000300900000030000030096A001E020021C596565924C2F01520202020800001F480002EE0040000000014401C172B66240` I have no issues at all using //AP4_AvccAtom* with FourCC / AVC1 codec private data, it builds perfectly fine however when using //AP4_HvccAtom* no colour space is added to the stream, it's not visible in mediainfo and neither is the HEVC Profile and Level. Not sure what the issue is but would be great if someone could investigate this? mp4dumps below what it should look like aka valid initialization [encv] size=8+316 data_reference_index = 1 width = 3840 height = 2160 compressor = HEVC Coding [hvcC] size=8+114 Configuration Version = 1 Profile Space = 0 Profile = Main Tier = 0 Profile Compatibility = 60000000 Constraint = 900000000000 Level = 150 Min Spatial Segmentation = 0 Parallelism Type = 0 Chroma Format = 1 Chroma Depth = 8 Luma Depth = 8 Average Frame Rate = 0 Constant Frame Rate = 0 Number Of Temporal Layers = 1 Temporal Id Nested = 1 NALU Length Size = 4 what the one built with bento4 looks like aka invalid initialization: [encv] size=8+279 data_reference_index = 1 width = 3840 height = 2160 compressor = [hvcC] size=8+91 Configuration Version = 1 Profile Space = 0 Profile = Main Tier = 0 Profile Compatibility = c01ffe1 Constraint = 1840010c01 Level = 255 Min Spatial Segmentation = 3841 Parallelism Type = 0 Chroma Format = 0 Chroma Depth = 11 Luma Depth = 8 Average Frame Rate = 144 Constant Frame Rate = 0 Number Of Temporal Layers = 0 Temporal Id Nested = 0 NALU Length Size = 1 mp4info dumps: valid: Sample Description 0 [ENCRYPTED] Coding: encv Scheme Type: piff Scheme Version: 65537 Scheme URI: Coding: hev1 (H.265) Width: 3840 Height: 2160 Depth: 24 HEVC Profile Space: 0 HEVC Profile: 1 (Main) HEVC Profile Compat: 60000000 HEVC Level: 5.0 HEVC Tier: 0 HEVC Chroma Format: 1 (4:2:0) HEVC Chroma Bit Depth: 8 HEVC Luma Bit Depth: 8 HEVC Average Frame Rate: 0 HEVC Constant Frame Rate: 0 HEVC NALU Length Size: 4 HEVC Sequences: { Array Completeness=1 Type=32 (VPS_NUT - Video parameter set) 40010c01ffff016000000300900000030000030096959409 } { Array Completeness=1 Type=33 (SPS_NUT - Sequence parameter set) 420101016000000300900000030000030096a001e020021c596565924c2f01520202020800001f480002ee0040 } { Array Completeness=1 Type=34 (PPS_NUT - Picture parameter set) 4401c172b66240 } Codecs String: hev1.1.6.L150.90 built with bento4 / invalid: Sample Description 0 [ENCRYPTED] Coding: encv Scheme Type: piff Scheme Version: 65537 Scheme URI: Coding: hvc1 (H.265) Width: 3840 Height: 2160 Depth: 0 HEVC Profile Space: 0 HEVC Profile: 1 (Main) HEVC Profile Compat: c01ffe1 HEVC Level: 8.5 HEVC Tier: 0 HEVC Chroma Format: 0 (Monochrome) HEVC Chroma Bit Depth: 11 HEVC Luma Bit Depth: 8 HEVC Average Frame Rate: 144 HEVC Constant Frame Rate: 0 HEVC NALU Length Size: 1 HEVC Sequences: Codecs String: hvc1.1.87FF8030.L255.1840010c01 Thanks
Rebuilding Initialization segment for HEVC stream fails
https://api.github.com/repos/axiomatic-systems/Bento4/issues/488/comments
1
2020-04-12T17:29:38Z
2020-04-17T19:16:17Z
https://github.com/axiomatic-systems/Bento4/issues/488
598,532,983
488
[ "axiomatic-systems", "Bento4" ]
i am using mp4hls command inside a Java program to encrypt a video file into .m3u8 format using AES-128 encryption and using single segment file. I need to create multiple bit rates from single video file and then encrypt them using AES-128 bit to create m3u8 file so that i can use adaptive bit rate features of HLS Player. Till now i was using mp4HLS command which was taking a single input file and providing output file. Is there a way through which mp4HLS can take single video file as input and create multiple output directories for multiple bit rates and put encrypted files in those directories alongwith m3u8 and other files.. Or do i need to use combination of tools to first create multiple bit rates files and then use mp4HLS to encrypt them..I am using these encrypted files for streaming..
How to create multiple bit rate files using Mp4HLS
https://api.github.com/repos/axiomatic-systems/Bento4/issues/487/comments
1
2020-04-10T18:49:36Z
2020-04-26T00:43:25Z
https://github.com/axiomatic-systems/Bento4/issues/487
598,037,740
487
[ "axiomatic-systems", "Bento4" ]
i have a video. I used mp4info to see the kid, then i used mp4decrypt with 1:kid video.mp4 video2.mp4. Then stuff finish but new video dont work fine, its just a bunch of random colours without sense. What i ate to this tool works?
bento4 dont work for me
https://api.github.com/repos/axiomatic-systems/Bento4/issues/486/comments
3
2020-03-30T05:08:10Z
2020-04-26T00:43:37Z
https://github.com/axiomatic-systems/Bento4/issues/486
589,996,567
486
[ "axiomatic-systems", "Bento4" ]
I read the code, I don't know why but at mp4-dash.py line 766, `all_audio_tracks` is commented, and at line 821, `all_audio_tracks` is used. so it cause a `undefined` error. please check.
mp4dash --hls will cause error
https://api.github.com/repos/axiomatic-systems/Bento4/issues/483/comments
2
2020-03-17T09:45:30Z
2020-03-28T20:27:31Z
https://github.com/axiomatic-systems/Bento4/issues/483
582,884,456
483
[ "axiomatic-systems", "Bento4" ]
delete
CMAF command
https://api.github.com/repos/axiomatic-systems/Bento4/issues/482/comments
0
2020-03-12T05:59:20Z
2020-03-30T07:10:35Z
https://github.com/axiomatic-systems/Bento4/issues/482
579,712,133
482
[ "axiomatic-systems", "Bento4" ]
Bento4-SDK-1-5-1-629.x86_64-unknown-linux **mp4hls --debug --verbose sample-1080p.mp4** Parsing media file sample-1080p.mp4 Processing MP4 file sample-1080p.mp4 found 7 segments COMMAND: /utils/../bin/mp4info --fast --format json sample-1080p.mp4 ['/utils/../bin/mp4info', '--fast', '--format', 'json', 'sample-1080p.mp4'] COMMAND: /utils/../bin/mp4dump --verbosity 1 --format json sample-1080p.mp4 ['/utils/../bin/mp4dump', '--verbosity', '1', '--format', 'json', 'sample-1080p.mp4'] . . . Processing sample-1080p.mp4 COMMAND: /utils/../bin/mp42hls --hls-version 4 --iframe-index-filename output/media-1/iframes.m3u8 --show-info --segment-url-template segment-%d.ts --segment-filename-template output/media-1/segment-%d.ts --index-filename output/media-1/stream.m3u8 --encryption-key-uri key.bin sample-1080p.mp4 ['/utils/../bin/mp42hls', '--hls-version', '4', '--iframe-index-filename', 'output/media-1/iframes.m3u8', '--show-info', '--segment-url-template', 'segment-%d.ts', '--segment-filename-template', 'output/media-1/segment-%d.ts', '--index-filename', 'output/media-1/stream.m3u8', '--encryption-key-uri', 'key.bin', 'sample-1080p.mp4'] Traceback (most recent call last): File "/bin/../utils/mp4-hls.py", line 652, in <module> main() File "/bin/../utils/mp4-hls.py", line 642, in main OutputHls(options, media_sources) File "/bin/../utils/mp4-hls.py", line 307, in OutputHls ProcessSource(options, media_info, out_dir) File "/bin/../utils/mp4-hls.py", line 236, in ProcessSource media_info['info'] = json.loads(json_info, strict=False) File "/usr/lib/python2.7/json/__init__.py", line 352, in loads return cls(encoding=encoding, **kw).decode(s) File "/usr/lib/python2.7/json/decoder.py", line 364, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/lib/python2.7/json/decoder.py", line 382, in raw_decode raise ValueError("No JSON object could be decoded") **ValueError: No JSON object could be decoded** **mp42hls --hls-version 4 --iframe-index-filename output/media-1/iframes.m3u8 --show-info --segment-url-template segment-%d.ts --segment-filename-template output/media-1/segment-%d.ts --index-filename output/media-1/stream.m3u8 --encryption-key-uri key.bin sample-1080p.mp4** { "stats": { "duration": 25.280000, "avg_segment_bitrate": 1428024.126984, "max_segment_bitrate": 1599446.153846, "avg_iframe_bitrate": 54788.571429, "max_iframe_bitrate": 87058.461538, **"frame_rate": -nan** }, "audio": { "codec": "mp4a.40.2" }, "video": { "codec": "avc1.64001E", "width": 720, "height": 480 } }
mp4hls No JSON object could be decoded - mp42hls problem
https://api.github.com/repos/axiomatic-systems/Bento4/issues/480/comments
1
2020-03-05T12:30:37Z
2020-03-28T20:28:18Z
https://github.com/axiomatic-systems/Bento4/issues/480
576,219,372
480
[ "axiomatic-systems", "Bento4" ]
mp4extract -stdout produces carriage return characters on Windows causing different output compared to writing direct to file. $ mp4extract.exe moov vid.mp4 tst.dat; md5sum.exe tst.dat ea20c2c6dd525f126296f99c5ac566ca *tst.dat $ mp4extract.exe moov vid.mp4 -stdout | md5sum.exe ff1b699a5dae29901cf5f4cf00868138 *- On linux matching commands produce the same checksum. Both are (Bento4 Version 1.5.1.0)
mp4extract and CRLF characters on Windows
https://api.github.com/repos/axiomatic-systems/Bento4/issues/479/comments
1
2020-02-16T19:21:01Z
2020-04-26T01:28:51Z
https://github.com/axiomatic-systems/Bento4/issues/479
565,955,006
479
[ "axiomatic-systems", "Bento4" ]
Hi @barbibulle , PR provided python /usr/local/bento4/utils/dash.py --debug --verbose --profiles live --encryption-key **:**:**--encryption-cenc-scheme=cbcs --hls --hls-master-playlist-name 1CBDBB3ACAF62A8F518F57EF921C8523_fmp4.m3u8 --fairplay-key-uri ** --force --use-segment-timeline -o fairplay "Moxion Glass_1080p-fragmented.mp4" "Moxion Glass_1080pHDR(HEVC)-fragmented.mp4" Fails with error Traceback (most recent call last): File "/usr/local/bento4/utils/mp4-dash.py", line 1988, in <module> main() File "/usr/local/bento4/utils/mp4-dash.py", line 1970, in main OutputHls(options, set_attributes, audio_sets, video_sets, subtitles_sets, subtitles_files) File "/usr/local/bento4/utils/mp4-dash.py", line 821, in OutputHls OutputHlsTrack(options, audio_track, all_audio_tracks + all_video_tracks, media_subdir, media_playlist_name, media_file_name) NameError: global name 'all_audio_tracks' is not defined
mp4-dash.py fails when outputting HLS
https://api.github.com/repos/axiomatic-systems/Bento4/issues/477/comments
2
2020-02-12T18:56:48Z
2020-04-26T01:30:44Z
https://github.com/axiomatic-systems/Bento4/issues/477
564,200,075
477
[ "axiomatic-systems", "Bento4" ]
@barbibulle with the latest HEAD calls to mp4-hls.py are failing with the error: `Traceback (most recent call last): File "/usr/local/bento4/utils/mp4-hls.py", line 663, in <module> main() File "/usr/local/bento4/utils/mp4-hls.py", line 642, in main media_sources = [MediaSource(source) for source in args] TypeError: __init__() takes exactly 3 arguments (2 given)` PR with fix: #475
mp4-hls.py fails with media_sources = [MediaSource(source) for source in args]
https://api.github.com/repos/axiomatic-systems/Bento4/issues/476/comments
0
2020-02-12T16:12:10Z
2020-04-26T01:31:28Z
https://github.com/axiomatic-systems/Bento4/issues/476
564,105,578
476
[ "axiomatic-systems", "Bento4" ]
Hi, We're trying to do dash packaging with multi-bitrate video encoding with vp9 and vorbis/libopus codecs. **1. When encoding with one pass** When encoding videos with ffmpeg one pass and doing it's packaging, generated segments doesn't play audio even though audio tracks are present. ``` cvlc https://public.jetstream.video/stage/vp9test_new/156MB_vp9test_opus_singlepass/dash/manifest.mpd Error log : [00007f356c655a40] vorbis decoder error: this bitstream does not contain Vorbis audio data ``` **2. When encoding video with two pass** Once the transcoding is done with **2 pass**, variants are generated and after fragmentation of these variants we're getting below mentioned error while packaging : ``` ERROR: video tracks are not aligned ("File 2#1" differs from File 1#1) ``` **A. Video Encoding with Ffmpeg 2pass :: 360p** ``` ffmpeg -loglevel debug -hwaccel cuda -i 156MB_3.50min.mp4 -hide_banner -s 640x360 -c:v libvpx-vp9 -b:v 1.2M -maxrate 2.4M -bufsize 2.4M -tile-columns 0 -g 250 -pix_fmt yuv420p -color_primaries bt709 -colorspace bt709 -color_range tv -quality good -ar 48000 -c:a libopus -b:a 192k -ac:a 2 -f mp4 -strict -2 -pass 1 -speed 4 -y -passlogfile 156MB_vp9test_360p_opus.mp4 /dev/null && ffmpeg -loglevel debug -hwaccel cuda -i 156MB_3.50min.mp4 -hide_banner -s 640x360 -c:v libvpx-vp9 -b:v 1.2M -maxrate 2.4M -bufsize 2.4M -tile-columns 0 -g 250 -pix_fmt yuv420p -color_primaries bt709 -colorspace bt709 -color_range tv -quality good -ar 48000 -c:a libopus -b:a 192k -ac:a 2 -f mp4 -strict -2 -pass 2 -speed 2 -y -passlogfile 156MB_vp9test_360p_opus.mp4 '156MB_vp9test_360p_opus.mp4' ``` **B. Video Encoding with Ffmpeg 2pass :: 480p** ``` ffmpeg -hwaccel cuda -i 156MB_3.50min.mp4 -hide_banner -s 854x480 -c:v libvpx-vp9 -b:v 2M -maxrate 3.8M -bufsize 3.8M -tile-columns 0 -g 250 -pix_fmt yuv420p -color_primaries bt709 -colorspace bt709 -color_range tv -quality good -ar 48000 -c:a libopus -b:a 192k -ac:a 2 -f mp4 -strict -2 -pass 1 -speed 4 -y -passlogfile 156MB_vp9test_480p_opus.mp4 /dev/null && ffmpeg -hwaccel cuda -i 156MB_3.50min.mp4 -hide_banner -s 854x480 -c:v libvpx-vp9 -b:v 2M -maxrate 3.8M -bufsize 3.8M -tile-columns 0 -g 250 -pix_fmt yuv420p -color_primaries bt709 -colorspace bt709 -color_range tv -quality good -ar 48000 -c:a libopus -b:a 192k -ac:a 2 -f mp4 -strict -2 -pass 2 -speed 2 -y -passlogfile 156MB_vp9test_480p_opus.mp4 '156MB_vp9test_480p_opus.mp4' ``` **C. Fragmentation :: mp4fragment** ``` /opt/bento4/bin/mp4fragment --fragment-duration 10000 --debug 156MB_vp9test_360p_opus.mp4 156MB_vp9test_360p_opus_frag.mp4 /opt/bento4/bin/mp4fragment --fragment-duration 10000 --debug 156MB_vp9test_480p_opus.mp4 156MB_vp9test_480p_opus_frag.mp4 ``` **D. Segmentation :: mp4dash** ``` /opt/bento4/bin/mp4dash -v -d -f -o 156MB_vp9test_opus/dash --mpd-name=manifest.mpd --profiles=live --init-segment=test_init.mp4 --min-buffer-time=1.5 --use-segment-template-number-padding --use-segment-timeline 156MB_vp9test_360p_opus_frag.mp4 156MB_vp9test_480p_opus_frag.mp4 ``` The videos can be downloaded from below location : 1. Source file : https://public.jetstream.video/stage/vp9test_new/156MB_VorbisTest/156MB_3.50min.mp4 2. 360p file with 2 pass : https://public.jetstream.video/stage/vp9test_new/156MB_vp9test_360p_opus.mp4 3. 480p file with 2 pass : https://public.jetstream.video/stage/vp9test_new/156MB_vp9test_480p_opus.mp4 4. 360p file with single pass : https://public.jetstream.video/stage/vp9test_new/156MB_vp9test_360p_opus_singlepass.mp4 5. 480p file with single pass : https://public.jetstream.video/stage/vp9test_new/156MB_vp9test_480p_opus_singlepass.mp4 6. Dash Streaming url from one pass : https://public.jetstream.video/stage/vp9test_new/156MB_vp9test_opus_singlepass/dash/manifest.mpd
Video track alignment and Audio Issue for vp9 videos
https://api.github.com/repos/axiomatic-systems/Bento4/issues/474/comments
2
2020-02-12T11:21:06Z
2020-04-26T01:31:52Z
https://github.com/axiomatic-systems/Bento4/issues/474
563,932,371
474
[ "axiomatic-systems", "Bento4" ]
Hi @barbibulle I'm trying to package a video which have 10 audio tracks in 5 different languages (en, da, no, fi, sv) each having it's stereo (2) and surround (6) track with aac codec. When packaging is done, dash manifest is generated properly but hls playlist file only contains 5 audio track information whereas it should be 10. Video contains following audio tracks ``` { "Audio": [ { "language": "en", "channels": 2, "codec": "aac" }, { "language": "en", "channels": 6, "codec": "aac" }, { "language": "da", "channels": 2, "codec": "aac" }, { "language": "da", "channels": 6, "codec": "aac" }, { "language": "no", "channels": 2, "codec": "aac" }, { "language": "no", "channels": 6, "codec": "aac" }, { "language": "fi", "channels": 2, "codec": "aac" }, { "language": "fi", "channels": 6, "codec": "aac" }, { "language": "sv", "channels": 2, "codec": "aac" }, { "language": "sv", "channels": 6, "codec": "aac" } ] } ``` While debugging I've found `SelectAudioTracks` method groups audio tracks based on codec whereas grouping of such audio tracks should be based on codec as well as number of channels **mp4-hls.py** ``` def SelectAudioTracks(options, media_sources): # select tracks grouped by codec audio_tracks = {} for media_source in media_sources: # pre-process the track metadata for track in media_source.tracks: # track group track.group_id = ComputeCodecName(track.codec_family) # track language remap_language = media_source.spec.get('+language') if remap_language: track.language = remap_language language_name = LanguageNames.get(track.language, track.language) track.language_name = media_source.spec.get('+language_name', language_name).decode('utf-8') # process audio tracks for track in [t for t in media_source.tracks if t.type == 'audio']: group_id = track.group_id group = audio_tracks.get(group_id, []) audio_tracks[group_id] = group if len([x for x in group if x.language == track.language]): continue # only accept one track for each language per group group.append(track) return audio_tracks ``` Here is the generated playlist.m3u8 ``` #EXTM3U #EXT-X-VERSION:5 # Audio #EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="audio_aac",NAME="eng",LANGUAGE="eng",AUTOSELECT=YES,DEFAULT=YES,URI="audio/aac/eng/chunk.m3u8" #EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="audio_aac",NAME="dan",LANGUAGE="dan",AUTOSELECT=YES,URI="audio/aac/dan/chunk.m3u8" #EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="audio_aac",NAME="fin",LANGUAGE="fin",AUTOSELECT=YES,URI="audio/aac/fin/chunk.m3u8" #EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="audio_aac",NAME="nor",LANGUAGE="nor",AUTOSELECT=YES,URI="audio/aac/nor/chunk.m3u8" #EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="audio_aac",NAME="swe",LANGUAGE="swe",AUTOSELECT=YES,URI="audio/aac/swe/chunk.m3u8" # Media Playlists #EXT-X-STREAM-INF:AVERAGE-BANDWIDTH=6486819,BANDWIDTH=8758744,CODECS="avc1.640028,mp4a.40.2",RESOLUTION=1920x1080,AUDIO="audio_aac" media-1/chunk.m3u8 #EXT-X-STREAM-INF:AVERAGE-BANDWIDTH=1478410,BANDWIDTH=2325426,CODECS="avc1.64001F,mp4a.40.2",RESOLUTION=1280x720,AUDIO="audio_aac" media-2/chunk.m3u8 #EXT-X-STREAM-INF:AVERAGE-BANDWIDTH=1126484,BANDWIDTH=1479336,CODECS="avc1.64001E,mp4a.40.2",RESOLUTION=854x480,AUDIO="audio_aac" media-3/chunk.m3u8 #EXT-X-STREAM-INF:AVERAGE-BANDWIDTH=958237,BANDWIDTH=1129349,CODECS="avc1.64001E,mp4a.40.2",RESOLUTION=640x360,AUDIO="audio_aac" media-4/chunk.m3u8 # I-Frame Playlists #EXT-X-I-FRAME-STREAM-INF:AVERAGE-BANDWIDTH=65137,BANDWIDTH=154346,CODECS="avc1.640028",RESOLUTION=1920x1080,URI="media-1/iframes.m3u8" #EXT-X-I-FRAME-STREAM-INF:AVERAGE-BANDWIDTH=12903,BANDWIDTH=32053,CODECS="avc1.64001F",RESOLUTION=1280x720,URI="media-2/iframes.m3u8" #EXT-X-I-FRAME-STREAM-INF:AVERAGE-BANDWIDTH=8532,BANDWIDTH=18625,CODECS="avc1.64001E",RESOLUTION=854x480,URI="media-3/iframes.m3u8" #EXT-X-I-FRAME-STREAM-INF:AVERAGE-BANDWIDTH=6307,BANDWIDTH=12850,CODECS="avc1.64001E",RESOLUTION=640x360,URI="media-4/iframes.m3u8" ``` Need urgent help on this
HLS Packaging Multiple Audio Tracks (Stereo & Surround) with same language and codec
https://api.github.com/repos/axiomatic-systems/Bento4/issues/473/comments
3
2020-02-11T12:44:31Z
2020-06-12T12:41:36Z
https://github.com/axiomatic-systems/Bento4/issues/473
563,182,526
473
[ "axiomatic-systems", "Bento4" ]
Hi, We're trying to do dash packaging with multi-bitrate video encoding with vp9 and vorbis codecs. Once, variants are generated and we do fragmentation of these variants we're getting below mentioned core dump error ``` /opt/bento4_vp9/bin/mp4fragment --fragment-duration 10000 --debug 156MB_vp9test_vorbis_360p.mp4 156MB_vp9test_vorbis_360p_frag.mp4 mp4fragment: Source/C++/Core/Ap4Expandable.cpp:61: AP4_Expandable::AP4_Expandable(AP4_UI32, AP4_Expandable::ClassIdSize, AP4_Size, AP4_Size): Assertion `header_size <= 1+4' failed. Aborted (core dumped) ``` Below are the commands used in entire process : **A. Video Encoding :: Ffmpeg** ``` ffmpeg -i 156MB_3.50min.mp4 -y -hide_banner -map 0:v -s 640x360 -c:v vp9 -b:v 1.2M -maxrate 2.4M -bufsize 2.4M -pix_fmt yuv420p -color_primaries bt709 -colorspace bt709 -color_range tv -g 240 -quality good -speed 2 -map 0:a -ar 48000 -c:a vorbis -b:a:0 192k -ac:a:0 2 -f mp4 -strict -2 156MB_vp9test_vorbis_360p.mp4 ``` **B. Fragmentation :: mp4fragment** ``` /opt/bento4_vp9/bin/mp4fragment --fragment-duration 10000 --debug 156MB_vp9test_vorbis_360p.mp4 156MB_vp9test_vorbis_360p_frag.mp4 ``` The videos can be downloaded from below location : 1. Source file : https://public.jetstream.video/stage/vp9test_new/156MB_VorbisTest/156MB_3.50min.mp4 2. 360p : https://public.jetstream.video/stage/vp9test_new/156MB_VorbisTest/156MB_vp9test_vorbis_360p.mp4 **Note: I've build Bento4 binaries with latest vp9 changes**
Issue in mp4fragment for mp4 files with vorbis audio codec
https://api.github.com/repos/axiomatic-systems/Bento4/issues/472/comments
1
2020-02-06T14:38:06Z
2020-02-08T02:30:11Z
https://github.com/axiomatic-systems/Bento4/issues/472
561,054,327
472
[ "axiomatic-systems", "Bento4" ]
When I use `mp4hls` I get the following error `ERROR: Expecting , delimiter: line 8 column 21 (char 231)` Here is `mp4info` output of my file ```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 2 Tracks Track 1: flags: 7 ENABLED IN-MOVIE IN-PREVIEW id: 1 type: Video duration: 0 ms language: und media: sample count: 0 timescale: 12288 duration: 0 (media timescale units) duration: 0 (ms) bitrate (computed): 153.490 Kbps sample count with fragments: 366 duration with fragments: 187392 duration with fragments: 15250 (ms) display width: 192.000000 display height: 108.000000 Sample Description 0 Coding: avc1 (H.264) Width: 192 Height: 108 Depth: 24 AVC Profile: 77 (Main) AVC Profile Compat: 40 AVC Level: 11 AVC NALU Length Size: 4 AVC SPS: [674d400beca187fde022000003000200000300601e28532c] AVC PPS: [68efbc80] Codecs String: avc1.4D400B Track 2: flags: 7 ENABLED IN-MOVIE IN-PREVIEW id: 2 type: Audio duration: 0 ms language: und media: sample count: 0 timescale: 44100 duration: 0 (media timescale units) duration: 0 (ms) bitrate (computed): 28.877 Kbps sample count with fragments: 589 duration with fragments: 672347 duration with fragments: 15246 (ms) Sample Description 0 Coding: mp4a (MPEG-4 Audio) Stream Type: Audio Object Type: MPEG-4 Audio Max Bitrate: 32000 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: 1 Extension: Object Type: Spectral Band Replication SBR Present: no PS Present: no Sampling Frequency: 0 Sample Rate: 44100 Sample Size: 16 Channels: 2```
mp4hls: Expecting , delimiter
https://api.github.com/repos/axiomatic-systems/Bento4/issues/471/comments
7
2020-02-05T17:52:44Z
2020-04-26T01:32:29Z
https://github.com/axiomatic-systems/Bento4/issues/471
560,533,382
471
[ "axiomatic-systems", "Bento4" ]
Hello, I would like to implement the script mentioned in the following thread: https://github.com/axiomatic-systems/Bento4/issues/259 but I have several doubts: 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 1. content_id, is it provided by a third-party drm service, or is it an arbitrary hexadecimal value? 2. this: --encryption-cenc-scheme = cbcs refers to samples aes encryption? If the answer is yes, I want to know when playing the content, just pass the widevine url to activate for the contracted drm service? In addition, a key.bin file is not necessary to reproduce the content? Well, I don't see any option in mp4dash to create that file as in mp4hls. I appreciate your answers
I ask for help with doubt about DASH + HLS with DRM
https://api.github.com/repos/axiomatic-systems/Bento4/issues/470/comments
39
2020-02-02T02:11:21Z
2021-11-29T06:53:30Z
https://github.com/axiomatic-systems/Bento4/issues/470
558,629,307
470
[ "axiomatic-systems", "Bento4" ]
Hello, I have noticed that the latest version of the bento4 returns invalid frame_rate when the mp4hls is called ``` ..\bin\_mp42hls --hls-version 5 --iframe-index-filename ../_out\media-1\iframes.m3u8 --show-info --encryption-key-format com.apple.streamingkeydelivery --encryption-mode SAMPLE-AES --encryption-key 123 --segment-url-template segment-%d.ts --segment-filename-template ../_out\media-1\segment-%d.ts --encryption-iv-mode fps --index-filename ../_out\media-1\stream.m3u8 --encryption-key-format-versions 1 --encryption-key-uri skd://123 ../_in/sintel_trailer-720p.frag.mp4 { "stats": { "duration": 52.209000, "avg_segment_bitrate": 1255660.291901, "max_segment_bitrate": 1496557.714286, "avg_iframe_bitrate": 2778.842021, "max_iframe_bitrate": 5515.517827, "frame_rate": -1.#IND00 }, "audio": { "codec": "mp4a.40.2" }, "video": { "codec": "avc1.64001F", "width": 1280, "height": 720 } } ``` The python fails to parse this JSON in mp4-hls.py ``` media_info['info'] = json.loads(json_info, strict=False) ``` because it is invalid. The .628's mp4hls doesn't return the frame_rate and works ok.
.629 returns invalid frame_rate which makes the hls encryption fail
https://api.github.com/repos/axiomatic-systems/Bento4/issues/467/comments
2
2020-01-14T11:38:05Z
2020-03-30T07:41:56Z
https://github.com/axiomatic-systems/Bento4/issues/467
549,510,342
467
[ "axiomatic-systems", "Bento4" ]
Hello all! I may be missing something, please, excuse me in advance, but are there any release notes for any of the releases? Thank you.
Release notes
https://api.github.com/repos/axiomatic-systems/Bento4/issues/466/comments
2
2020-01-10T18:12:19Z
2020-05-10T16:46:45Z
https://github.com/axiomatic-systems/Bento4/issues/466
548,219,931
466
[ "axiomatic-systems", "Bento4" ]
I'm having some problem playing back CBCS-encrypted HEVC on Apple devices. The single-segment HEVC asset (uenc.cmfv in the provided ZIP file) is encrypted like so: #!/bin/bash KID=00112233445566778899aabbccddeeff KEY=fee1dff2b7165c53956cfd98f93711cd IV=000102030405060708090a0b0c0d0e0f ./mp4-dash.py -v -d --hls \ --encryption-key=${KID}:${KEY}:${IV} \ --encryption-cenc-scheme=cbcs \ -o enc_hevc \ uenc.cmfv The KID, KEY, and IV seem to be accepted correctly since I see the following in the console output: Key Info for audio/video: KID=00112233445566778899aabbccddeeff, KEY=fee1dff2b7165c53956cfd98f93711cd, IV=000102030405060708090a0b0c0d0e0f I put the key in key.bin and play master.m3u8 from my iPhone. Access log: 192.168.103.18 - - [07/Jan/2020:15:59:28 CET] "GET /master.m3u8 HTTP/1.1" 200 445 http://192.168.98.126:8765/ -> /master.m3u8 192.168.103.18 - - [07/Jan/2020:15:59:28 CET] "GET /video/hev1/media.m3u8 HTTP/1.1" 200 344 http://192.168.98.126:8765/ -> /video/hev1/media.m3u8 192.168.103.18 - - [07/Jan/2020:15:59:29 CET] "GET /video/hev1/init.mp4 HTTP/1.1" 200 860 http://192.168.98.126:8765/ -> /video/hev1/init.mp4 192.168.103.18 - - [07/Jan/2020:15:59:29 CET] "GET /video/hev1/key.bin HTTP/1.1" 200 16 http://192.168.98.126:8765/ -> /video/hev1/key.bin 192.168.103.18 - - [07/Jan/2020:15:59:29 CET] "GET /video/hev1/seg-1.m4s HTTP/1.1" 200 2114710 http://192.168.98.126:8765/ -> /video/hev1/seg-1.m4s The screen remains gray and the video does not play. I made a network capture of the communication, and even though the Ruby web server claims that all 2114710 bytes of seg-1.m4s are streamed, the client actually closes the connection after 860 KB (sending FIN, ACK). I suspect the iOS player either crashes or atleast makes a hard exit. I have included the network capture as ios.pcap in the provided ZIP file. [hevc_cbcs.zip](https://github.com/axiomatic-systems/Bento4/files/4031290/hevc_cbcs.zip) Creating unencrypted HLS output from the provided source file works fine!
iPhone HEVC CBCS playback issue
https://api.github.com/repos/axiomatic-systems/Bento4/issues/465/comments
6
2020-01-07T15:35:25Z
2020-05-13T02:10:39Z
https://github.com/axiomatic-systems/Bento4/issues/465
546,350,670
465
[ "axiomatic-systems", "Bento4" ]
https://github.com/axiomatic-systems/Bento4/blob/8f18fa7bc907997ac40d1c53b795ce05c9c070c3/Source/C%2B%2B/Core/Ap4Utils.cpp#L45 The library uses the AP4_GlobalOptions to have some options like "mpeg-cenc.encryption-layout" in AP4_CencAdvancedSubSampleMapper. The AP4_GlobalOptions is a singleton and it is not thread safe. It limits the library to be used from one thread only (or with thread locking on top of the library) or not change the options at all. It would be better to refactor the code and change AP4_GlobalOptions to be AP4_Options with no static functions. Then pass a separate instance to the AP4_CencEncryptingProcessor constructor or create it inside AP4_CencEncryptingProcessor and expose it through a GetOptions() function. The current solution is also reported by valgrind as a memory leak because of the global list of option entries. (AP4_GlobalOptions::g_Entries) As far as I can see the only place where this class is used is: https://github.com/axiomatic-systems/Bento4/blob/8f18fa7bc907997ac40d1c53b795ce05c9c070c3/Source/C%2B%2B/Core/Ap4CommonEncryption.cpp#L217 The AP4_CencAdvancedSubSampleMapper instance is created in AP4_CencEncryptingProcessor::CreateTrackHandler() so it would not be hard to propagate the new non singleton options instance.
AP4_GlobalOptions is not thread safe hence library is not thread safe
https://api.github.com/repos/axiomatic-systems/Bento4/issues/464/comments
0
2020-01-06T07:01:02Z
2020-01-06T07:18:17Z
https://github.com/axiomatic-systems/Bento4/issues/464
545,573,524
464
[ "axiomatic-systems", "Bento4" ]
Hi, With MP4Box and ffprobe, the ftyp minor-version is listed as File Brand isom - version 512 and Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 respectively. Using mp4dump, I get the following: [ftyp] size=8+24 major_brand = isom minor_version = 200 compatible_brand = isom compatible_brand = iso2 compatible_brand = avc1 compatible_brand = mp41 May I know why the minor_version is shown as hex value? Thanks
Question: Why does mp4dump shows hex value as minor version in ftyp box?
https://api.github.com/repos/axiomatic-systems/Bento4/issues/463/comments
0
2019-12-22T04:54:53Z
2019-12-22T04:54:53Z
https://github.com/axiomatic-systems/Bento4/issues/463
541,407,565
463
[ "axiomatic-systems", "Bento4" ]
./mp42ts $poc out poc [poc1.zip](https://github.com/axiomatic-systems/Bento4/files/3938679/poc1.zip) [poc2.zip](https://github.com/axiomatic-systems/Bento4/files/3938680/poc2.zip) asan output 1 ``` root@ubuntu:/home/tim/Bento4/cmakebuild# ../../Bento4-asan/cmakebuild/mp42ts crashes/test-001.mp4-signalb-0x0 out AddressSanitizer:DEADLYSIGNAL ================================================================= ==4527==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000008 (pc 0x5641267801c3 bp 0x7ffe30da6fb0 sp 0x7ffe30da6fa0 T0) ==4527==The signal is caused by a READ memory access. ==4527==Hint: address points to the zero page. #0 0x5641267801c2 in AP4_Descriptor::GetTag() (/home/tim/Bento4-asan/cmakebuild/mp42ts+0x3971c2) #1 0x5641267802af in AP4_DescriptorFinder::Test(AP4_Descriptor*) const (/home/tim/Bento4-asan/cmakebuild/mp42ts+0x3972af) #2 0x564126780d9c in AP4_List<AP4_Descriptor>::Find(AP4_List<AP4_Descriptor>::Item::Finder const&, AP4_Descriptor*&) const /home/tim/Bento4-asan/Source/C++/Core/Ap4List.h:431 #3 0x56412677fe05 in AP4_DecoderConfigDescriptor::GetDecoderSpecificInfoDescriptor() const /home/tim/Bento4-asan/Source/C++/Core/Ap4DecoderConfigDescriptor.cpp:159 #4 0x564126735776 in AP4_MpegSampleDescription::AP4_MpegSampleDescription(unsigned int, AP4_EsdsAtom*) /home/tim/Bento4-asan/Source/C++/Core/Ap4SampleDescription.cpp:591 #5 0x564126735f95 in AP4_MpegAudioSampleDescription::AP4_MpegAudioSampleDescription(unsigned int, unsigned short, unsigned short, AP4_EsdsAtom*) /home/tim/Bento4-asan/Source/C++/Core/Ap4SampleDescription.cpp:697 #6 0x56412673c990 in AP4_MpegAudioSampleEntry::ToSampleDescription() /home/tim/Bento4-asan/Source/C++/Core/Ap4SampleEntry.cpp:678 #7 0x5641267ddc0f in AP4_StsdAtom::GetSampleDescription(unsigned int) /home/tim/Bento4-asan/Source/C++/Core/Ap4StsdAtom.cpp:181 #8 0x56412676f4e0 in AP4_AtomSampleTable::GetSampleDescription(unsigned int) /home/tim/Bento4-asan/Source/C++/Core/Ap4AtomSampleTable.cpp:207 #9 0x564126745914 in AP4_Track::GetSampleDescription(unsigned int) /home/tim/Bento4-asan/Source/C++/Core/Ap4Track.cpp:445 #10 0x5641267113a0 in main /home/tim/Bento4-asan/Source/C++/Apps/Mp42Ts/Mp42Ts.cpp:563 #11 0x7fd96c6d3b6a in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x26b6a) #12 0x56412670e459 in _start (/home/tim/Bento4-asan/cmakebuild/mp42ts+0x325459) AddressSanitizer can not provide additional info. SUMMARY: AddressSanitizer: SEGV (/home/tim/Bento4-asan/cmakebuild/mp42ts+0x3971c2) in AP4_Descriptor::GetTag() ==4527==ABORTING ``` 2 ``` root@ubuntu:/home/tim/Bento4/cmakebuild# ../../Bento4-asan/cmakebuild/mp42ts crashes/test-001.mp4-signalb-0x4 out AddressSanitizer:DEADLYSIGNAL ================================================================= ==4528==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000008 (pc 0x560f0b6bc1c3 bp 0x7ffc50b88480 sp 0x7ffc50b88470 T0) ==4528==The signal is caused by a READ memory access. ==4528==Hint: address points to the zero page. #0 0x560f0b6bc1c2 in AP4_Descriptor::GetTag() (/home/tim/Bento4-asan/cmakebuild/mp42ts+0x3971c2) #1 0x560f0b6bc2af in AP4_DescriptorFinder::Test(AP4_Descriptor*) const (/home/tim/Bento4-asan/cmakebuild/mp42ts+0x3972af) #2 0x560f0b6bcd9c in AP4_List<AP4_Descriptor>::Find(AP4_List<AP4_Descriptor>::Item::Finder const&, AP4_Descriptor*&) const /home/tim/Bento4-asan/Source/C++/Core/Ap4List.h:431 #3 0x560f0b6c3f1f in AP4_EsDescriptor::GetDecoderConfigDescriptor() const /home/tim/Bento4-asan/Source/C++/Core/Ap4EsDescriptor.cpp:207 #4 0x560f0b671417 in AP4_MpegSampleDescription::AP4_MpegSampleDescription(unsigned int, AP4_EsdsAtom*) /home/tim/Bento4-asan/Source/C++/Core/Ap4SampleDescription.cpp:583 #5 0x560f0b671f95 in AP4_MpegAudioSampleDescription::AP4_MpegAudioSampleDescription(unsigned int, unsigned short, unsigned short, AP4_EsdsAtom*) /home/tim/Bento4-asan/Source/C++/Core/Ap4SampleDescription.cpp:697 #6 0x560f0b678990 in AP4_MpegAudioSampleEntry::ToSampleDescription() /home/tim/Bento4-asan/Source/C++/Core/Ap4SampleEntry.cpp:678 #7 0x560f0b719c0f in AP4_StsdAtom::GetSampleDescription(unsigned int) /home/tim/Bento4-asan/Source/C++/Core/Ap4StsdAtom.cpp:181 #8 0x560f0b6ab4e0 in AP4_AtomSampleTable::GetSampleDescription(unsigned int) /home/tim/Bento4-asan/Source/C++/Core/Ap4AtomSampleTable.cpp:207 #9 0x560f0b681914 in AP4_Track::GetSampleDescription(unsigned int) /home/tim/Bento4-asan/Source/C++/Core/Ap4Track.cpp:445 #10 0x560f0b64d3a0 in main /home/tim/Bento4-asan/Source/C++/Apps/Mp42Ts/Mp42Ts.cpp:563 #11 0x7f5eaef1fb6a in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x26b6a) #12 0x560f0b64a459 in _start (/home/tim/Bento4-asan/cmakebuild/mp42ts+0x325459) AddressSanitizer can not provide additional info. SUMMARY: AddressSanitizer: SEGV (/home/tim/Bento4-asan/cmakebuild/mp42ts+0x3971c2) in AP4_Descriptor::GetTag() ==4528==ABORTING ```
2 segv in mp42ts
https://api.github.com/repos/axiomatic-systems/Bento4/issues/462/comments
0
2019-12-09T09:00:42Z
2019-12-09T09:00:42Z
https://github.com/axiomatic-systems/Bento4/issues/462
534,783,741
462
[ "axiomatic-systems", "Bento4" ]
./mp42ts $poc out poc [test-002.zip](https://github.com/axiomatic-systems/Bento4/files/3938643/test-002.zip) asan output ``` root@ubuntu:/home/tim/Bento4/cmakebuild# ../../Bento4-asan/cmakebuild/mp42ts overflows/test-002.mp4-double_free-idx\:0xffffffff-0x0 out ================================================================= ==2623==ERROR: AddressSanitizer: heap-use-after-free on address 0x604000005458 at pc 0x55e3af247add bp 0x7ffd43666410 sp 0x7ffd43666400 READ of size 8 at 0x604000005458 thread T0 #0 0x55e3af247adc in AP4_Sample::GetOffset() const /home/tim/Bento4-asan/Source/C++/Core/Ap4Sample.h:99 #1 0x55e3af246319 in AP4_LinearReader::Advance(bool) /home/tim/Bento4-asan/Source/C++/Core/Ap4LinearReader.cpp:436 #2 0x55e3af246fa0 in AP4_LinearReader::ReadNextSample(unsigned int, AP4_Sample&, AP4_DataBuffer&) /home/tim/Bento4-asan/Source/C++/Core/Ap4LinearReader.cpp:532 #3 0x55e3af232717 in FragmentedSampleReader::ReadSample(AP4_Sample&, AP4_DataBuffer&) /home/tim/Bento4-asan/Source/C++/Apps/Mp42Ts/Mp42Ts.cpp:149 #4 0x55e3af232aa2 in ReadSample /home/tim/Bento4-asan/Source/C++/Apps/Mp42Ts/Mp42Ts.cpp:181 #5 0x55e3af233787 in WriteSamples /home/tim/Bento4-asan/Source/C++/Apps/Mp42Ts/Mp42Ts.cpp:306 #6 0x55e3af235970 in main /home/tim/Bento4-asan/Source/C++/Apps/Mp42Ts/Mp42Ts.cpp:636 #7 0x7fd67f91ab6a in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x26b6a) #8 0x55e3af232459 in _start (/home/tim/Bento4-asan/cmakebuild/mp42ts+0x325459) 0x604000005458 is located 8 bytes inside of 48-byte region [0x604000005450,0x604000005480) freed by thread T0 here: #0 0x7fd67fdea845 in operator delete(void*, unsigned long) (/lib/x86_64-linux-gnu/libasan.so.5+0x10f845) #1 0x55e3af247c40 in AP4_LinearReader::SampleBuffer::~SampleBuffer() /home/tim/Bento4-asan/Source/C++/Core/Ap4LinearReader.h:104 #2 0x55e3af2466f5 in AP4_LinearReader::Advance(bool) /home/tim/Bento4-asan/Source/C++/Core/Ap4LinearReader.cpp:464 #3 0x55e3af246fa0 in AP4_LinearReader::ReadNextSample(unsigned int, AP4_Sample&, AP4_DataBuffer&) /home/tim/Bento4-asan/Source/C++/Core/Ap4LinearReader.cpp:532 #4 0x55e3af232717 in FragmentedSampleReader::ReadSample(AP4_Sample&, AP4_DataBuffer&) /home/tim/Bento4-asan/Source/C++/Apps/Mp42Ts/Mp42Ts.cpp:149 #5 0x55e3af232aa2 in ReadSample /home/tim/Bento4-asan/Source/C++/Apps/Mp42Ts/Mp42Ts.cpp:181 #6 0x55e3af233927 in WriteSamples /home/tim/Bento4-asan/Source/C++/Apps/Mp42Ts/Mp42Ts.cpp:317 #7 0x55e3af235970 in main /home/tim/Bento4-asan/Source/C++/Apps/Mp42Ts/Mp42Ts.cpp:636 #8 0x7fd67f91ab6a in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x26b6a) previously allocated by thread T0 here: #0 0x7fd67fde917f in operator new(unsigned long) (/lib/x86_64-linux-gnu/libasan.so.5+0x10e17f) #1 0x55e3af245fa2 in AP4_LinearReader::Advance(bool) /home/tim/Bento4-asan/Source/C++/Core/Ap4LinearReader.cpp:424 #2 0x55e3af246fa0 in AP4_LinearReader::ReadNextSample(unsigned int, AP4_Sample&, AP4_DataBuffer&) /home/tim/Bento4-asan/Source/C++/Core/Ap4LinearReader.cpp:532 #3 0x55e3af232717 in FragmentedSampleReader::ReadSample(AP4_Sample&, AP4_DataBuffer&) /home/tim/Bento4-asan/Source/C++/Apps/Mp42Ts/Mp42Ts.cpp:149 #4 0x55e3af232aa2 in ReadSample /home/tim/Bento4-asan/Source/C++/Apps/Mp42Ts/Mp42Ts.cpp:181 #5 0x55e3af233927 in WriteSamples /home/tim/Bento4-asan/Source/C++/Apps/Mp42Ts/Mp42Ts.cpp:317 #6 0x55e3af235970 in main /home/tim/Bento4-asan/Source/C++/Apps/Mp42Ts/Mp42Ts.cpp:636 #7 0x7fd67f91ab6a in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x26b6a) SUMMARY: AddressSanitizer: heap-use-after-free /home/tim/Bento4-asan/Source/C++/Core/Ap4Sample.h:99 in AP4_Sample::GetOffset() const Shadow bytes around the buggy address: 0x0c087fff8a30: fa fa fd fd fd fd fd fa fa fa fd fd fd fd fd fd 0x0c087fff8a40: fa fa fd fd fd fd fd fa fa fa fd fd fd fd fd fd 0x0c087fff8a50: fa fa fd fd fd fd fd fa fa fa fd fd fd fd fd fd 0x0c087fff8a60: fa fa fd fd fd fd fd fa fa fa fd fd fd fd fd fd 0x0c087fff8a70: fa fa fd fd fd fd fd fa fa fa fd fd fd fd fd fd =>0x0c087fff8a80: fa fa fd fd fd fd fd fa fa fa fd[fd]fd fd fd fd 0x0c087fff8a90: fa fa fd fd fd fd fd fa fa fa fa fa fa fa fa fa 0x0c087fff8aa0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c087fff8ab0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c087fff8ac0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c087fff8ad0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa Shadow byte legend (one shadow byte represents 8 application bytes): Addressable: 00 Partially addressable: 01 02 03 04 05 06 07 Heap left redzone: fa Freed heap region: fd Stack left redzone: f1 Stack mid redzone: f2 Stack right redzone: f3 Stack after return: f5 Stack use after scope: f8 Global redzone: f9 Global init order: f6 Poisoned by user: f7 Container overflow: fc Array cookie: ac Intra object redzone: bb ASan internal: fe Left alloca redzone: ca Right alloca redzone: cb Shadow gap: cc ==2623==ABORTING root@ubuntu:/home/tim/Bento4/cmakebuild# ```
use after free in Ap4Sample.h
https://api.github.com/repos/axiomatic-systems/Bento4/issues/461/comments
0
2019-12-09T08:53:39Z
2019-12-09T08:53:39Z
https://github.com/axiomatic-systems/Bento4/issues/461
534,780,352
461
[ "axiomatic-systems", "Bento4" ]
Hello, I am new using bento4, so far I have been able to convert a .mp4 video to hsl with .ts fragments using bento4, in addition to that I have managed to encrypt it with Aes sample, but the reason for my query is that I wish to convert that same video With the same command that I am using in several video qualities: 720p, 480p, 360p, I have reviewed the bento4 page but I cannot find a command that can help me with this. I found this on the web: mp4hls --output-single-file video_00500.mp4 video_00800.mp4 video_01100.mp4 But it's very ambiguous for me, I don't know if it's what I'm looking to do, nor do I know how to do it. so any help or guide you can illustrate, I would appreciate
help! I wish to convert several video qualities: 720p, 480p, 360p
https://api.github.com/repos/axiomatic-systems/Bento4/issues/460/comments
0
2019-12-08T17:08:58Z
2019-12-08T17:08:58Z
https://github.com/axiomatic-systems/Bento4/issues/460
534,571,359
460
[ "axiomatic-systems", "Bento4" ]
I'm having to insert a 'pssh' box into 'moof' box of each fragment of fMP4. Is there a way to do it using mp4encrypt or mp4edit ? I tried the following mp4edit command to insert 'pssh' from an external file. _./mp4edit --insert moof/pssh:pssh.extracted input.m4v output.m4v_ But the above command inserted a new 'moof' (with 'pssh') in addition to the existing 'moof' (instead of inserting 'pssh' into the existing 'moof' ) [ See a part of mp4dump output below ] _[moof] size=8+70 [pssh] size=12+58, flags=3e system_id = [70 73 73 68 00 00 00 00 ed ef 8b a9 79 d6 4a ce] data_size = 0 [moof] size=8+3925 [mfhd] size=12+4 sequence number = 467542 [traf] size=8+3901 [tfhd] size=12+4, flags=20000 track ID = 1 [tfdt] size=12+8, version=1 base media decode time = 28052464440003 [trun] size=12+1448, flags=f01 sample count = 90 data offset = 3941 [sdtp] size=8+94 [saiz] size=12+95 default sample info size = 0 sample count = 90 [saio] size=12+8 entry count = 1 [senc] size=12+2164, flags=2 sample info count = 90 [mdat] size=8+98427_ Obviously, above is not the desired format. Issue reported here https://github.com/axiomatic-systems/Bento4/issues/15 seems to indicate that mp4edit doesn't support insertion/removal of atoms outside of fragments. Please clarify.
Inserting 'pssh' in 'moof' ?
https://api.github.com/repos/axiomatic-systems/Bento4/issues/459/comments
0
2019-12-06T10:10:07Z
2019-12-06T10:12:41Z
https://github.com/axiomatic-systems/Bento4/issues/459
533,866,621
459
[ "axiomatic-systems", "Bento4" ]
Hello! It would be nice to have an ability to explicitly specify dash representation_id, so we can control directories structure and can reuse result of each mp4dash invocation. This feature can be used for creating separate playlists for separate codecs (this is required for some old devices, which can not play multicodec playlists). Also it's will let to control path, so some path based cdns can be configured. What do you think about it?
mp4dash: allow representation_id to be specified
https://api.github.com/repos/axiomatic-systems/Bento4/issues/457/comments
0
2019-11-21T17:08:18Z
2020-05-02T19:49:31Z
https://github.com/axiomatic-systems/Bento4/issues/457
526,727,939
457
[ "axiomatic-systems", "Bento4" ]
Hi, I have content produced by Bento4/mp4-dash.py and I can no longer analyse individual segments using the mp4Info utility. version (installed on macOS 10.15 via Homebrew) packager % mp4info MP4 File Info - Version 1.3.4 (Bento4 Version 1.5.1.0) (c) 2002-2017 Axiomatic Systems, LLC Link to segment :https://www.dropbox.com/s/h6p0l0ccdxm0dzc/video_seg1.m4s?dl=0 Error: No movie found in the file
Mp4Info - fails to parse DASH segment produced by mp4-dash.py
https://api.github.com/repos/axiomatic-systems/Bento4/issues/456/comments
3
2019-11-19T09:56:32Z
2020-02-17T15:48:03Z
https://github.com/axiomatic-systems/Bento4/issues/456
524,897,799
456
[ "axiomatic-systems", "Bento4" ]
Hi, I've a video with two audio tracks one stereo and another one 5.1 both having AAC codec. When executing Mp4Info command on this file, it gives `channels = 2` for 5.1 track whereas it should be **6** ffprobe output of the video ``` { "streams": [ { "index": 0, "codec_name": "h264", "codec_long_name": "H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10", "profile": "Main", "codec_type": "video", "codec_time_base": "1001/48000", "codec_tag_string": "avc1", "codec_tag": "0x31637661", "width": 1920, "height": 1080, "coded_width": 1920, "coded_height": 1080, "has_b_frames": 0, "sample_aspect_ratio": "1:1", "display_aspect_ratio": "16:9", "pix_fmt": "yuv420p", "level": 40, "chroma_location": "left", "refs": 1, "is_avc": "true", "nal_length_size": "4", "r_frame_rate": "24000/1001", "avg_frame_rate": "24000/1001", "time_base": "1/24000", "start_pts": 0, "start_time": "0:00:00.000000", "duration_ts": 2187192, "duration": "0:01:31.133000", "bit_rate": "5.695854 Mbit/s", "bits_per_raw_sample": "8", "nb_frames": "2185", "disposition": { "default": 1, "dub": 0, "original": 0, "comment": 0, "lyrics": 0, "karaoke": 0, "forced": 0, "hearing_impaired": 0, "visual_impaired": 0, "clean_effects": 0, "attached_pic": 0, "timed_thumbnails": 0 }, "tags": { "language": "eng", "handler_name": "Telestream, LLC Telestream Media Framework - Release Pro 2017.68.233658" } }, { "index": 1, "codec_name": "aac", "codec_long_name": "AAC (Advanced Audio Coding)", "profile": "LC", "codec_type": "audio", "codec_time_base": "1/48000", "codec_tag_string": "mp4a", "codec_tag": "0x6134706d", "sample_fmt": "fltp", "sample_rate": "48 KHz", "channels": 2, "channel_layout": "stereo", "bits_per_sample": 0, "r_frame_rate": "0/0", "avg_frame_rate": "0/0", "time_base": "1/48000", "start_pts": 0, "start_time": "0:00:00.000000", "duration_ts": 4374528, "duration": "0:01:31.136000", "bit_rate": "576 Kbit/s", "max_bit_rate": "192 Mbit/s", "nb_frames": "4274", "disposition": { "default": 1, "dub": 0, "original": 0, "comment": 0, "lyrics": 0, "karaoke": 0, "forced": 0, "hearing_impaired": 0, "visual_impaired": 0, "clean_effects": 0, "attached_pic": 0, "timed_thumbnails": 0 }, "tags": { "language": "eng", "handler_name": "Telestream, LLC Telestream Media Framework - Release Pro 2017.68.233658" } }, { "index": 2, "codec_name": "aac", "codec_long_name": "AAC (Advanced Audio Coding)", "profile": "LC", "codec_type": "audio", "codec_time_base": "1/48000", "codec_tag_string": "mp4a", "codec_tag": "0x6134706d", "sample_fmt": "fltp", "sample_rate": "48 KHz", "channels": 6, "channel_layout": "5.1", "bits_per_sample": 0, "r_frame_rate": "0/0", "avg_frame_rate": "0/0", "time_base": "1/48000", "start_pts": 0, "start_time": "0:00:00.000000", "duration_ts": 4374528, "duration": "0:01:31.136000", "bit_rate": "1.440000 Mbit/s", "max_bit_rate": "448 Mbit/s", "nb_frames": "4274", "disposition": { "default": 1, "dub": 0, "original": 0, "comment": 0, "lyrics": 0, "karaoke": 0, "forced": 0, "hearing_impaired": 0, "visual_impaired": 0, "clean_effects": 0, "attached_pic": 0, "timed_thumbnails": 0 }, "tags": { "language": "und", "handler_name": "Telestream, LLC Telestream Media Framework - Release Pro 2017.68.233658" } } ], "format": { "filename": "/home/dev/Media_1_30_f3fe1c413bee45be986d08c5e4dcff982019111412545854206000_1080p.mp4", "nb_streams": 3, "nb_programs": 0, "format_name": "mov,mp4,m4a,3gp,3g2,mj2", "format_long_name": "QuickTime / MOV", "start_time": "0:00:00.000000", "duration": "0:01:31.179000", "size": "83.842891 Mibyte", "bit_rate": "7.713674 Mbit/s", "probe_score": 100, "tags": { "major_brand": "isom", "minor_version": "512", "compatible_brands": "isomiso2avc1mp41", "encoder": "Lavf58.17.101" } } } ``` mp4info output of the video ``` { "file": { "major_brand": "isom", "minor_version": 512, "compatible_brands": ["isom", "iso2", "avc1", "mp41"], "fast_start": false }, "movie": { "duration_ms": 91179, "duration": 91179, "time_scale": 1000, "fragments": false }, "tracks": [{ "flags": 3, "flag_names": ["ENABLED", "IN-MOVIE"], "id": 1, "type": "Video", "duration_ms": 91133, "language": "eng", "media": { "sample_count": 2185, "timescale": 24000, "duration": 2187185, "duration_ms": 91133 }, "display_width": 1920.000000, "display_height": 1080.000000, "frame_rate": 23.976, "sample_descriptions": [{ "coding": "avc1", "coding_name": "H.264", "width": 1920, "height": 1080, "depth": 24, "avc_profile": 77, "avc_profile_name": "Main", "avc_profile_compat": 64, "avc_level": 40, "avc_nalu_length_size": 4, "avc_sps": ["674d402895a01e0089f9701100000303e90000bb80e000001e84800003d0902ef2e0fa55"], "avc_pps": ["68ee3c80"], "codecs_string": "avc1.4D4028" }] }, { "flags": 3, "flag_names": ["ENABLED", "IN-MOVIE"], "id": 2, "type": "Audio", "duration_ms": 91179, "language": "eng", "media": { "sample_count": 4274, "timescale": 48000, "duration": 4376576, "duration_ms": 91179 }, "sample_descriptions": [{ "coding": "mp4a", "coding_name": "MPEG-4 Audio", "stream_type": 5, "stream_type_name": "Audio", "object_type": 64, "object_type_name": "MPEG-4 Audio", "max_bitrate": 192000000, "average_bitrate": 576000, "buffer_size": 0, "decoder_info": "1190", "codecs_string": "mp4a.40.2", "mpeg_4_audio_object_type": 2, "mpeg_4_audio_object_type_name": "AAC Low Complexity", "mpeg_4_audio_decoder_config": { "sampling_frequency": 48000, "channels": 2 }, "sample_rate": 48000, "sample_size": 16, "channels": 2 }] }, { "flags": 3, "flag_names": ["ENABLED", "IN-MOVIE"], "id": 3, "type": "Audio", "duration_ms": 91179, "language": "und", "media": { "sample_count": 4274, "timescale": 48000, "duration": 4376576, "duration_ms": 91179 }, "sample_descriptions": [{ "coding": "mp4a", "coding_name": "MPEG-4 Audio", "stream_type": 5, "stream_type_name": "Audio", "object_type": 64, "object_type_name": "MPEG-4 Audio", "max_bitrate": 448000000, "average_bitrate": 1440000, "buffer_size": 0, "decoder_info": "11b0", "codecs_string": "mp4a.40.2", "mpeg_4_audio_object_type": 2, "mpeg_4_audio_object_type_name": "AAC Low Complexity", "mpeg_4_audio_decoder_config": { "sampling_frequency": 48000, "channels": 6 }, "sample_rate": 48000, "sample_size": 16, "channels": 2 }] } ] } ``` In Mp4Info output, track Id 3 have two channels value 6/2, so when doing packaging it takes channels value as 2 and sets the same in dash manifest file which is giving incorrect output for 5.1 audio track when playing on device
Mp4Info giving incorrect Audio channel count
https://api.github.com/repos/axiomatic-systems/Bento4/issues/455/comments
4
2019-11-19T07:45:11Z
2022-12-06T12:17:11Z
https://github.com/axiomatic-systems/Bento4/issues/455
524,832,470
455
[ "axiomatic-systems", "Bento4" ]
the encrypted file(audio) : https://transfer.sh/hqWjd/video_encrypted.mp4 kid:key (in hex) : 00000000000000000000000000000000:328f3f687d3d91f8d6ae092706b0391b inproperly decrypted file (corrupted audio though mediainfo is showing decrypted) https://we.tl/t-gN8w08Pj6o encyption SAMPLE-AES (CBCS)
mp4decrypt not decrypting properly
https://api.github.com/repos/axiomatic-systems/Bento4/issues/454/comments
9
2019-11-18T22:37:52Z
2019-12-10T14:16:11Z
https://github.com/axiomatic-systems/Bento4/issues/454
524,661,296
454
[ "axiomatic-systems", "Bento4" ]
Hello there, I'm using mp4info trying to decrypt some ATMOS audio. I got the key itself but it still won't decrypt. I did mp4info --verbose ATMOS.mp4 and the Keyid was all 00000000000000000000000000000000 so I did something like 00000000000000000000000000000000:01782373000000000000000000002222 for example, but that file still won't be decrypted. Can the shown KID be different or wrong somehow? Many thanks
mp4info showing KID seems wrong
https://api.github.com/repos/axiomatic-systems/Bento4/issues/452/comments
13
2019-11-04T18:11:03Z
2019-12-10T14:15:52Z
https://github.com/axiomatic-systems/Bento4/issues/452
517,317,868
452
[ "axiomatic-systems", "Bento4" ]
Hello, I am trying to implement custom dash player. The same key id is used for both audio and video as it can be observerd in the sample below. Both audio and video are mp4. The Content Protection of audio and video is described equally in mpd xml document. I am using Bento4 mp4decrypt for decrypting. As a result i got video without audio. But there is no error saying that audio is not decrypted well, it just silently fails. I am playing with this for a while but I am still rookie in this area. I don't know what am I missing. Any ides what causes output without audio? Here is MPD document: ```<?xml version="1.0" encoding="UTF-8"?> <MPD availabilityStartTime="2019-10-31T04:01:41.968Z" minBufferTime="PT4S" minimumUpdatePeriod="PT2S" profiles="urn:mpeg:dash:profile:isoff-live:2011" publishTime="2019-10-31T12:42:45.000000Z" suggestedPresentationDelay="PT10S" timeShiftBufferDepth="PT1M0S" type="dynamic" xmlns="urn:mpeg:dash:schema:mpd:2011" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:mpeg:dash:schema:mpd:2011 http://standards.iso.org/ittf/PubliclyAvailableStandards/MPEG-DASH_schema_files/DASH-MPD.xsd" xmlns:cenc="urn:mpeg:cenc:2013"> <Period id="141524503380000" start="PT0S"> <AdaptationSet bitstreamSwitching="false" contentType="video" id="1" mimeType="video/mp4" segmentAlignment="true"> <ContentProtection schemeIdUri="urn:mpeg:dash:mp4protection:2011" value="cenc" cenc:default_KID="90993162-c22b-fcad-778f-7dfc84bb0a10" /> <ContentProtection schemeIdUri="urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed" cenc:default_KID="90993162-c22b-fcad-778f-7dfc84bb0a10"> <cenc:pssh>AAAASHBzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAACgIARIQkJkxYsIr/K13j338hLsKEBoIY2lzY29uZHMiBDIxMTAqAlNE</cenc:pssh> </ContentProtection> <SegmentTemplate initialization="$RepresentationID$/init.mp4" media="$RepresentationID$/$Time$.m4f" startNumber="5197" timescale="90000"> <SegmentTimeline> <S d="540000" r="10" t="2808360000" /> </SegmentTimeline> </SegmentTemplate> <Representation bandwidth="360000" codecs="avc1.428015" frameRate="90000/7507" height="270" id="54001_54001_video_seg_auto_video_161" width="480" /> <Representation bandwidth="600000" codecs="avc1.428016" frameRate="90000/3600" height="270" id="54002_54002_video_seg_auto_video_161" width="480" /> <Representation bandwidth="800000" codecs="avc1.4D401F" frameRate="90000/3600" height="480" id="54003_54003_video_seg_auto_video_161" width="640" /> <Representation bandwidth="960000" codecs="avc1.4D4020" frameRate="90000/3600" height="540" id="54004_54004_video_seg_auto_video_161" width="960" /> <Representation bandwidth="1499968" codecs="avc1.640028" frameRate="90000/3600" height="720" id="54005_54005_video_seg_auto_video_161" width="1280" /> </AdaptationSet> <AdaptationSet bitstreamSwitching="false" contentType="audio" id="3" lang="eng" mimeType="audio/mp4" segmentAlignment="true"> <ContentProtection schemeIdUri="urn:mpeg:dash:mp4protection:2011" value="cenc" cenc:default_KID="90993162-c22b-fcad-778f-7dfc84bb0a10" /> <ContentProtection schemeIdUri="urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed" cenc:default_KID="90993162-c22b-fcad-778f-7dfc84bb0a10"> <cenc:pssh>AAAASHBzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAACgIARIQkJkxYsIr/K13j338hLsKEBoIY2lzY29uZHMiBDIxMTAqAlNE</cenc:pssh> </ContentProtection> <SegmentTemplate initialization="$RepresentationID$/init.mp4" media="$RepresentationID$/$Time$.m4f" startNumber="5197" timescale="90000"> <SegmentTimeline> <S d="540000" r="10" t="2808360000" /> </SegmentTimeline> </SegmentTemplate> <Representation audioSamplingRate="48000" bandwidth="40000" codecs="mp4a.40.5" id="54001_54001_video_seg_auto_audio_80_mp4a.40.5_42064" /> </AdaptationSet> </Period> </MPD> ``` Thanks in advance and best regards.
Custom DASH player - no audio after decryption
https://api.github.com/repos/axiomatic-systems/Bento4/issues/451/comments
0
2019-11-02T16:04:18Z
2019-11-04T23:18:46Z
https://github.com/axiomatic-systems/Bento4/issues/451
516,640,107
451
[ "axiomatic-systems", "Bento4" ]
Hi all I'm doing a dash decrypt with mp4decrypt, on windows its working perfectly, takes about 90s and then the decryption is complete On Linux it just finishes instantly but the output file is identical to the input, no decryption has occured, its just a copy of the original file I've tried 3 different boxes Debian/Ubuntu, I've tried older builds, I've tried precompiled, I've tried compiling, all the same result My mp4decrypt syntax is as follows mp4decrypt --key 12345678910111213141516171819202:12345678910111213141516171819202 --key 12345678910111213141516171819202:12345678910111213141516171819202 --key 12345678910111213141516171819202:12345678910111213141516171819202 input.mp4 output.mp4 --show-progress I'm not sure if this is a bug or I'm missing something obvious Thanks for any input
mp4decrypt working on windows but not linux
https://api.github.com/repos/axiomatic-systems/Bento4/issues/450/comments
5
2019-10-13T12:34:56Z
2019-11-14T22:52:48Z
https://github.com/axiomatic-systems/Bento4/issues/450
506,319,582
450
[ "axiomatic-systems", "Bento4" ]
Four segmentation faults are detected in mp4decrypt git commit: 7242177 To trigger these segmentation faults, compile bento4 with ASAN: ./mp4decrypt PoC /dev/null ASAN output and stack trace of four segmentation faults: [mp4decrypt-3.asan.output.txt](https://github.com/axiomatic-systems/Bento4/files/3705120/mp4decrypt-3.asan.output.txt) [mp4decrypt-4.asan.output.txt](https://github.com/axiomatic-systems/Bento4/files/3705121/mp4decrypt-4.asan.output.txt) [mp4decrypt-5.asan.output.txt](https://github.com/axiomatic-systems/Bento4/files/3705122/mp4decrypt-5.asan.output.txt) [mp4decrypt-6.asan.output.txt](https://github.com/axiomatic-systems/Bento4/files/3705123/mp4decrypt-6.asan.output.txt) [mp4decrypt-3.pdf](https://github.com/axiomatic-systems/Bento4/files/3705124/mp4decrypt-3.pdf) [mp4decrypt-4.pdf](https://github.com/axiomatic-systems/Bento4/files/3705128/mp4decrypt-4.pdf) [mp4decrypt-5.pdf](https://github.com/axiomatic-systems/Bento4/files/3705130/mp4decrypt-5.pdf) [mp4decrypt-7.pdf](https://github.com/axiomatic-systems/Bento4/files/3705132/mp4decrypt-7.pdf)
Multiple segmentation faults in mp4decrypt
https://api.github.com/repos/axiomatic-systems/Bento4/issues/449/comments
0
2019-10-09T01:08:16Z
2019-10-09T01:08:16Z
https://github.com/axiomatic-systems/Bento4/issues/449
504,353,834
449
[ "axiomatic-systems", "Bento4" ]
Four segmentation faults are detected in mp4dump. git commit: 7242177 To trigger these segmentation faults, compile bento4 with ASAN: ./mp4dump --verbosity 3 PoC ASAN output and stack trace of four segmentation faults: [mp4dump-1.asan.output.txt](https://github.com/axiomatic-systems/Bento4/files/3705100/mp4dump-1.asan.output.txt) [mp4dump-2.asan.output.txt](https://github.com/axiomatic-systems/Bento4/files/3705101/mp4dump-2.asan.output.txt) [mp4dump-3.asan.output.txt](https://github.com/axiomatic-systems/Bento4/files/3705102/mp4dump-3.asan.output.txt) [mp4dump-4.asan.output.txt](https://github.com/axiomatic-systems/Bento4/files/3705103/mp4dump-4.asan.output.txt) [mp4dump-1.pdf](https://github.com/axiomatic-systems/Bento4/files/3705105/mp4dump-1.pdf) [mp4dump-2.pdf](https://github.com/axiomatic-systems/Bento4/files/3705106/mp4dump-2.pdf) [mp4dump-3.pdf](https://github.com/axiomatic-systems/Bento4/files/3705107/mp4dump-3.pdf) [mp4dump-4.pdf](https://github.com/axiomatic-systems/Bento4/files/3705108/mp4dump-4.pdf)
Multiple segmentation faults in mp4dump
https://api.github.com/repos/axiomatic-systems/Bento4/issues/448/comments
0
2019-10-09T01:01:56Z
2019-10-09T01:01:56Z
https://github.com/axiomatic-systems/Bento4/issues/448
504,352,437
448
[ "axiomatic-systems", "Bento4" ]
Two heap overflows are detected in mp4info. git commit: 7242177 To trigger these heap overflows, compile bento4 with ASAN: ./mp4info --verbose --show-layout --show-samples --show-sample-data PoC ASAN output and stack trace of two heap overflows: ==32045==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x6020000003b5 at pc 0x7f8dabf40733 bp 0x7ffd1dbf58d0 sp 0x7ffd1dbf5078 READ of size 8 at 0x6020000003b5 thread T0 #0 0x7f8dabf40732 (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x79732) #1 0x561e3c7c1ab1 in AP4_BitStream::WriteBytes(unsigned char const*, unsigned int) /home/bowen/Bowen/gitrepo/bento4/bento4-asan/Source/C++/Codecs/Ap4BitStream.cpp:133 #2 0x561e3c7b92b8 in ShowAvcInfo /home/bowen/Bowen/gitrepo/bento4/bento4-asan/Source/C++/Apps/Mp4Info/Mp4Info.cpp:951 #3 0x561e3c7b966c in ShowSample_Text /home/bowen/Bowen/gitrepo/bento4/bento4-asan/Source/C++/Apps/Mp4Info/Mp4Info.cpp:1014 #4 0x561e3c7ba8fa in ShowTrackInfo_Text /home/bowen/Bowen/gitrepo/bento4/bento4-asan/Source/C++/Apps/Mp4Info/Mp4Info.cpp:1169 #5 0x561e3c7bb384 in ShowTrackInfo /home/bowen/Bowen/gitrepo/bento4/bento4-asan/Source/C++/Apps/Mp4Info/Mp4Info.cpp:1276 #6 0x561e3c7bb9be in ShowTracks /home/bowen/Bowen/gitrepo/bento4/bento4-asan/Source/C++/Apps/Mp4Info/Mp4Info.cpp:1386 #7 0x561e3c7bd655 in main /home/bowen/Bowen/gitrepo/bento4/bento4-asan/Source/C++/Apps/Mp4Info/Mp4Info.cpp:1650 #8 0x7f8dab556b96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96) #9 0x561e3c7b2d59 in _start (/home/bowen/Bowen/gitrepo/bento4/bento4-asan/Build/mp4info+0x323d59) 0x6020000003b5 is located 0 bytes to the right of 5-byte region [0x6020000003b0,0x6020000003b5) allocated by thread T0 here: #0 0x7f8dabfa7618 in operator new[](unsigned long) (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xe0618) #1 0x561e3c7f661c in AP4_DataBuffer::ReallocateBuffer(unsigned int) /home/bowen/Bowen/gitrepo/bento4/bento4-asan/Source/C++/Core/Ap4DataBuffer.cpp:210 #2 0x561e3c7f5fd4 in AP4_DataBuffer::SetDataSize(unsigned int) /home/bowen/Bowen/gitrepo/bento4/bento4-asan/Source/C++/Core/Ap4DataBuffer.cpp:151 #3 0x561e3c84f1cf in AP4_Sample::ReadData(AP4_DataBuffer&, unsigned int, unsigned int) /home/bowen/Bowen/gitrepo/bento4/bento4-asan/Source/C++/Core/Ap4Sample.cpp:156 #4 0x561e3c84ef12 in AP4_Sample::ReadData(AP4_DataBuffer&) /home/bowen/Bowen/gitrepo/bento4/bento4-asan/Source/C++/Core/Ap4Sample.cpp:127 #5 0x561e3c7ba8b8 in ShowTrackInfo_Text /home/bowen/Bowen/gitrepo/bento4/bento4-asan/Source/C++/Apps/Mp4Info/Mp4Info.cpp:1166 #6 0x561e3c7bb384 in ShowTrackInfo /home/bowen/Bowen/gitrepo/bento4/bento4-asan/Source/C++/Apps/Mp4Info/Mp4Info.cpp:1276 #7 0x561e3c7bb9be in ShowTracks /home/bowen/Bowen/gitrepo/bento4/bento4-asan/Source/C++/Apps/Mp4Info/Mp4Info.cpp:1386 #8 0x561e3c7bd655 in main /home/bowen/Bowen/gitrepo/bento4/bento4-asan/Source/C++/Apps/Mp4Info/Mp4Info.cpp:1650 #9 0x7f8dab556b96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96) [mp4info-7.pdf](https://github.com/axiomatic-systems/Bento4/files/3705084/mp4info-7.pdf) ================================================================= ==3266==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x602000000234 at pc 0x55588a74f499 bp 0x7ffceccc92e0 sp 0x7ffceccc92d0 READ of size 1 at 0x602000000234 thread T0 #0 0x55588a74f498 in AP4_Mp4AudioDsiParser::ReadBits(unsigned int) /home/bowen/Bowen/gitrepo/bento4/bento4-asan/Source/C++/Codecs/Ap4Mp4AudioInfo.cpp:66 #1 0x55588a74df24 in AP4_Mp4AudioDecoderConfig::ParseExtension(AP4_Mp4AudioDsiParser&) /home/bowen/Bowen/gitrepo/bento4/bento4-asan/Source/C++/Codecs/Ap4Mp4AudioInfo.cpp:136 #2 0x55588a74f120 in AP4_Mp4AudioDecoderConfig::Parse(unsigned char const*, unsigned int) /home/bowen/Bowen/gitrepo/bento4/bento4-asan/Source/C++/Codecs/Ap4Mp4AudioInfo.cpp:314 #3 0x55588a7d2cb8 in AP4_MpegAudioSampleDescription::GetCodecString(AP4_String&) /home/bowen/Bowen/gitrepo/bento4/bento4-asan/Source/C++/Core/Ap4SampleDescription.cpp:751 #4 0x55588a733959 in ShowMpegAudioSampleDescription /home/bowen/Bowen/gitrepo/bento4/bento4-asan/Source/C++/Apps/Mp4Info/Mp4Info.cpp:303 #5 0x55588a7345de in ShowSampleDescription_Text /home/bowen/Bowen/gitrepo/bento4/bento4-asan/Source/C++/Apps/Mp4Info/Mp4Info.cpp:412 #6 0x55588a737a30 in ShowSampleDescription /home/bowen/Bowen/gitrepo/bento4/bento4-asan/Source/C++/Apps/Mp4Info/Mp4Info.cpp:846 #7 0x55588a7397b7 in ShowTrackInfo_Text /home/bowen/Bowen/gitrepo/bento4/bento4-asan/Source/C++/Apps/Mp4Info/Mp4Info.cpp:1155 #8 0x55588a73a384 in ShowTrackInfo /home/bowen/Bowen/gitrepo/bento4/bento4-asan/Source/C++/Apps/Mp4Info/Mp4Info.cpp:1276 #9 0x55588a73a9be in ShowTracks /home/bowen/Bowen/gitrepo/bento4/bento4-asan/Source/C++/Apps/Mp4Info/Mp4Info.cpp:1386 #10 0x55588a73c655 in main /home/bowen/Bowen/gitrepo/bento4/bento4-asan/Source/C++/Apps/Mp4Info/Mp4Info.cpp:1650 #11 0x7f421207fb96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96) #12 0x55588a731d59 in _start (/home/bowen/Bowen/gitrepo/bento4/bento4-asan/Build/mp4info+0x323d59) 0x602000000234 is located 0 bytes to the right of 4-byte region [0x602000000230,0x602000000234) allocated by thread T0 here: #0 0x7f4212ad0618 in operator new[](unsigned long) (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xe0618) #1 0x55588a7748bf in AP4_DataBuffer::AP4_DataBuffer(void const*, unsigned int) /home/bowen/Bowen/gitrepo/bento4/bento4-asan/Source/C++/Core/Ap4DataBuffer.cpp:68 #2 0x55588a74f2f0 in AP4_Mp4AudioDsiParser::AP4_Mp4AudioDsiParser(unsigned char const*, unsigned int) /home/bowen/Bowen/gitrepo/bento4/bento4-asan/Source/C++/Codecs/Ap4Mp4AudioInfo.cpp:57 #3 0x55588a74e94e in AP4_Mp4AudioDecoderConfig::Parse(unsigned char const*, unsigned int) /home/bowen/Bowen/gitrepo/bento4/bento4-asan/Source/C++/Codecs/Ap4Mp4AudioInfo.cpp:248 #4 0x55588a7d2cb8 in AP4_MpegAudioSampleDescription::GetCodecString(AP4_String&) /home/bowen/Bowen/gitrepo/bento4/bento4-asan/Source/C++/Core/Ap4SampleDescription.cpp:751 #5 0x55588a733959 in ShowMpegAudioSampleDescription /home/bowen/Bowen/gitrepo/bento4/bento4-asan/Source/C++/Apps/Mp4Info/Mp4Info.cpp:303 #6 0x55588a7345de in ShowSampleDescription_Text /home/bowen/Bowen/gitrepo/bento4/bento4-asan/Source/C++/Apps/Mp4Info/Mp4Info.cpp:412 #7 0x55588a737a30 in ShowSampleDescription /home/bowen/Bowen/gitrepo/bento4/bento4-asan/Source/C++/Apps/Mp4Info/Mp4Info.cpp:846 #8 0x55588a7397b7 in ShowTrackInfo_Text /home/bowen/Bowen/gitrepo/bento4/bento4-asan/Source/C++/Apps/Mp4Info/Mp4Info.cpp:1155 #9 0x55588a73a384 in ShowTrackInfo /home/bowen/Bowen/gitrepo/bento4/bento4-asan/Source/C++/Apps/Mp4Info/Mp4Info.cpp:1276 #10 0x55588a73a9be in ShowTracks /home/bowen/Bowen/gitrepo/bento4/bento4-asan/Source/C++/Apps/Mp4Info/Mp4Info.cpp:1386 #11 0x55588a73c655 in main /home/bowen/Bowen/gitrepo/bento4/bento4-asan/Source/C++/Apps/Mp4Info/Mp4Info.cpp:1650 #12 0x7f421207fb96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96) [mp4info-9.pdf](https://github.com/axiomatic-systems/Bento4/files/3705085/mp4info-9.pdf)
Two heap overflows detected in mp4info
https://api.github.com/repos/axiomatic-systems/Bento4/issues/447/comments
0
2019-10-09T00:49:55Z
2019-10-09T00:49:55Z
https://github.com/axiomatic-systems/Bento4/issues/447
504,349,666
447
[ "axiomatic-systems", "Bento4" ]
Two segmentation faults are detected in mp4info. git commit: 7242177 To trigger these segmentation faults, compile bento4 with ASAN: ./mp4info --verbose --show-layout --show-samples --show-sample-data PoC ASAN output and stack trace of two segmentation faults: ==9295==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000008 (pc 0x5654dd81ac13 bp 0x7ffde5211e30 sp 0x7ffde5211e20 T0) ==9295==The signal is caused by a READ memory access. ==9295==Hint: address points to the zero page. #0 0x5654dd81ac12 in AP4_Descriptor::GetTag() (/home/bowen/Bowen/gitrepo/bento4/bento4-asan/Build/mp4info+0x39ac12) #1 0x5654dd81acff in AP4_DescriptorFinder::Test(AP4_Descriptor*) const (/home/bowen/Bowen/gitrepo/bento4/bento4-asan/Build/mp4info+0x39acff) #2 0x5654dd81b640 in AP4_List<AP4_Descriptor>::Find(AP4_List<AP4_Descriptor>::Item::Finder const&, AP4_Descriptor*&) const /home/bowen/Bowen/gitrepo/bento4/bento4-asan/Source/C++/Core/Ap4List.h:431 #3 0x5654dd8c2a2f in AP4_DecoderConfigDescriptor::GetDecoderSpecificInfoDescriptor() const /home/bowen/Bowen/gitrepo/bento4/bento4-asan/Source/C++/Core/Ap4DecoderConfigDescriptor.cpp:159 #4 0x5654dd843fff in AP4_MpegSampleDescription::AP4_MpegSampleDescription(unsigned int, AP4_EsdsAtom*) /home/bowen/Bowen/gitrepo/bento4/bento4-asan/Source/C++/Core/Ap4SampleDescription.cpp:591 #5 0x5654dd84481b in AP4_MpegAudioSampleDescription::AP4_MpegAudioSampleDescription(unsigned int, unsigned short, unsigned short, AP4_EsdsAtom*) /home/bowen/Bowen/gitrepo/bento4/bento4-asan/Source/C++/Core/Ap4SampleDescription.cpp:697 #6 0x5654dd84a5ea in AP4_MpegAudioSampleEntry::ToSampleDescription() /home/bowen/Bowen/gitrepo/bento4/bento4-asan/Source/C++/Core/Ap4SampleEntry.cpp:678 #7 0x5654dd85dee9 in AP4_StsdAtom::GetSampleDescription(unsigned int) /home/bowen/Bowen/gitrepo/bento4/bento4-asan/Source/C++/Core/Ap4StsdAtom.cpp:181 #8 0x5654dd8a29c2 in AP4_AtomSampleTable::GetSampleDescription(unsigned int) /home/bowen/Bowen/gitrepo/bento4/bento4-asan/Source/C++/Core/Ap4AtomSampleTable.cpp:207 #9 0x5654dd872528 in AP4_Track::GetSampleDescription(unsigned int) /home/bowen/Bowen/gitrepo/bento4/bento4-asan/Source/C++/Core/Ap4Track.cpp:445 #10 0x5654dd7ab775 in ShowTrackInfo_Text /home/bowen/Bowen/gitrepo/bento4/bento4-asan/Source/C++/Apps/Mp4Info/Mp4Info.cpp:1152 #11 0x5654dd7ac384 in ShowTrackInfo /home/bowen/Bowen/gitrepo/bento4/bento4-asan/Source/C++/Apps/Mp4Info/Mp4Info.cpp:1276 #12 0x5654dd7ac9be in ShowTracks /home/bowen/Bowen/gitrepo/bento4/bento4-asan/Source/C++/Apps/Mp4Info/Mp4Info.cpp:1386 #13 0x5654dd7ae655 in main /home/bowen/Bowen/gitrepo/bento4/bento4-asan/Source/C++/Apps/Mp4Info/Mp4Info.cpp:1650 #14 0x7fb77c5bdb96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96) #15 0x5654dd7a3d59 in _start (/home/bowen/Bowen/gitrepo/bento4/bento4-asan/Build/mp4info+0x323d59) [mp4info-1.pdf](https://github.com/axiomatic-systems/Bento4/files/3705067/mp4info-1.pdf) ================================================================= ==13584==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7fd57cc50634 bp 0x7ffcc3164310 sp 0x7ffcc3163a80 T0) ==13584==The signal is caused by a READ memory access. ==13584==Hint: address points to the zero page. #0 0x7fd57cc50633 (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x79633) #1 0x55acb1b022f8 in AP4_DataBuffer::SetData(unsigned char const*, unsigned int) /home/bowen/Bowen/gitrepo/bento4/bento4-asan/Source/C++/Core/Ap4DataBuffer.cpp:175 #2 0x55acb1aef76c in AP4_AvccAtom::AP4_AvccAtom(unsigned int, unsigned char const*) /home/bowen/Bowen/gitrepo/bento4/bento4-asan/Source/C++/Core/Ap4AvccAtom.cpp:173 #3 0x55acb1aee8a5 in AP4_AvccAtom::Create(unsigned int, AP4_ByteStream&) /home/bowen/Bowen/gitrepo/bento4/bento4-asan/Source/C++/Core/Ap4AvccAtom.cpp:95 #4 0x55acb1aeadb4 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/bowen/Bowen/gitrepo/bento4/bento4-asan/Source/C++/Core/Ap4AtomFactory.cpp:491 #5 0x55acb1ae8fe2 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/bowen/Bowen/gitrepo/bento4/bento4-asan/Source/C++/Core/Ap4AtomFactory.cpp:231 #6 0x55acb1afa706 in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /home/bowen/Bowen/gitrepo/bento4/bento4-asan/Source/C++/Core/Ap4ContainerAtom.cpp:194 #7 0x55acb1b61982 in AP4_SampleEntry::Read(AP4_ByteStream&, AP4_AtomFactory&) /home/bowen/Bowen/gitrepo/bento4/bento4-asan/Source/C++/Core/Ap4SampleEntry.cpp:115 #8 0x55acb1b65bfe in AP4_VisualSampleEntry::AP4_VisualSampleEntry(unsigned int, unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/bowen/Bowen/gitrepo/bento4/bento4-asan/Source/C++/Core/Ap4SampleEntry.cpp:742 #9 0x55acb1b673ee in AP4_AvcSampleEntry::AP4_AvcSampleEntry(unsigned int, unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/bowen/Bowen/gitrepo/bento4/bento4-asan/Source/C++/Core/Ap4SampleEntry.cpp:994 #10 0x55acb1ae9b1d in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/bowen/Bowen/gitrepo/bento4/bento4-asan/Source/C++/Core/Ap4AtomFactory.cpp:316 #11 0x55acb1ae8fe2 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/bowen/Bowen/gitrepo/bento4/bento4-asan/Source/C++/Core/Ap4AtomFactory.cpp:231 #12 0x55acb1b78261 in AP4_StsdAtom::AP4_StsdAtom(unsigned int, unsigned char, unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/bowen/Bowen/gitrepo/bento4/bento4-asan/Source/C++/Core/Ap4StsdAtom.cpp:101 #13 0x55acb1b77acf in AP4_StsdAtom::Create(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/bowen/Bowen/gitrepo/bento4/bento4-asan/Source/C++/Core/Ap4StsdAtom.cpp:57 #14 0x55acb1aea994 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/bowen/Bowen/gitrepo/bento4/bento4-asan/Source/C++/Core/Ap4AtomFactory.cpp:436 #15 0x55acb1ae8fe2 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/bowen/Bowen/gitrepo/bento4/bento4-asan/Source/C++/Core/Ap4AtomFactory.cpp:231 #16 0x55acb1afa706 in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /home/bowen/Bowen/gitrepo/bento4/bento4-asan/Source/C++/Core/Ap4ContainerAtom.cpp:194 #17 0x55acb1afa17a in AP4_ContainerAtom::AP4_ContainerAtom(unsigned int, unsigned long long, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/bowen/Bowen/gitrepo/bento4/bento4-asan/Source/C++/Core/Ap4ContainerAtom.cpp:139 #18 0x55acb1af9cd8 in AP4_ContainerAtom::Create(unsigned int, unsigned long long, bool, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/bowen/Bowen/gitrepo/bento4/bento4-asan/Source/C++/Core/Ap4ContainerAtom.cpp:88 #19 0x55acb1aec209 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/bowen/Bowen/gitrepo/bento4/bento4-asan/Source/C++/Core/Ap4AtomFactory.cpp:776 #20 0x55acb1ae8fe2 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/bowen/Bowen/gitrepo/bento4/bento4-asan/Source/C++/Core/Ap4AtomFactory.cpp:231 #21 0x55acb1afa706 in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /home/bowen/Bowen/gitrepo/bento4/bento4-asan/Source/C++/Core/Ap4ContainerAtom.cpp:194 #22 0x55acb1afa17a in AP4_ContainerAtom::AP4_ContainerAtom(unsigned int, unsigned long long, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/bowen/Bowen/gitrepo/bento4/bento4-asan/Source/C++/Core/Ap4ContainerAtom.cpp:139 #23 0x55acb1af9cd8 in AP4_ContainerAtom::Create(unsigned int, unsigned long long, bool, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/bowen/Bowen/gitrepo/bento4/bento4-asan/Source/C++/Core/Ap4ContainerAtom.cpp:88 #24 0x55acb1aec209 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/bowen/Bowen/gitrepo/bento4/bento4-asan/Source/C++/Core/Ap4AtomFactory.cpp:776 #25 0x55acb1ae8fe2 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/bowen/Bowen/gitrepo/bento4/bento4-asan/Source/C++/Core/Ap4AtomFactory.cpp:231 #26 0x55acb1afa706 in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /home/bowen/Bowen/gitrepo/bento4/bento4-asan/Source/C++/Core/Ap4ContainerAtom.cpp:194 #27 0x55acb1afa17a in AP4_ContainerAtom::AP4_ContainerAtom(unsigned int, unsigned long long, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/bowen/Bowen/gitrepo/bento4/bento4-asan/Source/C++/Core/Ap4ContainerAtom.cpp:139 #28 0x55acb1af9cd8 in AP4_ContainerAtom::Create(unsigned int, unsigned long long, bool, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/bowen/Bowen/gitrepo/bento4/bento4-asan/Source/C++/Core/Ap4ContainerAtom.cpp:88 #29 0x55acb1aec209 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/bowen/Bowen/gitrepo/bento4/bento4-asan/Source/C++/Core/Ap4AtomFactory.cpp:776 #30 0x55acb1ae8fe2 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/bowen/Bowen/gitrepo/bento4/bento4-asan/Source/C++/Core/Ap4AtomFactory.cpp:231 #31 0x55acb1afa706 in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /home/bowen/Bowen/gitrepo/bento4/bento4-asan/Source/C++/Core/Ap4ContainerAtom.cpp:194 #32 0x55acb1afa17a in AP4_ContainerAtom::AP4_ContainerAtom(unsigned int, unsigned long long, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/bowen/Bowen/gitrepo/bento4/bento4-asan/Source/C++/Core/Ap4ContainerAtom.cpp:139 #33 0x55acb1b8eaae in AP4_TrakAtom::AP4_TrakAtom(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/bowen/Bowen/gitrepo/bento4/bento4-asan/Source/C++/Core/Ap4TrakAtom.cpp:165 #34 0x55acb1aed279 in AP4_TrakAtom::Create(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) (/home/bowen/Bowen/gitrepo/bento4/bento4-asan/Build/mp4info+0x352279) #35 0x55acb1aea62d in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/bowen/Bowen/gitrepo/bento4/bento4-asan/Source/C++/Core/Ap4AtomFactory.cpp:391 #36 0x55acb1ae8fe2 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/bowen/Bowen/gitrepo/bento4/bento4-asan/Source/C++/Core/Ap4AtomFactory.cpp:231 #37 0x55acb1afa706 in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /home/bowen/Bowen/gitrepo/bento4/bento4-asan/Source/C++/Core/Ap4ContainerAtom.cpp:194 #38 0x55acb1afa17a in AP4_ContainerAtom::AP4_ContainerAtom(unsigned int, unsigned long long, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/bowen/Bowen/gitrepo/bento4/bento4-asan/Source/C++/Core/Ap4ContainerAtom.cpp:139 #39 0x55acb1b2c7b2 in AP4_MoovAtom::AP4_MoovAtom(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/bowen/Bowen/gitrepo/bento4/bento4-asan/Source/C++/Core/Ap4MoovAtom.cpp:80 #40 0x55acb1aed213 in AP4_MoovAtom::Create(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) (/home/bowen/Bowen/gitrepo/bento4/bento4-asan/Build/mp4info+0x352213) #41 0x55acb1aea4a6 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/bowen/Bowen/gitrepo/bento4/bento4-asan/Source/C++/Core/Ap4AtomFactory.cpp:371 #42 0x55acb1ae8fe2 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/bowen/Bowen/gitrepo/bento4/bento4-asan/Source/C++/Core/Ap4AtomFactory.cpp:231 #43 0x55acb1ae844f in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, AP4_Atom*&) /home/bowen/Bowen/gitrepo/bento4/bento4-asan/Source/C++/Core/Ap4AtomFactory.cpp:151 #44 0x55acb1b099cf in AP4_File::ParseStream(AP4_ByteStream&, AP4_AtomFactory&, bool) /home/bowen/Bowen/gitrepo/bento4/bento4-asan/Source/C++/Core/Ap4File.cpp:104 #45 0x55acb1b0963e in AP4_File::AP4_File(AP4_ByteStream&, bool) /home/bowen/Bowen/gitrepo/bento4/bento4-asan/Source/C++/Core/Ap4File.cpp:78 #46 0x55acb1ac94c2 in main /home/bowen/Bowen/gitrepo/bento4/bento4-asan/Source/C++/Apps/Mp4Info/Mp4Info.cpp:1634 #47 0x7fd57c266b96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96) #48 0x55acb1abed59 in _start (/home/bowen/Bowen/gitrepo/bento4/bento4-asan/Build/mp4info+0x323d59) [mp4info-4.pdf](https://github.com/axiomatic-systems/Bento4/files/3705071/mp4info-4.pdf)
Two segmentation faults detected in mp4info
https://api.github.com/repos/axiomatic-systems/Bento4/issues/446/comments
0
2019-10-09T00:44:20Z
2019-10-09T00:44:20Z
https://github.com/axiomatic-systems/Bento4/issues/446
504,348,331
446
[ "axiomatic-systems", "Bento4" ]
Multiple uninitialized use on heap are detected in mp4info. git commit: 7242177 Because there is too much output from Valgrind, so I just select error information of unique buffers based on the stack trace of the allocation point in program, PoC to trigger uninitialized use of different buffers are attached. To trigger these uninitialized use and get the error information: valgrind ./mp4info --verbose --show-layout --show-samples --show-sample-data PoC ==1495== Uninitialised value was created by a heap allocation ==1495== at 0x4C3017F: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==1495== by 0x1E4A64: AP4_DescriptorFactory::CreateDescriptorFromStream(AP4_ByteStream&, AP4_Descriptor*&) (Ap4DescriptorFactory.cpp:106) ==1495== by 0x1E5018: AP4_EsDescriptor::AP4_EsDescriptor(AP4_ByteStream&, unsigned int, unsigned int) (Ap4EsDescriptor.cpp:111) ==1495== by 0x1E4A4E: AP4_DescriptorFactory::CreateDescriptorFromStream(AP4_ByteStream&, AP4_Descriptor*&) (Ap4DescriptorFactory.cpp:102) ==1495== by 0x190B5F: AP4_EsdsAtom::AP4_EsdsAtom(unsigned int, unsigned char, unsigned int, AP4_ByteStream&) (Ap4EsdsAtom.cpp:76) ==1495== by 0x190A32: AP4_EsdsAtom::Create(unsigned int, AP4_ByteStream&) (Ap4EsdsAtom.cpp:52) ==1495== by 0x1857BC: AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) (Ap4AtomFactory.cpp:486) ==1495== by 0x184659: AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) (Ap4AtomFactory.cpp:231) ==1495== by 0x18BBD9: AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) (Ap4ContainerAtom.cpp:194) ==1495== by 0x1B513A: AP4_SampleEntry::Read(AP4_ByteStream&, AP4_AtomFactory&) (Ap4SampleEntry.cpp:115) ==1495== by 0x1B5E42: AP4_AudioSampleEntry::AP4_AudioSampleEntry(unsigned int, unsigned int, AP4_ByteStream&, AP4_AtomFactory&) (Ap4SampleEntry.cpp:420) ==1495== by 0x1B68EC: AP4_MpegAudioSampleEntry::AP4_MpegAudioSampleEntry(unsigned int, unsigned int, AP4_ByteStream&, AP4_AtomFactory&) (Ap4SampleEntry.cpp:655) [mp4info-2.pdf](https://github.com/axiomatic-systems/Bento4/files/3705035/mp4info-2.pdf) ==6306== Uninitialised value was created by a heap allocation ==6306== at 0x4C3017F: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==6306== by 0x188554: AP4_Array<AP4_DataBuffer>::EnsureCapacity(unsigned int) (Ap4Array.h:172) ==6306== by 0x187A80: AP4_AvccAtom::AP4_AvccAtom(unsigned int, unsigned char const*) (Ap4AvccAtom.cpp:166) ==6306== by 0x18754B: AP4_AvccAtom::Create(unsigned int, AP4_ByteStream&) (Ap4AvccAtom.cpp:95) ==6306== by 0x1857EF: AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) (Ap4AtomFactory.cpp:491) ==6306== by 0x184659: AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) (Ap4AtomFactory.cpp:231) ==6306== by 0x18BBD9: AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) (Ap4ContainerAtom.cpp:194) ==6306== by 0x1B513A: AP4_SampleEntry::Read(AP4_ByteStream&, AP4_AtomFactory&) (Ap4SampleEntry.cpp:115) ==6306== by 0x1B6CBC: AP4_VisualSampleEntry::AP4_VisualSampleEntry(unsigned int, unsigned int, AP4_ByteStream&, AP4_AtomFactory&) (Ap4SampleEntry.cpp:742) ==6306== by 0x1B7698: AP4_AvcSampleEntry::AP4_AvcSampleEntry(unsigned int, unsigned int, AP4_ByteStream&, AP4_AtomFactory&) (Ap4SampleEntry.cpp:994) ==6306== by 0x184B49: AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) (Ap4AtomFactory.cpp:316) ==6306== by 0x184659: AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) (Ap4AtomFactory.cpp:231) [mp4info-3.pdf](https://github.com/axiomatic-systems/Bento4/files/3705037/mp4info-3.pdf) ==9151== Uninitialised value was created by a heap allocation ==9151== at 0x4C3089F: operator new[](unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==9151== by 0x18E77E: AP4_DataBuffer::ReallocateBuffer(unsigned int) (Ap4DataBuffer.cpp:210) ==9151== by 0x18E5D6: AP4_DataBuffer::SetDataSize(unsigned int) (Ap4DataBuffer.cpp:151) ==9151== by 0x1B1AB2: AP4_Sample::ReadData(AP4_DataBuffer&, unsigned int, unsigned int) (Ap4Sample.cpp:156) ==9151== by 0x1B19E3: AP4_Sample::ReadData(AP4_DataBuffer&) (Ap4Sample.cpp:127) ==9151== by 0x177419: ShowTrackInfo_Text(AP4_Movie&, AP4_Track&, AP4_ByteStream&, bool, bool, bool, bool) (Mp4Info.cpp:1166) ==9151== by 0x177BF8: ShowTrackInfo(AP4_Movie&, AP4_Track&, AP4_ByteStream&, bool, bool, bool, bool) (Mp4Info.cpp:1276) ==9151== by 0x178101: ShowTracks(AP4_Movie&, AP4_List<AP4_Track>&, AP4_ByteStream&, bool, bool, bool, bool) (Mp4Info.cpp:1386) ==9151== by 0x179094: main (Mp4Info.cpp:1650) ==9151== [mp4info-5.pdf](https://github.com/axiomatic-systems/Bento4/files/3705040/mp4info-5.pdf) ==13257== Uninitialised value was created by a heap allocation ==13257== at 0x4C3089F: operator new[](unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==13257== by 0x17A45D: AP4_BitStream::AP4_BitStream() (Ap4BitStream.cpp:45) ==13257== by 0x1764FD: ShowAvcInfo(AP4_DataBuffer const&, AP4_AvcSampleDescription*) (Mp4Info.cpp:950) ==13257== by 0x17686C: ShowSample_Text(AP4_Track&, AP4_Sample&, AP4_DataBuffer&, unsigned int, bool, bool, AP4_AvcSampleDescription*) (Mp4Info.cpp:1014) ==13257== by 0x177452: ShowTrackInfo_Text(AP4_Movie&, AP4_Track&, AP4_ByteStream&, bool, bool, bool, bool) (Mp4Info.cpp:1169) ==13257== by 0x177BF8: ShowTrackInfo(AP4_Movie&, AP4_Track&, AP4_ByteStream&, bool, bool, bool, bool) (Mp4Info.cpp:1276) ==13257== by 0x178101: ShowTracks(AP4_Movie&, AP4_List<AP4_Track>&, AP4_ByteStream&, bool, bool, bool, bool) (Mp4Info.cpp:1386) ==13257== by 0x179094: main (Mp4Info.cpp:1650) [mp4info-6.pdf](https://github.com/axiomatic-systems/Bento4/files/3705046/mp4info-6.pdf) ==18614== Uninitialised value was created by a heap allocation ==18614== at 0x4C3089F: operator new[](unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==18614== by 0x18E77E: AP4_DataBuffer::ReallocateBuffer(unsigned int) (Ap4DataBuffer.cpp:210) ==18614== by 0x18E5D6: AP4_DataBuffer::SetDataSize(unsigned int) (Ap4DataBuffer.cpp:151) ==18614== by 0x1E435A: AP4_DecoderSpecificInfoDescriptor::AP4_DecoderSpecificInfoDescriptor(AP4_ByteStream&, unsigned int, unsigned int) (Ap4DecoderSpecificInfoDescriptor.cpp:63) ==18614== by 0x1E4AAA: AP4_DescriptorFactory::CreateDescriptorFromStream(AP4_ByteStream&, AP4_Descriptor*&) (Ap4DescriptorFactory.cpp:110) ==18614== by 0x1E3D16: AP4_DecoderConfigDescriptor::AP4_DecoderConfigDescriptor(AP4_ByteStream&, unsigned int, unsigned int) (Ap4DecoderConfigDescriptor.cpp:94) ==18614== by 0x1E4A7C: AP4_DescriptorFactory::CreateDescriptorFromStream(AP4_ByteStream&, AP4_Descriptor*&) (Ap4DescriptorFactory.cpp:106) ==18614== by 0x1E5018: AP4_EsDescriptor::AP4_EsDescriptor(AP4_ByteStream&, unsigned int, unsigned int) (Ap4EsDescriptor.cpp:111) ==18614== by 0x1E4A4E: AP4_DescriptorFactory::CreateDescriptorFromStream(AP4_ByteStream&, AP4_Descriptor*&) (Ap4DescriptorFactory.cpp:102) ==18614== by 0x190B5F: AP4_EsdsAtom::AP4_EsdsAtom(unsigned int, unsigned char, unsigned int, AP4_ByteStream&) (Ap4EsdsAtom.cpp:76) ==18614== by 0x190A32: AP4_EsdsAtom::Create(unsigned int, AP4_ByteStream&) (Ap4EsdsAtom.cpp:52) ==18614== by 0x1857BC: AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) (Ap4AtomFactory.cpp:486) [mp4info-8.pdf](https://github.com/axiomatic-systems/Bento4/files/3705050/mp4info-8.pdf)
Multiple uninitialized use in mp4info
https://api.github.com/repos/axiomatic-systems/Bento4/issues/445/comments
0
2019-10-09T00:38:44Z
2019-10-09T00:38:44Z
https://github.com/axiomatic-systems/Bento4/issues/445
504,346,993
445
[ "axiomatic-systems", "Bento4" ]
Multiple uninitialized use on heap are detected in avcinfo. git commit: 7242177 To trigger these uninitialized use and get the error information: valgrind ./mp4decrypt PoC /dev/null ==24524== Uninitialised value was created by a heap allocation ==24524== at 0x4C3089F: operator new[](unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==24524== by 0x1132EF: AP4_BitStream::AP4_BitStream() (Ap4BitStream.cpp:45) ==24524== by 0x10F338: PrintSliceInfo(unsigned char const*) (AvcInfo.cpp:83) ==24524== by 0x10F7D3: main (AvcInfo.cpp:171) [avcinfo-1.pdf](https://github.com/axiomatic-systems/Bento4/files/3705026/avcinfo-1.pdf)
Uninitialized use in avcinfo
https://api.github.com/repos/axiomatic-systems/Bento4/issues/444/comments
0
2019-10-09T00:27:39Z
2019-10-09T00:27:39Z
https://github.com/axiomatic-systems/Bento4/issues/444
504,344,326
444
[ "axiomatic-systems", "Bento4" ]
Multiple uninitialized use on heap are detected in mp4dump. git commit: 7242177 Because there is too much output from Valgrind, so I just select error information of unique buffers based on the stack trace of the allocation point in program, PoC to trigger uninitialized use of different buffers are attached. To trigger these uninitialized use and get the error information: valgrind ./mp4dump --verbosity 3 PoC ==12662== Uninitialised value was created by a heap allocation ==12662== at 0x4C3017F: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==12662== by 0x1D2F74: AP4_DescriptorFactory::CreateDescriptorFromStream(AP4_ByteStream&, AP4_Descriptor*&) (Ap4DescriptorFactory.cpp:106) ==12662== by 0x1D3528: AP4_EsDescriptor::AP4_EsDescriptor(AP4_ByteStream&, unsigned int, unsigned int) (Ap4EsDescriptor.cpp:111) ==12662== by 0x1D2F5E: AP4_DescriptorFactory::CreateDescriptorFromStream(AP4_ByteStream&, AP4_Descriptor*&) (Ap4DescriptorFactory.cpp:102) ==12662== by 0x180D4B: AP4_EsdsAtom::AP4_EsdsAtom(unsigned int, unsigned char, unsigned int, AP4_ByteStream&) (Ap4EsdsAtom.cpp:76) ==12662== by 0x180C1E: AP4_EsdsAtom::Create(unsigned int, AP4_ByteStream&) (Ap4EsdsAtom.cpp:52) ==12662== by 0x17598C: AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) (Ap4AtomFactory.cpp:486) ==12662== by 0x174829: AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) (Ap4AtomFactory.cpp:231) ==12662== by 0x17BDB3: AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) (Ap4ContainerAtom.cpp:194) ==12662== by 0x1A2A32: AP4_SampleEntry::Read(AP4_ByteStream&, AP4_AtomFactory&) (Ap4SampleEntry.cpp:115) ==12662== by 0x1A373A: AP4_AudioSampleEntry::AP4_AudioSampleEntry(unsigned int, unsigned int, AP4_ByteStream&, AP4_AtomFactory&) (Ap4SampleEntry.cpp:420) ==12662== by 0x1A41E4: AP4_MpegAudioSampleEntry::AP4_MpegAudioSampleEntry(unsigned int, unsigned int, AP4_ByteStream&, AP4_AtomFactory&) (Ap4SampleEntry.cpp:655) ==12662== Uninitialised value was created by a heap allocation ==12662== at 0x4C3089F: operator new[](unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==12662== by 0x17E958: AP4_DataBuffer::ReallocateBuffer(unsigned int) (Ap4DataBuffer.cpp:210) ==12662== by 0x17E7B0: AP4_DataBuffer::SetDataSize(unsigned int) (Ap4DataBuffer.cpp:151) ==12662== by 0x1D286A: AP4_DecoderSpecificInfoDescriptor::AP4_DecoderSpecificInfoDescriptor(AP4_ByteStream&, unsigned int, unsigned int) (Ap4DecoderSpecificInfoDescriptor.cpp:63) ==12662== by 0x1D2FBA: AP4_DescriptorFactory::CreateDescriptorFromStream(AP4_ByteStream&, AP4_Descriptor*&) (Ap4DescriptorFactory.cpp:110) ==12662== by 0x18F396: AP4_InitialObjectDescriptor::AP4_InitialObjectDescriptor(AP4_ByteStream&, unsigned char, unsigned int, unsigned int) (Ap4ObjectDescriptor.cpp:263) ==12662== by 0x1D2ED4: AP4_DescriptorFactory::CreateDescriptorFromStream(AP4_ByteStream&, AP4_Descriptor*&) (Ap4DescriptorFactory.cpp:90) ==12662== by 0x1D3528: AP4_EsDescriptor::AP4_EsDescriptor(AP4_ByteStream&, unsigned int, unsigned int) (Ap4EsDescriptor.cpp:111) ==12662== by 0x1D2F5E: AP4_DescriptorFactory::CreateDescriptorFromStream(AP4_ByteStream&, AP4_Descriptor*&) (Ap4DescriptorFactory.cpp:102) ==12662== by 0x180D4B: AP4_EsdsAtom::AP4_EsdsAtom(unsigned int, unsigned char, unsigned int, AP4_ByteStream&) (Ap4EsdsAtom.cpp:76) ==12662== by 0x180C1E: AP4_EsdsAtom::Create(unsigned int, AP4_ByteStream&) (Ap4EsdsAtom.cpp:52) ==12662== by 0x17598C: AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) (Ap4AtomFactory.cpp:486) [mp4dump-5.pdf](https://github.com/axiomatic-systems/Bento4/files/3705018/mp4dump-5.pdf) ==16458== at 0x4C3089F: operator new[](unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==16458== by 0x17E958: AP4_DataBuffer::ReallocateBuffer(unsigned int) (Ap4DataBuffer.cpp:210) ==16458== by 0x17E7B0: AP4_DataBuffer::SetDataSize(unsigned int) (Ap4DataBuffer.cpp:151) ==16458== by 0x1D286A: AP4_DecoderSpecificInfoDescriptor::AP4_DecoderSpecificInfoDescriptor(AP4_ByteStream&, unsigned int, unsigned int) (Ap4DecoderSpecificInfoDescriptor.cpp:63) ==16458== by 0x1D2FBA: AP4_DescriptorFactory::CreateDescriptorFromStream(AP4_ByteStream&, AP4_Descriptor*&) (Ap4DescriptorFactory.cpp:110) ==16458== by 0x18F396: AP4_InitialObjectDescriptor::AP4_InitialObjectDescriptor(AP4_ByteStream&, unsigned char, unsigned int, unsigned int) (Ap4ObjectDescriptor.cpp:263) ==16458== by 0x1D2ED4: AP4_DescriptorFactory::CreateDescriptorFromStream(AP4_ByteStream&, AP4_Descriptor*&) (Ap4DescriptorFactory.cpp:90) ==16458== by 0x18F396: AP4_InitialObjectDescriptor::AP4_InitialObjectDescriptor(AP4_ByteStream&, unsigned char, unsigned int, unsigned int) (Ap4ObjectDescriptor.cpp:263) ==16458== by 0x1D2ED4: AP4_DescriptorFactory::CreateDescriptorFromStream(AP4_ByteStream&, AP4_Descriptor*&) (Ap4DescriptorFactory.cpp:90) ==16458== by 0x1D3528: AP4_EsDescriptor::AP4_EsDescriptor(AP4_ByteStream&, unsigned int, unsigned int) (Ap4EsDescriptor.cpp:111) ==16458== by 0x1D2F5E: AP4_DescriptorFactory::CreateDescriptorFromStream(AP4_ByteStream&, AP4_Descriptor*&) (Ap4DescriptorFactory.cpp:102) ==16458== by 0x180D4B: AP4_EsdsAtom::AP4_EsdsAtom(unsigned int, unsigned char, unsigned int, AP4_ByteStream&) (Ap4EsdsAtom.cpp:76) [mp4dump-6.pdf](https://github.com/axiomatic-systems/Bento4/files/3705020/mp4dump-6.pdf)
multiple uninitialized use in mp4dump
https://api.github.com/repos/axiomatic-systems/Bento4/issues/443/comments
0
2019-10-09T00:25:33Z
2019-10-09T00:25:33Z
https://github.com/axiomatic-systems/Bento4/issues/443
504,343,827
443
[ "axiomatic-systems", "Bento4" ]
Multiple uninitialized use on heap are detected in mp4decrypt. git commit: 724217782913797e3c20ba387b9839a65ee86576 Because there is too much output from Valgrind, so I just select error information of unique buffers based on the stack trace of the allocation point in program, PoC to trigger uninitialized use of different buffers are attached. To trigger these uninitialized use and get the error information: valgrind ./mp4decrypt PoC /dev/null ==28555== Uninitialised value was created by a heap allocation ==28555== at 0x4C3089F: operator new[](unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==28555== by 0x187C6E: AP4_DataBuffer::ReallocateBuffer(unsigned int) (Ap4DataBuffer.cpp:210) ==28555== by 0x187AC6: AP4_DataBuffer::SetDataSize(unsigned int) (Ap4DataBuffer.cpp:151) ==28555== by 0x1AAFE8: AP4_Sample::ReadData(AP4_DataBuffer&, unsigned int, unsigned int) (Ap4Sample.cpp:156) ==28555== by 0x1AAF19: AP4_Sample::ReadData(AP4_DataBuffer&) (Ap4Sample.cpp:127) ==28555== by 0x1A1CC8: AP4_Processor::Process(AP4_ByteStream&, AP4_ByteStream&, AP4_ByteStream*, AP4_Processor::ProgressListener*, AP4_AtomFactory&) (Ap4Processor.cpp:673) ==28555== by 0x1A244E: AP4_Processor::Process(AP4_ByteStream&, AP4_ByteStream&, AP4_Processor::ProgressListener*, AP4_AtomFactory&) (Ap4Processor.cpp:761) ==28555== by 0x1700E4: main (Mp4Decrypt.cpp:258) [mp4decrypt-1.pdf](https://github.com/axiomatic-systems/Bento4/files/3704952/mp4decrypt-1.pdf) ==28925== Uninitialised value was created by a heap allocation ==28925== at 0x4C3089F: operator new[](unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==28925== by 0x187C6E: AP4_DataBuffer::ReallocateBuffer(unsigned int) (Ap4DataBuffer.cpp:210) ==28925== by 0x187AC6: AP4_DataBuffer::SetDataSize(unsigned int) (Ap4DataBuffer.cpp:151) ==28925== by 0x1DE049: AP4_UnknownDescriptor::AP4_UnknownDescriptor(AP4_ByteStream&, unsigned char, unsigned int, unsigned int) (Ap4Descriptor.cpp:65) ==28925== by 0x1DE4D8: AP4_DescriptorFactory::CreateDescriptorFromStream(AP4_ByteStream&, AP4_Descriptor*&) (Ap4DescriptorFactory.cpp:127) ==28925== by 0x197F48: AP4_InitialObjectDescriptor::AP4_InitialObjectDescriptor(AP4_ByteStream&, unsigned char, unsigned int, unsigned int) (Ap4ObjectDescriptor.cpp:263) ==28925== by 0x1DE32E: AP4_DescriptorFactory::CreateDescriptorFromStream(AP4_ByteStream&, AP4_Descriptor*&) (Ap4DescriptorFactory.cpp:90) ==28925== by 0x1DE982: AP4_EsDescriptor::AP4_EsDescriptor(AP4_ByteStream&, unsigned int, unsigned int) (Ap4EsDescriptor.cpp:111) ==28925== by 0x1DE3B8: AP4_DescriptorFactory::CreateDescriptorFromStream(AP4_ByteStream&, AP4_Descriptor*&) (Ap4DescriptorFactory.cpp:102) ==28925== by 0x189F57: AP4_EsdsAtom::AP4_EsdsAtom(unsigned int, unsigned char, unsigned int, AP4_ByteStream&) (Ap4EsdsAtom.cpp:76) ==28925== by 0x189E2A: AP4_EsdsAtom::Create(unsigned int, AP4_ByteStream&) (Ap4EsdsAtom.cpp:52) ==28925== by 0x17199E: AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) (Ap4AtomFactory.cpp:486) [mp4decrypt-2.pdf](https://github.com/axiomatic-systems/Bento4/files/3704953/mp4decrypt-2.pdf) ==1312== Uninitialised value was created by a heap allocation ==1312== at 0x4C3089F: operator new[](unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==1312== by 0x187C6E: AP4_DataBuffer::ReallocateBuffer(unsigned int) (Ap4DataBuffer.cpp:210) ==1312== by 0x187AC6: AP4_DataBuffer::SetDataSize(unsigned int) (Ap4DataBuffer.cpp:151) ==1312== by 0x1DE049: AP4_UnknownDescriptor::AP4_UnknownDescriptor(AP4_ByteStream&, unsigned char, unsigned int, unsigned int) (Ap4Descriptor.cpp:65) ==1312== by 0x1DE4D8: AP4_DescriptorFactory::CreateDescriptorFromStream(AP4_ByteStream&, AP4_Descriptor*&) (Ap4DescriptorFactory.cpp:127) ==1312== by 0x1DE982: AP4_EsDescriptor::AP4_EsDescriptor(AP4_ByteStream&, unsigned int, unsigned int) (Ap4EsDescriptor.cpp:111) ==1312== by 0x1DE3B8: AP4_DescriptorFactory::CreateDescriptorFromStream(AP4_ByteStream&, AP4_Descriptor*&) (Ap4DescriptorFactory.cpp:102) ==1312== by 0x189F57: AP4_EsdsAtom::AP4_EsdsAtom(unsigned int, unsigned char, unsigned int, AP4_ByteStream&) (Ap4EsdsAtom.cpp:76) ==1312== by 0x189E2A: AP4_EsdsAtom::Create(unsigned int, AP4_ByteStream&) (Ap4EsdsAtom.cpp:52) ==1312== by 0x17199E: AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) (Ap4AtomFactory.cpp:486) ==1312== by 0x17083B: AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) (Ap4AtomFactory.cpp:231) ==1312== by 0x184E31: AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) (Ap4ContainerAtom.cpp:194) ==1312== ==1312== [mp4decrypt-7.pdf](https://github.com/axiomatic-systems/Bento4/files/3704962/mp4decrypt-7.pdf) ==7750== Uninitialised value was created by a heap allocation ==7750== at 0x4C3089F: operator new[](unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==7750== by 0x187C6E: AP4_DataBuffer::ReallocateBuffer(unsigned int) (Ap4DataBuffer.cpp:210) ==7750== by 0x187AC6: AP4_DataBuffer::SetDataSize(unsigned int) (Ap4DataBuffer.cpp:151) ==7750== by 0x1DDCC4: AP4_DecoderSpecificInfoDescriptor::AP4_DecoderSpecificInfoDescriptor(AP4_ByteStream&, unsigned int, unsigned int) (Ap4DecoderSpecificInfoDescriptor.cpp:63) ==7750== by 0x1DE414: AP4_DescriptorFactory::CreateDescriptorFromStream(AP4_ByteStream&, AP4_Descriptor*&) (Ap4DescriptorFactory.cpp:110) ==7750== by 0x1DD680: AP4_DecoderConfigDescriptor::AP4_DecoderConfigDescriptor(AP4_ByteStream&, unsigned int, unsigned int) (Ap4DecoderConfigDescriptor.cpp:94) ==7750== by 0x1DE3E6: AP4_DescriptorFactory::CreateDescriptorFromStream(AP4_ByteStream&, AP4_Descriptor*&) (Ap4DescriptorFactory.cpp:106) ==7750== by 0x1DE982: AP4_EsDescriptor::AP4_EsDescriptor(AP4_ByteStream&, unsigned int, unsigned int) (Ap4EsDescriptor.cpp:111) ==7750== by 0x1DE3B8: AP4_DescriptorFactory::CreateDescriptorFromStream(AP4_ByteStream&, AP4_Descriptor*&) (Ap4DescriptorFactory.cpp:102) ==7750== by 0x189F57: AP4_EsdsAtom::AP4_EsdsAtom(unsigned int, unsigned char, unsigned int, AP4_ByteStream&) (Ap4EsdsAtom.cpp:76) ==7750== by 0x189E2A: AP4_EsdsAtom::Create(unsigned int, AP4_ByteStream&) (Ap4EsdsAtom.cpp:52) ==7750== by 0x17199E: AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) (Ap4AtomFactory.cpp:486) ==7750== ==7750== [mp4decryp-8.pdf](https://github.com/axiomatic-systems/Bento4/files/3704974/mp4decryp-8.pdf) ==10656== Uninitialised value was created by a heap allocation ==10656== at 0x4C3017F: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10656== by 0x1DE3A0: AP4_DescriptorFactory::CreateDescriptorFromStream(AP4_ByteStream&, AP4_Descriptor*&) (Ap4DescriptorFactory.cpp:102) ==10656== by 0x189F57: AP4_EsdsAtom::AP4_EsdsAtom(unsigned int, unsigned char, unsigned int, AP4_ByteStream&) (Ap4EsdsAtom.cpp:76) ==10656== by 0x189E2A: AP4_EsdsAtom::Create(unsigned int, AP4_ByteStream&) (Ap4EsdsAtom.cpp:52) ==10656== by 0x17199E: AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) (Ap4AtomFactory.cpp:486) ==10656== by 0x17083B: AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) (Ap4AtomFactory.cpp:231) ==10656== by 0x184E31: AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) (Ap4ContainerAtom.cpp:194) ==10656== by 0x1AE856: AP4_SampleEntry::Read(AP4_ByteStream&, AP4_AtomFactory&) (Ap4SampleEntry.cpp:115) ==10656== by 0x1AF55E: AP4_AudioSampleEntry::AP4_AudioSampleEntry(unsigned int, unsigned int, AP4_ByteStream&, AP4_AtomFactory&) (Ap4SampleEntry.cpp:420) ==10656== by 0x1B0008: AP4_MpegAudioSampleEntry::AP4_MpegAudioSampleEntry(unsigned int, unsigned int, AP4_ByteStream&, AP4_AtomFactory&) (Ap4SampleEntry.cpp:655) ==10656== by 0x1B0211: AP4_Mp4aSampleEntry::AP4_Mp4aSampleEntry(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) (Ap4SampleEntry.cpp:702) ==10656== by 0x170BCE: AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) (Ap4AtomFactory.cpp:283) ==10656== ==10656== [mp4decrypt-9.pdf](https://github.com/axiomatic-systems/Bento4/files/3704976/mp4decrypt-9.pdf) ==12979== Uninitialised value was created by a heap allocation ==12979== at 0x4C3017F: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==12979== by 0x1DE3CE: AP4_DescriptorFactory::CreateDescriptorFromStream(AP4_ByteStream&, AP4_Descriptor*&) (Ap4DescriptorFactory.cpp:106) ==12979== by 0x1DE982: AP4_EsDescriptor::AP4_EsDescriptor(AP4_ByteStream&, unsigned int, unsigned int) (Ap4EsDescriptor.cpp:111) ==12979== by 0x1DE3B8: AP4_DescriptorFactory::CreateDescriptorFromStream(AP4_ByteStream&, AP4_Descriptor*&) (Ap4DescriptorFactory.cpp:102) ==12979== by 0x189F57: AP4_EsdsAtom::AP4_EsdsAtom(unsigned int, unsigned char, unsigned int, AP4_ByteStream&) (Ap4EsdsAtom.cpp:76) ==12979== by 0x189E2A: AP4_EsdsAtom::Create(unsigned int, AP4_ByteStream&) (Ap4EsdsAtom.cpp:52) ==12979== by 0x17199E: AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) (Ap4AtomFactory.cpp:486) ==12979== by 0x17083B: AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) (Ap4AtomFactory.cpp:231) ==12979== by 0x184E31: AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) (Ap4ContainerAtom.cpp:194) ==12979== by 0x1AE856: AP4_SampleEntry::Read(AP4_ByteStream&, AP4_AtomFactory&) (Ap4SampleEntry.cpp:115) ==12979== by 0x1AF55E: AP4_AudioSampleEntry::AP4_AudioSampleEntry(unsigned int, unsigned int, AP4_ByteStream&, AP4_AtomFactory&) (Ap4SampleEntry.cpp:420) ==12979== by 0x1B0008: AP4_MpegAudioSampleEntry::AP4_MpegAudioSampleEntry(unsigned int, unsigned int, AP4_ByteStream&, AP4_AtomFactory&) (Ap4SampleEntry.cpp:655) ==12979== ==12979== [mp4decrypt-10.pdf](https://github.com/axiomatic-systems/Bento4/files/3704978/mp4decrypt-10.pdf) ==15124== Uninitialised value was created by a heap allocation ==15124== at 0x4C3089F: operator new[](unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==15124== by 0x187C6E: AP4_DataBuffer::ReallocateBuffer(unsigned int) (Ap4DataBuffer.cpp:210) ==15124== by 0x187AC6: AP4_DataBuffer::SetDataSize(unsigned int) (Ap4DataBuffer.cpp:151) ==15124== by 0x1DE049: AP4_UnknownDescriptor::AP4_UnknownDescriptor(AP4_ByteStream&, unsigned char, unsigned int, unsigned int) (Ap4Descriptor.cpp:65) ==15124== by 0x1DE4D8: AP4_DescriptorFactory::CreateDescriptorFromStream(AP4_ByteStream&, AP4_Descriptor*&) (Ap4DescriptorFactory.cpp:127) ==15124== by 0x19766D: AP4_ObjectDescriptor::AP4_ObjectDescriptor(AP4_ByteStream&, unsigned char, unsigned int, unsigned int) (Ap4ObjectDescriptor.cpp:100) ==15124== by 0x1DE2F6: AP4_DescriptorFactory::CreateDescriptorFromStream(AP4_ByteStream&, AP4_Descriptor*&) (Ap4DescriptorFactory.cpp:85) ==15124== by 0x1DD680: AP4_DecoderConfigDescriptor::AP4_DecoderConfigDescriptor(AP4_ByteStream&, unsigned int, unsigned int) (Ap4DecoderConfigDescriptor.cpp:94) ==15124== by 0x1DE3E6: AP4_DescriptorFactory::CreateDescriptorFromStream(AP4_ByteStream&, AP4_Descriptor*&) (Ap4DescriptorFactory.cpp:106) ==15124== by 0x1DE982: AP4_EsDescriptor::AP4_EsDescriptor(AP4_ByteStream&, unsigned int, unsigned int) (Ap4EsDescriptor.cpp:111) ==15124== by 0x1DE3B8: AP4_DescriptorFactory::CreateDescriptorFromStream(AP4_ByteStream&, AP4_Descriptor*&) (Ap4DescriptorFactory.cpp:102) ==15124== by 0x189F57: AP4_EsdsAtom::AP4_EsdsAtom(unsigned int, unsigned char, unsigned int, AP4_ByteStream&) (Ap4EsdsAtom.cpp:76) ==15124== [mp4decrypt-11.pdf](https://github.com/axiomatic-systems/Bento4/files/3704979/mp4decrypt-11.pdf) ==19093== Uninitialised value was created by a heap allocation ==19093== at 0x4C3017F: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==19093== by 0x1DE3A0: AP4_DescriptorFactory::CreateDescriptorFromStream(AP4_ByteStream&, AP4_Descriptor*&) (Ap4DescriptorFactory.cpp:102) ==19093== by 0x1DE982: AP4_EsDescriptor::AP4_EsDescriptor(AP4_ByteStream&, unsigned int, unsigned int) (Ap4EsDescriptor.cpp:111) ==19093== by 0x1DE3B8: AP4_DescriptorFactory::CreateDescriptorFromStream(AP4_ByteStream&, AP4_Descriptor*&) (Ap4DescriptorFactory.cpp:102) ==19093== by 0x189F57: AP4_EsdsAtom::AP4_EsdsAtom(unsigned int, unsigned char, unsigned int, AP4_ByteStream&) (Ap4EsdsAtom.cpp:76) ==19093== by 0x189E2A: AP4_EsdsAtom::Create(unsigned int, AP4_ByteStream&) (Ap4EsdsAtom.cpp:52) ==19093== by 0x17199E: AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) (Ap4AtomFactory.cpp:486) ==19093== by 0x17083B: AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) (Ap4AtomFactory.cpp:231) ==19093== by 0x184E31: AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) (Ap4ContainerAtom.cpp:194) ==19093== by 0x1AE856: AP4_SampleEntry::Read(AP4_ByteStream&, AP4_AtomFactory&) (Ap4SampleEntry.cpp:115) ==19093== by 0x1AF55E: AP4_AudioSampleEntry::AP4_AudioSampleEntry(unsigned int, unsigned int, AP4_ByteStream&, AP4_AtomFactory&) (Ap4SampleEntry.cpp:420) ==19093== by 0x1B0008: AP4_MpegAudioSampleEntry::AP4_MpegAudioSampleEntry(unsigned int, unsigned int, AP4_ByteStream&, AP4_AtomFactory&) (Ap4SampleEntry.cpp:655) ==19093== [mp4decrypt-12.pdf](https://github.com/axiomatic-systems/Bento4/files/3704981/mp4decrypt-12.pdf) ==21167== Uninitialised value was created by a heap allocation ==21167== at 0x4C3017F: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==21167== by 0x1DE2D4: AP4_DescriptorFactory::CreateDescriptorFromStream(AP4_ByteStream&, AP4_Descriptor*&) (Ap4DescriptorFactory.cpp:85) ==21167== by 0x1DE982: AP4_EsDescriptor::AP4_EsDescriptor(AP4_ByteStream&, unsigned int, unsigned int) (Ap4EsDescriptor.cpp:111) ==21167== by 0x1DE3B8: AP4_DescriptorFactory::CreateDescriptorFromStream(AP4_ByteStream&, AP4_Descriptor*&) (Ap4DescriptorFactory.cpp:102) ==21167== by 0x189F57: AP4_EsdsAtom::AP4_EsdsAtom(unsigned int, unsigned char, unsigned int, AP4_ByteStream&) (Ap4EsdsAtom.cpp:76) ==21167== by 0x189E2A: AP4_EsdsAtom::Create(unsigned int, AP4_ByteStream&) (Ap4EsdsAtom.cpp:52) ==21167== by 0x17199E: AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) (Ap4AtomFactory.cpp:486) ==21167== by 0x17083B: AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) (Ap4AtomFactory.cpp:231) ==21167== by 0x184E31: AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) (Ap4ContainerAtom.cpp:194) ==21167== by 0x1AE856: AP4_SampleEntry::Read(AP4_ByteStream&, AP4_AtomFactory&) (Ap4SampleEntry.cpp:115) ==21167== by 0x1AF55E: AP4_AudioSampleEntry::AP4_AudioSampleEntry(unsigned int, unsigned int, AP4_ByteStream&, AP4_AtomFactory&) (Ap4SampleEntry.cpp:420) ==21167== by 0x1B0008: AP4_MpegAudioSampleEntry::AP4_MpegAudioSampleEntry(unsigned int, unsigned int, AP4_ByteStream&, AP4_AtomFactory&) (Ap4SampleEntry.cpp:655) ==21167== ==21167== [mp4decrypt-13.pdf](https://github.com/axiomatic-systems/Bento4/files/3704982/mp4decrypt-13.pdf) ==23173== Uninitialised value was created by a heap allocation ==23173== at 0x4C3017F: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==23173== by 0x1DE30C: AP4_DescriptorFactory::CreateDescriptorFromStream(AP4_ByteStream&, AP4_Descriptor*&) (Ap4DescriptorFactory.cpp:90) ==23173== by 0x1DE982: AP4_EsDescriptor::AP4_EsDescriptor(AP4_ByteStream&, unsigned int, unsigned int) (Ap4EsDescriptor.cpp:111) ==23173== by 0x1DE3B8: AP4_DescriptorFactory::CreateDescriptorFromStream(AP4_ByteStream&, AP4_Descriptor*&) (Ap4DescriptorFactory.cpp:102) ==23173== by 0x189F57: AP4_EsdsAtom::AP4_EsdsAtom(unsigned int, unsigned char, unsigned int, AP4_ByteStream&) (Ap4EsdsAtom.cpp:76) ==23173== by 0x189E2A: AP4_EsdsAtom::Create(unsigned int, AP4_ByteStream&) (Ap4EsdsAtom.cpp:52) ==23173== by 0x17199E: AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) (Ap4AtomFactory.cpp:486) ==23173== by 0x17083B: AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) (Ap4AtomFactory.cpp:231) ==23173== by 0x184E31: AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) (Ap4ContainerAtom.cpp:194) ==23173== by 0x1AE856: AP4_SampleEntry::Read(AP4_ByteStream&, AP4_AtomFactory&) (Ap4SampleEntry.cpp:115) ==23173== by 0x1AF55E: AP4_AudioSampleEntry::AP4_AudioSampleEntry(unsigned int, unsigned int, AP4_ByteStream&, AP4_AtomFactory&) (Ap4SampleEntry.cpp:420) ==23173== by 0x1B0008: AP4_MpegAudioSampleEntry::AP4_MpegAudioSampleEntry(unsigned int, unsigned int, AP4_ByteStream&, AP4_AtomFactory&) (Ap4SampleEntry.cpp:655) [mp4decrypt-14.pdf](https://github.com/axiomatic-systems/Bento4/files/3704986/mp4decrypt-14.pdf) ==8129== Uninitialised value was created by a heap allocation ==8129== at 0x4C3017F: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==8129== by 0x1DE3CE: AP4_DescriptorFactory::CreateDescriptorFromStream(AP4_ByteStream&, AP4_Descriptor*&) (Ap4DescriptorFactory.cpp:106) ==8129== by 0x1DD680: AP4_DecoderConfigDescriptor::AP4_DecoderConfigDescriptor(AP4_ByteStream&, unsigned int, unsigned int) (Ap4DecoderConfigDescriptor.cpp:94) ==8129== by 0x1DE3E6: AP4_DescriptorFactory::CreateDescriptorFromStream(AP4_ByteStream&, AP4_Descriptor*&) (Ap4DescriptorFactory.cpp:106) ==8129== by 0x1DE982: AP4_EsDescriptor::AP4_EsDescriptor(AP4_ByteStream&, unsigned int, unsigned int) (Ap4EsDescriptor.cpp:111) ==8129== by 0x1DE3B8: AP4_DescriptorFactory::CreateDescriptorFromStream(AP4_ByteStream&, AP4_Descriptor*&) (Ap4DescriptorFactory.cpp:102) ==8129== by 0x189F57: AP4_EsdsAtom::AP4_EsdsAtom(unsigned int, unsigned char, unsigned int, AP4_ByteStream&) (Ap4EsdsAtom.cpp:76) ==8129== by 0x189E2A: AP4_EsdsAtom::Create(unsigned int, AP4_ByteStream&) (Ap4EsdsAtom.cpp:52) ==8129== by 0x17199E: AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) (Ap4AtomFactory.cpp:486) ==8129== by 0x17083B: AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) (Ap4AtomFactory.cpp:231) ==8129== by 0x184E31: AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) (Ap4ContainerAtom.cpp:194) ==8129== by 0x1AE856: AP4_SampleEntry::Read(AP4_ByteStream&, AP4_AtomFactory&) (Ap4SampleEntry.cpp:115) ==8129== ==8129== [mp4decrypt-16.pdf](https://github.com/axiomatic-systems/Bento4/files/3705000/mp4decrypt-16.pdf)
Multiple uninitialized use in mp4decrypt
https://api.github.com/repos/axiomatic-systems/Bento4/issues/442/comments
0
2019-10-09T00:15:19Z
2019-10-09T00:15:19Z
https://github.com/axiomatic-systems/Bento4/issues/442
504,341,315
442
[ "axiomatic-systems", "Bento4" ]
Hi There, This project is still using an old implementation of LGTM's automated code review, which has now been disabled. To continue using automated code review, and receive checks on your Pull Requests, please [install the GitHub App](https://github.com/apps/lgtm-com/installations/new) on this repository. Thanks, The LGTM Team
Migrate LGTM.com installation from OAuth to GitHub App
https://api.github.com/repos/axiomatic-systems/Bento4/issues/440/comments
1
2019-10-07T22:31:26Z
2019-10-08T05:14:11Z
https://github.com/axiomatic-systems/Bento4/issues/440
503,725,109
440
[ "axiomatic-systems", "Bento4" ]
Hello dev team, I am quite new to MP4 container and this library. I would like to know how to: 1) Append more video data to end of an existing track of a mp4 file? Assume that new video data is encoded using same parameters as used for existing data. 2) Append more video track to an existing mp4 file without creating a new file?. Thanks.
How to append more video stream to an existing mp4 file?
https://api.github.com/repos/axiomatic-systems/Bento4/issues/439/comments
0
2019-10-07T04:44:18Z
2019-10-07T04:44:18Z
https://github.com/axiomatic-systems/Bento4/issues/439
503,229,941
439
[ "axiomatic-systems", "Bento4" ]
**System Details** Commit ID: bc1b02a Test Machine : Ubuntu 16.04.3 LTS MP4 Encrypter - Version 1.6 (Bento4 Version 1.5.1.0) **Command** mp4encrypt --method OMA-PDCF-CBC --show-progress POC /dev/null **ASAN Output** ``` fuzzer@thickfuzzer:~/victim/Bento4$ ./mp4encrypt --method OMA-PDCF-CBC --show-progress /home/fuzzer/victim/Bento4/cmakebuild/out3/4/crashes/unique/manul-1569860171-4-14003_id5_1.mp4 /dev/null WARNING: track ID 1 will not be encrypted ASAN:DEADLYSIGNAL ================================================================= ==11724==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x0000005a42f4 bp 0x7ffdb06d0290 sp 0x7ffdb06d01b0 T0) #0 0x5a42f3 in AP4_DescriptorListWriter::Action(AP4_Descriptor*) const /home/fuzzer/victim/Bento4/Source/C++/Core/Ap4Descriptor.h:108:16 #1 0x6c7886 in AP4_List<AP4_Descriptor>::Apply(AP4_List<AP4_Descriptor>::Item::Operator const&) const /home/fuzzer/victim/Bento4/Source/C++/Core/Ap4List.h:353:9 #2 0x6c7886 in AP4_InitialObjectDescriptor::WriteFields(AP4_ByteStream&) /home/fuzzer/victim/Bento4/Source/C++/Core/Ap4ObjectDescriptor.cpp:300 #3 0x5ff8a8 in AP4_Expandable::Write(AP4_ByteStream&) /home/fuzzer/victim/Bento4/Source/C++/Core/Ap4Expandable.cpp:105:5 #4 0x5ebc24 in AP4_IodsAtom::WriteFields(AP4_ByteStream&) /home/fuzzer/victim/Bento4/Source/C++/Core/Ap4IodsAtom.cpp:99:36 #5 0x5961a1 in AP4_Atom::Write(AP4_ByteStream&) /home/fuzzer/victim/Bento4/Source/C++/Core/Ap4Atom.cpp:229:14 #6 0x59b9b2 in AP4_AtomListWriter::Action(AP4_Atom*) const /home/fuzzer/victim/Bento4/Source/C++/Core/Ap4Atom.cpp:753:5 #7 0x587216 in AP4_List<AP4_Atom>::Apply(AP4_List<AP4_Atom>::Item::Operator const&) const /home/fuzzer/victim/Bento4/Source/C++/Core/Ap4List.h:353:9 #8 0x587216 in AP4_ContainerAtom::WriteFields(AP4_ByteStream&) /home/fuzzer/victim/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:232 #9 0x5961a1 in AP4_Atom::Write(AP4_ByteStream&) /home/fuzzer/victim/Bento4/Source/C++/Core/Ap4Atom.cpp:229:14 #10 0x59b9b2 in AP4_AtomListWriter::Action(AP4_Atom*) const /home/fuzzer/victim/Bento4/Source/C++/Core/Ap4Atom.cpp:753:5 #11 0x5b092e in AP4_List<AP4_Atom>::Apply(AP4_List<AP4_Atom>::Item::Operator const&) const /home/fuzzer/victim/Bento4/Source/C++/Core/Ap4List.h:353:9 #12 0x5b092e in AP4_Processor::Process(AP4_ByteStream&, AP4_ByteStream&, AP4_ByteStream*, AP4_Processor::ProgressListener*, AP4_AtomFactory&) /home/fuzzer/victim/Bento4/Source/C++/Core/Ap4Processor.cpp:644 #13 0x529852 in main /home/fuzzer/victim/Bento4/Source/C++/Apps/Mp4Encrypt/Mp4Encrypt.cpp:654:18 #14 0x7fdf1c6f482f in __libc_start_main /build/glibc-LK5gWL/glibc-2.23/csu/../csu/libc-start.c:291 #15 0x451428 in _start (/home/fuzzer/victim/Bento4/mp4encrypt+0x451428) AddressSanitizer can not provide additional info. SUMMARY: AddressSanitizer: SEGV /home/fuzzer/victim/Bento4/Source/C++/Core/Ap4Descriptor.h:108:16 in AP4_DescriptorListWriter::Action(AP4_Descriptor*) const ==11724==ABORTING ```
SEGV in mp4encrypt
https://api.github.com/repos/axiomatic-systems/Bento4/issues/437/comments
0
2019-09-30T16:31:42Z
2019-10-08T05:14:30Z
https://github.com/axiomatic-systems/Bento4/issues/437
500,387,590
437
[ "axiomatic-systems", "Bento4" ]
**System Details** Commit ID: bc1b02a Test Machine : Ubuntu 16.04.3 LTS MP4 Compacter - Version 1.0 (Bento4 Version 1.5.1.0) **Command** mp4compact POC /dev/null **ASAN Output** ``` ASAN:DEADLYSIGNAL ================================================================= ==5286==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x000000544c94 bp 0x7ffd515e2390 sp 0x7ffd515e22b0 T0) #0 0x544c93 in AP4_DescriptorListWriter::Action(AP4_Descriptor*) const /home/fuzzer/victim/Bento4/Source/C++/Core/Ap4Descriptor.h:108:16 #1 0x698656 in AP4_List<AP4_Descriptor>::Apply(AP4_List<AP4_Descriptor>::Item::Operator const&) const /home/fuzzer/victim/Bento4/Source/C++/Core/Ap4List.h:353:9 #2 0x698656 in AP4_InitialObjectDescriptor::WriteFields(AP4_ByteStream&) /home/fuzzer/victim/Bento4/Source/C++/Core/Ap4ObjectDescriptor.cpp:300 #3 0x5974e8 in AP4_Expandable::Write(AP4_ByteStream&) /home/fuzzer/victim/Bento4/Source/C++/Core/Ap4Expandable.cpp:105:5 #4 0x585e34 in AP4_IodsAtom::WriteFields(AP4_ByteStream&) /home/fuzzer/victim/Bento4/Source/C++/Core/Ap4IodsAtom.cpp:99:36 #5 0x536b11 in AP4_Atom::Write(AP4_ByteStream&) /home/fuzzer/victim/Bento4/Source/C++/Core/Ap4Atom.cpp:229:14 #6 0x53c322 in AP4_AtomListWriter::Action(AP4_Atom*) const /home/fuzzer/victim/Bento4/Source/C++/Core/Ap4Atom.cpp:753:5 #7 0x54dbfe in AP4_List<AP4_Atom>::Apply(AP4_List<AP4_Atom>::Item::Operator const&) const /home/fuzzer/victim/Bento4/Source/C++/Core/Ap4List.h:353:9 #8 0x54dbfe in AP4_Processor::Process(AP4_ByteStream&, AP4_ByteStream&, AP4_ByteStream*, AP4_Processor::ProgressListener*, AP4_AtomFactory&) /home/fuzzer/victim/Bento4/Source/C++/Core/Ap4Processor.cpp:644 #9 0x5262cf in main /home/fuzzer/victim/Bento4/Source/C++/Apps/Mp4Compact/Mp4Compact.cpp:220:14 #10 0x7f91a991a82f in __libc_start_main /build/glibc-LK5gWL/glibc-2.23/csu/../csu/libc-start.c:291 #11 0x4509e8 in _start (/home/fuzzer/victim/Bento4/mp4compact+0x4509e8) AddressSanitizer can not provide additional info. SUMMARY: AddressSanitizer: SEGV /home/fuzzer/victim/Bento4/Source/C++/Core/Ap4Descriptor.h:108:16 in AP4_DescriptorListWriter::Action(AP4_Descriptor*) const ==5286==ABORTING ```
SEGV in mp4compact
https://api.github.com/repos/axiomatic-systems/Bento4/issues/436/comments
0
2019-09-30T07:47:11Z
2019-10-08T05:14:45Z
https://github.com/axiomatic-systems/Bento4/issues/436
500,109,805
436
[ "axiomatic-systems", "Bento4" ]
**System Details** Commit ID: bc1b02a Test Machine : Ubuntu 16.04.3 LTS MP4 File Info - Version 1.3.4 (Bento4 Version 1.5.1.0) **Command** mp4info --show-samples POC-file **ASAN Output** ``` ASAN:DEADLYSIGNAL ================================================================= ==17894==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000008 (pc 0x000000583949 bp 0x7ffd5359b2c0 sp 0x7ffd5359b1f0 T0) #0 0x583948 in AP4_Descriptor::GetTag() /home/fuzzer/victim/Bento4/Source/C++/Core/Ap4Descriptor.h:61:42 #1 0x583948 in AP4_DescriptorFinder::Test(AP4_Descriptor*) const /home/fuzzer/victim/Bento4/Source/C++/Core/Ap4Descriptor.h:92 #2 0x582ce9 in AP4_List<AP4_Descriptor>::Find(AP4_List<AP4_Descriptor>::Item::Finder const&, AP4_Descriptor*&) const /home/fuzzer/victim/Bento4/Source/C++/Core/Ap4List.h:431:13 #3 0x582ce9 in AP4_EsDescriptor::GetDecoderConfigDescriptor() const /home/fuzzer/victim/Bento4/Source/C++/Core/Ap4EsDescriptor.cpp:207 #4 0x5b7151 in AP4_MpegSampleDescription::AP4_MpegSampleDescription(unsigned int, AP4_EsdsAtom*) /home/fuzzer/victim/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:583:13 #5 0x5b8df8 in AP4_MpegVideoSampleDescription::AP4_MpegVideoSampleDescription(unsigned short, unsigned short, unsigned short, char const*, AP4_EsdsAtom*) /home/fuzzer/victim/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:801:5 #6 0x6b2e80 in AP4_MpegVideoSampleEntry::ToSampleDescription() /home/fuzzer/victim/Bento4/Source/C++/Core/Ap4SampleEntry.cpp:934:16 #7 0x5ae4b2 in AP4_StsdAtom::GetSampleDescription(unsigned int) /home/fuzzer/victim/Bento4/Source/C++/Core/Ap4StsdAtom.cpp:181:39 #8 0x6912f5 in AP4_AtomSampleTable::GetSampleDescription(unsigned int) /home/fuzzer/victim/Bento4/Source/C++/Core/Ap4AtomSampleTable.cpp:207:25 #9 0x5868e4 in AP4_Track::GetSampleDescription(unsigned int) /home/fuzzer/victim/Bento4/Source/C++/Core/Ap4Track.cpp:445:28 #10 0x52b2a7 in ShowTrackInfo_Text(AP4_Movie&, AP4_Track&, AP4_ByteStream&, bool, bool, bool, bool) /home/fuzzer/victim/Bento4/Source/C++/Apps/Mp4Info/Mp4Info.cpp:1152:46 #11 0x52b2a7 in ShowTrackInfo(AP4_Movie&, AP4_Track&, AP4_ByteStream&, bool, bool, bool, bool) /home/fuzzer/victim/Bento4/Source/C++/Apps/Mp4Info/Mp4Info.cpp:1276 #12 0x52a66c in ShowTracks(AP4_Movie&, AP4_List<AP4_Track>&, AP4_ByteStream&, bool, bool, bool, bool) /home/fuzzer/victim/Bento4/Source/C++/Apps/Mp4Info/Mp4Info.cpp:1386:9 #13 0x527cd8 in main /home/fuzzer/victim/Bento4/Source/C++/Apps/Mp4Info/Mp4Info.cpp:1650:13 #14 0x7f473c79282f in __libc_start_main /build/glibc-LK5gWL/glibc-2.23/csu/../csu/libc-start.c:291 #15 0x4521f8 in _start (/home/fuzzer/victim/Bento4/mp4info+0x4521f8) AddressSanitizer can not provide additional info. SUMMARY: AddressSanitizer: SEGV /home/fuzzer/victim/Bento4/Source/C++/Core/Ap4Descriptor.h:61:42 in AP4_Descriptor::GetTag() ==17894==ABORTING ```
SEGV in mp4info
https://api.github.com/repos/axiomatic-systems/Bento4/issues/435/comments
2
2019-09-29T20:00:36Z
2020-10-17T21:37:46Z
https://github.com/axiomatic-systems/Bento4/issues/435
499,963,127
435
[ "axiomatic-systems", "Bento4" ]
**System Details** Commit ID: bc1b02a Test Machine : Ubuntu 16.04.3 LTS MP4 File Dumper - Version 1.2 (Bento4 Version 1.5.1.0) **Command** mp4dump --verbosity 2 POC-file **ASAN Output** ``` ASAN:DEADLYSIGNAL ================================================================= ==12343==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x00000054cbf4 bp 0x7fff4ca92010 sp 0x7fff4ca91f30 T0) #0 0x54cbf3 in AP4_DescriptorListInspector::Action(AP4_Descriptor*) const /home/fuzzer/victim/Bento4/Source/C++/Core/Ap4Descriptor.h:124:9 #1 0x69aa85 in AP4_List<AP4_Descriptor>::Apply(AP4_List<AP4_Descriptor>::Item::Operator const&) const /home/fuzzer/victim/Bento4/Source/C++/Core/Ap4List.h:353:9 #2 0x69aa85 in AP4_InitialObjectDescriptor::Inspect(AP4_AtomInspector&) /home/fuzzer/victim/Bento4/Source/C++/Core/Ap4ObjectDescriptor.cpp:327 #3 0x586b12 in AP4_IodsAtom::InspectFields(AP4_AtomInspector&) /home/fuzzer/victim/Bento4/Source/C++/Core/Ap4IodsAtom.cpp:112:9 #4 0x53e7a4 in AP4_Atom::Inspect(AP4_AtomInspector&) /home/fuzzer/victim/Bento4/Source/C++/Core/Ap4Atom.cpp:263:5 #5 0x57843c in AP4_AtomListInspector::Action(AP4_Atom*) const /home/fuzzer/victim/Bento4/Source/C++/Core/Ap4Atom.h:532:9 #6 0x673506 in AP4_List<AP4_Atom>::Apply(AP4_List<AP4_Atom>::Item::Operator const&) const /home/fuzzer/victim/Bento4/Source/C++/Core/Ap4List.h:353:9 #7 0x673506 in AP4_ContainerAtom::InspectChildren(AP4_AtomInspector&) /home/fuzzer/victim/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:220 #8 0x53e7a4 in AP4_Atom::Inspect(AP4_AtomInspector&) /home/fuzzer/victim/Bento4/Source/C++/Core/Ap4Atom.cpp:263:5 #9 0x5283ae in main /home/fuzzer/victim/Bento4/Source/C++/Apps/Mp4Dump/Mp4Dump.cpp:350:9 #10 0x7efe540e182f in __libc_start_main /build/glibc-LK5gWL/glibc-2.23/csu/../csu/libc-start.c:291 #11 0x451258 in _start (/home/fuzzer/victim/Bento4/mp4dump+0x451258) AddressSanitizer can not provide additional info. SUMMARY: AddressSanitizer: SEGV /home/fuzzer/victim/Bento4/Source/C++/Core/Ap4Descriptor.h:124:9 in AP4_DescriptorListInspector::Action(AP4_Descriptor*) const ==12343==ABORTING ```
SEGV in mp4dump
https://api.github.com/repos/axiomatic-systems/Bento4/issues/434/comments
4
2019-09-29T17:37:28Z
2022-02-28T03:29:23Z
https://github.com/axiomatic-systems/Bento4/issues/434
499,946,487
434
[ "axiomatic-systems", "Bento4" ]
# bento4 ## version bento4 1.5.1.0 ## description ```txt None ``` ## download link None ## others please send email to teamseri0us360@gmail.com if you have any questions. --------------------- ## ShowAvcInfo@Mp4Info.cpp-948___heap-buffer-overflow ### description An issue was discovered in bento4 1.5.1.0, There is a/an heap-buffer-overflow in function ShowAvcInfo at Mp4Info.cpp-948 ### commandline mp4info --show-samples @@ ### source ```c 944 } else { 945 size = 0; 946 } 947 948 switch (*data & 0x1F) { 949 case 1: { 950 AP4_BitStream bits; 951 bits.WriteBytes(data+1, 8); 952 ReadGolomb(bits); 953 unsigned int slice_type = ReadGolomb(bits); ``` ### bug report ```txt ================================================================= ==18547==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x7f281a2fe8ec at pc 0x00000044f75d bp 0x7fff8dfaa490 sp 0x7fff8dfaa480 READ of size 1 at 0x7f281a2fe8ec thread T0 #0 0x44f75c in ShowAvcInfo /src/bento4/Source/C++/Apps/Mp4Info/Mp4Info.cpp:948 #1 0x44f75c in ShowSample_Text /src/bento4/Source/C++/Apps/Mp4Info/Mp4Info.cpp:1014 #2 0x457e5e in ShowTrackInfo_Text /src/bento4/Source/C++/Apps/Mp4Info/Mp4Info.cpp:1169 #3 0x458b22 in ShowTrackInfo /src/bento4/Source/C++/Apps/Mp4Info/Mp4Info.cpp:1276 #4 0x458b22 in ShowTracks /src/bento4/Source/C++/Apps/Mp4Info/Mp4Info.cpp:1386 #5 0x4404e7 in main /src/bento4/Source/C++/Apps/Mp4Info/Mp4Info.cpp:1650 #6 0x7f281d16b82f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f) #7 0x446878 in _start (/src/aflbuild/installed/bin/mp4info+0x446878) 0x7f281a2fe8ec is located 0 bytes to the right of 16384236-byte region [0x7f281935e800,0x7f281a2fe8ec) allocated by thread T0 here: #0 0x7f281db466b2 in operator new[](unsigned long) (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x996b2) #1 0x61a7ff in AP4_DataBuffer::ReallocateBuffer(unsigned int) /src/bento4/Source/C++/Core/Ap4DataBuffer.cpp:210 #2 0x61a7ff in AP4_DataBuffer::SetDataSize(unsigned int) /src/bento4/Source/C++/Core/Ap4DataBuffer.cpp:151 SUMMARY: AddressSanitizer: heap-buffer-overflow /src/bento4/Source/C++/Apps/Mp4Info/Mp4Info.cpp:948 ShowAvcInfo Shadow bytes around the buggy address: 0x0fe583457cc0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x0fe583457cd0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x0fe583457ce0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x0fe583457cf0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x0fe583457d00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 =>0x0fe583457d10: 00 00 00 00 00 00 00 00 00 00 00 00 00[04]fa fa 0x0fe583457d20: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0fe583457d30: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0fe583457d40: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0fe583457d50: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0fe583457d60: 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 ==18547==ABORTING ``` ### others from fuzz project pwd-bento4-mp4info-01 crash name pwd-bento4-mp4info-01-00000001-20190809.mp4 Auto-generated by pyspider at 2019-08-09 11:04:22 please send email to teamseri0us360@gmail.com if you have any questions. [poc4.tar.gz](https://github.com/axiomatic-systems/Bento4/files/3640459/poc4.tar.gz)
A heap-buffer-overflow was discovered in ShowAvcInfo at Mp4Info.cpp-948
https://api.github.com/repos/axiomatic-systems/Bento4/issues/433/comments
0
2019-09-23T02:22:45Z
2019-10-08T05:15:27Z
https://github.com/axiomatic-systems/Bento4/issues/433
496,867,898
433
[ "axiomatic-systems", "Bento4" ]
# bento4 ## version bento4 1.5.1.0 ## description ```txt None ``` ## download link None ## others please send email to teamseri0us360@gmail.com if you have any questions. --------------------- ## AP4_TfhdAtom::SetDefaultSampleSize@Ap4TfhdAtom.h-80___SEGV_UNKNOW ### description An issue was discovered in bento4 1.5.1.0, There is a/an SEGV_UNKNOW in function AP4_TfhdAtom::SetDefaultSampleSize at Ap4TfhdAtom.h-80 ### commandline mp4edit @@ a.mp4 ### source ```c 76 void SetSampleDescriptionIndex(AP4_UI32 indx) { m_SampleDescriptionIndex = indx; } 77 AP4_UI32 GetDefaultSampleDuration() { return m_DefaultSampleDuration; } 78 void SetDefaultSampleDuration(AP4_UI32 duration) { m_DefaultSampleDuration = duration; } 79 AP4_UI32 GetDefaultSampleSize() { return m_DefaultSampleSize; } 80 void SetDefaultSampleSize(AP4_UI32 size) { m_DefaultSampleSize = size; } 81 AP4_UI32 GetDefaultSampleFlags() { return m_DefaultSampleFlags; } 82 void SetDefaultSampleFlags(AP4_UI32 flags) { m_DefaultSampleFlags = flags; } 83 84 void UpdateFlags(AP4_UI32 flags); 85 ``` ### bug report ```txt ASAN:SIGSEGV ================================================================= ==16948==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000004 (pc 0x000000498774 bp 0x7ffdcfa6e2e0 sp 0x7ffdcfa6df60 T0) #0 0x498773 in AP4_TfhdAtom::SetDefaultSampleSize(unsigned int) /src/bento4/Source/C++/Core/Ap4TfhdAtom.h:80 #1 0x498773 in AP4_Processor::ProcessFragments(AP4_MoovAtom*, AP4_List<AP4_AtomLocator>&, AP4_ContainerAtom*, AP4_SidxAtom*, unsigned long long, AP4_ByteStream&, AP4_ByteStream&) /src/bento4/Source/C++/Core/Ap4Processor.cpp:331 #2 0x4a68d0 in AP4_Processor::Process(AP4_ByteStream&, AP4_ByteStream&, AP4_ByteStream*, AP4_Processor::ProgressListener*, AP4_AtomFactory&) /src/bento4/Source/C++/Core/Ap4Processor.cpp:711 #3 0x43f413 in main /src/bento4/Source/C++/Apps/Mp4Edit/Mp4Edit.cpp:451 #4 0x7fc7db40082f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f) #5 0x442b88 in _start (/src/aflbuild/installed/bin/mp4edit+0x442b88) AddressSanitizer can not provide additional info. SUMMARY: AddressSanitizer: SEGV /src/bento4/Source/C++/Core/Ap4TfhdAtom.h:80 AP4_TfhdAtom::SetDefaultSampleSize(unsigned int) ==16948==ABORTING ``` ### others from fuzz project pwd-bento4-mp4edit-00 crash name pwd-bento4-mp4edit-00-00000631-20190828.mp4 Auto-generated by pyspider at 2019-08-28 22:40:24 please send email to teamseri0us360@gmail.com if you have any questions. [poc3.tar.gz](https://github.com/axiomatic-systems/Bento4/files/3640457/poc3.tar.gz)
SEGV_UNKNOW was discovered in AP4_TfhdAtom::SetDefaultSampleSize in Ap4TfhdAtom.h-
https://api.github.com/repos/axiomatic-systems/Bento4/issues/432/comments
0
2019-09-23T02:21:12Z
2019-10-08T05:15:45Z
https://github.com/axiomatic-systems/Bento4/issues/432
496,867,693
432
[ "axiomatic-systems", "Bento4" ]
# bento4 ## version bento4 1.5.1.0 ## description ```txt None ``` ## download link None ## others please send email to teamseri0us360@gmail.com if you have any questions. --------------------- ## AP4_PrintInspector::AddField@Ap4Atom.cpp-974___heap-buffer-overflow ### description An issue was discovered in bento4 1.5.1.0, There is a/an heap-buffer-overflow in function AP4_PrintInspector::AddField at Ap4Atom.cpp-974 ### commandline mp4dump --verbosity 2 @@ ### source ```c 970 m_Stream->WriteString(" = ["); 971 unsigned int offset = 1; 972 char byte[4]; 973 for (unsigned int i=0; i<byte_count; i++) { 974 AP4_FormatString(byte, 4, " %02x", bytes[i]); 975 m_Stream->Write(&byte[offset], 3-offset); 976 offset = 0; 977 } 978 m_Stream->Write("]\n", 2); 979 } ``` ### bug report ```txt ================================================================= ==4107==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x611000009d76 at pc 0x0000004dcdcb bp 0x7ffc9fc51e20 sp 0x7ffc9fc51e10 READ of size 1 at 0x611000009d76 thread T0 #0 0x4dcdca in AP4_PrintInspector::AddField(char const*, unsigned char const*, unsigned int, AP4_AtomInspector::FormatHint) /src/bento4/Source/C++/Core/Ap4Atom.cpp:974 #1 0x601dab in AP4_CencSampleEncryption::DoInspectFields(AP4_AtomInspector&) /src/bento4/Source/C++/Core/Ap4CommonEncryption.cpp:3429 #2 0x4d3dae in AP4_Atom::Inspect(AP4_AtomInspector&) /src/bento4/Source/C++/Core/Ap4Atom.cpp:263 #3 0x58b005 in AP4_AtomListInspector::Action(AP4_Atom*) const /src/bento4/Source/C++/Core/Ap4Atom.h:530 #4 0x58b005 in AP4_List<AP4_Atom>::Apply(AP4_List<AP4_Atom>::Item::Operator const&) const /src/bento4/Source/C++/Core/Ap4List.h:353 #5 0x58b005 in AP4_ContainerAtom::InspectChildren(AP4_AtomInspector&) /src/bento4/Source/C++/Core/Ap4ContainerAtom.cpp:220 #6 0x58b005 in AP4_ContainerAtom::InspectFields(AP4_AtomInspector&) /src/bento4/Source/C++/Core/Ap4ContainerAtom.cpp:210 #7 0x4d3dae in AP4_Atom::Inspect(AP4_AtomInspector&) /src/bento4/Source/C++/Core/Ap4Atom.cpp:263 #8 0x58b005 in AP4_AtomListInspector::Action(AP4_Atom*) const /src/bento4/Source/C++/Core/Ap4Atom.h:530 #9 0x58b005 in AP4_List<AP4_Atom>::Apply(AP4_List<AP4_Atom>::Item::Operator const&) const /src/bento4/Source/C++/Core/Ap4List.h:353 #10 0x58b005 in AP4_ContainerAtom::InspectChildren(AP4_AtomInspector&) /src/bento4/Source/C++/Core/Ap4ContainerAtom.cpp:220 #11 0x58b005 in AP4_ContainerAtom::InspectFields(AP4_AtomInspector&) /src/bento4/Source/C++/Core/Ap4ContainerAtom.cpp:210 #12 0x4d3dae in AP4_Atom::Inspect(AP4_AtomInspector&) /src/bento4/Source/C++/Core/Ap4Atom.cpp:263 #13 0x58b005 in AP4_AtomListInspector::Action(AP4_Atom*) const /src/bento4/Source/C++/Core/Ap4Atom.h:530 #14 0x58b005 in AP4_List<AP4_Atom>::Apply(AP4_List<AP4_Atom>::Item::Operator const&) const /src/bento4/Source/C++/Core/Ap4List.h:353 #15 0x58b005 in AP4_ContainerAtom::InspectChildren(AP4_AtomInspector&) /src/bento4/Source/C++/Core/Ap4ContainerAtom.cpp:220 #16 0x58b005 in AP4_ContainerAtom::InspectFields(AP4_AtomInspector&) /src/bento4/Source/C++/Core/Ap4ContainerAtom.cpp:210 #17 0x4d3dae in AP4_Atom::Inspect(AP4_AtomInspector&) /src/bento4/Source/C++/Core/Ap4Atom.cpp:263 #18 0x58b005 in AP4_AtomListInspector::Action(AP4_Atom*) const /src/bento4/Source/C++/Core/Ap4Atom.h:530 #19 0x58b005 in AP4_List<AP4_Atom>::Apply(AP4_List<AP4_Atom>::Item::Operator const&) const /src/bento4/Source/C++/Core/Ap4List.h:353 #20 0x58b005 in AP4_ContainerAtom::InspectChildren(AP4_AtomInspector&) /src/bento4/Source/C++/Core/Ap4ContainerAtom.cpp:220 #21 0x58b005 in AP4_ContainerAtom::InspectFields(AP4_AtomInspector&) /src/bento4/Source/C++/Core/Ap4ContainerAtom.cpp:210 #22 0x4d3dae in AP4_Atom::Inspect(AP4_AtomInspector&) /src/bento4/Source/C++/Core/Ap4Atom.cpp:263 #23 0x58b005 in AP4_AtomListInspector::Action(AP4_Atom*) const /src/bento4/Source/C++/Core/Ap4Atom.h:530 #24 0x58b005 in AP4_List<AP4_Atom>::Apply(AP4_List<AP4_Atom>::Item::Operator const&) const /src/bento4/Source/C++/Core/Ap4List.h:353 #25 0x58b005 in AP4_ContainerAtom::InspectChildren(AP4_AtomInspector&) /src/bento4/Source/C++/Core/Ap4ContainerAtom.cpp:220 #26 0x58b005 in AP4_ContainerAtom::InspectFields(AP4_AtomInspector&) /src/bento4/Source/C++/Core/Ap4ContainerAtom.cpp:210 #27 0x4d3dae in AP4_Atom::Inspect(AP4_AtomInspector&) /src/bento4/Source/C++/Core/Ap4Atom.cpp:263 #28 0x43f769 in main /src/bento4/Source/C++/Apps/Mp4Dump/Mp4Dump.cpp:350 #29 0x7f160934782f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f) #30 0x4434e8 in _start (/src/aflbuild/installed/bin/mp4dump+0x4434e8) 0x611000009d76 is located 0 bytes to the right of 246-byte region [0x611000009c80,0x611000009d76) allocated by thread T0 here: #0 0x7f1609d226b2 in operator new[](unsigned long) (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x996b2) #1 0x536f2f in AP4_DataBuffer::ReallocateBuffer(unsigned int) /src/bento4/Source/C++/Core/Ap4DataBuffer.cpp:210 #2 0x536f2f in AP4_DataBuffer::SetDataSize(unsigned int) /src/bento4/Source/C++/Core/Ap4DataBuffer.cpp:151 SUMMARY: AddressSanitizer: heap-buffer-overflow /src/bento4/Source/C++/Core/Ap4Atom.cpp:974 AP4_PrintInspector::AddField(char const*, unsigned char const*, unsigned int, AP4_AtomInspector::FormatHint) Shadow bytes around the buggy address: 0x0c227fff9350: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c227fff9360: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c227fff9370: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c227fff9380: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c227fff9390: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 =>0x0c227fff93a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00[06]fa 0x0c227fff93b0: fa fa fa fa fa fa fa fa 00 00 00 00 00 00 00 00 0x0c227fff93c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x0c227fff93d0: 00 00 00 00 00 00 00 00 fa fa fa fa fa fa fa fa 0x0c227fff93e0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x0c227fff93f0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd Shadow byte legend (one shadow byte represents 8 application bytes): Addressable: 00 Partially addressable: 01 02 03 04 05 06 07 Heap left redzone: fa Heap right redzone: fb Freed heap region: fd Stack left redzone: f1 Stack mid redzone: f2 Stack right redzone: f3 Stack partial redzone: f4 Stack after return: f5 Stack use after scope: f8 Global redzone: f9 Global init order: f6 Poisoned by user: f7 Container overflow: fc Array cookie: ac Intra object redzone: bb ASan internal: fe ==4107==ABORTING ``` ### others from fuzz project pwd-bento4-mp4dump-02 crash name pwd-bento4-mp4dump-02-00000029-20190811.mp4 Auto-generated by pyspider at 2019-08-11 11:06:47 please send email to teamseri0us360@gmail.com if you have any questions. [poc2.tar.gz](https://github.com/axiomatic-systems/Bento4/files/3640452/poc2.tar.gz)
A heap-buffer-overflow was discoverad in AP4_PrintInspector::AddField at Ap4Atom.cpp-974
https://api.github.com/repos/axiomatic-systems/Bento4/issues/431/comments
0
2019-09-23T02:19:02Z
2019-10-08T05:15:57Z
https://github.com/axiomatic-systems/Bento4/issues/431
496,867,352
431
[ "axiomatic-systems", "Bento4" ]
# bento4 ## version bento4 1.5.1.0 ## description ```txt None ``` ## download link None ## others please send email to teamseri0us360@gmail.com if you have any questions. --------------------- ## AP4_CencSampleEncryption::DoInspectFields@Ap4CommonEncryption.cpp-3437___heap-buffer-overflow ### description An issue was discovered in bento4 1.5.1.0, There is a/an heap-buffer-overflow in function AP4_CencSampleEncryption::DoInspectFields at Ap4CommonEncryption.cpp-3437 ### commandline mp4dump --verbosity 2 @@ ### source ```c 3433 info += 2; 3434 for (unsigned int j=0; j<num_entries; j++) { 3435 unsigned int bocd = AP4_BytesToUInt16BE(info); 3436 AP4_FormatString(header, sizeof(header), "sub-entry %04d.%d bytes of clear data", i, j); 3437 inspector.AddField(header, bocd); 3438 unsigned int boed = AP4_BytesToUInt32BE(info+2); 3439 AP4_FormatString(header, sizeof(header), "sub-entry %04d.%d bytes of encrypted data", i, j); 3440 inspector.AddField(header, boed); 3441 info += 6; 3442 } ``` ### bug report ```txt ================================================================= ==20093==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x61300000dfee at pc 0x00000060256b bp 0x7ffdb67cdb90 sp 0x7ffdb67cdb80 READ of size 4 at 0x61300000dfee thread T0 #0 0x60256a in AP4_CencSampleEncryption::DoInspectFields(AP4_AtomInspector&) /src/bento4/Source/C++/Core/Ap4CommonEncryption.cpp:3437 #1 0x4d3dae in AP4_Atom::Inspect(AP4_AtomInspector&) /src/bento4/Source/C++/Core/Ap4Atom.cpp:263 #2 0x58b005 in AP4_AtomListInspector::Action(AP4_Atom*) const /src/bento4/Source/C++/Core/Ap4Atom.h:530 #3 0x58b005 in AP4_List<AP4_Atom>::Apply(AP4_List<AP4_Atom>::Item::Operator const&) const /src/bento4/Source/C++/Core/Ap4List.h:353 #4 0x58b005 in AP4_ContainerAtom::InspectChildren(AP4_AtomInspector&) /src/bento4/Source/C++/Core/Ap4ContainerAtom.cpp:220 #5 0x58b005 in AP4_ContainerAtom::InspectFields(AP4_AtomInspector&) /src/bento4/Source/C++/Core/Ap4ContainerAtom.cpp:210 #6 0x4d3dae in AP4_Atom::Inspect(AP4_AtomInspector&) /src/bento4/Source/C++/Core/Ap4Atom.cpp:263 #7 0x58b005 in AP4_AtomListInspector::Action(AP4_Atom*) const /src/bento4/Source/C++/Core/Ap4Atom.h:530 #8 0x58b005 in AP4_List<AP4_Atom>::Apply(AP4_List<AP4_Atom>::Item::Operator const&) const /src/bento4/Source/C++/Core/Ap4List.h:353 #9 0x58b005 in AP4_ContainerAtom::InspectChildren(AP4_AtomInspector&) /src/bento4/Source/C++/Core/Ap4ContainerAtom.cpp:220 #10 0x58b005 in AP4_ContainerAtom::InspectFields(AP4_AtomInspector&) /src/bento4/Source/C++/Core/Ap4ContainerAtom.cpp:210 #11 0x4d3dae in AP4_Atom::Inspect(AP4_AtomInspector&) /src/bento4/Source/C++/Core/Ap4Atom.cpp:263 #12 0x43f769 in main /src/bento4/Source/C++/Apps/Mp4Dump/Mp4Dump.cpp:350 #13 0x7f7d03b2b82f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f) #14 0x4434e8 in _start (/src/aflbuild/installed/bin/mp4dump+0x4434e8) 0x61300000dfee is located 0 bytes to the right of 366-byte region [0x61300000de80,0x61300000dfee) allocated by thread T0 here: #0 0x7f7d045066b2 in operator new[](unsigned long) (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x996b2) #1 0x536f2f in AP4_DataBuffer::ReallocateBuffer(unsigned int) /src/bento4/Source/C++/Core/Ap4DataBuffer.cpp:210 #2 0x536f2f in AP4_DataBuffer::SetDataSize(unsigned int) /src/bento4/Source/C++/Core/Ap4DataBuffer.cpp:151 SUMMARY: AddressSanitizer: heap-buffer-overflow /src/bento4/Source/C++/Core/Ap4CommonEncryption.cpp:3437 AP4_CencSampleEncryption::DoInspectFields(AP4_AtomInspector&) Shadow bytes around the buggy address: 0x0c267fff9ba0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x0c267fff9bb0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x0c267fff9bc0: 00 00 00 00 00 00 00 00 fa fa fa fa fa fa fa fa 0x0c267fff9bd0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x0c267fff9be0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 =>0x0c267fff9bf0: 00 00 00 00 00 00 00 00 00 00 00 00 00[06]fa fa 0x0c267fff9c00: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c267fff9c10: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c267fff9c20: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c267fff9c30: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c267fff9c40: 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 ==20093==ABORTING ``` ### others from fuzz project pwd-bento4-mp4dump-02 crash name pwd-bento4-mp4dump-02-00000034-20190811.mp4 Auto-generated by pyspider at 2019-08-11 19:37:41 please send email to teamseri0us360@gmail.com if you have any questions. [poc1.tar.gz](https://github.com/axiomatic-systems/Bento4/files/3640451/poc1.tar.gz)
A heap-buffer-overflow was discovered in AP4_CencSampleEncryption::DoInspectFields in Ap4CommonEncryption.cpp
https://api.github.com/repos/axiomatic-systems/Bento4/issues/430/comments
0
2019-09-23T02:16:44Z
2019-10-08T05:16:10Z
https://github.com/axiomatic-systems/Bento4/issues/430
496,866,994
430
[ "axiomatic-systems", "Bento4" ]
When can we add support of Dolby Vision signaling in HLS and DASH based on specifications below? https://www.dolby.com/us/en/technologies/dolby-vision/dolby-vision-streams-within-the-mpeg-dash-format-v2.0.pdf https://www.dolby.com/us/en/technologies/dolby-vision/dolby-vision-streams-within-the-http-live-streaming-format-v2.0.pdf Thanx!
Support Dolby Vision signaling in HLS and DASH
https://api.github.com/repos/axiomatic-systems/Bento4/issues/429/comments
0
2019-09-19T18:07:52Z
2019-10-08T05:17:23Z
https://github.com/axiomatic-systems/Bento4/issues/429
495,950,080
429
[ "axiomatic-systems", "Bento4" ]
Hi. I am trying to generate a fmp4 DASH Widevine DRM with the CBCS protection scheme. Only "sample count" in "saiz" AUDIO track shows 0 instead of 243 and exoPlayer is having a problem. Do you know how to resolve this? Thank you for your support. [moof] size=8+1113 [mfhd] size=12+4 sequence number = 2 [traf] size=8+1089 [tfhd] size=12+8, flags=20008 track ID = 2 default sample duration = 1024 [tfdt] size=12+8, version=1 base media decode time = 0 [trun] size=12+984, flags=201 sample count = 244 data offset = 1129 entry 0000 = sample_size:23 entry 0001 = sample_size:6 entry 0002 = sample_size:6 entry 0003 = sample_size:232 entry 0004 = sample_size:334 entry 0005 = sample_size:169 entry 0006 = sample_size:177 entry 0007 = sample_size:178 entry 0008 = sample_size:188 entry 0009 = sample_size:191 entry 0010 = sample_size:190 entry 0011 = sample_size:186 entry 0012 = sample_size:185 entry 0013 = sample_size:168 entry 0014 = sample_size:167 entry 0015 = sample_size:171 entry 0016 = sample_size:165 entry 0017 = sample_size:189 entry 0018 = sample_size:177 entry 0019 = sample_size:170 entry 0020 = sample_size:179 entry 0021 = sample_size:174 entry 0022 = sample_size:155 entry 0023 = sample_size:171 entry 0024 = sample_size:171 entry 0025 = sample_size:191 entry 0026 = sample_size:196 entry 0027 = sample_size:187 entry 0028 = sample_size:166 entry 0029 = sample_size:172 entry 0030 = sample_size:177 entry 0031 = sample_size:161 entry 0032 = sample_size:178 entry 0033 = sample_size:154 entry 0034 = sample_size:178 entry 0035 = sample_size:176 entry 0036 = sample_size:189 entry 0037 = sample_size:192 entry 0038 = sample_size:176 entry 0039 = sample_size:198 entry 0040 = sample_size:153 entry 0041 = sample_size:152 entry 0042 = sample_size:159 entry 0043 = sample_size:181 entry 0044 = sample_size:183 entry 0045 = sample_size:187 entry 0046 = sample_size:191 entry 0047 = sample_size:181 entry 0048 = sample_size:173 entry 0049 = sample_size:168 entry 0050 = sample_size:160 entry 0051 = sample_size:161 entry 0052 = sample_size:171 entry 0053 = sample_size:157 entry 0054 = sample_size:181 entry 0055 = sample_size:175 entry 0056 = sample_size:196 entry 0057 = sample_size:198 entry 0058 = sample_size:193 entry 0059 = sample_size:172 entry 0060 = sample_size:163 entry 0061 = sample_size:173 entry 0062 = sample_size:178 entry 0063 = sample_size:184 entry 0064 = sample_size:184 entry 0065 = sample_size:187 entry 0066 = sample_size:188 entry 0067 = sample_size:180 entry 0068 = sample_size:158 entry 0069 = sample_size:149 entry 0070 = sample_size:167 entry 0071 = sample_size:171 entry 0072 = sample_size:176 entry 0073 = sample_size:179 entry 0074 = sample_size:178 entry 0075 = sample_size:170 entry 0076 = sample_size:180 entry 0077 = sample_size:141 entry 0078 = sample_size:144 entry 0079 = sample_size:161 entry 0080 = sample_size:174 entry 0081 = sample_size:182 entry 0082 = sample_size:186 entry 0083 = sample_size:188 entry 0084 = sample_size:179 entry 0085 = sample_size:181 entry 0086 = sample_size:179 entry 0087 = sample_size:179 entry 0088 = sample_size:173 entry 0089 = sample_size:147 entry 0090 = sample_size:152 entry 0091 = sample_size:173 entry 0092 = sample_size:177 entry 0093 = sample_size:187 entry 0094 = sample_size:169 entry 0095 = sample_size:170 entry 0096 = sample_size:185 entry 0097 = sample_size:177 entry 0098 = sample_size:170 entry 0099 = sample_size:163 entry 0100 = sample_size:180 entry 0101 = sample_size:175 entry 0102 = sample_size:167 entry 0103 = sample_size:181 entry 0104 = sample_size:170 entry 0105 = sample_size:161 entry 0106 = sample_size:158 entry 0107 = sample_size:175 entry 0108 = sample_size:172 entry 0109 = sample_size:168 entry 0110 = sample_size:174 entry 0111 = sample_size:181 entry 0112 = sample_size:177 entry 0113 = sample_size:174 entry 0114 = sample_size:204 entry 0115 = sample_size:181 entry 0116 = sample_size:156 entry 0117 = sample_size:166 entry 0118 = sample_size:221 entry 0119 = sample_size:285 entry 0120 = sample_size:207 entry 0121 = sample_size:159 entry 0122 = sample_size:172 entry 0123 = sample_size:147 entry 0124 = sample_size:154 entry 0125 = sample_size:149 entry 0126 = sample_size:182 entry 0127 = sample_size:180 entry 0128 = sample_size:164 entry 0129 = sample_size:167 entry 0130 = sample_size:174 entry 0131 = sample_size:178 entry 0132 = sample_size:163 entry 0133 = sample_size:228 entry 0134 = sample_size:157 entry 0135 = sample_size:169 entry 0136 = sample_size:153 entry 0137 = sample_size:176 entry 0138 = sample_size:158 entry 0139 = sample_size:160 entry 0140 = sample_size:168 entry 0141 = sample_size:167 entry 0142 = sample_size:171 entry 0143 = sample_size:146 entry 0144 = sample_size:167 entry 0145 = sample_size:169 entry 0146 = sample_size:172 entry 0147 = sample_size:195 entry 0148 = sample_size:186 entry 0149 = sample_size:190 entry 0150 = sample_size:193 entry 0151 = sample_size:162 entry 0152 = sample_size:152 entry 0153 = sample_size:161 entry 0154 = sample_size:165 entry 0155 = sample_size:160 entry 0156 = sample_size:162 entry 0157 = sample_size:182 entry 0158 = sample_size:193 entry 0159 = sample_size:186 entry 0160 = sample_size:180 entry 0161 = sample_size:279 entry 0162 = sample_size:155 entry 0163 = sample_size:152 entry 0164 = sample_size:165 entry 0165 = sample_size:168 entry 0166 = sample_size:260 entry 0167 = sample_size:173 entry 0168 = sample_size:179 entry 0169 = sample_size:229 entry 0170 = sample_size:209 entry 0171 = sample_size:146 entry 0172 = sample_size:152 entry 0173 = sample_size:159 entry 0174 = sample_size:167 entry 0175 = sample_size:174 entry 0176 = sample_size:170 entry 0177 = sample_size:181 entry 0178 = sample_size:172 entry 0179 = sample_size:212 entry 0180 = sample_size:216 entry 0181 = sample_size:189 entry 0182 = sample_size:152 entry 0183 = sample_size:168 entry 0184 = sample_size:159 entry 0185 = sample_size:173 entry 0186 = sample_size:169 entry 0187 = sample_size:183 entry 0188 = sample_size:184 entry 0189 = sample_size:155 entry 0190 = sample_size:150 entry 0191 = sample_size:163 entry 0192 = sample_size:166 entry 0193 = sample_size:159 entry 0194 = sample_size:155 entry 0195 = sample_size:173 entry 0196 = sample_size:162 entry 0197 = sample_size:178 entry 0198 = sample_size:156 entry 0199 = sample_size:152 entry 0200 = sample_size:166 entry 0201 = sample_size:160 entry 0202 = sample_size:181 entry 0203 = sample_size:174 entry 0204 = sample_size:179 entry 0205 = sample_size:175 entry 0206 = sample_size:175 entry 0207 = sample_size:162 entry 0208 = sample_size:156 entry 0209 = sample_size:169 entry 0210 = sample_size:176 entry 0211 = sample_size:189 entry 0212 = sample_size:196 entry 0213 = sample_size:178 entry 0214 = sample_size:172 entry 0215 = sample_size:173 entry 0216 = sample_size:175 entry 0217 = sample_size:177 entry 0218 = sample_size:173 entry 0219 = sample_size:172 entry 0220 = sample_size:168 entry 0221 = sample_size:183 entry 0222 = sample_size:178 entry 0223 = sample_size:178 entry 0224 = sample_size:169 entry 0225 = sample_size:167 entry 0226 = sample_size:172 entry 0227 = sample_size:160 entry 0228 = sample_size:174 entry 0229 = sample_size:162 entry 0230 = sample_size:175 entry 0231 = sample_size:173 entry 0232 = sample_size:166 entry 0233 = sample_size:191 entry 0234 = sample_size:171 entry 0235 = sample_size:185 entry 0236 = sample_size:188 entry 0237 = sample_size:181 entry 0238 = sample_size:184 entry 0239 = sample_size:174 entry 0240 = sample_size:177 entry 0241 = sample_size:169 entry 0242 = sample_size:172 entry 0243 = sample_size:174 [saiz] size=12+5 default sample info size = 0 **sample count = 0** [saio] size=12+8 entry count = 1 entry 0 = 1121 [senc] size=12+4 sample info count = 244 IV Size (inferred) = 0 entry 0000 = [] entry 0001 = [] example) Bento4/bin/mp4encrypt input.mp4 output.mp4 --method MPEG-CBCS --key 1:0a876b0752cbf1a827e2fecfb8747333:efefefefefefefefefefefefefefefef --property 1:KID:99991951686b5e1ba222439999c1f12a --key 2:0a876b0752cbf1a913e2fecfb8747333:efefefefefefefefefefefefefefefef --property 2:KID:99991951686b5e1ba222439999c1f12b
incorrect sample count in saiz audio track with CBCS
https://api.github.com/repos/axiomatic-systems/Bento4/issues/428/comments
6
2019-09-11T00:53:34Z
2019-09-17T21:35:16Z
https://github.com/axiomatic-systems/Bento4/issues/428
491,962,446
428
[ "axiomatic-systems", "Bento4" ]
Hi, I'm using below command, it's able to generate required files for hls stream and also generates 'key.bin' `mp4hls "D:\file.mp4" --output-single-file --encryption-mode="AES-128" --encryption-key="22b44eee1236cf62f3b655b17fb31f33" --output-encryption-key` When I open 'key.bin', it's content is `"´Nî6Ïbó¶U±³3` As I'm a c# developer, tried using below code to get value similar to key.bin // c# code `byte[] data = new byte[] { 0x22, 0xb4, 0x4e, 0xee, 0x12, 0x36, 0xcf, 0x62, 0xf3, 0xb6, 0x55, 0xb1, 0x7f, 0xb3, 0x1f, 0x33 };` `string ascii = Encoding.ASCII.GetString(data);` `Console.WriteLine(ascii);` // but result is as below, its not matching to key.bin `"?N?6?b??U??3` Im just stucked here, can someone help me. Thanks
Converting to hex to value similar to key.bin is not matching in C#
https://api.github.com/repos/axiomatic-systems/Bento4/issues/427/comments
5
2019-09-05T15:50:04Z
2019-10-08T05:16:31Z
https://github.com/axiomatic-systems/Bento4/issues/427
489,850,442
427
[ "axiomatic-systems", "Bento4" ]
Wanted to confirm if `Bento4` is able to repackage a mp4 file with Dolby Vision track to the DASH format with CENC encryption. Didn't find it from the document, but by searching in the source code, it seems Dolby Vision is already supported. Tried using `mp4fragment` and `mp4-dash.py` to repackage a Dolby Vision mp4 file into DASH format, and it seemed to be working fine (the codec of the Dolby Vision track used is in form of `dvhe.xx.xx`). However after enabling the CENC encryption, the created DASH stream became un-playable. By checking the generated video segment, it appears that `Full Sample Encryption` was used instead of `Subsample Encryption` for the video track. And this is aligned with the current implementation: https://github.com/axiomatic-systems/Bento4/blob/v1.5.1-628/Source/C++/Core/Ap4CommonEncryption.cpp#L1629 I guess the full support of Dolby Vision is not ready yet, at least the CENC encryption is not enabled for it. Please kindly clarify if any understanding here is wrong. If not, is there a plan to add the CENC support for Dolby Vision.
CENC support for Dolby Vision track
https://api.github.com/repos/axiomatic-systems/Bento4/issues/425/comments
2
2019-08-28T08:21:12Z
2019-10-08T05:17:04Z
https://github.com/axiomatic-systems/Bento4/issues/425
486,228,458
425
[ "axiomatic-systems", "Bento4" ]
Tested in Ubuntu 14.04, 64bit, Bento4(master cbebcc9) Triggered by cmd: `$ ./mp4tag --list-symbols --list-keys --show-tags $POC` POC file: https://github.com/Marsman1996/pocs/blob/master/bento4/poc19-ReadUI32-SEGV ASAN info: ``` ==14819== WARNING: AddressSanitizer failed to allocate 0x000ff00000c0 bytes ASAN:SIGSEGV ================================================================= ==14819== ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x00000046a233 sp 0x7ffc0a9ef970 bp 0x7ffc0a9efa00 T0) AddressSanitizer can not provide additional info. #0 0x46a232 in AP4_ByteStream::ReadUI32(unsigned int&) code/Source/C++/Core/Ap4ByteStream.cpp:243 #1 0x4e75d1 in AP4_TrunAtom::AP4_TrunAtom(unsigned int, unsigned char, unsigned int, AP4_ByteStream&) code/Source/C++/Core/Ap4TrunAtom.cpp:130 #2 0x4e713b in AP4_TrunAtom::Create(unsigned int, AP4_ByteStream&) code/Source/C++/Core/Ap4TrunAtom.cpp:51 #3 0x4627b9 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) code/Source/C++/Core/Ap4AtomFactory.cpp:414 #4 0x4611c3 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) code/Source/C++/Core/Ap4AtomFactory.cpp:231 #5 0x479d0a in AP4_DrefAtom::AP4_DrefAtom(unsigned int, unsigned char, unsigned int, AP4_ByteStream&, AP4_AtomFactory&) code/Source/C++/Core/Ap4DrefAtom.cpp:84 #6 0x479956 in AP4_DrefAtom::Create(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) code/Source/C++/Core/Ap4DrefAtom.cpp:50 #7 0x463367 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) code/Source/C++/Core/Ap4AtomFactory.cpp:545 #8 0x4611c3 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) code/Source/C++/Core/Ap4AtomFactory.cpp:231 #9 0x460b39 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, AP4_Atom*&) code/Source/C++/Core/Ap4AtomFactory.cpp:151 #10 0x47d6a6 in AP4_File::ParseStream(AP4_ByteStream&, AP4_AtomFactory&, bool) code/Source/C++/Core/Ap4File.cpp:104 #11 0x47d1a9 in AP4_File::AP4_File(AP4_ByteStream&, bool) code/Source/C++/Core/Ap4File.cpp:78 #12 0x45546a in main code/Source/C++/Apps/Mp4Tag/Mp4Tag.cpp:821 #13 0x7f144e0c7f44 (/lib/x86_64-linux-gnu/libc.so.6+0x21f44) #14 0x451308 in _start (bin_asan/bin/mp4tag+0x451308) SUMMARY: AddressSanitizer: SEGV code/Source/C++/Core/Ap4ByteStream.cpp:243 AP4_ByteStream::ReadUI32(unsigned int&) ==14819== ABORTING ```
NULL Pointer Dereference in AP4_ByteStream::ReadUI32() at Ap4ByteStream.cpp:243
https://api.github.com/repos/axiomatic-systems/Bento4/issues/422/comments
0
2019-08-18T06:57:23Z
2019-08-25T16:20:06Z
https://github.com/axiomatic-systems/Bento4/issues/422
481,961,506
422
[ "axiomatic-systems", "Bento4" ]
H! - We are choosing between using Bento4 or Shaka Packager for the future. We like Bento4 a lot, and might also be ready to eventually contribute with bug-fixes and so on in the future. We respect all the work that has gone into the project, and what it is capable of, and really appreciate it as is - but one thing that is making us doubtful in using it, is the handling of PR:s. There is quite a few unanswered ones as of now. This makes us think about the future project health - are there any thoughts of adding more maintainers in the future, and also, how it is maintained - on a spare-time level, or with real office-time? And, are there any bigger future plans for the project, or is it mainly low-level maintenance? Discussion and response to PR:s might be critical for us in choosing the packager to use for us. Thanks for the work already done in this Open Source-project..
Question: Regarding project health
https://api.github.com/repos/axiomatic-systems/Bento4/issues/421/comments
2
2019-08-15T08:13:41Z
2019-08-22T08:10:44Z
https://github.com/axiomatic-systems/Bento4/issues/421
481,043,456
421