Skip to content

Commit

Permalink
Keep aspect ratio for webcams.
Browse files Browse the repository at this point in the history
  • Loading branch information
smimram committed Oct 5, 2012
1 parent 7daceab commit e966e25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/io/gstreamer_io.ml
Expand Up @@ -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
Expand Down

0 comments on commit e966e25

Please sign in to comment.