libvlc raspberry pi2 and omxil codec
Posted: 01 Sep 2015 11:26
Hello
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:
When I start my program, I initialise libVLC as follows:
However, the omxil codec does not seem to be called: playing the video is as slow as when vlc_argv[] is empty and there is no reference to omxil in the verbose output while there is when I play the video from vlc.
How can I use the omxil codec from libVLC?
Thank you.
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.