Skip to content

Camera Rotation and Flipping / passing args to ffmpeg #41

Description

@SealedJoy

Currently using v4l2-tools (specifically v4l2compress and v4l2rtspserver)
Its working for the most part but i am struggling to find a way to rotate the video feed (ideally in the v4l2compress program?) sadly my driver contains no such controls, so i cannot seem to set image rotation through the driver which leaves me with only software as option. The ffmpeg args: ' -vf "transpose=dir=1" ' seems to work okay, but i would like to do this through v4l2compress is this possible? otherwise afaik i will need to make 2 dummy devices and perform reencoding again.

Full command below:

ffmpeg -f v4l2 -input_format mjpeg -framerate 30 -video_size 1280x1080 -i /dev/video0 -pix_fmt yuyv422 -vf "transpose=dir=1" -f v4l2 /dev/video5

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions