Reference images are 4 pixels taller than video  

Share your tips and tricks here or get help with any Autopano Video!
No bug reports (of any kind) in this forum!
no avatar
urke
Member
 
Topic author
Posts: 83
Likes: 0 post
Liked in: 2 posts
Joined: Tue Nov 06, 2007 1:49 pm
Info

Reference images are 4 pixels taller than video

by urke » Thu Mar 26, 2015 12:59 pm

Autopano Video 2.0 RC1/Mac:
I am trying to stitch with a 2x template from izugar. When stitching from the pano template, I get the error message "Video size does not match the reference panorama". I think the error is caused by the APV generated jpg reference images being 4 pixels taller than the video itself (see screen shot). Looks like a bug?
Attachments
Screen Shot 2015-03-26 at 12.43.14.png
Screen Shot 2015-03-26 at 12.26.20.png

User avatar
martin.arnoux
Kolor Team
 
Posts: 544
Likes: 1 post
Liked in: 27 posts
Joined: Wed Feb 26, 2014 2:57 pm
Info

Re: Reference images are 4 pixels taller than video

by martin.arnoux » Mon Mar 30, 2015 1:48 pm

Hi,

Have a look at this thread to understand what is going on: viewtopic.php?f=48&t=25544&p=158380

But I just tested the template on this mode and it's working fine. Can you send us the template you are using? Did you do it yourself?

Cheers,

Martin

no avatar
edbarton
New member
 
Posts: 1
Likes: 0 post
Liked in: 0 post
Joined: Mon Jun 22, 2015 1:51 pm
Location: London
Info

Re: Reference images are 4 pixels taller than video

by edbarton » Mon Jun 22, 2015 1:55 pm

Getting the same error and still a bit confused as to what the solution is.

Using GoPro Hero4 Black's, 2.7k 4:3 mode and the izugar 2 lens set-up. Getting the same error when attempting to use the template provided on the Kolor website that the video size does not match the reference panorama.

As far as I can tell the provided solution is to re-render the video out so it matches the pixel dimensions but this isn't great in terms of workflow and maintenance of quality (already difficult when using a 2 lens solution). Is there a fix that needs to happen here?

User avatar
fixer
Member
 
Posts: 31
Likes: 3 posts
Liked in: 3 posts
Joined: Fri Jun 19, 2015 1:47 am
Location: Venice Beach
Info

Re: Reference images are 4 pixels taller than video

by fixer » Wed Jun 24, 2015 12:18 am

2704x2028 is a correct 4:3 aspect ratio but not compatible with the 16x16 macroblock encoding in an mp4 file.

2704x2032 is a 16x16 multiple for mp4 macroblock encoding but is not a 4:3 aspect ratio.

GoPro adds metadata "Height: 2028" and "Original Height:2032" which causes various transcoders, viewers and image tools to all react differently. Some export as 2704x2032, some as 2704x2028. I have not yet determined what is going on inside the mp4 data itself, but I have someone looking into the data structure now.
fix.er \'fik-s*r\ n : one that fixes : as : one that intervenes to enable a
person to circumvent the law or obtain a political favor : one that adjusts
matters or disputes by negotiation

User avatar
fixer
Member
 
Posts: 31
Likes: 3 posts
Liked in: 3 posts
Joined: Fri Jun 19, 2015 1:47 am
Location: Venice Beach
Info

Re: Reference images are 4 pixels taller than video

by fixer » Thu Jun 25, 2015 7:33 pm

GoPro 2.7k 4:3 actually records 2704x2032. this is the right resolution for best mp4 encoding (16x16 macroblocks)

GoPro then sets the metadata to force the player to display at 4:3 ratio (2704x2028). This means the player is interpolating squished pixels, adding softness while throwing out data

For best results in a post pipeline, force your software tools to read these GoPro clips as 2704x2032. Since the AVP jpgs are 2704x2032, it seems this IS what AVP is doing (ignoring the Display Aspect Ratio metadata)
fix.er \'fik-s*r\ n : one that fixes : as : one that intervenes to enable a
person to circumvent the law or obtain a political favor : one that adjusts
matters or disputes by negotiation

no avatar
psatter
Member
 
Posts: 34
Likes: 22 posts
Liked in: 1 post
Joined: Mon Jun 08, 2015 1:07 am
Info

Re: Reference images are 4 pixels taller than video

by psatter » Thu Jul 02, 2015 7:59 pm

Were you able to fix the 2 gopro hero4 with the izugar setup? Do you still help?


Who is online

Users browsing this forum: No registered users and 1 guest