python-vlc icon indicating copy to clipboard operation
python-vlc copied to clipboard

Unexpected video_update_viewpoint behavior

Open JosephRHendry opened this issue 7 years ago • 3 comments

I have noticed different behavior when using the video_update_viewpoint() function on a mediaplayer spawned from a specifically created instance vs a directly spawned media player.

for example: import vlc p = vlc.MediaPlayer('V1.mp4') p.play() v = vlc.libvlc_video_new_viewpoint() p.video_update_viewpoint(v,True) while p.get_state() !=6: continue

Produces a video with a viewpoint altered from the default (though I am still unclear how to control it).

Whereas: import vlc i = vlc.Instance() p = i.media_player_new() m = i.media_new('V1.mp4') m.get_mrl() p.set_media(m) v = vlc.libvlc_video_new_viewpoint() p.video_update_viewpoint(v,True) p.play() while p.get_state() != 6: continue

Plays with the default viewpoint().

Is it correct to expect these two approaches to produce the same result?

JosephRHendry avatar May 13 '18 22:05 JosephRHendry

Just fixed the code I posted above -- should now show the bug.

JosephRHendry avatar May 14 '18 14:05 JosephRHendry

Could you try again with the #50 bug now fixed?

oaubert avatar May 14 '18 17:05 oaubert

Unfortunately it still does not produce the correct behavior. The viewpoint remains unaltered.

JosephRHendry avatar May 31 '18 16:05 JosephRHendry