-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
FFmpegFrameGrabber.grab() missing audio frames #1971
Comments
…d by the codec (issue #1971) * Upgrade dependencies for OpenCV 4.7.0, librealsense2 2.53.1, Leptonica 1.83.0, Tesseract 5.3.0
Fixed in commit 53d19be. Thanks for reporting! |
@saudet
It looks like the error is caused by missing symbolic link:
|
In old version theres is a symbolic link from libavcodec.dylib -> libavcodec.59.dylib, this is missing in 1.5.9-SNAPSHOT version. And the Loader failed to find |
I just checked the readfewframes sample with the My cache directory has the symlinks.
@frankfliu Can you try setting the |
|
Here is my cache folder:
|
Just tested on Linux, it works fine and missing audio frames issue is fixed. |
@frankfliu that cache directory looks really incomplete (like, where is libavformat?). There are definitely more files than that in the jar file I downloaded. Can you try removing and retrying it? |
The problem is this error. JavaCPP bails out after that.
Usually we get more useful errors on Mac, but not for this one it seems. There's something it doesn't like about AV1... |
I cleaned the cached and still the same. I do see other files (e.g. libjniavformat.dylib) in the jar, but not in the cache folder.
|
Ah, here's the problem:
@bradh Please make sure the build doesn't create a shared library for SVT-AV1. |
Looks like we are missing a bunch of configuration options (including |
@frankfliu The builds have been fixed with pull bytedeco/javacpp-presets#1312 |
The snapshot build seems not atomic, I hit the following error:
|
That is not the latest snapshot update at https://oss.sonatype.org/content/repositories/snapshots/org/bytedeco/ffmpeg/5.1.2-1.5.9-SNAPSHOT/ As of writing, I see https://oss.sonatype.org/content/repositories/snapshots/org/bytedeco/ffmpeg/5.1.2-1.5.9-SNAPSHOT/ffmpeg-5.1.2-1.5.9-20230120.070542-158-linux-x86_64.jar Possibly you have something cached? |
By atomic if you mean something transactional like a staging repository, Nexus doesn't support that for snapshots, no. |
I think what you are doing is publishing the SNAPSHOT version for each platform, and then re-publish them again as a whole. The publishing takes more than one hour. If my build kick in during your publishing time, only one platform is available for the latest version. and gradle will fail to resolve other platform jars. In the repo, |
Yes, I'm aware, that's the best we can do with Nexus unfortunately. We keep getting back to these things, but the answer is always the same. No one, not even Oracle nor Amazon, is investing in Java anymore, so we're stuck with poor tools like this and we have to come up with hacks like you're doing in DJL that don't work a lot better, that require a lot more maintenance just to keep them half working... I mean if DJL could offer an alternative to Nexus, that's great, but let's be honest, it's not going to happen. |
The fix has been released with JavaCV 1.5.9! Enjoy and thanks again for reporting |
When I use
FFmpegFrameGrabber.grab()
audio frames, it stopped before hitting the end.I'm using a flac file, it suppose contains 106 frame, but FFmpegFrameGrabber stopped at 94 frames:
If I use ffmpeg command line it can read all 106 frames correctly:
The text was updated successfully, but these errors were encountered: