[mythtv-users] my mencoder HDTV to hr.hdtv encoding script SLIGHTLY UPDATED!

casey dunn casey.dunn at gmail.com
Fri Jan 5 19:20:35 UTC 2007


Never mind I think I found it.... perlcalc.  http://www.kenschutte.com/perlcalc/

You have no idea how hard it is to google for something named pc.

Turns out I also had to bracket all the if statements not just the -e
and -z ones.  This is on ubuntu edgy.


 diff hr.hdtv.sh HR.HDTV.sh
3c3
< #My script to create hr.hdtv encodes.
---
> # My script to create hr.hdtv encodes.
59c59
< if  -z "@ARGV" ; then
---
> if [ -z "@ARGV" ]; then
65c65
<         if  ! -e $1 ; then
---
>         if  ![ -e $1] ; then
100c100
< if  -e "$original_name" ; then
---
> if [ -e "$original_name" ]; then
102c102
<         if  "$videofps" -eq "59" ; then
---
>         if [ "$videofps" -eq "59" ] ; then
106c106
<         elif  "$videofps" -eq "29" ; then
---
>         elif [ "$videofps" -eq "29" ] ; then
110c110
<         elif  "$videofps" -eq "29" ; then
---
>         elif [ "$videofps" -eq "29" ] ; then
lan at monolith:~$ vi hr.hdtv.sh
lan at monolith:~$ diff hr.hdtv.sh HR.HDTV.sh
59c59
< if  -z "@ARGV" ; then
---
> if [ -z "@ARGV" ]; then
65c65
<         if  ! -e $1 ; then
---
>         if  ![ -e $1] ; then
100c100
< if  -e "$original_name" ; then
---
> if [ -e "$original_name" ]; then
102c102
<         if  "$videofps" -eq "59" ; then
---
>         if [ "$videofps" -eq "59" ] ; then
106c106
<         elif  "$videofps" -eq "29" ; then
---
>         elif [ "$videofps" -eq "29" ] ; then
110c110
<         elif  "$videofps" -eq "29" ; then
---
>         elif [ "$videofps" -eq "29" ] ; then

On 1/5/07, casey dunn <casey.dunn at gmail.com> wrote:
> On 1/5/07, Steven Adeff <adeffs.mythtv at gmail.com> wrote:
> > I've put a slightly updated version of the script up at
> > http://www.mythtv.org/wiki/index.php/User:Steveadeff#HR.HDTV_script
>
> I'm trying to run your script and I get a few errors.
>
> One is I had to add [ ] around the -z and -e if statements.
>
> Second is I'm getting manny pc: command not found errors.
>
> /home/lan/HR.HDTV.sh: line 91: pc: command not found
> Aspect Ratio:
> /home/lan/HR.HDTV.sh: line 23: pc: command not found
> Audio Size in MB =
> Total Size = 700
> /home/lan/HR.HDTV.sh: line 43: pc: command not found
> Videosize =  MB
> /home/lan/HR.HDTV.sh: line 97: pc: command not found
> Videosize =
>


More information about the mythtv-users mailing list