Log in or register to post comments

Video in VideoPlayBack App

June 28, 2012 - 5:18am #12

Hi, 

 

I just saw the VideoPlayBack Sample App, It is really very impressive. But I wanted to know are we playing the video on the image using Texture or something else???

Also if I want to play any other Video how can I do that?? means what should be the format and other stufff of the Video to be played??

 

Thanks in Advance :)

Video in VideoPlayBack App

June 28, 2012 - 5:45am #11

Hi ajinkyashelar

 

Yes it plays the video on to a texture.  

In this case the video is local, but it can be remote - see this thread regarding using a URL:

https://ar.qualcomm.at/content/adding-video-over-marker

Note that for a remote video it will play full screen.  The alternative is to download the video locally and then you can play it non full screen.

As regards the format it should work with all formats supported by Apple.

 

 

HTH

N

Video in VideoPlayBack App

August 18, 2012 - 4:59am #10

What is the reason that the video on the texture cannot be remote? The AVPlayer clearly supports this (http://developer.apple.com/library/ios/#documentation/AudioVideo/Conceptual/AVFoundationPG/Articles/02_Playback.html%23//apple_ref/doc/uid/TP40010188-CH3-SW3).

Instead of making a sample app that is very complicated and diffentiate between technical solutions for remote and local files I think the Vuforia team should really make a simple example  that just uses the AVPlayer for local as well as remote files. The current sample with local fiels or fullscreen is more or less useless in most usecases.

Any one else who thinks this would be usefull?

 

 

Video in VideoPlayBack App

August 20, 2012 - 1:59am #9

Thanks for this.

Please understand that the samples are not strictly part of the core Vuforia library.  Instead this sample was created in response to demand from the community for a video sample playback application which shows the capability, but as you have pointed out has its limitations.

This sample does handle local as well as remote files, however the remote files just happen to play fullscreen rather than on a texture because this is the way that the underlying media player deals with it - which is kind of where Vuforia-land ends.  Some in the community were able to extend this to play on texture which is very encouraging.

Sorry you feel this is not as helpful as you might like.

N

Video in VideoPlayBack App

August 20, 2012 - 11:47am #8

Nalin, thanks for replying. My point is - why make an effort of implementing another technical solution for remote files when the AVPlayer supports it? I can only assume that it has caused you problems of some kind and you could not make it work. Also, it complicates the code and makes it less reusable for others.

It is true that a lot of people are trying to make remote files work but I have not heard of anyone who actually succeeded yet. The solutions discussed in other threads are not technical stable for some reason. I have now personally tried 4 different ways and all have some kind of problems (e.g BAD_ACCESS, bad projction on target image, clipping etc). I would say this is not a trivial task.

I would like to see the video playback sample refactored to only use the AVPlayer and support local as well as remote files. The Vuforio team clearly has the skills to do that, and it would make it possible for the rest of us who just want to code  business apps rather than spend 6 month learning openGL or whatever to leverage on that.

 

Video in VideoPlayBack App

August 21, 2012 - 7:26am #7
Hi tgotzsche
 
Here is some more in depth information on the video sample after discussion with one of the developers:
 
Currently a movie is played differently depending whether it is running fullscreen or running on a texture.
 
If the file is local and is requested to render on-texture, an AVAssetReader is used to decode each frame of video.  The decoded video data is then specified as the texture image for use by OpenGL (glTexImage2D).  The file's audio is simply played using AVPlayer.
 
If the movie file is remote, there are no system APIs available that allow us to get the decoded image data for each frame of video.  This is why remote files are played using Apple's media player, which provides a consistent iOS user experience.  The link you provided to the Apple Documentation shows URLs being loaded via an AVURLAsset but these are simply played through an AVPlayer which is the underlying media player i.e. It will play in a UIView, not on an OpenGL texture.  So refactoring to only use AVPlayer, as per your suggestion, would not achieve your stated goal.
 
Trying to play remote files on a texture with a guarantee of performance is a non-trivial task, as you have highlighted, and as others have discovered.  Hopefully the sample has helped some developers to move in the right direction.
 
The focus for the Vuforia team is the core library and making it best-in-class, and the team is hard at work delivering some of the features that have been demonstrated recently, and others that have not.
 
Hope this makes sense.
 
N

Video in VideoPlayBack App

August 21, 2012 - 2:36pm #6

Hi Nalin, thanks for this insight information - it is really usefull and now the implementation makes perfectly sense.

I understand that you have to focus and appriciate the SDK and and samples. I completely agree that this leading edge.

Thanks.

 

BR Thomas

Video in VideoPlayBack App

August 27, 2012 - 5:22am #5

Hi Guys,

 

Any luck in playing Remote Video on Texture? We have been also trying to implement similar solution, so please let us know if anybody is succeded in same?

Thanks,

Pravin

 

Video in VideoPlayBack App

August 27, 2012 - 10:20pm #4

I now have something working based on the AVPlayer in iOS. 

It will play remote as well as local video's. Works with WiFi and 3G connections.

 

 

Video in VideoPlayBack App

November 19, 2013 - 6:06am #3

tgotzsche wrote:

I now have something working based on the AVPlayer in iOS. 

It will play remote as well as local video's. Works with WiFi and 3G connections.

 

 

 

Do you mean you achieved playing remote video on texture? If you say so can you share how did you manage that?

Video in VideoPlayBack App

October 27, 2014 - 12:16am #2

 

If the remote videos stored on aother server (128.199.134.179/projects/vcreader/SampleVideo/sampleVideo.mp4) can be played in texture as the local file, do please share how can this be achieved.

 

Thanks in advance.

Video in VideoPlayBack App

October 29, 2014 - 2:50am #1

HI Guys

I have downloaded the videoplaybak code from samples and ran on Ipadmini retina. In portrait mode , i see the camera view presents fullu and in LANDSCAPE mode i see BLACK Screen on side and camera doesnt ome to whole screen . Can you please let me know what is the issue.

 

Device: Ipadmini Retina

Orientation : LandscapeLeft/LandscapeRight

 

 

Thanks in Advance !!

Log in or register to post comments