Jump to content

4K video decoding and output on Orange Pi Lite


hooby3d

Recommended Posts

I don't know which board it was but IIRC 4k video rolls somehow with stock Armbian desktop image and it's video player. Currently, I am out of office and can't conduct some serious testings, perhaps somebody else can.

Link to comment
Share on other sites

Thanks - the latest legacy desktop image here https://www.armbian.com/orange-pi-one/ does not appear to handle 4K video out of the box. 

The desktop runs in 4K, and I can play a 720p video, but 1080p starts lagging, and 4K fails to open.

 

mpv output when playing 1080p video:

bryan@orangepione:~$ mpv --fs Desktop/Star\ Wars\ -\ The\ Last\ Jedi\ -\ Teaser.mp4
Playing: Desktop/Star Wars - The Last Jedi - Teaser.mp4
[ffmpeg/demuxer] mov,mp4,m4a,3gp,3g2,mj2: stream 0, timescale not set
 (+) Video --vid=1 (*) (h264)
     Video --vid=2 [P] (mjpeg)
 (+) Audio --aid=1 --alang=eng (*) (aac)
File tags:
 Artist: Lucasfilm
 Genre: Trailer
 Title: Star Wars: The Last Jedi
[VDPAU SUNXI] VE version 0x1680 opened
[VDPAU SUNXI] OSD enabled, using pixman
AO: [pulse] 44100Hz stereo 2ch float
Using hardware decoding (vdpau).
VO: [vdpau] 1920x816 vdpau
[vo/vdpau] Error when calling vdp_output_surface_create: The system does not have enough resources to complete the requested operation at this time.
[vo/vdpau] Error when calling vdp_output_surface_create: The system does not have enough resources to complete the requested operation at this time.
[vo/vdpau] Error when calling vdp_output_surface_create: The system does not have enough resources to complete the requested operation at this time.
[VDPAU SUNXI] Generate CSC matrix from following color standard: 0
[VDPAU SUNXI] >procamp->bright: 0.000, procamp->contrast: 1.000, procamp->saturation: 1.000, procamp->hue: 0.000
[VDPAU SUNXI] Setting mixer value from following color standard: 0
[VDPAU SUNXI] >mix->bright: 0.000, mix->contrast: 1.000, mix->saturation: 1.000, mix->hue: -0.000
[VDPAU SUNXI] Setting mixer value from following color standard: 0
[VDPAU SUNXI] >mix->bright: 0.068, mix->contrast: 1.000, mix->saturation: 0.479, mix->hue: -0.068
[VDPAU SUNXI] Presentation time not supported
AV: 00:00:37 / 00:02:10 (28%) A-V:  0.000

mpv output when attempting to play 4K:


bryan@orangepione:~$ mpv --fs Desktop/bbb_sunflower_2160p_30fps_normal.mp4
Playing: Desktop/bbb_sunflower_2160p_30fps_normal.mp4
 (+) Video --vid=1 (*) (h264)
 (+) Audio --aid=1 --alang=und (*) (mp3)
     Audio --aid=2 --alang=und (*) (ac3)
File tags:
 Artist: Blender Foundation 2008, Janus Bager Kristensen 2013
 Comment: Creative Commons Attribution 3.0 - http://bbb3d.renderfarming.net
 Composer: Sacha Goedegebure
 Genre: Animation
 Title: Big Buck Bunny, Sunflower version
[VDPAU SUNXI] VE version 0x1680 opened
[VDPAU SUNXI] OSD enabled, using pixman
AO: [pulse] 48000Hz stereo 2ch s16
Using hardware decoding (vdpau).
VO: [vdpau] 3840x2160 vdpau
[vo/vdpau] Error when calling vdp_output_surface_create: The system does not have enough resources to complete the requested operation at this time.
[vo/vdpau] Error when calling vdp_output_surface_create: The system does not have enough resources to complete the requested operation at this time.
[vo/vdpau] Error when calling vdp_output_surface_create: The system does not have enough resources to complete the requested operation at this time.
[VDPAU SUNXI] Generate CSC matrix from following color standard: 0
[VDPAU SUNXI] >procamp->bright: 0.000, procamp->contrast: 1.000, procamp->saturation: 1.000, procamp->hue: 0.000
[VDPAU SUNXI] Setting mixer value from following color standard: 0
[VDPAU SUNXI] >mix->bright: 0.000, mix->contrast: 1.000, mix->saturation: 1.000, mix->hue: -0.000
[VDPAU SUNXI] Setting mixer value from following color standard: 0
[VDPAU SUNXI] >mix->bright: 0.068, mix->contrast: 1.000, mix->saturation: 0.479, mix->hue: -0.068
[VDPAU SUNXI] Presentation time not supported
[vo/vdpau] Error when allocating surface: The system does not have enough resources to complete the requested operation at this time.
[ffmpeg/video] h264: hardware accelerator failed to decode picture
Error while decoding frame!
AV: 00:00:00 / 00:10:34 (0%) A-V:  0.000
[vo/vdpau] Error when allocating surface: The system does not have enough resources to complete the requested operation at this time.
[ffmpeg/video] h264: hardware accelerator failed to decode picture
Error while decoding frame!
AV: 00:00:00 / 00:10:34 (0%) A-V:  0.000
[vo/vdpau] Error when allocating surface: The system does not have enough resources to complete the requested operation at this time.
[ffmpeg/video] h264: hardware accelerator failed to decode picture
Error while decoding frame!
Falling back to software decoding.
AV: 00:00:00 / 00:10:34 (0%) A-V:  0.000
[vo/vdpau/x11] Disabling screensaver failed (-1). Make sure the xdg-screensaver script is installed.
AV: 00:00:00 / 00:10:34 (0%) A-V:  0.000

 

Link to comment
Share on other sites

1 hour ago, hooby3d said:

The desktop runs in 4K, and I can play a 720p video, but 1080p starts lagging, and 4K fails to open.

 

Probably the problem is a lack of memory or 4K video mode might need different memory reservation. Check 1080p mode where 1080p video must play smoothly.

Link to comment
Share on other sites

Please note that H3 datasheet says that only H.265 codec supports decoding 4K videos. But since there is no public documentation of that piece of HW, other codecs might also support decoding 4K video, but I wouldn't count on it.

Link to comment
Share on other sites

Thanks, no luck either with H.265:

mpv --fs Desktop/SES.Astra.UHD.Test.2.2160p.UHDTV.HEVC.x265-LiebeIst.mkv 
Playing: Desktop/SES.Astra.UHD.Test.2.2160p.UHDTV.HEVC.x265-LiebeIst.mkv
 (+) Video --vid=1 (*) (hevc)
[VDPAU SUNXI] VE version 0x1680 opened
[VDPAU SUNXI] OSD enabled, using pixman
[vo/vdpau/x11] Disabling screensaver failed (-1). Make sure the xdg-screensaver script is installed.
Using software decoding.
Using conversion filter.
VO: [vdpau] 3840x2160 yuv420p
Killed

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines