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: 494
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 »

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.37.x (Living dangerously)
Random Selection of Cameras (Dahua and Hikvision)
rayrayray
Posts: 16
Joined: Sun Apr 25, 2010 10:59 pm

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

Post by rayrayray »

No... this particular camera is rotated physically.
You spoony bard!
SteveGilvarry
Posts: 494
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 »

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.37.x (Living dangerously)
Random Selection of Cameras (Dahua and Hikvision)
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 »

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: 494
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 »

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.37.x (Living dangerously)
Random Selection of Cameras (Dahua and Hikvision)
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 »

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 »

Bump - hoping someone has an answer about whether this will make it to any updates soon...
SteveGilvarry
Posts: 494
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 »

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.37.x (Living dangerously)
Random Selection of Cameras (Dahua and Hikvision)
rayrayray
Posts: 16
Joined: Sun Apr 25, 2010 10:59 pm

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

Post by rayrayray »

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!
Locked