using two movie windows
이전 댓글 표시
I have an external .avi file (a movie) and an .avi file constructed using writeVideo. I want to play them in two separate windows. I'm using implay but that puts both files into the same movie player which I can only use to play one at a time. Suggestions?
댓글 수: 4
Douglas Brenner
2016년 8월 11일
Sorry, not helpful. I am supposed to be able to do it with implay.
Walter Roberson
2016년 8월 11일
implay does not offer the ability to run multiple simultaneous players. If someone is restricting you to implay then you will not be able to solve this problem.
Walter Roberson
2016년 8월 13일
Douglas posted:
According to the implay documentation "You can open multiple Video Viewers to view different movies simultaneously". How?
Douglas
2016년 8월 13일
답변 (2개)
Walter Roberson
2016년 8월 10일
0 개 추천
댓글 수: 2
Walter Roberson
2016년 8월 11일
Walter Roberson
2016년 8월 13일
Just call implay multiple times with different movies. Each call creates a new viewer. For example,
play1 = implay('shuttle.avi'); play2 = implay('rhinos.avi');
and then click the play button on each of the viewers.
Note: implay() does not offer any obvious method to start playing, though it does offer methods to stop playing. There might be a programmable way to start playing; someone would have to dig further into that.
Douglas
2016년 8월 14일
편집: Walter Roberson
2016년 8월 14일
댓글 수: 3
Walter Roberson
2016년 8월 15일
The message about vision suggests that you do not have the Computer Vision toolbox installed (or licensed.)
For me in R2016a on OS-X, I get two independent windows if I call implay twice. The default position of the two is the same, but when I move one it is clear the two are working on different files, and I can hit the play button on them independently.
You did not mention your operating system or release, so I installed R2013b on MS Windows to check if there was something about older releases or about MS Windows. However, everything worked fine on MS Windows as well.
I still do not recommend implay because it cannot be controlled by code, but it does work on the systems I have tested on.
You could consider modifying the videofig File Exchange contribution for your needs.
Douglas
2016년 8월 16일
Walter Roberson
2016년 8월 16일
Which OS-X? I just installed R2014a on El Capitan and had no difficulty (after applying the Java patch to get it to run at all.)
I am not sure if I have any PowerPC based system at hand; the earliest OS-X that I am sure that I can install to test with is Maverick.
카테고리
도움말 센터 및 File Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!