hi , I'm trying to play a video on a simple plane component , but I read that unity doesn't support video textures on mobile devices , so is there any way to have this thing on QCAR , and have this effect that when you point your camera at the marker , some video plays on your marker(or your plane) ?
thanks
- Sort Posts
- 39 replies
- Last post
playing video on a plane
playing video on a plane
playing video on a plane
Thanks, but that question is talking about playing multiple video files simultaneously. We don't really need to play multiple video files at the same time, but rather need the ability to play multple different audio tracks either synced with a single video, or address different audio tracks within a single video.
playing video on a plane
Hello,
All of this should be possible but is beyond the scope of this forum. Our sample uses the build in Android video playback mechanism. Take a look at http://stackoverflow.com/questions/6261576/multiple-video-files-simultaneously-playing-in-android which may be helpful to you.
Thank you,
-Peter
playing video on a plane
We would need to be able to play them separately. For instance, imagine you had a quartet of singer's voices, and wanted the user to be able to selectively add singers to the mix. In our case, we may be able to get away with a pre-determined order (e.g. add bass first, then soprano, then tenor in my made-up example), so if we were able to have multiple tracks, we could premix each. e.g. we'd have 4 tracks, each one with 1-4 singers mixed together. So, we wouldn't necessarily need to play the tracks simultaneously (althought that would be most flexible), but we definitely need to at least be able to swap tracks.
playing video on a plane
We are hoping to be able to sync multiple audio tracks with a video. Has anyone tried this with this video component? The way I see it, there would be a couple ways to approach it:
1) Don't put audio in the video. In each frame, query for the time in a "master" audio track, the other audio tracks, and the current time in the video, and seek the video and other audio tracks if the get out of sync by X.
2) Encode the video with multiple audio tracks, and play more than one at a time. I don't know if it would be technically feasible to play multiple audio tracks simultaneously in a single video, or if one would have to swap between them. In either event, there isn't currently an API exposed in the video component to do anything with the audio track(s) other than change the volume. Any chance of exposing functionality such as this?
Thanks,
Patrick
playing video on a plane
@patchedreality -Try using Handbrake exporting as mp4, but change the output file extension to m4v -then Unity won't mess with it. Keep the .264 compression and AAC audio. You can play with the rf value to get the file size down. This was the only export pipeline that got rid of the scrambled image problem for me.
playing video on a plane
I've inquired with one of the lead Video Playback devs on this and he's responded that..
For maximum compatibility across platforms we recommend (on the readme.txt) to use H.264 for video encoding, AAC for audio encoding and that the everything should be packaged on an MPEG-4-like wrapper. We have found that ".m4v" works well on iOS, Android and Unity while ".MP4" often needs to be re-encoded when imported on Unity.
Things that the developers should stay away from: H.263, AVI, WMV, MKV.
playing video on a plane
I am experience a similar issue with video playing in a distorted fashion. I am attempting to do something similar to what is described in this thread:
http://forum.unity3d.com/threads/48938-chroma-key-shader?p=771175&viewfull=1#post771175
I was able to get the shader and video referenced in that post to work within a Mac Standalone scene using a MovieTexture. However, when attempting to play the sample video using the Qualcomm VideoPlaybackBehaviour, I get distored output, even when using the standard Unlit shader.
Here's a link to the original video:
http://www.noomuseum.net/mov/SoizicDoubleAlpha-674.mov
Thanks,
Patrick
playing video on a plane
I'm having an odd problem. I have two different quicktimes with audio that I exported through Quicktime Pro as mp4(MPEG-4) files. One movie file plays find on the device using the new video playback feature, but the other one looks completely scrambled. -? The audio plays fine for both too. I've tried re-exporting, changing Quality settings on the movie files within Unity, but I can't get the second movie to work when built to device. The movie in question also plays fine in the preview window within Unity. Anything else I should look into?
playing video on a plane
playing video on a plane
If you have Eclipse installed, you can obtain the app's build and run session logs from the LogCat window. Otherwise you can use the ADB tool directly, which can be found in platform-tools within your Android SDK installation. http://developer.android.com/tools/help/adb.html
This command should write your log to a file ..
adb logcat -d > logcat.txt
playing video on a plane
playing video on a plane
Hey there! I downloaded the unity version and works pefectly, buy when I try to add it to my current scene called AppuntAR, it doesn't play de video when I touch the play button. I can't understand what is it, because I'm copying everything. Here you can se an screenshot! http://i.minus.com/iPv72pCSbniHx.jpg
Also its strange because its the same project, but different scene!!!!!!
Any ideas?
Pascual from Argentina
playing video on a plane
Re: playing video on a plane
Re: playing video on a plane
http://www.youtube.com/watch?v=Y9HMn6bd-v8
at time 2:54
Getting a video texture from within Uniyt3d will be apparently a feature in the upcoming 3.5
From:
http://blogs.unity3d.com/2011/06/16/unity-roadmap-2011/
WebCam support
We’re adding support for streaming video from cameras or other input devices into a texture to allow you to develop augmented reality games, or for uploading pictures for integration with social networks or other online services. This was implemented at our last NinjaCamp week.
Hopefully it won't create problems between Unity3d and QCAR as they both try to grab the video stream...
Re: playing video on a plane
I was looking for this functionality too and I found a guy who writes plugins for Unity and he has one that works on iOS. He is planning to port it to android. The plugin he has written is an augmented reality plugin however it's not exactly as it doesn't do tracking as far as I can tell. But it does include the ability to map the input from the camera or a stored video file to a texture on a 3d object within unity. I have no idea if you use it with QCAR if it will clash. the plugin is $75 though and I haven't bought it yet.
Re: playing video on a plane
Re: playing video on a plane
thanks kim , I have an idea of assigning a material to a plane then assign that material an image (a frame of a movie) and then change the image of that material in the Update function and build the illusion of the movie playing on that plane , I wanted to know what you think about this , do you think it's possible?
(I don't have much experience in scripting in unity)
The VideoPlayerHelper API can support syncronization, but you'll have to roll your own solution for audio sync across multiple tracks. Video Playback relies on the native player available from the runtime context. So its features derive from those.