Raspberry Pi B H.264 versus MPEG-2 performance.

September 18th, 2012 by Richard Klingler

The above network graphic shows the network bandwidth of a Raspberry Pi B, hardware revision 2, by playing a h.264 and a MPEG-2 1080p video file using omxplayer. Both with around the same bandwidth and with software decoding of a 8-channel AC-3 audio track.

Interestingly the MPEG-2 stream with a little higher stream rate uses much less CPU than the h.264 stream. Both streams played back smoothly without stuttering.

These are the movie infos extracted from omxplayer, but played back was only the AC-3 track during testing:

file : Cars.ts reult 5022 format mpegts audio streams 3 video streams 1 chapters 0 subtitles 0
Input #0, mpegts, from 'Cars.ts':
  Duration: 01:56:36.00, start: 599.958300, bitrate: 26437 kb/s
  Program 1 
    Stream #0.0[0x1011]: Video: h264 (High), yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc
    Stream #0.1[0x1100](eng): Audio: truehd, 48000 Hz, 5.1, s32
    Stream #0.2[0x1100]: Audio: ac3, 48000 Hz, 5.1, s16, 640 kb/s
    Stream #0.3[0x1101](eng): Audio: ac3, 48000 Hz, 5.1, s16, 640 kb/s

file : Enemy.of.the.State.1998.1080p.m2ts reult 1234 format mpegts audio streams 3 video streams 1 chapters 0 subtitles 0
Input #0, mpegts, from 'Enemy.of.the.State.1998.1080p.m2ts':
  Duration: 02:12:11.01, start: 600.000000, bitrate: 27873 kb/s
  Program 1 
    Stream #0.0[0x1011]: Video: mpeg2video (Main), yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], 37000 kb/s, 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc
    Stream #0.1[0x1100](eng): Audio: pcm_bluray, 48000 Hz, 5.1, s16, 4608 kb/s
    Stream #0.2[0x1101](eng): Audio: ac3, 48000 Hz, 5.1, s16, 640 kb/s
    Stream #0.3[0x1102](eng): Audio: dca (DTS), 48000 Hz, 5.1, s16, 1536 kb/s

                        

Raspberry Pi B NFS versus CIFS network performance.

September 17th, 2012 by Richard Klingler

The above network graphic shows the throughput of a Raspberry Pi B, hardware revision 2, by copying video files over NFS and CIFS to /dev/null..

As we can see here, both NFS and CIFS perform to the maximum available bandwidth, but CPU usage is lower for NFS and the bandwidth graph for NFS is much smoother.