HD Playback Reports

From MythTV Official Wiki
Revision as of 20:36, 16 January 2008 by Iamlindoro (talk | contribs)

Jump to: navigation, search

Playback of HD content - User Reports

This page is for playback reports regarding High Definition Content. This page will serve as a resource for users in selecting hardware for their MythTV systems.

How to produce information for this page

Paste the following into a file (eg, hdplayback.sh), chmod +x the file, and run it on a file you know plays back perfectly on your system (eg, ./hdplayback.sh moviefile.mkv". It will produce an output file called hdreport.txt. hdreport.txt is in wiki format. All you need to do is edit this page, find the spot your processor fits in the table, and paste the output there. Edit the "Comments" section to share any special command line needed to get the program to play smoothly.

This script requires mplayer to run properly.

# Script to generate wiki formatted HD Playback report.  
# Only run this on files that play back smoothly!

CPUNAME=`cat /proc/cpuinfo | grep "model name" | sed -e 's/model name\t: //' | head -n 1 | sed -e 's/\t/ /'`
CPUMHZ=`cat /proc/cpuinfo | grep "cpu MHz" | sed -e 's/cpu MHz//' | sed 's/ *//g' | sed 's/\t*://' | head -n 1`
MEMTOTAL=`cat /proc/meminfo |grep MemTotal | sed 's/MemTotal//' | sed 's/ *//g' | sed 's/\t*://' | head -n 1`
KERNEL=`uname -r`
WIDTH=`mplayer -ao null -vo null -frames 0 -identify $1 2>/dev/null | grep "ID_VIDEO_WIDTH" | sed -e 's/ID_VIDEO_WIDTH=//'`
HEIGHT=`mplayer -ao null -vo null -frames 0 -identify $1 2>/dev/null | grep "ID_VIDEO_HEIGHT" | sed -e 's/ID_VIDEO_HEIGHT=//'`
FORMAT=`mplayer -ao null -vo null -frames 0 -identify $1 2>/dev/null | grep "ID_VIDEO_CODEC" | sed -e 's/ID_VIDEO_CODEC=//'`

echo "$CPUNAME"
echo "$CPUMHZ MHz"
echo "$MEMTOTAL"
echo "$KERNEL"
echo "$COMMENTS"
echo "$FORMAT"