ProfSparkles
Posts: 5
Joined: Mon Sep 29, 2014 7:36 pm

Raspberry Pi 3 Video decoding

Mon Feb 29, 2016 5:53 pm

So ArsTechnica is claiming [email protected] for h264 and [email protected] for h265. This contradicts other information I read which stated the same specs for video decoding. Could we get that cleared up?
http://arstechnica.com/information-tech ... l-just-35/

Though do the maybe refer to video decoding with NEON on the CPU instead of the VPU?
Which brings me to my other question regarding:
"Real-world applications will see a performance increase of between 2.5x (for single-threaded applications) and >20x (for NEON-enabled video codecs)."

Is there any software available that decodes video with the help of NEON? Any benchmarks where this statement comes from?
VIdeo decoding is an important topic for me, it would be interesting to know if CPU decoding with NEON is faster now than the VPU is.

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5268
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: Raspberry Pi 3 Video decoding

Mon Feb 29, 2016 6:05 pm

1080p60 H.264 has been available on Pi2 for some time with a minor GPU overclock.
The Pi3 includes this overclock by default.

Recent Milhouse builds of OpenELEC have included H.265 optimisations (a mixture of NEON on ARM plus GPU acceleration) for some time.
Because it is a software implementation, the performance does vary with the stream, but I'd say you can play a lot of 1080p H.265 content on a Pi 3. This optimisation work is still ongoing.

ProfSparkles
Posts: 5
Joined: Mon Sep 29, 2014 7:36 pm

Re: Raspberry Pi 3 Video decoding

Mon Feb 29, 2016 6:07 pm

Awesome! Will there be some standalone software available for this? Kind of like omxplayer.

Ickam
Posts: 12
Joined: Sat May 13, 2017 10:16 am

Re: Raspberry Pi 3 Video decoding

Sat May 13, 2017 10:21 am

dom wrote:1080p60 H.264 has been available on Pi2 for some time with a minor GPU overclock.
The Pi3 includes this overclock by default.

Recent Milhouse builds of OpenELEC have included H.265 optimisations (a mixture of NEON on ARM plus GPU acceleration) for some time.
Because it is a software implementation, the performance does vary with the stream, but I'd say you can play a lot of 1080p H.265 content on a Pi 3. This optimisation work is still ongoing.
Are these openelec optimalisations for h.265 possible on a pi 3 running raspbian + kodi? if so, I'd appreciate a link to a tutorial.
Cheers!

Rascas
Posts: 526
Joined: Tue Mar 11, 2014 6:18 pm
Location: Porto, Portugal
Contact: Website

Re: Raspberry Pi 3 Video decoding

Sun May 14, 2017 1:07 am

Ickam wrote:
dom wrote:1080p60 H.264 has been available on Pi2 for some time with a minor GPU overclock.
The Pi3 includes this overclock by default.

Recent Milhouse builds of OpenELEC have included H.265 optimisations (a mixture of NEON on ARM plus GPU acceleration) for some time.
Because it is a software implementation, the performance does vary with the stream, but I'd say you can play a lot of 1080p H.265 content on a Pi 3. This optimisation work is still ongoing.
Are these openelec optimalisations for h.265 possible on a pi 3 running raspbian + kodi? if so, I'd appreciate a link to a tutorial.
Cheers!
These optimizations are included in the latest Kodi version available on the raspbian repos. No need to do anything.

Ickam
Posts: 12
Joined: Sat May 13, 2017 10:16 am

Re: Raspberry Pi 3 Video decoding

Sun May 14, 2017 9:35 pm

Rascas wrote:
Ickam wrote:
dom wrote:1080p60 H.264 has been available on Pi2 for some time with a minor GPU overclock.
The Pi3 includes this overclock by default.

Recent Milhouse builds of OpenELEC have included H.265 optimisations (a mixture of NEON on ARM plus GPU acceleration) for some time.
Because it is a software implementation, the performance does vary with the stream, but I'd say you can play a lot of 1080p H.265 content on a Pi 3. This optimisation work is still ongoing.
Are these openelec optimalisations for h.265 possible on a pi 3 running raspbian + kodi? if so, I'd appreciate a link to a tutorial.
Cheers!
These optimizations are included in the latest Kodi version available on the raspbian repos. No need to do anything.
That's curious. I did a sudo apt-get install kodi soon after getting raspbian up. it installed kodi 15. Tried playing the file of following paramters

Code: Select all

Format version              : Version 4 / Version 2
File size                   : 257 MiB
Duration                    : 42 min 38 s
Overall bit rate            : 844 kb/s
Encoded date                : UTC 2016-09-23 22:10:40
Writing application         : mkvmerge v9.2.0 ('Photograph') 64bit
Writing library             : libebml v1.3.3 + libmatroska v1.4.4

Video
ID                          : 1
Format                      : HEVC
Format/Info                 : High Efficiency Video Coding
Format profile              : Main [email protected]@Main
Codec ID                    : V_MPEGH/ISO/HEVC
Duration                    : 42 min 38 s
Bit rate                    : 751 kb/s
Width                       : 1 280 pixels
Height                      : 720 pixels
Display aspect ratio        : 16:9
Frame rate mode             : Constant
Frame rate                  : 23.976 (24000/1001) FPS
Color space                 : YUV
Chroma subsampling          : 4:2:0
Bit depth                   : 10 bits
Bits/(Pixel*Frame)          : 0.034
Stream size                 : 229 MiB (89%)
Writing library             : x265 2.0+11-4be91b287e3c:[Windows][GCC 5.3.1][64 bit] 10bit
Encoding settings           : wpp / ctu=64 / min-cu-size=8 / max-tu-size=32 / tu-intra-depth=1 / tu-inter-depth=1 / me=1 / subme=2 / merange=57 / no-rect / no-amp / max-merge=2 / temporal-mvp / no-early-skip / rskip / rdpenalty=0 / no-tskip / no-tskip-fast / strong-intra-smoothing / no-lossless / no-cu-lossless / no-constrained-intra / no-fast-intra / open-gop / no-temporal-layers / interlace=0 / keyint=250 / min-keyint=23 / scenecut=40 / rc-lookahead=20 / lookahead-slices=4 / bframes=4 / bframe-bias=0 / b-adapt=2 / ref=3 / limit-refs=3 / no-limit-modes / weightp / no-weightb / aq-mode=1 / qg-size=32 / aq-strength=1.00 / cbqpoffs=0 / crqpoffs=0 / rd=3 / psy-rd=2.00 / rdoq-level=0 / psy-rdoq=0.00 / no-rd-refine / signhide / deblock=0:0 / sao / no-sao-non-deblock / b-pyramid / cutree / no-intra-refresh / rc=2 / pass / bitrate=750 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ipratio=1.40 / pbratio=1.30
Default                     : Yes
Forced                      : No
and it lagged. so i removed kodi and tried to build it from the source. I got stuck before "config extra" command so I updated repos and did a sudo apt get install again, ending up with a kodi version 17.1, build git:20170401-7804a92-dirty and it only plays the sound of that mkv. any idea how to fix it?

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5268
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: Raspberry Pi 3 Video decoding

Mon May 15, 2017 11:11 am

Ickam wrote:I updated repos and did a sudo apt get install again, ending up with a kodi version 17.1, build git:20170401-7804a92-dirty and it only plays the sound of that mkv. any idea how to fix it?
Did you update the rest of distribution?

Code: Select all

sudo apt-get update && sudo apt-get dist-upgrade
would be recommended to make sure you have new enough kernel/firmware and system libs.

Next make sure have enabled sufficient gpu_mem (256M recommended for Pi2/Pi3, 128 for Pi0/Pi1).
If you still have a problem post a debug enabled log from kodi.

But your file:

Code: Select all

Format profile              : Main [email protected]@Main
Bit depth                   : 10 bits
is 10-bit which is not currently supported at all. Only 8-bit HEVC is supported.

Ickam
Posts: 12
Joined: Sat May 13, 2017 10:16 am

Re: Raspberry Pi 3 Video decoding

Mon May 15, 2017 11:26 am

Thanks a lot! That's very helpful. It's probably the 10-bit encoding that's the issue!

cjan
Posts: 721
Joined: Sun May 06, 2012 12:00 am

Re: Raspberry Pi 3 Video decoding

Wed May 17, 2017 1:39 am

is there a way to decode Xvid (.avi) such as w32codecs?

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5268
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: Raspberry Pi 3 Video decoding

Wed May 17, 2017 11:25 am

cjan wrote:is there a way to decode Xvid (.avi) such as w32codecs?
In general xvid is just MPEG-4 and will play fine.
If you have a problem file then post mediainfo - there may be some configuration that isn't supported.

cjan
Posts: 721
Joined: Sun May 06, 2012 12:00 am

Re: Raspberry Pi 3 Video decoding

Wed May 17, 2017 12:53 pm

dom wrote:
cjan wrote:is there a way to decode Xvid (.avi) such as w32codecs?
In general xvid is just MPEG-4 and will play fine.
If you have a problem file then post mediainfo - there may be some configuration that isn't supported.
had libxvidcodec4, vlc can not play, omxplayer can and mediainfo below

Code: Select all

General
Complete name                            : sample.mp4
Format                                   : MPEG-4
Format profile                           : Base Media / Version 2
Codec ID                                 : mp42
File size                                : 28.6 MiB
Duration                                 : 2mn 44s
Overall bit rate mode                    : Variable
Overall bit rate                         : 1 457 Kbps
Encoded date                             : UTC 2016-09-09 12:03:43
Tagged date                              : UTC 2016-09-09 12:03:43
gsst                                     : 0
gstd                                     : 164861
and vcgencmd codec_enabled XVID
XVID=disabled

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5268
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: Raspberry Pi 3 Video decoding

Wed May 17, 2017 3:20 pm

mp42 is a hacked version of mpeg-4 that pre-dates the standard (see here).
We can't hardware decode these files.
This format is quite old, so typically on SD resolution so can be software decoded using something like Kodi.

cjan
Posts: 721
Joined: Sun May 06, 2012 12:00 am

Re: Raspberry Pi 3 Video decoding

Wed May 17, 2017 10:18 pm

dom wrote:mp42 is a hacked version of mpeg-4 that pre-dates the standard (see here).
We can't hardware decode these files.
This format is quite old, so typically on SD resolution so can be software decoded using something like Kodi.
thanks, try sofeware decode.
vlc sdl_out got Force Close, kodi ask for XVID codecs.

Rascas
Posts: 526
Joined: Tue Mar 11, 2014 6:18 pm
Location: Porto, Portugal
Contact: Website

Re: Raspberry Pi 3 Video decoding

Thu May 18, 2017 10:51 am

cjan wrote:
dom wrote:mp42 is a hacked version of mpeg-4 that pre-dates the standard (see here).
We can't hardware decode these files.
This format is quite old, so typically on SD resolution so can be software decoded using something like Kodi.
thanks, try sofeware decode.
vlc sdl_out got Force Close, kodi ask for XVID codecs.
That file should work in Kodi, at least with MMAL enabled and OMXPlayer disabled in video settings, which are the default ones.

Return to “Advanced users”