Difference between revisions of "HD Playback Reports"

From MythTV Official Wiki
Jump to: navigation, search
 
Line 9: Line 9:
 
This script requires mplayer to run properly.
 
This script requires mplayer to run properly.
  
<code>
+
<code><pre>
 
#!/bin/sh
 
#!/bin/sh
 
#
 
#
# Script to generate wiki formatted HD Playback report.  Only
+
# Script to generate wiki formatted HD Playback report.   
# run this on files that play back smoothly!
+
# Only run this on files that play back smoothly!
 
#
 
#
  
Line 34: Line 34:
 
echo "$RESOLUTION"
 
echo "$RESOLUTION"
 
echo "$FORMAT"
 
echo "$FORMAT"
</code>
+
</pre></code>

Revision as of 20:36, 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.

#!/bin/sh
#
# 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=""
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=//'`
RESOLUTION="$WIDTHx$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=

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