Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Separate resizer output #56

Closed
d2rk opened this issue Feb 25, 2014 · 3 comments
Closed

Separate resizer output #56

d2rk opened this issue Feb 25, 2014 · 3 comments
Assignees
Milestone

Comments

@d2rk
Copy link

@d2rk d2rk commented Feb 25, 2014

Does it any easy way, how to create two streams: original size video and resized video?

@waveform80 waveform80 added this to the 1.3 milestone Feb 26, 2014
@waveform80 waveform80 self-assigned this Feb 26, 2014
@waveform80
Copy link
Owner

@waveform80 waveform80 commented Feb 26, 2014

Currently picamera doesn't provide an API for using multiple ports of the splitter simultaneously, other than for recording a video while capturing an image from the video port. However, I don't think it'd be terribly difficult to add this. For example, I could extend the capture methods and the start_recording method with another parameter, e.g. splitter_port which defaults to something sensible (so no-one's existing code gets broken) but where you could specify a free splitter port (as an integer number) to start multiple simultaneous recordings or video-port based captures, with different resizer specifications. I'll set this as an enhancement goal for the next release (whenever that might be! I'm afraid it'll probably be a couple of weeks before I get a chance to look at implementing this)

@d2rk
Copy link
Author

@d2rk d2rk commented Feb 26, 2014

Sounds good to me. Ideally I would like to have two pipes where the first one streams original video and another one streams resized video.

I was able to do something like in raspivid by applying resizer with h.264 encoder on video capture port.

@d2rk
Copy link
Author

@d2rk d2rk commented Mar 5, 2014

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants