Skip to content

Raspberry Pi 4 | How to force video-sink to kmmal? #12

Description

@cosismo

I successfully play a videousing the library on x86 hardware, but failed on a Raspberry Pi 4.
RaspbianOS lite Buster. (based on Debian 10 server, no gui).

I can compile and run the example with no errors, but there are not any video output
I read #7 and tested gst-launch:
gst-launch-1.0 playbin uri=file:///home/pi/media/printgwmm.mp4
and it failed.
But using kmmal:
gst-launch-1.0 playbin uri=file:///home/pi/media/printgwmm.mp4 video-sink="kmssink"
it works.

The logs for ./test-server -f pl.txt --gst-debug-level=4 are:
http://sprunge.us/jYOssh

I assume the library uses autovideosink and the problem is that is selecting other sink like ximagesink or glimagesink that is not working with my setup.

So my specific question is, how can I change the sink in the code? Is hardcoded? I can't find any option on the command line arguments.
Or what are your recommendation?

Thanks in advance.

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