Sie sind nicht angemeldet.

1

Montag, 2. Februar 2015, 19:58

stretch/unstretch video vertically ? (FIXED)

Is there a way to stretch/unstretch a video vertically?

So if the video size is 1280x640, we retain the 1280 width but squeeze the hight down to 340?

I tried setting height="50%" on the plugin, image, view, phere nodes but that didn't work. Putting the view into an 'area' didnt work either. The XML being used for horizontal only 360 video pano is

Quellcode

1
2
3
4
5
6
7
8
9
10
<krpano version="1.18" bgcolor="0x000000" debugmode="false" logkey="true" showerrors="true">
    <!-- the videoplayer interface skin -->    <include url="../skin/videointerface.xml" />
    <!-- include the videoplayer plugin and load the video (use a low res video for iOS) -->    <plugin name="video"    url.flash="%SWFPATH%/plugins/videoplayer.swf"    url.html5="%SWFPATH%/plugins/videoplayer.js"
    pausedonstart="true"    loop="false"    enabled="false"    zorder="0"    align="center" ox="0" oy="0"
    width.no-panovideosupport="100%"    height.no-panovideosupport="prop"
    onloaded="videointerface_setup_interface(get(name));"    onvideoready="videointerface_videoready();"    onvideocomplete="videointerface_videocomplete();"    />    <!-- see skin xml -->
    <!-- the panoramic video image -->    <image devices="panovideosupport">        <sphere url="plugin:video" />    </image>

    <!-- set the default view - a light fisheye projection -->    <view    hlookat="0"    vlookat="0"    limitview="lookat"    vlookatmin="0"    vlookatmax="0"    fovtype="DFOV"    fov="130"    fovmin="80"    fovmax="80"    fisheye="0.35" />
</krpano>



Thanks!!!!

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »nickster« (27. März 2015, 19:13)


2

Dienstag, 3. Februar 2015, 10:08

Hi,

try changing the hfov/vfov settings of the <image> element:
http://krpano.com/docu/xml/#image.advanced

Best regards,
Klaus

3

Freitag, 27. März 2015, 03:10

Thanks. Unfortunately, those settings limit the video being displayed (cuts off and shows black) but does not scale the video eg. width 100% but height reduced by 50%.

Do you have any other suggestions for Xscale and Yscale i.e. to scale/resize a video while not keeping the aspect ratio fixed?

4

Freitag, 27. März 2015, 10:19

Is your krpano version up-to-date?
Can you show a link to your example?

5

Freitag, 27. März 2015, 19:13

I upgraded and it now works. I'll be doing some more testing with live video.

Thanks for the quick response!!!

Ähnliche Themen