Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / PlayVideoToImage - How?

Author
Message
JohnnyMeek
10
Years of Service
User Offline
Joined: 23rd Apr 2013
Location: Slovenia
Posted: 8th Sep 2016 07:33
Could we get an example of how to use the PlayVideoToImage command.

I assumed it would be this simple...

LoadVideo ("grey.avi")
PlayvideoToImage (1)
spr=CreateSprite (1)

But I get an error, image 1 doesn't exist.
CJB
Valued Member
20
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Essex, UK
Posted: 8th Sep 2016 08:04
I can get it to work on Android (broadcast to the new AppGameKit Player), but it crashes on Windows. Code:

V2 T1 (Mostly)
Phone Tap!
Uzmadesign
JohnnyMeek
10
Years of Service
User Offline
Joined: 23rd Apr 2013
Location: Slovenia
Posted: 8th Sep 2016 11:52
Shame this doesn't work. Was looking for to playing with it.
Polaraul
9
Years of Service
User Offline
Joined: 13th Dec 2014
Location:
Posted: 8th Sep 2016 14:04
@CJB I wonder if this is a codec issue? Using an AVI file (MJPG) I can get your code snippet to work.
CJB
Valued Member
20
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Essex, UK
Posted: 8th Sep 2016 14:06
Yeah, maybe. I'll install an mp4 codec tonight and see if that fixes it... although I don't recall having problems with MP4 on previous versions.
V2 T1 (Mostly)
Phone Tap!
Uzmadesign
Paul Johnston
TGC Developer
21
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 8th Sep 2016 14:07
Quote: "I can get it to work on Android (broadcast to the new AppGameKit Player), but it crashes on Windows. Code:"

That code works for me on Windows using an MP4 video encoded with H264. By default Windows doesn't come with a codec for this (but it is the best format for mobile devices), so you will need to install an H264 DirectShow codec and an MP4 splitter to separate it into video and audio streams. I installed AVSplitter for the MP4 part and FFDShow for the H264 codec. AVSplitter says it can decode H264 as well, but that bit didn't work for me.
CJB
Valued Member
20
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Essex, UK
Posted: 8th Sep 2016 20:48
Still no joy here. I installed FFDShow and AVSplitter (although I could already view mp4 in other direct show apps such as Media Player Classic) but the application still crashes as soon as you launch it. If I try using the wmv alternative (these are the example vids from the regular video example app), the app doesn't crash, but you don't see the video either (window remains blank).
V2 T1 (Mostly)
Phone Tap!
Uzmadesign
Paul Johnston
TGC Developer
21
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 9th Sep 2016 13:43
I tried the video from the original video example and it works here. Does it also crash if you use PlayVideo instead? And if not does PlayVideo show the video?
JohnnyMeek
10
Years of Service
User Offline
Joined: 23rd Apr 2013
Location: Slovenia
Posted: 23rd Sep 2016 10:50
Did anyone manage to get this working?
Alex_Peres
AGK Master
14
Years of Service
User Offline
Joined: 13th May 2009
Location: The Milky Way Galaxy
Posted: 28th Sep 2016 17:41 Edited at: 28th Sep 2016 18:20
It's really doesn't work.
And it's pretty bad...

This code with video from example works on Windows:


But this code doesn't work. Image doesn't exists after all.

And the worst thing, for me, is that PlayVideo command doesn't work on full screen mode on Windows (10 at least)... It works, but I can't see anything only voices.
Alex_Peres
AGK Master
14
Years of Service
User Offline
Joined: 13th May 2009
Location: The Milky Way Galaxy
Posted: 29th Sep 2016 16:01 Edited at: 29th Sep 2016 17:19
I finally make it to work...
This command is not reading the .WMV format right.
.MP4 file from AppGameKit example works fine on Windows. But not my own MP4 videos...
CJB
Valued Member
20
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Essex, UK
Posted: 3rd Oct 2016 14:28
Quote: ".MP4 file from AppGameKit example works fine on Windows. But not my own MP4 videos... "

MP4 is a container. If you encode your video in H264 you should be okay.
V2 T1 (Mostly)
Phone Tap!
Uzmadesign
Alex_Peres
AGK Master
14
Years of Service
User Offline
Joined: 13th May 2009
Location: The Milky Way Galaxy
Posted: 3rd Oct 2016 16:29
I use H264, but it not works.

Login to post a reply

Server time is: 2024-03-28 21:13:45
Your offset time is: 2024-03-28 21:13:45