Skip to content
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

Change video decoder from omx*dec to nvv4l2decoder. #89

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

HiroshiYAMA
Copy link
Contributor

For some video files, the video shrinks vertically when decoded.
Near the bottom few lines are green, black, or a duplicate of the bottom line.
For example, this phenomenon may occur in video files converted by FFMpeg or generated by Davinci Resolve.
Therefore, I changed video decoder from omg*dec to nvv4l2decoder.

Just me?
My environment: JetPack 4.5.1

  • using omxh264dec
    jetson-utils_omxh264dec

  • using nvv4l2decoder
    jetson-utils_nvv4l2decoder

… video files, the video shrinks vertically when decoded.

---
Maybe need dlopen/dlclose to deal with link errors.

ex.)
int main(int ac, char *av[])
{
	// [ad hoc] dynamic load for nvv4l2decoder.
	void *dl_handle_libnvmmlite_utils = dlopen("libnvmmlite_utils.so", RTLD_LAZY | RTLD_GLOBAL);
	void *dl_handle_libnvmmlite_video = dlopen("libnvmmlite_video.so", RTLD_LAZY | RTLD_GLOBAL);

	...

	// [ad hoc] dynamic load for nvv4l2decoder.
	dlclose(dl_handle_libnvmmlite_utils);
	dlclose(dl_handle_libnvmmlite_video);

	return EXIT_SUCCESS;
}
from ctypes import *
...
cdll.LoadLibrary("libnvmmlite_utils.so")
cdll.LoadLibrary("libnvmmlite_video.so")
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant