Kodi Community Forum

Full Version: [RELEASE] Luemmel's DVD-Ripper (Script) for Linux, Mac, and Windows
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
grouper Wrote:@Auxbox: I mistyped it during my tries before the script, the script was no problem! Thank you a lot!

I could make a enhancement ... to the script ....

download the red-pill and extract-the tar file ....

What think others about this ?

Code:
# Download the red-pill and extract

cd "~/.xbmc/scripts/My Scripts/"
wget http://luemmels-dvd-ripper.googlecode.com/files/dvd-red-linux-0.6B.tar
tar xvf dvd-red-linux-0.6B.tar


# Check to see if dvdripper-log directory exists ...
    
if [ ! -e ~/dvdripper ] ; then
   mkdir ~/dvdripper
fi

Regards
Hans
Definately do it, anything to make the process easier for people

Hans i can chmod 777 but when i execute it doesnt work

xbmc@XBMCLive:~$ sudo ./livecd
sudo: unable to execute ./livecd: No such file or directory

or when i'm root
xbmc@XBMCLive:~$ ./livecd
-su: ./livecd: /bin/bash^M: bad interpreter: No such file or directory

Keep up the good work though, updates are happening pretty quickly


Also to change the subject slightly

Is there a reason why there is no progress bar while transcoding and only while ripping to iso.
AuXBoX Wrote:Definately do it, anything to make the process easier for people

Hans i can chmod 777 but when i execute it doesnt work

xbmc@XBMCLive:~$ sudo ./livecd
sudo: unable to execute ./livecd: No such file or directory

or when i'm root
xbmc@XBMCLive:~$ ./livecd
-su: ./livecd: /bin/bash^M: bad interpreter: No such file or directory

Keep up the good work though, updates are happening pretty quickly


Also to change the subject slightly

Is there a reason why there is no progress bar while transcoding and only while ripping to iso.

sudo ./livecd.sh
would be better ;_)

The reason why the transcoding process does'nt have a progress bar is simple.

If you rip to a iso file .... The scipt can exactly calculate the size that the final file should have.
With transcoding this is not possible .... (May someone other have a trick.)


Regards
Hans
sorry mate heres the result:

xbmc@XBMCLive:~$ wget http://luemmels-dvd-ripper.googlecode.co.../livecd.sh
--2010-01-30 01:29:40-- http://luemmels-dvd-ripper.googlecode.co.../livecd.sh
Resolving luemmels-dvd-ripper.googlecode.com... 72.14.203.82
Connecting to luemmels-dvd-ripper.googlecode.com|72.14.203.82|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4385 (4.3K) [application/x-shellscript]
Saving to: `livecd.sh'

100%[======================================>] 4,385 22.5K/s in 0.2s

2010-01-30 01:29:41 (22.5 KB/s) - `livecd.sh' saved [4385/4385]

xbmc@XBMCLive:~$ chmod 777 livecd.sh
xbmc@XBMCLive:~$ sudo ./livecd.sh
[sudo] password for xbmc:
sudo: unable to execute ./livecd.sh: No such file or directory

xbmc@XBMCLive:~$ ls
livecd.sh

thats why i wouldn't mind someone else test this to see if is just me

Quote:If you rip to a iso file .... The scipt can exactly calculate the size that the final file should have.
With transcoding this is not possible .... (May someone other have a trick.)

I'll see if the programmer im paying can help cause i build media centers with xbmclive on them and i want to be able to have a menu button saying backup movie and it automatically transcodes to h264 to a certain setting but with a progress bar to make it as simple as possible for the end user
Ok I did copy it under windows and place it into a putty window.
sadly that the line-break was wrong ....


try it again ....

Code:
user@user-laptop:~$ wget http://luemmels-dvd-ripper.googlecode.com/files/livecd.sh
--2010-01-29 16:03:50--  http://luemmels-dvd-ripper.googlecode.com/files/livecd.sh
Resolving luemmels-dvd-ripper.googlecode.com... 74.125.77.82
Connecting to luemmels-dvd-ripper.googlecode.com|74.125.77.82|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4225 (4.1K) [application/x-shellscript]
Saving to: `livecd.sh'

100%[======================================>] 4,225       --.-K/s   in 0.04s  

2010-01-29 16:03:55 (99.1 KB/s) - `livecd.sh' saved [4225/4225]

user@user-laptop:~$ chmod 777 livecd.sh
user@user-laptop:~$ ./livecd.sh
you must be root to run this script !
sudo ./livecd.sh
user@user-laptop:~$

The above commands are from my own linux-box at home.

The installation of the red-pill will be integratet into version 3
Regards
Hans
working now, i'll just wait till the scripts finished.
Is there a way of automating all questions
Do you want to continue [Y/n]? y
for the installations

EDIT:
Ok you have to be root
sudo su

it's installed but can't transcode will have a look tomorrow getting late.

There's no logs in dvdripper but i think its something to do with mp4.sh
maybe if it downloads the dvd-red-linux-0.6B.tar file or whatever version it is, and puts i the right folder (my scripts) aswell.

I'll test more tomorrow.
Ok got it all working i changed just a couple of minor things

sudo chmod 777 livecd.sh
sudo ./livecd.sh

Code:
#!/bin/bash
###########################################################
# scriptname : livecd.sh                                  #
###########################################################
#                                                         #
# RELEASE 0.6B luemmels-dvd-ripper                        #
#                                                         #
# This script is part of luemmels-dvd-ripper script for   #
# xbmc and is licenced under the gpl-licence              #
#                                                         #
# http://code.google.com/p/luemmels-dvd-ripper            #
#                                                         #
###########################################################
#                                                         #
# author     : hans weber and AuXBoX from xbmc-forum      #
#                                                         #
# parameters : none                                       #
#                                                         #                                                        
# description :                                           #
# - prepares a xbmc live-cd to run the red-pill           #
# - installs all needed software                          #
# - configures the ssh-system                             #
# - create all directorys                                 #
###########################################################

# Define the counting commands we expect inside the script

EXPECTED_ARGS=0

# Error-codes

E_BADARGS=1
E_TOOLNOTF=2
E_NOROOT=3
E_SSHKEY=4

if [ $# -ne $EXPECTED_ARGS ] ; then
  echo "Usage: livecd.sh"
  echo "                                      "  
  echo "                                      "
  echo "livecd.sh was called with arguments"  
  echo "livecd.sh needs no parameter but must be running as root"                        
  exit $E_BADARGS
fi


# Define the commands we will be using inside the script ...

REQUIRED_TOOLS=`cat << EOF
echo
apt-get
EOF`

# Check if all commands are found on your system ...

for REQUIRED_TOOL in ${REQUIRED_TOOLS}
do
   which ${REQUIRED_TOOL} >/dev/null 2>&1    
   if [ $? -eq 1 ]; then
        echo "ERROR! \"${REQUIRED_TOOL}\" is missing. ${0} requires it to operate."  
        echo "       Please install \"${REQUIRED_TOOL}\"."  
        
   fi        
done


# Who is running this script ?  

if [ "$UID" -ne 0 ] ; then
   echo "you must be root to run this script !"
   echo "sudo ./livecd.sh"
   exit $E_NOROOT
fi

# Check to see if dvdripper-log directory exists ...
    
if [ ! -e /home/xbmc/dvdripper ] ; then
   mkdir /home/xbmc/dvdripper
   chmod 777 /home/xbmc/dvdripper
fi


# Check to see if the ripp-directorys exists

if [ ! -e /home/xbmc/dvdrip ] ; then
   mkdir /home/xbmc/dvdrip
   chmod -R 777 /home/xbmc/dvdrip
fi

if [ ! -e /dvdrip ] ; then
   mkdir /dvdrip
   chmod -R 777 /dvdrip
   ln -s /home/xbmc/dvdrip /dvdrip    
fi

# Update-Source list

if [ ! -e /etc/apt/sources.list.d/medibuntu.list ] ; then
   sudo wget http://www.medibuntu.org/sources.list.d/$(lsb_release -cs).list \
   --output-document=/etc/apt/sources.list.d/medibuntu.list && sudo apt-get -q update && \
   sudo apt-get --yes -q --allow-unauthenticated install medibuntu-keyring && sudo apt-get -q update
fi


apt-get install mencoder

# dd
    
apt-get install netcat
apt-get install original-awk
apt-get install dvdauthor
apt-get install mkisofs

# growisofs

apt-get install dvd+rw-tools
apt-get install lsdvd

# volname

apt-get install submux-dvd
apt-get install subtitleripper
apt-get install transcode
apt-get install mjpegtools
apt-get install libdvdcss2
apt-get install openssh-server
apt-get install openssh-client

# Transcode to DIVX and H264

apt-get install liba52-0.7.4
apt-get install libfaac0
apt-get install libmp3lame0
apt-get install libmp4v2-0
apt-get install libogg0
apt-get install libsamplerate0
apt-get install libx264-65
apt-get install libxvidcore4


echo "Important-Note : "
echo "When asked for password leave it empty"
ssh-keygen -t rsa

RETVAL=$?
if [ $RETVAL -eq 0 ] ; then
   echo "Important-Note : "
   echo "When asked for password enter password for xbmc"
   ssh-copy-id -i ~/.ssh/id_rsa.pub xbmc@localhost
   exit 0
fi

# Ok we have error with the creation of the key
echo "creation of the ssh-key failed ..."
exit $E_SSHKEY
Having some problems with the installation (or running Wink)

I installed all needed packages but "growisofs" apt can't find that package, but i thought i'll give it a try without it.

When I'm trying to run the script it starts and then i get an error and will find a ssh.log file:
Code:
sh-askpass[4304]: Trying to grab keyboard ...
ssh-askpass[4304]: Could not grab keyboard (someone else already has it)
Permission denied, please try again.
ssh-askpass[4305]: Trying to grab keyboard ...
ssh-askpass[4305]: Could not grab keyboard (someone else already has it)
Permission denied, please try again.
ssh-askpass[4306]: Trying to grab keyboard ...
ssh-askpass[4306]: Could not grab keyboard (someone else already has it)
Permission denied (publickey,password).
What am I doing wrong?

Thanks in advance.

PS: It is working from console, but not from xbmc.
Hi all,

I just tested your wonderful script on my ubuntu server, it has worked great but has only ripped ac3 stereo to the H264 file (mp4). Is it possible to included the 5.1 audio?

Thanks in advance.

John
bionicmunky Wrote:Hi all,

I just tested your wonderful script on my ubuntu server, it has worked great but has only ripped ac3 stereo to the H264 file (mp4). Is it possible to included the 5.1 audio?

Thanks in advance.

John

You can but you have to edit the mp4.sh file in the H264 folder.

If your not sure how to edit it go to http://trac.handbrake.fr/wiki/CLIGuide for more settings you can use

just make sure when editing in windows use something like Notepad++, In linux doesnt matter then sudo chmod 777 mp4.sh before using the script
It's ok, got it sorted. Just changed to mkv all done.
If you would send the file mp4.sh to me I would like to take your replacement
for the next release of my script.

Send it as pm or email to [email protected]

Regards
Hans

PS : I release version 3 of the xbmc-livecd script soon .-)
the_alien Wrote:Having some problems with the installation (or running Wink)

I installed all needed packages but "growisofs" apt can't find that package, but i thought i'll give it a try without it.

When I'm trying to run the script it starts and then i get an error and will find a ssh.log file:
Code:
sh-askpass[4304]: Trying to grab keyboard ...
ssh-askpass[4304]: Could not grab keyboard (someone else already has it)
Permission denied, please try again.
ssh-askpass[4305]: Trying to grab keyboard ...
ssh-askpass[4305]: Could not grab keyboard (someone else already has it)
Permission denied, please try again.
ssh-askpass[4306]: Trying to grab keyboard ...
ssh-askpass[4306]: Could not grab keyboard (someone else already has it)
Permission denied (publickey,password).
What am I doing wrong?

Thanks in advance.

PS: It is working from console, but not from xbmc.
Bump.

Please, anyone?
the_alien Wrote:Bump.

Please, anyone?

Could you please provide a little bit more information ?

Is your system 32 or 64 ? (Ubuntu ... I guess)
Could you turn on verbose log of the sshd ?
Kernel-Release (self compiled or distro-kernel)
What version of xbmc are you using ... ?
(downloaded or self compiled or svn-release)
The error message about ssh-askpass was never sean by me ...

With the above info we could try to solve the problem...

Have you looked on this

https://bugs.launchpad.net/ubuntu/+sourc...bug/332198

Regards
Hans alias Jon
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44