User avatar
dividuum
Posts: 156
Joined: Sun Jun 16, 2013 1:18 pm
Location: Germany
Contact: Website

Playing UHD H264

Mon Jul 01, 2019 9:00 am

How exactly does that work? Can we the existing OpenMAX API? I tried omxplayer with jellyfish-120-mbps-4k-uhd-h264.mkv from http://jell.yfish.us/ without success:

Code: Select all

[email protected]:~# ffprobe jellyfish-120-mbps-4k-uhd-h264.mkv 
ffprobe version 4.1.3-1+rpt1 Copyright (c) 2007-2019 the FFmpeg developers
[...snip...]
Input #0, matroska,webm, from 'jellyfish-120-mbps-4k-uhd-h264.mkv':
  [...snip...]
  Duration: 00:00:30.03, start: 0.000000, bitrate: 120490 kb/s
    Stream #0:0(eng): Video: h264 (High), yuv420p(tv, bt709, progressive), 3840x2160 [SAR 1:1 DAR 16:9], 29.97 fps, 29.97 tbr, 1k tbn, 59.94 tbc (default)
[email protected]:~# omxplayer jellyfish-120-mbps-4k-uhd-h264.mkv 
have a nice day ;)
[email protected]:~# 
info-beamer hosted - A user and programmer friendly digital signage platform for the Pi: https://info-beamer.com/hosted

gkreidl
Posts: 6041
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: Playing UHD H264

Mon Jul 01, 2019 9:15 am

Edited: The H264 decoder only supports 1920x1080.
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

User avatar
dividuum
Posts: 156
Joined: Sun Jun 16, 2013 1:18 pm
Location: Germany
Contact: Website

Re: Playing UHD H264

Mon Jul 01, 2019 9:33 am

gkreidl wrote:
Mon Jul 01, 2019 9:15 am
Edited: The H264 decoder only supports 1920x1080.
Oh. Didn't know that. Thanks. So HVEC is required for that? How does one decode that? I naively modified my existing code to send HVEC video frames to the `video_decode` component and never got a OMX_EventPortSettingsChanged event. Is OMX still supported or is mmal or some other method the recommended way to decode video now?
info-beamer hosted - A user and programmer friendly digital signage platform for the Pi: https://info-beamer.com/hosted

6by9
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 7124
Joined: Wed Dec 04, 2013 11:27 am
Location: ZZ9 Plural Z Alpha, aka just outside Cambridge.

Re: Playing UHD H264

Mon Jul 01, 2019 11:26 am

https://www.raspberrypi.org/forums/view ... 3&t=243414
https://github.com/raspberrypi/firmware/issues/1168

FFmpeg is probably the safest bet for now, using V4L2 for decode.
HEVC will be using most likely be using the V4L2 stateless API (current ones are using the stateful API), but FFmpeg should use whichever one is required.
Software Engineer at Raspberry Pi Trading. Views expressed are still personal views.
I'm not interested in doing contracts for bespoke functionality - please don't ask.

Return to “OpenMAX”