inscore icon indicating copy to clipboard operation
inscore copied to clipboard

Trouble playing video on Android

Open escuta opened this issue 4 years ago • 5 comments
trafficstars

Hello, I wish to have OSC playback control of a video on an Android device. I've successfully tested playback with Inscore on Linux with the following .inscore file:

/ITL/log show 1;
/ITL/scene/* del;
/ITL/scene color 0 0 0;
#/ITL/scene opengl 0;
/ITL/scene fullscreen 0;

/ITL/scene/Video_1 set video '/home/iain/projetos/teatromenor/video/CabecaParaBaixo.mov';
/ITL/scene/Video_1 alias '/ITL/scene/Video_1/scale' scale;
/ITL/scene/Video_1 alias '/ITL/scene/Video_1/play' play;
/ITL/scene/Video_1 alias '/ITL/scene/Video_1/rate' rate;
/ITL/scene/Video_1 alias '/ITL/scene/Video_1/alpha' alpha;
#/ITL/scene/Video_1 alias '/ITL/scene/Video_1/pos' x y z;
/ITL/scene/Video_1 alias '/ITL/scene/Video_1/vdate' vdate;
#192.168.15.4:7000/ITL/scene/Video_1 "" "";
192.168.15.4:7000/ITL/scene/Video_1/scale 0.6;
192.168.15.4:7000/ITL/scene/Video_1/play 0;
192.168.15.4:7000/ITL/scene/Video_1/rate 1.;
192.168.15.4:7000/ITL/scene/Video_1/alpha 1.;
#192.168.15.4:7000/ITL/scene/Video_1/pos 0. 0. -1.;
192.168.15.4:7000/ITL/scene/Video_1/vdate 0;

On Android I have placed the video file and .inscore file in: /storage/emulated/0/Documents/inscore/ I correct the ip address in the .inscore file and change the line referring to the video to:

/ITL/scene/Video_1 set video 'CabecaParaBaixo.mov';

When I run the file on Android there are no errors. It states that Inscore is listening on port 7000 that the document path is set to /storage/emulated/0/Documents/inscore

However, when I attempt to play the video with the utility oscsend, eg. and with the following command (or by setting play to 1 in the .inscore file), nothing happens in the video window:

oscsend 192.168.15.12 7000 '/ITL/scene/Video_1' si play 1

Nor are there any error messages in the log. I know that Inscore is receiving the OSC messages because it produces error messages in response to incorrect parameters. Also it is accessing the video file as it produces an error message if I misname the file. The video plays well on the Android device with VLC.

Is there something that I have missed in the .inscore file perhaps?

The other thing is that when in full screen mode, on both Linux and Android, a fine white border is present on the periphery of the display. Is there a setting to remove this?

Thanks very much, Inscore seems like brilliant software!

Iain

PS. I also addressed the video file with the full path in the Android .inscore file. This also didn't work. ie. /ITL/scene/Video_1 set video '/storage/emulated/0/Documents/inscore/CabecaParaBaixo.mov';

escuta avatar Jul 10 '21 20:07 escuta

I guess you're using the last public apk. This is an old version (1.21) using an old Qt version (5.7.0). It's also using an old android sdk. I have a similar issue with this version: I can load the video (without error), I can play and hear the video sound, but there is no image. I suspect it comes from Qt and maybe also the sdk in use. The latest inscore version is not (yet) available for android. Since Qt 5.14, it's a kind of nightmare to compile for android. I've already spend a significant time on that, without success up to now.

dfober avatar Jul 12 '21 06:07 dfober

Thanks Dominique. Yes v.1.21, but from the Play Store. I just tried the APK version with no change. The sound in my test video does not start until after a minute but I have not heard it working on Android, only in Linux. If you can get the new version compiled, it will be a great help, as Inscore seems to be the ideal solution to a particular problem I'm having in a current installation project. :-)

escuta avatar Jul 12 '21 09:07 escuta

I deleted my comment about InScoreWeb as I hadn't realised that it doesn't support OSC communications, so won't be of use in this project.

escuta avatar Jul 13 '21 11:07 escuta

You can communicate with the web version using http or websockets.

dfober avatar Jul 15 '21 06:07 dfober

Last minute news: I'm expecting to solve the android compilation issues with the next Qt release (6.2.0), but it's planned for the end of September. The current beta release is still missing components required by inscore.

dfober avatar Jul 17 '21 06:07 dfober