You are not logged in.

> The forum rules have been updated. Please take a moment to read them.


#1 2013-01-16 06:33:41

ipnotica
New member
Registered: 2013-01-16
Posts: 9

Flv controls. Play once then pause.

I am trying to get a flv video to loop then pause at first frame rather than disappearing after playing. That way the user could toggle play again if they wanted to re-watch. I am making little talking people around the tours so they can hook people up with good information.
Below is a 360 example I made. I have it paused at start then loop="false" when I enter loop="true" it won't pause at start like it did upon loading. Is there any little script that would pause the first frame after loop? Any help would be greatly appreciated.

http://www.ipnotica360.com/sample/comme … ltour.html

Offline

 

#2 2013-01-16 08:55:08

bdd
Administrator
Registered: 2011-01-18
Posts: 621
Website

Re: Flv controls. Play once then pause.

Hello,

I did not find any elegant way to do it.

The following code is working, but I did not find it really pretty.
Just add the 3 parameters; loop, pausedonstart and onvideocomplete.
What I do not like in this code is the way I need to fill the onvideocomplete event to do what you want. But it is working.

Code:

    <hotspot name="spot0"
             handcursor="true"
             url="indexdata/graphics/videoplayer.swf"
             videourl="indexdata/graphics/spots/spot0.flv"
             onclick="togglepause();"
             distorted="true"
             loop="false"
             pausedonstart="true"
             onvideocomplete="playvideo(indexdata/graphics/spots/spot0.flv);"
             ath="-3.33363" atv="-5.31423"
             width="426" height="546"
             rx="-0.784248" ry="7.37344" rz="0.814467"/>

Gérald

Offline

 

#3 2013-01-16 16:05:56

ipnotica
New member
Registered: 2013-01-16
Posts: 9

Re: Flv controls. Play once then pause.

Gérald,
Thank you very much for the help. It worked! I have seen around the forum a desire for flv controls. I think we will see this feature in the future. Untill then this is the only script I will need!

Offline

 

#4 2013-01-17 01:32:31

ipnotica
New member
Registered: 2013-01-16
Posts: 9

Re: Flv controls. Play once then pause.

Just saw the slide show with Live pano!!!! cool Very excited for the release of both panotour 2.0 and Livepano.
Any idea about when that will be released?

Offline

 

#5 2013-01-17 02:59:45

Destiny
Moderator
From: Australia
Registered: 2010-04-27
Posts: 2348
Website

Re: Flv controls. Play once then pause.

PTP V2 I visualise will be just amazing from what I have heard and seen so far.. I cannot wait until we get to play with it.. Very exciting... I just love PTP...wink

Destiny...


Virtual Tours and 3D/360 Object/Product Photographer - Our aim is to create a 3D/360 Virtual Tour Shop/Store with links to 3D/360 degree products. My gear, VR Drive II - D90 - Nikon 10.5 fisheye - Nikon D800 with Nikon-Nikkor 14-24 - NOVOFLEX Magic Balance - Acratech GP Ball-head - Nodal Ninja 4 + RD-16 Rotor - Manfrotto 190CXPRO4 Carbon Fiber Tripod smile smile

Offline

 

#6 2013-01-18 00:10:15

ipnotica
New member
Registered: 2013-01-16
Posts: 9

Re: Flv controls. Play once then pause.

Destiny smile I feel like we are at the beginning of a new era of online interactivity. Faster speed equals smooth virtual reality like experience with interactive talking characters. We can teach, share and show anything to anyone anywhere. Many of people exploring our 360 degree virtual worlds may someday actually say "This is so real. I am going to get off my computer for a while cause reality is awesome. Then we will all throw our computers away and enter real  360 degree virtual  life wink A loop back to reality. " Then equipment cost and overhead will go way down. lol ..imagine that. It'll be like the song "Imagine" by John Lennon  wink Just kidding, but serious 8|
PTP V2 is going to be a game changer!

Offline

 

#7 2013-01-18 01:05:46

Destiny
Moderator
From: Australia
Registered: 2010-04-27
Posts: 2348
Website

Re: Flv controls. Play once then pause.

Hi ipnotica, yes I totally agree. I feel that PTP V2, or what ever it will be called, will be a world changer.. It will be the benchmark for everyone else to step up to and work towards, and I am really happy to be part of it.. big_smile

With regards to taking characters, this is already possible.. You can add a hotspot to a feature within the Virtual Reality Tour where a 3D character, toon or human form, which can look very realistic..; and can talk lip-synced either with your own words/voice or audio production produced... Its better for the latter since you need filters and a sound booth to achieve the best result... You can do this either in 2D or 3D.. you can even bring an old paiting to life, perhaps in an art gallery, so when you click on a 300 year old painting of a women, it will then talk to you when you click on it.. big_smile Scary when I first did it.. lol

This is a demo 3D toon talking.. http://members.westnet.com.au/dps/3DGir … raffe.html

Its is easy for me to place this into a Virtual Tour.. There are so many things which are possible.. I gave up showcasing too much of my testing to avoid the negative critical sceptic put downs..

With regards to your post topic... Its is possible but flv has changed so many protocols it becomes confusing.. I personally have given up with the flv/fla players since its better to use MP4 and JavaScript.

http://members.westnet.com.au/dps/swfandflv/index.html

Lets see what PTP V2 brings us...

Destiny..


Virtual Tours and 3D/360 Object/Product Photographer - Our aim is to create a 3D/360 Virtual Tour Shop/Store with links to 3D/360 degree products. My gear, VR Drive II - D90 - Nikon 10.5 fisheye - Nikon D800 with Nikon-Nikkor 14-24 - NOVOFLEX Magic Balance - Acratech GP Ball-head - Nodal Ninja 4 + RD-16 Rotor - Manfrotto 190CXPRO4 Carbon Fiber Tripod smile smile

Offline

 

#8 2013-01-18 11:08:46

Destiny
Moderator
From: Australia
Registered: 2010-04-27
Posts: 2348
Website

Re: Flv controls. Play once then pause.

Hi.. I thought I would just check out a talking painting just for fun.. The movie with lip-synch is not right as you can see its a bit iffy, that would need to be embedded into the same stream but its still got merit for the right application. I just quickly made up this mockup..

http://members.westnet.com.au/dps/talki … ltour.html

I used an app called Crazy Talk which is a 2D animation app, very easy to use.. I have used it with my younger students for years... You can make your own pet talk or even make up your character drawings.. The newer version is better, I only have an oder version.. There is other software you might like to consider like iClone which works the same but its in 3D..  http://www.reallusion.com/iclone/iclone … llery.aspx

http://www.youtube.com/watch?v=qahyP3kGpEQ

This is a lot more advanced than CrazyTalk with many more features and options but you can still import features from CrazyTalk into iClone...

PTP is just the base tool box, it then comes down to our own needs and imagination as to what you want to use it for, including..

Interactive presentations...
Gaming..
Real Estate
Tourism and much more..

My own need or goal is to create a fully interactive 360 shop... I have worked hard over these past few years to learn how to use and embed media into ptp...

I am just about ready but I am really waiting for PTP V2 to arrive..., which will open up the door of opportunity for many of us...

Destiny..


Virtual Tours and 3D/360 Object/Product Photographer - Our aim is to create a 3D/360 Virtual Tour Shop/Store with links to 3D/360 degree products. My gear, VR Drive II - D90 - Nikon 10.5 fisheye - Nikon D800 with Nikon-Nikkor 14-24 - NOVOFLEX Magic Balance - Acratech GP Ball-head - Nodal Ninja 4 + RD-16 Rotor - Manfrotto 190CXPRO4 Carbon Fiber Tripod smile smile

Offline

 

#9 2013-01-18 11:25:26

klausesser
Member
From: Düsseldorf, Germany
Registered: 2006-05-22
Posts: 6398
Website

Re: Flv controls. Play once then pause.

Destiny wrote:

I feel that PTP V2, or what ever it will be called, will be a world changer..

Oh - good to hear that -  so many things needs to be changed in the world . . . . cool

Klaus


If you want something you´ve never had,
then you´ve got to do something you´ve never done.

Offline

 

#10 2013-01-18 17:01:22

ipnotica
New member
Registered: 2013-01-16
Posts: 9

Re: Flv controls. Play once then pause.

Destiny I used The code from Gérald for the files below and was wondering if you could give me feedback on the links.
The flv is good becuase I am able to use transparency. Although maybe you know of a MP4 fallback code I could use for when flash isn't supported. ANy feedback would be greatly appreciated.

http://www.ipnotica360.com/sample/comme … ltour.html

http://www.tsvproperties.com/360/InnatT … ltour.html

Offline

 

#11 2013-01-19 01:16:02

Destiny
Moderator
From: Australia
Registered: 2010-04-27
Posts: 2348
Website

Re: Flv controls. Play once then pause.

Hi ipnotica... The code that Gérald provided is good, I tested it and it works.. Obviously there is no point in using a MP4 with the first one since it doesn't support the alpha channel. This kind of thing will probably be in the PTP V2. Not sure how it will work since Flash is on its way out and I do not know of any other video that can do what Flash do..

Flash has some very unique properties. For one, and I think a major feature with video, its supports the alpha channel without a video frame.. As long as the audio is embedded into the video track it will be fine and as long as the file size is not too big.. WIth the first one, well done, it looks awesome but you might need to fix up your last frame/s.. I would imagine you have a blank key frame or two at the end. If you did not have audio, you could have key framed the vid and removed them but since you do, you need to put it back into a vid editing software, set the timeline to view the frame and you will see your extra frames which you can cut off. If you do not have vid editing software, zip it, send it to me and I will do it for you. If you need that video to loop you could add a layer and then add a single key frame at the end with code, on enter, goto frame 1.. I can send you the code if you need it..

Now, with Flash there are a few things you need to be aware of..: Graphic types such as 24bit png's or even 8bit png's, do there work like support the alpha channel. But when you save your movie, the file size will be greatly reduced in comparison if you had used a jpg. By far the best formate for Flash is a png, especially with 24bit png's where after you have saved the alpha channel data is removed. 

Now, with video import, its far better to use uncompress video with no CODEC at all.. Flash has its own CODEC one of them being the Sorenson Spark, which is awesome offering very little lossy to the video. If you use a video format that has already be compress using a standard CODEC, you are doubling up with your compression and therefore the quality of you video will be reduced. If you want to test this out you can do so, and then check out the file size afterwards.  You will find that the are the same.. So therefore, there is no point in importing a video file what has been compressed using a standard CODEC. Flash also support the H.264, which you should be using for best results.

Flash defaults at 12 fps which is fine for vector toon animation but no good for the raster  video types, but the PAL format uses 25fps, actually its a bit less but it makes little difference. The NTSC uses 30fps. You most defiantly do not need that.. The quality of movies for TV is great but the file size for the web is way too much. With your fire, I would suspect that there is a frame rate or key framing issue or even the file size.. You can reduce the file size quite easily but I have  Mac which makes things easier due to the extra feature with QT.. if you save your MP4 for iPone the file size is just about halved.. Its ok for the short small movies but you can begin to get a lot of noise and a bit of lossy and the audio can be effected but in the case of the fire, it wouldn't matter... I have been working on a JavaScript fire to avoid all these issues. Great for video with no audio..

The TV vid is fine.. It runs a bit slow but you really do not want to reduce the quality of that, I am assuming you used MP4.. which is the best option. 

I think I covered it all.. Sorry if I have confused you.. Vid is a complicated media to deal with, since it is dependent on the end use and there are a huge quantify of software that can deal with exporting video but the basics are always the same..

Destiny..


Virtual Tours and 3D/360 Object/Product Photographer - Our aim is to create a 3D/360 Virtual Tour Shop/Store with links to 3D/360 degree products. My gear, VR Drive II - D90 - Nikon 10.5 fisheye - Nikon D800 with Nikon-Nikkor 14-24 - NOVOFLEX Magic Balance - Acratech GP Ball-head - Nodal Ninja 4 + RD-16 Rotor - Manfrotto 190CXPRO4 Carbon Fiber Tripod smile smile

Offline

 

#12 2013-01-19 03:43:51

Destiny
Moderator
From: Australia
Registered: 2010-04-27
Posts: 2348
Website

Re: Flv controls. Play once then pause.

Hi.. One thing is to get fire working and looking real but its quite another thing to get it to work inside a pano..

http://members.westnet.com.au/dps/fire/Fire.html

I will see how I can make it work realistically...

Destiny...


Virtual Tours and 3D/360 Object/Product Photographer - Our aim is to create a 3D/360 Virtual Tour Shop/Store with links to 3D/360 degree products. My gear, VR Drive II - D90 - Nikon 10.5 fisheye - Nikon D800 with Nikon-Nikkor 14-24 - NOVOFLEX Magic Balance - Acratech GP Ball-head - Nodal Ninja 4 + RD-16 Rotor - Manfrotto 190CXPRO4 Carbon Fiber Tripod smile smile

Offline

 

#13 2013-01-19 08:10:58

Destiny
Moderator
From: Australia
Registered: 2010-04-27
Posts: 2348
Website

Re: Flv controls. Play once then pause.

Hi ipnotica.. I have tested my fire in ptp, and although it works I cannot get it to work in a rectangle. A rectangle and polygon work very differently. I am happy to send you the fire as is if you want to use it. Sometimes I tend to look at things in a more complicated way.  Its easy to get a mp4 or a swf normally to work but this is different. I know I cannot use movie sprites since apg will reject them. However, I can use Action Script and for the the wall flicker, I just used an alpha keyframe to gain some realism..  The benefit in using AS, its code so its not bound by the same rules as a movie file so it will run better.

Let me know if you want me to send you the fire file..

Destiny..


Virtual Tours and 3D/360 Object/Product Photographer - Our aim is to create a 3D/360 Virtual Tour Shop/Store with links to 3D/360 degree products. My gear, VR Drive II - D90 - Nikon 10.5 fisheye - Nikon D800 with Nikon-Nikkor 14-24 - NOVOFLEX Magic Balance - Acratech GP Ball-head - Nodal Ninja 4 + RD-16 Rotor - Manfrotto 190CXPRO4 Carbon Fiber Tripod smile smile

Offline

 

#14 2013-01-20 03:55:31

ipnotica
New member
Registered: 2013-01-16
Posts: 9

Re: Flv controls. Play once then pause.

Destiny, Thank you so much for all of the great information about the video embeds. I am using after effects for the file. The problem is that I didn't have the original file so I think it may have gotten compressed already into MOV before I FLV exported from after effects. We are getting a new green screen setup and a film team soon so I will be getting more files to work with. Butthe FLV of the girl speaking was only 2.5 megs. I could definately pop a few more characters in there smile As far as the tv, I used FLV againI will try with MP4 next. I have used a little action script before  but I couldn't get it to work in the pano. I tried to put stops in the swf timeline and button actions but it didn't seem to honor them. Iused to be able to get my script to work in Flashificator when I was using that but I have yet to figure out in PTP. Although I have seen others who appear to have lots of AS working fine. Still learning about PTP and KRpano and loving every second of it!

Offline

 

#15 2013-01-20 03:59:50

ipnotica
New member
Registered: 2013-01-16
Posts: 9

Re: Flv controls. Play once then pause.

Also speaking of insane embedders. Have you seen this guys work. http://www.youtube.com/watch?v=8xi6FYgAKvs
Embedding all sorts of crazy stuff in KRpano. He isn;t easy to get ahold of though....He must of got nabbed up by a big company or somethign cause I have yet to get ahold of him.
This is the sickest thing I have ever seen embedded http://www.youtube.com/watch?v=WejaEnbFB7s
Still a mystery! Here is his github yet I don't understand any of it. github.com/ciul/mookrpano

Offline

 

#16 2013-01-20 04:11:05

ipnotica
New member
Registered: 2013-01-16
Posts: 9

Re: Flv controls. Play once then pause.

Actually I got the AS working fine...This is good! Opens up doors. I love flash!

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson