Permalink
Browse files

Keep aspect ratio for webcams.

  • Loading branch information...
1 parent 7daceab commit e966e25c82b8f1662e28205b9c29679cb0c0e921 @smimram smimram committed Oct 5, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/io/gstreamer_io.ml
View
4 src/io/gstreamer_io.ml
@@ -94,9 +94,9 @@ object (self)
| None ->
let pipeline =
Printf.sprintf
- "v4l%ssrc device=%s ! videoconvert ! videoscale ! \
+ "v4l%ssrc device=%s ! videoconvert ! videoscale add-borders=true ! \
videorate ! video/x-raw,format=RGBA,width=%d,height=%d,\
- framerate=(fraction)%d/1 ! \
+ framerate=(fraction)%d/1,pixel-aspect-ratio=1/1 ! \
appsink max-buffers=2 drop=%b name=sink"
(if v4l_version = 1 then "" else "2")
dev width height vfps drop

0 comments on commit e966e25

Please sign in to comment.