Difference between revisions of "HD Playback Reports"

From MythTV Official Wiki
Jump to: navigation, search
(User Reported Data)
Line 24: Line 24:
 
FORMAT=`ffmpeg -i "$1" 2>&1 | grep Stream | head -n 1 | awk '{ print $4 }' | sed -e 's/,//'`
 
FORMAT=`ffmpeg -i "$1" 2>&1 | grep Stream | head -n 1 | awk '{ print $4 }' | sed -e 's/,//'`
 
BITRATE=`ffmpeg -i "$1" 2>&1 | grep bitrate: | awk '{ print $6 }'`
 
BITRATE=`ffmpeg -i "$1" 2>&1 | grep bitrate: | awk '{ print $6 }'`
 
+
echo -n "Player used to watch video? (Mplayer, Xine, Internal, Other): "
 +
read PLAYER
  
 
echo "|-" >> hdreport.txt
 
echo "|-" >> hdreport.txt
echo "| $CPUNAME || $CPUMHZ MHz || $MEMTOTAL || $KERNEL || $FORMAT || $RESOLUTION || $BITRATE kb/s || $COMMENTS || " >> hdreport.txt
+
echo "| $CPUNAME || $CPUMHZ MHz || $MEMTOTAL || $KERNEL || $FORMAT || $RESOLUTION || $BITRATE kb/s || $COMMENTS || $PLAYER" >> hdreport.txt
 
echo "|-" >> hdreport.txt
 
echo "|-" >> hdreport.txt
 +
 
</pre></code>
 
</pre></code>
  

Revision as of 03:46, 17 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 known to play back perfectly on a given system (eg, ./hdplayback.sh moviefile.mkv). It will produce an output file called hdreport.txt. hdreport.txt is in wiki format. Edit this page, find the most suitable position in the table to place the data (by CPU spec), 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 ffmpeg 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="No Comments."
RESOLUTION=`ffmpeg -i "$1" 2>&1 | grep Stream | head -n 1 | awk '{ print $6 }' | sed -e 's/,//'`
FORMAT=`ffmpeg -i "$1" 2>&1 | grep Stream | head -n 1 | awk '{ print $4 }' | sed -e 's/,//'`
BITRATE=`ffmpeg -i "$1" 2>&1 | grep bitrate: | awk '{ print $6 }'`
echo -n "Player used to watch video? (Mplayer, Xine, Internal, Other): "
read PLAYER

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

User Reported Data

Processor Type Processor Speed Memory Total Kernel Video Codec Resolution Bitrate Comments Media Player
Intel Core2 Quad CPU Q6600 @ 2.40GHz 2400.000 MHz 4050584kB 2.6.22-14-generic h264 1920x1080 32469 kb/s Blu-ray rip of "Casino Royale. mplayer
Intel Core2 Duo CPU E4500 @ 2.20GHz 2200.000 MHz 3096672kB 2.6.22-14-generic vc1 1920x1080 20546 kb/s BBC Planet Earth. mplayer
AMD Athlon(tm) 64 X2 Dual Core Processor 5200+ 1000.000 MHz 1002048kB 2.6.22-14-generic h264 1280x688 kb/s Skipping forward / backward is difficult because of CPU load. Internal
Intel(R) Xeon(TM) CPU 2.40GHz 2411.357 MHz 1028816kB 2.6.22-14-generic 0x0000 Hz kb/s Episode of Journeyman mplayer