I'm only few weeks into perl, and I am trying to run the codes below:
sub runVideo {
system('mplayer -fs video1.mpeg2 video2.mpeg2');
return;
}
runVideo();
system('some other processes in background&');
runVideo();
Basically I run video1 and video2 for two times, first time which is just the videos, second time with some application running at the background, doesn't matter what apps are running, since I'm running the videos in fullscreen mode.
Problem:
On the first run, the transition from video1 to video2 takes about 1-2 seconds. While on the second run, the transition from video1 to video2 takes less than a second.
Question:
Why is the transition time differs? Could it be the videos are still in the memory so it took shorter time to load it?
What other alternatives or workarounds to get a same transition time?