LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   LinuxQuestions.org Member Success Stories (https://www.linuxquestions.org/questions/linuxquestions-org-member-success-stories-23/)
-   -   schneidz-media-center (https://www.linuxquestions.org/questions/linuxquestions-org-member-success-stories-23/schneidz-media-center-719104/)

schneidz 04-14-2009 04:05 PM

schneidz-media-center
 
hi, i used fc-9 live-usb to make a media center laptop. the ingredients are:
zenity
xine
qjoypad


zen-vids.ksh:
Code:

#!/bin/bash

mount /media/hyper

zenity --info --text="mounting /media/hyper \nbuilding video list file \n \> /home/fedora/moo-vees.tmp \n\n please wait ..." & zenpid=$!

find /media/hyper -exec find-vids.ksh '{}' \; > ~/moo-vees.tmp

kill $zenpid

xine -f /usr/share/xine/skins/xine-ui_logo.mpv $(zenity --height=1000 --width=1000 --separator=" " --list --title vids --checklist --column="play" --column="moo-vee" --column="info" `sort moo-vees.tmp`)

find-vids.ksh:
Code:

#!/bin/bash

vid=`file $1 | awk -F : '{print $2}' | egrep "(AVI|ASF|MPEG)"`

if [ "$vid" ]
then
 echo false $1 `file $1 | awk -F : '{print $2 " " $3 " " $4 " " $5}' | tr " " _`
fi

it basically mounts my hardrive on my pc upstairs via nfs.
then it looks for any avi, asf, mpeg
and lists them in a zenity checkbox
where i can select which vids i want to see.
____________________________________

optional:
i used my saitek p2500 gamepad to control the xine controls with qjoypad (map keypresses to play, stop, volume, next-vid...).
i used gconf-editor to set it up to launch the script when i hit the red button on my gamepad.

i mite add a yes/no question box asking the user if they want to update the moo-vee.lst (it takes find about 2 minutes)

schneidz 04-27-2009 11:25 AM

also, it mite be worth noting, this is what i use to rip my dvd backups:
Code:

[fedora@localhost ~]$ cat bin/xvid-rip.ksh
################### START OF COMMANDS ###################

dvd=`lsdvd | head -n 1 | awk '{print tolower($3)}' | sed s/_/-/g`
titles=`lsdvd | grep ^Title: | cut -b 8-9 | tail -n 1`
i=1
while [ $i -le $titles ]
do

/usr/bin/mencoder "dvd://$i" -o /dev/null -dvd-device /dev/dvd -ffourcc DX50 -vf pp=lb,pp=tn:64:128:256:c,softskip,eq2,harddup -noodml -aid 128 -oac mp3lame -lameopts abr:br=96:aq=4:vol=2.2:mode=1 -ovc xvid -xvidencopts pass=1:turbo:me_quality=6:vhq=4:threads=1:max_bframes=2:bvhq=1:nopacked:quant_type=h263:noqpel:nogmc:trellis:nointerlacing:chroma_me:chroma_opt:hq_ac:profile=dxnhdtv:nolumi_mask:rc_reaction_delay_factor=0:rc_averaging_period=100:closed_gop:autoaspect -passlogfile xvid-$i.log



/usr/bin/mencoder "dvd://$i" -o "$dvd-`zero-pad-2.x $i`.avi" -dvd-device /dev/dvd -ffourcc DX50 -vf pp=lb,pp=tn:64:128:256:c,softskip,eq2,harddup -noodml -aid 128 -oac mp3lame -lameopts abr:br=96:aq=4:vol=2.2:mode=1 -ovc xvid -xvidencopts pass=2:bitrate=1500:me_quality=6:vhq=4:threads=1:max_bframes=2:bvhq=1:nopacked:quant_type=h263:noqpel:nogmc:trellis:nointerlacing:chroma_me:chroma_opt:hq_ac:profile=dxnhdtv:nolumi_mask:rc_reaction_delay_factor=0:rc_averaging_period=100:closed_gop:autoaspect -passlogfile xvid-$i.log


sleep 3
i=`expr $i + 1`
done
#################### END OF COMMANDS ####################

i basically saved and tweaked the output from xvidenc .

amysaraantony 05-06-2009 11:49 AM

Sounds like a "Ironman" project mate ... Rock On !!!
:)

Debian


All times are GMT -5. The time now is 04:29 PM.