Skip to content

Can't make v4l2grab_h264 to work properly #27

Description

@brainstormi

Hi...
I'm trying to get v4l2grab_h264 to capture desktop and stream it with v4l2rtspstreamserver (running in Pi3B/osmc/kodi) without luck, maybe I'm not using it correctly. I created a loopback device with:

sudo modprobe v4l2loopback video_nr=10
v4l2grab_h264 -vv /dev/video10 

and stream it with:

v4l2rtspserver -vv /dev/video10

I'm trying to reproduce it with VLC (rtsp://ip:8554/unicast) without luck. Most of the times remains there forver without displaying anything and from time to time it displays a static image of the desktop with the bottom of the screem totally distorted.

I tried to do the same using raspidisp driver from uv4l project and v4l2compress_omx with a lot more luck, making easy to connect 90% of the times and when it does it plays smoothly the desktop with some artifacts, but I'll open a different issue about it.

I played with v4l2grab_h264 write API (-w) and v4l2rtspserver (-r and -w) in all combinations possible without success.

Below the logs from v4l2grab_h264 and v4l2rtsp from the initial example, frame sizes are already suspicious:

v4l2grab_h264 output
https://pastebin.com/5LSD4Mi8

v4l2rtspserver -vv /dev/video10
https://pastebin.com/CUP10iVE

Regards,

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