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

Failed to decode mpeg4 (x264) video #27

Open
choryuidentify opened this issue Oct 27, 2019 · 4 comments
Open

Failed to decode mpeg4 (x264) video #27

choryuidentify opened this issue Oct 27, 2019 · 4 comments

Comments

@choryuidentify
Copy link

choryuidentify commented Oct 27, 2019

Hello!

I'm using Orange Pi Plus 2 with Arch Linux (mainline 5.3.7-1-ARCH).
I've install libva-v4l2-request-git package.
and run vainfo, it display correct information.

vainfo: VA-API version: 1.5 (libva 2.5.0)
vainfo: Driver version: v4l2-request
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            : VAEntrypointVLD
      VAProfileMPEG2Main              : VAEntrypointVLD
      VAProfileH264Main               : VAEntrypointVLD
      VAProfileH264High               : VAEntrypointVLD
      VAProfileH264ConstrainedBaseline: VAEntrypointVLD
      VAProfileH264MultiviewHigh      : VAEntrypointVLD
      VAProfileH264StereoHigh         : VAEntrypointVLD

so, I've trying decode MPEG4 video using VLC. Video is this file
and got this error (verbose log)

main debug: looking for hw decoder module matching "vaapi": 3 candidates
vaapi_drm error: profile(3) is not supported
main debug: no hw decoder modules matched

and I trying v4l2-request-test, mpeg2 is ok (log), but h264 is failed (log)

h264 preset is disabled some unknown reason, so I've turn on h264 using export CFLAGS=-DV4L2_PIX_FMT_H264_SLICE=1

How can I resolve this problem?
and It's have schedule for support GStreamer? I'm trying to porting OpenAuto to Sunxi boards.
Thanks!

@luusl
Copy link

luusl commented Nov 5, 2019

I have a similar setup (Orange Pi PC running on 5.3.8-1-ARCH) with the same libva-v4l2-request-git package package installed but a different error.

$ vainfo
vainfo: VA-API version: 1.5 (libva 2.5.0)
vainfo: Driver version: v4l2-request
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            : VAEntrypointVLD
      VAProfileMPEG2Main              : VAEntrypointVLD
      VAProfileH264Main               : VAEntrypointVLD
      VAProfileH264High               : VAEntrypointVLD
      VAProfileH264ConstrainedBaseline: VAEntrypointVLD
      VAProfileH264MultiviewHigh      : VAEntrypointVLD
      VAProfileH264StereoHigh         : VAEntrypointVLD

But when running v4l2-request-test I get an error "Unable to open DRM node: No such file or directory".

$ ./v4l2-request-test
Config:
 Video path: /dev/video0
 Media path: /dev/media0
 DRM path: /dev/dri/card0
 DRM driver: sun4i-drm
 Slices path: data/bbb-mpeg2
 Slices filename format: slice-%d.dump
 FPS: 0

Preset:
 Name: bbb-mpeg2
 Description: big_buck_bunny_480p_MPEG2_MP2_25fps_1800K.MPG
 License: Creative Commons Attribution 3.0
 Attribution: Blender Foundation | www.blender.org
 Width: 854
 Height: 480
 Frames count: 25
 Format: MPEG2

Media device driver: cedrus
Unable to open DRM node: No such file or directory

(Hopefully) relevant part from kernel boot.

$ journalctl -b | grep -iE 'drm | sun4i | hdmi | disp'
Nov 05 11:51:47 kernel: sun4i-drm display-engine: bound 1100000.mixer (ops sun8i_mixer_ops [sun8i_mixer])
Nov 05 11:51:47 kernel: sun4i-drm display-engine: bound 1c0c000.lcd-controller (ops sun4i_tcon_ops [sun4i_tcon])
Nov 05 11:51:47 kernel: sun8i-dw-hdmi 1ee0000.hdmi: Detected HDMI TX controller v1.32a with HDCP (sun8i_dw_hdmi_phy)
Nov 05 11:51:47 kernel: sun8i-dw-hdmi 1ee0000.hdmi: registered DesignWare HDMI I2C bus driver
Nov 05 11:51:47 kernel: sun4i-drm display-engine: bound 1ee0000.hdmi (ops sun8i_dw_hdmi_ops [sun8i_drm_hdmi])
Nov 05 11:51:48 kernel: [drm] Initialized sun4i-drm 1.0.0 20150629 for display-engine on minor 0
Nov 05 11:51:48 kernel: sun4i-drm display-engine: fb0: sun4i-drmdrmfb frame buffer device

@choryuidentify
Copy link
Author

@luusl did you add 'video' group on your user account?

@luusl
Copy link

luusl commented Nov 5, 2019

@choryuidentify Yes, I'm in the video group. Same result when running with sudo.

@luusl
Copy link

luusl commented Nov 7, 2019

OK, the problem with me was apparently that I had an X server running, after quitting it I ran into the same problem as @choryuidentify.

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