I am developing a video player on the Raspberry Pi2 using libVLC. How do I tell libVLC to use the Raspberry Pi2 hardware acceleration (codec omxil)?
I have compiled vlc from the revision of the tag 2.1.0-git. I can use vlc with hardware acceleration:
Code: Select all
$ vlc --verbose=3 --vout omxil_vout --codec omxil video.mp4
Code: Select all
char const *vlc_argv[] =
{
"--vout",
"omxil_vout",
"--codec",
"omxil",
"--verbose=3",
};
int vlc_argc = sizeof(vlc_argv) / sizeof(*vlc_argv);
libvlc_instance_t* instance = libvlc_new(vlc_argc, vlc_argv);
libvlc_media_t* media = libvlc_media_new_path(instance, "video.mp4");
libvlc_media_player_t* mediaPlayer = libvlc_media_player_new_from_media(media);
libvlc_media_release(media);
libvlc_media_player_play(mediaPlayer);
How can I use the omxil codec from libVLC?
Thank you.