Difference between revisions of "HD Playback Reports"

From MythTV Official Wiki
Jump to: navigation, search
Line 29: Line 29:
echo "|-" >> hdreport.txt
echo "|-" >> hdreport.txt
echo "| $CPUNAME || $CPUMHZ MHz || $MEMTOTAL || $KERNEL || $FORMAT || $RESOLUTION || $BITRATE || $COMMENTS" >> hdreport.txt
echo "| $CPUNAME || $CPUMHZ MHz || $MEMTOTAL || $KERNEL || $FORMAT || $RESOLUTION || $BITRATE || $COMMENTS" >> hdreport.txt
echo "|-" >> hdreport.txt

Revision as of 20:53, 16 January 2008

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`
COMMENTS="No Comments."
WIDTH=`mplayer -ao null -vo null -frames 0 -identify /movies/Transformers.mkv 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=//'`
BITRATE="A Bitrate"

echo "|-" >> hdreport.txt
echo "| $CPUNAME || $CPUMHZ MHz || $MEMTOTAL || $KERNEL || $FORMAT || $RESOLUTION || $BITRATE || $COMMENTS" >> hdreport.txt
echo "|-" >> hdreport.txt

User Reported Data

Processor Type Processor Speed Memory Total Kernel Video Codec Resolution Bitrate Comments
Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz 1600.000 MHz 4050584kB 2.6.22-14-generic ffvc1 1920 x 1080 22580 kb/s Plays back perfectly with the following line:

mplayer -cache 16384 -fs -zoom -quiet -vo xv -monitoraspect 16:9 -lavdopts threads=4:fast:skiploopfilter=all -sws 0 %s