A bug? 1.29.0 -- stretched image on rotated streams

Forum for questions and support relating to the 1.29.x releases only.
SteveGilvarry
Posts: 419
Joined: Sun Jun 29, 2014 1:12 pm
Location: Melbourne, AU

Re: A bug? 1.29.0 -- stretched image on rotated streams

Post by SteveGilvarry » Sat Feb 13, 2016 6:56 am

If so only rotated in one place so camera or zoneminder, if in camera then width and height would be like you are doing, but orientation should be normal. If in zm then these settings are correct and camera set to 0.
Production Zoneminder 1.32.3
Random Selection of Cameras (Dahua and Hikvision)
More Dev VM's than I care to count.

rayrayray
Posts: 14
Joined: Sun Apr 25, 2010 10:59 pm

Re: A bug? 1.29.0 -- stretched image on rotated streams

Post by rayrayray » Sat Feb 13, 2016 7:06 am

No... this particular camera is rotated physically.
You spoony bard!

SteveGilvarry
Posts: 419
Joined: Sun Jun 29, 2014 1:12 pm
Location: Melbourne, AU

Re: A bug? 1.29.0 -- stretched image on rotated streams

Post by SteveGilvarry » Sat Feb 13, 2016 7:49 am

Ok so testing on my camera which is normally 1920x1080 in normal orientation, as soon as I applied Rotate left or right in Orientation on the source tab it stretched the image. To fix it I have to swap the image to 1080x1920 which then works. I thought it was just a rotation on display but it must be at a lower level as the timestamp is being applied to rotated images.
Does seem odd that you have to rotate and change the image dimensions around to make it work.
Production Zoneminder 1.32.3
Random Selection of Cameras (Dahua and Hikvision)
More Dev VM's than I care to count.

McFuzz
Posts: 181
Joined: Tue Aug 28, 2012 7:03 am

Re: A bug? 1.29.0 -- stretched image on rotated streams

Post by McFuzz » Sat Feb 13, 2016 8:02 am

That's the problem we are all facing I think - if I have no rotation enabled, the width is 640 and height is 480; if I rotate left - they flip, width is 480 and height is 640 - that's when the stretching occurs. In the last trusty rev of 1.29.0 as well as in 1.28.109 that was never a problem.

SteveGilvarry
Posts: 419
Joined: Sun Jun 29, 2014 1:12 pm
Location: Melbourne, AU

Re: A bug? 1.29.0 -- stretched image on rotated streams

Post by SteveGilvarry » Sat Feb 13, 2016 8:37 am

OK so this is a bug in 1.29.0, actually the width() and Height() functions have been added to fix it. I was on 1.29 and to make orientation work I had to both rotate left and swap width and height.
1.29.0
https://github.com/ZoneMinder/ZoneMinde ... onitor.php
Master
https://github.com/ZoneMinder/ZoneMinde ... onitor.php
Updating to Master and I can change orientation and streaming works fine without any stretching.
Production Zoneminder 1.32.3
Random Selection of Cameras (Dahua and Hikvision)
More Dev VM's than I care to count.

McFuzz
Posts: 181
Joined: Tue Aug 28, 2012 7:03 am

Re: A bug? 1.29.0 -- stretched image on rotated streams

Post by McFuzz » Fri Feb 19, 2016 5:40 pm

Will these updates make it to the PPA soon?

McFuzz
Posts: 181
Joined: Tue Aug 28, 2012 7:03 am

Re: A bug? 1.29.0 -- stretched image on rotated streams

Post by McFuzz » Thu Mar 03, 2016 8:31 pm

Bump - hoping someone has an answer about whether this will make it to any updates soon...

SteveGilvarry
Posts: 419
Joined: Sun Jun 29, 2014 1:12 pm
Location: Melbourne, AU

Re: A bug? 1.29.0 -- stretched image on rotated streams

Post by SteveGilvarry » Fri Mar 04, 2016 5:49 am

Depends which PPA you are on, if release one then it will be in 1.30, which is planned soon, given the guys want to release monthly. If on Zoneminder-master PPA it may already be there, not sure when it was last built.
Production Zoneminder 1.32.3
Random Selection of Cameras (Dahua and Hikvision)
More Dev VM's than I care to count.

rayrayray
Posts: 14
Joined: Sun Apr 25, 2010 10:59 pm

Re: A bug? 1.29.0 -- stretched image on rotated streams

Post by rayrayray » Thu Aug 25, 2016 1:21 pm

Sorry to bump an old thread, but finally got my 1.30.0 server working, and this issue is totally fixed with no hacks necessary. Thanks!
You spoony bard!

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest