--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-ndk?hl=en.
--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To view this discussion on the web visit https://groups.google.com/d/msg/android-ndk/-/aNCG6uDFJLIJ.
I use this code, but can not open file in FFmpeg, can you tell me How to open asset video mp4 file in FFmpeg
AAssetManager *mgr = AAssetManager_fromJava(env, assetManager);
const char *fname = (*env)->GetStringUTFChars(env, name, NULL);
AAsset *asset = AAssetManager_open(mgr, fname, AASSET_MODE_STREAMING);
(*env)->ReleaseStringUTFChars(env, name, fname);
off64_t start, length;
int fd = AAsset_openFileDescriptor64(asset, &start, &length);
AAsset_close(asset);
char str[128];
snprintf(str, 128, "pipe:%d", fd); // fd: