Select to view content in your preferred language

Video Layer ... Video specifications?

764
2
03-11-2010 03:28 AM
GünterDörffel
Frequent Contributor
Hi,

I have been trying to create a video layer and so far have not been succesful. I tried different mpeg 1 and 2 codecs, I tried the ORTHO or camera method ... but best I get: I can zoom to the correct layer location but never see anything - no "moving pictures", no still first frame.

I wonder: Is it possible at all with beta2?
Any special codecs to use

In the help one place says "mpeg only" - anotherone says "mpeg or avi"?

Thanks for helping me ... ideal would be a very small video plus avs file that works so I can check ...

Thanks and regards
Guenter
Tags (1)
0 Kudos
2 Replies
NathanShephard
Esri Contributor
Hi Guenter,

Video layers support both AVI and MPG. We'll fix the documentation to avoid the ambiguity - thanks for pointing it out. I also noticed that the documentation looks out of date for the video file source information - it was modified to support multiple source files. See the example at the bottom of this post for the correct pathname syntax.

The first sanity test for playing a video layer in ArcGlobe is that it must play correctly inside Windows Media Player. If it plays OK here, then the codec question is usually not important. A workaround-of-last-resort for a difficult video file is to convert it into a folder of frames (eg: a folder of JPG files).

In Beta 2 (and, to a lesser extent, PreRelease), video layers are very sensitive to even very small issues inside the AGV/XML, so it's possible there might be a small problem with your AGV syntax. Apart from the video pathname change, two common content mistakes to look for are: an invalid pathname to the video; or a mismatched resolution of the video between the file and the AGV.

Something else you can try is to export a video / animation from ArcMap. As long as the camera does not move, then you can request an AGV file to be auto-created on export. This will be an 'ortho' (or top-down) video.

FUTURE NOTE:
--------------
Now, having said all that, you need to be aware that the AGV specification is undergoing some significant changes for ArcGIS 10 Final (after PreRelease).  This should make it an easier format to work with, and improve its ability to survive slight errors.  It also means that the AGV file you work on for Beta 2will need to be reworked into the new formating to work in Final.

Thanks, Nathan.
3D Team, ESRI.
-------
PS: Here's a simple template AGV file that might help. You will need to update the <VideoData> value, plus the <Height>, <Width> and <FrameDuration> tag values.

<?xml version="1.0" encoding="UTF-8"?>
<Layer>
  <Name>AVI as Camera</Name>
  <VideoOverlay>
    <FrameSource Type="File">
      <VideoDataFiles>
        <VideoData VideoFile="C:\test\SecurityCamera1.avi"></VideoData>
      </VideoDataFiles>
    </FrameSource>
    <Video ProjectionType="Camera">
      <Height>540</Height>
      <Width>960</Width>
      <FrameDuration>200</FrameDuration>
      <Camera>
        <FOVAngle>55.0</FOVAngle>
        <Position>
          <Longitude>-117.194374</Longitude>
          <Latitude>34.056886</Latitude>
          <Elevation>405.0</Elevation>
        </Position>
        <Heading>330.0</Heading>
        <Tilt>40.0</Tilt>
        <Range>10.0</Range>
        <Roll>0.0</Roll>
      </Camera>
    </Video>
  </VideoOverlay>
</Layer>
0 Kudos
GünterDörffel
Frequent Contributor
Hi Nathan,

thanks for all those hints. Here what I tested

1) The videos all just play fine in MediaPlayer

2) The XML-syntax you posted is indeed different from what is in the beta2-documentation. "Fixing" my files according to what you posted will not help, though. Trying to use the files then makes ArcMap crash

3) Unfortunately neither the export to single frames nor the Export Options dialog that allows to get a agv file created are available in the software we have

4) AVI created from the Raster to video tool will not work in MediaPlayer ..


... so I guess I stop fiddling around and wait for pre-release and thereafter

regards
Guenter
0 Kudos