instantreality forum
news: Welcome to the instantreality forums!
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
April 24, 2018, 03:57:14 am


Login with username, password and session length


Pages: [1]
  Print  
Author Topic: Video and sound files URL on internet don't play  (Read 9421 times)
rf
Newbie
*
Posts: 5


View Profile
« on: June 29, 2014, 08:44:52 pm »

I have several X3D worlds which contain video (.avi) and sound (.wav) files that I would like to put on my website.

To do this, the video and sound files naturally need to be on the web.  Locally on my mac, the files play correctly in my X3D world on Instant Player.  I have uploaded sample files to Dropbox, Google drive, Youtube, with public access, and changed the URL in my X3D world to point to the uploaded files.  They no longer play.

I receive this error message for the video file:
Avalon Cannot Movie::read() (plus the URL of the file)

I receive this error message for the sound file:
FATAL S3 Unknown sound format -1073748876

What can I do to get the files to play in the X3D worlds in Instant Player ??
Logged
tfranke
Administrator
Jr. Member
*****
Posts: 89


View Profile
« Reply #1 on: June 30, 2014, 09:08:43 am »

Hey rf,

these URLs are all https I assume? These types of URLs are not supported by Instant Reality. Please put them on a unencrypted source.

Cheers
Logged
rf
Newbie
*
Posts: 5


View Profile
« Reply #2 on: July 01, 2014, 07:05:21 pm »

Thanks for the answer.

I have no placed them on an unencrypted site but they still don't work.

Is there anything else that I should know?
For example, video sharing sites have a share link.  Can this link work, when it doesn't contain the file name, but rather a path and name generated by the file sharing site?
Logged
tfranke
Administrator
Jr. Member
*****
Posts: 89


View Profile
« Reply #3 on: July 04, 2014, 10:42:41 am »

Do you have a sample URL I can use to debug the problem?
Logged
rf
Newbie
*
Posts: 5


View Profile
« Reply #4 on: July 04, 2014, 10:22:38 pm »

http://www.mediafire.com/watch/5ylf3f7hg9hddiu/Self_Portrait_no_sound.avi

http://www.mediafire.com/listen/1y81mxjqdkde15f/Self_Portrait_sound.wav

Thanks for your help!
Logged
tfranke
Administrator
Jr. Member
*****
Posts: 89


View Profile
« Reply #5 on: July 09, 2014, 01:39:17 pm »

Hi!

These links do not lead to the WAV or AVI file, i.e. they point to a website rather than the actual file.

I've used the link from the Download button, which works fine.

Code:
<AudioClip DEF='source' loop='true' url='"http://download1225.mediafire.com/rd6dmkz57hzg/1y81mxjqdkde15f/Self+Portrait+sound.wav"'/>

Cheers
Logged
rf
Newbie
*
Posts: 5


View Profile
« Reply #6 on: July 09, 2014, 11:37:34 pm »

Thanks for looking into this!

However, when I insert your code, I still get the same error message in my model.  Also, the link is different when I select the Download button.

I get this link:
http://www.mediafire.com/download/v84egk1k107p02a/Self+Portrait+sound.wav

I don't understand how you got the URL that you did.  However, when I put it into my browser, it does go to the file, rerouted to the link above.

In any event, I inserted your link into my model, also the equivalent link for the .avi file.  Neither works.

I have attached the Instant Reality Console messages as well as the contents of my model which call the video and sound files.  Can you tell from this what is wrong?
Logged
tfranke
Administrator
Jr. Member
*****
Posts: 89


View Profile
« Reply #7 on: July 10, 2014, 10:21:23 am »

Hey rf,

this must be an issue with Mediafire. I just tried it and the link I posted was invalid, as Mediafire apparently changes download sources every now and then. I tested the sample locally by running a webserver with

Code:
python -m SimpleHTTPServer

on a directory containing a wave file. This sample works with remotely loading the wave file just fine:

Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.0//EN" "http://www.web3d.org/specifications/x3d-3.0.dtd">
<X3D xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' profile='Full' version='3.0' xsd:noNamespaceSchemaLocation='http://www.web3d.org/specifications/x3d-3.0.xsd'>
  <Scene DEF='scene'>
    <Viewpoint DEF='cam'/>
    <BackgroundBindable color='0.4 0.4 0.5'/>
    <Toggler DEF='controller' status='true'/>
    <Transform DEF='trans'>
      <Shape>
        <Box size='1 1 1'/>
      </Shape>
      <Sound DEF='sound' maxBack='15' maxFront='15' minBack='3' minFront='3'>
        <AudioClip DEF='source' loop='true' url='"http://localhost:8000/test.wav"'/>
      </Sound>
    </Transform>
    <TimeSensor DEF='ts' cycleInterval='20' loop='true'/>
    <PositionInterpolator DEF='pi' key='0 0.5 1' keyValue='-10 0 0 10 0 0 -10 0 0'/>
    <ROUTE fromNode='ts' fromField='fraction_changed' toNode='pi' toField='set_fraction'/>
    <ROUTE fromNode='source' fromField='isActive' toNode='controller' toField='set_status'/>
    <ROUTE fromNode='pi' fromField='value_changed' toNode='sound' toField='set_location'/>
  </Scene>
</X3D>

Cheers
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.15 | SMF © 2011, Simple Machines