Problem with getting video resolution
Posted: 05 Jun 2012 15:08
Hello.
I'm using the following functions to get video resolution:
This works with .flv videos but doesn't work with .mpg ones.
I've tried to look inside the 'libvlc_video_get_size' function and saw that 'libvlc_media_get_tracks_info(p_mi->p_md, &info)' call returns zero on .mpg files.
I can play all these .mpg videos via VLC player and can see their resolution too.
Where's my mistake?
I'm using the following functions to get video resolution:
Code: Select all
libvlc_media_parse(m_media);
libvlc_video_get_size(m_player, 0, &x, &y)
I've tried to look inside the 'libvlc_video_get_size' function and saw that 'libvlc_media_get_tracks_info(p_mi->p_md, &info)' call returns zero on .mpg files.
I can play all these .mpg videos via VLC player and can see their resolution too.
Where's my mistake?