Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cvlc cropping error #76

Open
amerikiwi93 opened this issue Nov 18, 2022 · 1 comment
Open

cvlc cropping error #76

amerikiwi93 opened this issue Nov 18, 2022 · 1 comment

Comments

@amerikiwi93
Copy link

I am attempting to run cvlc from the shell using the following command:
cvlc rtsp://user:password@192.168.1.1/media.amp --video-filter croppadd --croppadd-cropleft=215

Whenever I run this command, I get the error:

VLC media player 3.0.17.4 Vetinari (revision 3.0.13-8-g41878ff4f2)
[007c4860] vlcpulse audio output error: PulseAudio server connection failure: Connection refused
[00747098] dbus interface error: Failed to connect to the D-Bus session daemon: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
[00747098] main interface error: no suitable interface module
[00744b40] main libvlc error: interface "dbus,none" initialization failed
[007ad6c0] main interface error: no suitable interface module
[00744b40] main libvlc error: interface "globalhotkeys,none" initialization failed
[007ad6c0] dummy interface: using the dummy interface module...
Created new TCP socket 4 for connection
[b3a0ca38] mmal_codec decoder: VCSM init succeeded: CMA
[b3a0ca38] main decoder error: buffer deadlock prevented
[b3a0ca38] mmal_codec decoder: VCSM init succeeded: CMA
error: XDG_RUNTIME_DIR not set in the environment.
error: XDG_RUNTIME_DIR not set in the environment.
[af101440] gles2 generic error: parent window not available
[af100ca0] mmal_xsplitter vout display error: Failed to open Xsplitter:opengles2 module
[af101440] xcb generic error: window not available
[af100ca0] mmal_xsplitter vout display error: Failed to open Xsplitter:xcb_x11 module
[af128dc8] croppadd filter error: Unknown input chroma MMAL
[af12a8f8] chain filter error: Too high level of recursion (3)
[af129c18] main filter error: Failed to create video converter
[af12a8f8] chain filter error: Too high level of recursion (3)
[af129c18] main filter error: Failed to create video converter
[af12a8f8] chain filter error: Too high level of recursion (3)
[af129c18] main filter error: Failed to create video converter
[af12a8f8] chain filter error: Too high level of recursion (3)
[af129c18] main filter error: Failed to create video converter
[af12a8f8] croppadd filter error: Unknown input chroma MMAL
[af172cc8] chain filter error: Too high level of recursion (3)
[af128dc8] main filter error: Failed to create video converter
[af172cc8] chain filter error: Too high level of recursion (3)
[af128dc8] main filter error: Failed to create video converter
[af172cc8] chain filter error: Too high level of recursion (3)
[af128dc8] main filter error: Failed to create video converter
[af172cc8] chain filter error: Too high level of recursion (3)
[af128dc8] main filter error: Failed to create video converter
mmal: mmal_vc_port_info_set: failed to set port info (3:0): EINVAL
mmal: mmal_vc_port_set_format: mmal_vc_port_info_set failed 0xaf19cd80 (EINVAL)
[af1b86e8] mmal_codec filter error: Failed to commit format for output port vc.ril.hvs:out:0(OPQV) (status=3 EINVAL)
[b3a0ca38] main decoder error: buffer deadlock prevented
mmal: mmal_vc_port_enable: failed to enable port vc.ril.hvs:out:0(OPQV): EINVAL
mmal: mmal_port_enable: failed to enable port vc.ril.hvs:out:0(OPQV)(0xaf19cd80) (EINVAL)
[af1b86e8] mmal_codec filter error: Failed to enable output port vc.ril.hvs:out:0(OPQV) (status=3 EINVAL)
mmal: mmal_vc_port_enable: failed to enable port vc.ril.hvs:out:0(OPQV): EINVAL
mmal: mmal_port_enable: failed to enable port vc.ril.hvs:out:0(OPQV)(0xaf19cd80) (EINVAL)
[af1b86e8] mmal_codec filter error: Failed to enable output port vc.ril.hvs:out:0(OPQV) (status=3 EINVAL)

I have attempted to upgrade to the lates firmware using sudo rpi-update and this didn't fix it.

I have also attempted to use the legacy graphics driver by commenting out #dtoverlay=vc4-fkms-v3d int the boot.txt and didn't fix it.

Any help would be appreciated

@jc-kynesim
Copy link

The croping option you want is just --crop <string> (ignore the filter) which is massively underdocumented in the help, but I think the version you want is --crop <width>x<height>+<x>+<y> where width and height are the cropped width/height and x/y are offsets into the frame.
As it stands this doesn't work correctly with DRM based fullscreen, though it should with MMAL (legacy). I'll fix DRM for the next version..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants