PI 2 mpeg2 software decoding revisited
Posted: Mon Apr 06, 2015 9:44 pm
Recently got my hands on a raspberry pi 2, and started looking (again) at mpeg2 software decoding - a revisit of an old 2012 thread: http://www.raspberrypi.org/forums/viewt ... =29&t=5641
Test equipment
PI 2: Ordered as a kit from pihut
PI 1: 2x Original Model B's from 2012
Common equipment:
Memory Card : 8GB Sandisk Ultra Class 10 MicroSD
Power Supply: kit supplied 5V 2A
OS: '2015-02-16-raspbian-wheezy.img' with 'apt-get update' and 'apt-get upgrade' ran.
SW: 'mpeg2test' using libmpeg2 0.5.1 + idct ARM optimizations from rockbox, GIT repo https://github.com/linuxstb/pidvbip.git, commit f77258dbda40329cd17f0361ff341cba00644f7a
Test vectors: mpeg2_samples_m2v.zip from original thread.
Note, I had to make a small Makefile change, adding '-I/opt/vc/include/interface/vmcs_host/linux' to INCLUDES line.
Results:
Conclusion is the PI-2 for single threaded mpeg2 decoding is twice as fast as the PI-1, so it should be possible to decode mpeg2 on the PI-2 ARM CPUs (plus headroom for audio decoding) without the 'MPEG-2 license key' that enables decoding on the GPU. - I also got same results on both original model B's...
Footnote: IANAL (I Am Not A Lawyer) - This is proof-of-concept work and take no responsibility for the state of licensing a MPEG2 software decoder in your country or jurisdiction.
Test equipment
PI 2: Ordered as a kit from pihut
PI 1: 2x Original Model B's from 2012
Common equipment:
Memory Card : 8GB Sandisk Ultra Class 10 MicroSD
Power Supply: kit supplied 5V 2A
OS: '2015-02-16-raspbian-wheezy.img' with 'apt-get update' and 'apt-get upgrade' ran.
SW: 'mpeg2test' using libmpeg2 0.5.1 + idct ARM optimizations from rockbox, GIT repo https://github.com/linuxstb/pidvbip.git, commit f77258dbda40329cd17f0361ff341cba00644f7a
Test vectors: mpeg2_samples_m2v.zip from original thread.
Note, I had to make a small Makefile change, adding '-I/opt/vc/include/interface/vmcs_host/linux' to INCLUDES line.
Results:
Code: Select all
PI.1 vs PI.2 Source FPS PI-1 FPS P1.1 % PI-2 FPS PI-2 %
bbc1_dvbt_30secs.m2v 25.00 31.59 126.36% 61.74 246.96%
bbc1s_dvbs_30secs.m2v 25.00 27.12 108.48% 52.61 210.44%
centaur_2.m2v 29.97 31.33 104.54% 63.88 213.15%
dave_dvbt_30secs.m2v 25.00 48.84 195.36% 94.58 378.32%
hst_2.m2v 29.97 27.64 92.23% 54.31 181.21%
Footnote: IANAL (I Am Not A Lawyer) - This is proof-of-concept work and take no responsibility for the state of licensing a MPEG2 software decoder in your country or jurisdiction.