-
Notifications
You must be signed in to change notification settings - Fork 6
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
MP4 Transcoding Error: Invalid Data Found When Processing Input #10
Comments
The error message you encountered ("Invalid data found when processing input") suggests that there may be an issue with the MP4 file you're trying to stream using ffmpeg-worker-dash.js. It's possible that the file is corrupted or not in a format that ffmpeg-worker-dash.js can handle properly. Regarding the format support, ffmpeg, the underlying tool used by ffmpeg-worker-dash.js, typically has support for both MP4 and WebM formats. However, it's important to note that the specific capabilities of ffmpeg can depend on the version and configuration used. To troubleshoot the issue, you can try the following steps:Verify the integrity of the MP4 file:Check if the MP4 file is valid and not corrupted. You can try playing the file locally on your computer using a media player to ensure it's working correctly. Check the version and configuration of ffmpeg:Make sure you're using an up-to-date version of ffmpeg. Different versions may have varying levels of support for different formats. You can check the version by running the command ffmpeg -version in your terminal or command prompt. Enable MP4 support:If you have a custom build of ffmpeg or if the version you're using doesn't have MP4 support enabled by default, you may need to rebuild ffmpeg with the necessary codecs and libraries enabled. You can refer to the ffmpeg documentation or community resources for instructions on how to enable MP4 support during the build process. Test with other MP4 files:Try using different MP4 files to see if the issue persists. This can help determine if the problem is specific to the file you initially attempted to stream. If you continue to experience difficulties, it may be helpful to provide more specific information about your environment, such as the version of ffmpeg you're using and the command or code you're running, so that further assistance can be provided. |
I've tried the video file, it works fine, I've also tried different MP4 video files and they report the same error. If I convert the video to WebM it then works fine. I'm using FFmpeg version n5.1, the Emscripten build from the
It's supplied with data like so:
Where testData.buffer happens to be an |
I've noticed if I try to stream an MP4 file to DASH using
ffmpeg-worker-dash.js
I get the following error:/work/stream1: Invalid data found when processing input
However if I use WebM it transcodes successfully without the error, does this have to do with MP4 not being enabled by default? If so how to enable?
The text was updated successfully, but these errors were encountered: