Issue
This Content is from Stack Overflow. Question asked by 魏維德
I have been trying to read a 360 degree video with a vlc instance and it just is not working.
The application itself can read the file but not when I use the code below ( by not reading, I mean I cannot drag the video and change viewpoints when I use the code below)
`
#include <stdio.h>
#include <stdlib.h>
#include </usr/include/vlc/vlc.h>
int main(int argc , char **argv)
{
libvlc_instance_t *instance;
libvlc_media_player_t *mediaplayer;
libvlc_media_t *media;
instance=libvlc_new(0,NULL);
media=libvlc_media_new_path(instance,"playlist/360_video.mp4");
mediaplayer=libvlc_media_player_new_from_media(media);
libvlc_media_release(media);
libvlc_media_player_play(mediaplayer);
sleep(60);
libvlc_media_player_stop(mediaplayer);
libvlc_media_player_release(mediaplayer);
libvlc_release(instance);
return 0;
}
`
My guess is that the instance cannot properly read the projection of the video as equirectangular that’s why it display a rectangular projection.
Solution
This question is not yet answered, be the first one who answer using the comment. Later the confirmed answer will be published as the solution.
This Question and Answer are collected from stackoverflow and tested by JTuto community, is licensed under the terms of CC BY-SA 2.5. - CC BY-SA 3.0. - CC BY-SA 4.0.