Skip to content
This repository has been archived by the owner on Apr 13, 2019. It is now read-only.

image size doesn't match what is set in vidres setting #10

Open
yangyangcv opened this issue Jan 30, 2015 · 1 comment
Open

image size doesn't match what is set in vidres setting #10

yangyangcv opened this issue Jan 30, 2015 · 1 comment

Comments

@yangyangcv
Copy link

I use the following code to set video resolution:

from goprohero import GoProHero
camera = GoProHero(password=PASSWORD)
camera.command('vidres', '1080p')
camera.command('preview', 'on')

After that I use opencv to capture video stream and save the image. however, the image size doesn't match what is set. According to my test, when vidres is set to WVGA or 720p, the actual grabbed image size is 432_240. when vidres set to 960p, image size is 320_240. have you encountered this problem?

@joshvillbrandt
Copy link
Owner

Hey @yangyangcv,

I haven't worried too much about the image coming out of the video stream, so I don't have an answer off of the top of my head.

To help debug, can you connect to a camera and open up http://10.5.5.9:8080/live/amba.m3u8 directly? Try an app like VLC. What is the resolution there?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants