LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxQuestions.org Member Success Stories
User Name
Password
LinuxQuestions.org Member Success Stories Just spent four hours configuring your favorite program? Just figured out a Linux problem that has been stumping you for months?
Post your Linux Success Stories here.

Notices

Reply
 
Search this Thread
Old 04-14-2009, 04:05 PM   #1
schneidz
Senior Member
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 4,093

Rep: Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635
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)

Last edited by schneidz; 05-12-2009 at 09:41 AM.
 
Old 04-27-2009, 11:25 AM   #2
schneidz
Senior Member
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 4,093

Original Poster
Rep: Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635
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 .
 
Old 05-06-2009, 11:49 AM   #3
amysaraantony
Member
 
Registered: Apr 2009
Posts: 42

Rep: Reputation: 16
Sounds like a "Ironman" project mate ... Rock On !!!


Debian

Last edited by amysaraantony; 05-15-2009 at 08:13 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Elisa Media Center fakie_flip Linux - Software 0 05-15-2008 08:24 PM
Media center keith2045 Linux - Software 1 11-26-2007 12:26 AM
LXer: Linux Media Center Better Then Windows Media Center? LXer Syndicated Linux News 0 08-26-2007 09:50 PM
Media Center hosler *BSD 3 02-08-2006 10:49 AM
Media Center glensterjonez Linux - Newbie 2 10-01-2005 07:14 AM


All times are GMT -5. The time now is 08:52 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration