Log in or register to post comments

Hardware video decoder for 3D movie

February 9, 2012 - 2:54pm #1

Hi,

I am trying to get a movie to play on a plane, that is controlled by an image marker on an iOS device.

My approach was to use the AR plugin from Prime31. This plugin allows me to render a movie to a texture and attach the texture to an object. Here is a video of the plugin in action: http://www.youtube.com/watch?v=pbgsgmb9j54

Now I just need to control this using an image marker, but as soon as I import the QCAR unity package in the project, the movie is no longer played. I don't add anything to the scene, all I do is import the QCAR package (I have tried both 1.0 and 1.5 beta). Then, when I run it, it says that "the media format is not supported", but this is the same file that works before I import the QCAR package.

I use Unity 3.4.2f2 and XCode 4.2.1.

I get the following error message in XCode:

2012-02-08 13:41:39.271 ProductName[2856:8207] could not load track status: Error Domain=AVFoundationErrorDomain Code=-11828 "Cannot Open" UserInfo=0x24a04b0 {NSLocalizedFailureReason=This media format is not supported., NSLocalizedDescription=Cannot Open, NSUnderlyingError=0x249d010 "The operation couldn’t be completed. (OSStatus error -12847.)", NSURL=file://localhost/var/mobile/Applications/A6C4CC02-E2F2-4A92-A0C3-4D2906B99D48/ProductName.app/Data/Raw/QCAR/}

I asked the Prime31 developers and they said that maybe QCAR also uses the hardware decoder. Does anybody know if this is true and if so if there is a way they might be able to share it?

Does if QCAR uses any other resources that might also be used by the video player plugin?

Or in general have some idea why these two plugins might not cooperate?

Regards,

-- Per

Re: Hardware video decoder for 3D movie

February 20, 2012 - 4:32am #5

I am stuck on this same issue as well. With an older version of QCAR for Unity (possibly up to 4 months older now), it worked fine with Prime31.

It would be very nice to get to the bottom of this.

Re: Hardware video decoder for 3D movie

February 15, 2012 - 8:41pm #4

You can't do this directly from Unity, it requires working on the native level. You'll need to research rendering video using OpenGL for iOS, there should be some resources out there. It isn't necessarily trivial though, which is why things like this Prime31 addon exist.

Did you check whether or not Prime31 was trying to use the camera?

- Kim

Re: Hardware video decoder for 3D movie

February 15, 2012 - 2:30pm #3
ksiva wrote:

Sorry for the late reply. Did you ever get this to work?

We've run some tests and it's certainly possible to render a video on an OpenGL surface at the same time QCAR is running. There shouldn't be a hardware decoder clash.

That Prime31 plugin also provides a means for rendering the camera image on a texture, right? QCAR does need exclusive access to the camera, so make sure Prime31 isn't trying to use it as well.

- Kim

How can you do this? I mean render a video on an OpenGL surface? Does this mean I could render a video over an augmentation?

Re: Hardware video decoder for 3D movie

February 15, 2012 - 7:16am #2

Sorry for the late reply. Did you ever get this to work?

We've run some tests and it's certainly possible to render a video on an OpenGL surface at the same time QCAR is running. There shouldn't be a hardware decoder clash.

That Prime31 plugin also provides a means for rendering the camera image on a texture, right? QCAR does need exclusive access to the camera, so make sure Prime31 isn't trying to use it as well.

- Kim

Log in or register to post comments