New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error When Reading MP4 File #4
Comments
Can you provide this file? |
@tetrahydra ping |
the code: `` require('FileTypeDetector/ContentStream.php'); require('src/Exceptions/Exception.php'); require('src/AudioAdapter.php'); require('src/Adapters/Mpeg4Part12Adapter.php'); require('src/MediaFile.php'); try { if ($media->isAudio()) { `` |
It seems to be ok. Which file used? |
To resolve this problem I need file sample. |
Hi, i can confirm that this bug exists http://file-examples.com/wp-content/uploads/2017/04/file_example_MP4_480_1_5MG.mp4 Another video example with http://techslides.com/demos/sample-videos/small.mp4 from article PS: |
Hi Guys, I can confirm that I am also receiving this bug. Message: Warning: Invalid argument supplied for foreach() in .../Plugins/vendor/wapmorgan/media-file/src/Adapters/Mp4Adapter.php on line 14 Here are is an example video I had been testing: https://drive.google.com/file/d/1h_W80ocTKd-DBc8oowbdxAuaRts1p6X5/view?usp=sharing Edit: I was trying to figure out what information was being parsed to the foreach loop with a var_dump & it is was outputting null |
Hi Guys, how are we going for a fix on this? It's getting kind of urgent for our organisation? |
@justtoprogram if it is really urgent i would suggest to use https://github.com/JamesHeinrich/getID3 |
I was avoiding that because I like this library. It does only what I need it to do. |
I am as well, but had to use it. |
Going to discover it ... |
Really, I don't have the wish and time to fix it. |
I have the same problem with the .mp4 files. But the library try to find moov atom at the beginning. I will try to fix. |
add/edit lines in Mpeg4Part12Adapter.php may help public function __construct
protected function scan()
|
Hello,
I am reading an MP4 file, and I am getting this error:
The text was updated successfully, but these errors were encountered: