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
In fact that is normal Wink

Quote:textsub filename="/dvdrip/test.sub" characterset="ISO8859-1"

You try to import a subtitle file as text, but .idx .sub file are not text based but raw dvd subtitles rip, with sub pictures.

If you want to import them as text you would have to convert them, that means using OCR in an automatic way, not really recommended.

Apparently spumuix don't support .idx .sub files.

You can try to remux the mpeg stream with encode2mpeg ( http://encode2mpeg.sourceforge.net ).

-vobsubsrc mysubsfilenamewithoutextension -addsub copy

You can use encode2mpeg to author your dvd too, instead of using dvdauthor.

My 2 cents.
hotlobster Wrote:In fact that is normal Wink

You try to import a subtitle file as text, but .idx .sub file are not text based but raw dvd subtitles rip, with sub pictures.

My 2 cents.

After a search I also found out that spumux do not provides to mux native
subfiles .... thanks for the tip anyway ....

If I have 3 streams ....

1.) a mpeg2 stream
2.) a ac3 audio
3.) a native subtitlestream stream

I would not like to mux the stream (audio and video) and a few secounds later
to break out to muxed stream again to add subtitles ...

How do I mux (audio / video / subtitle ) them with encode2mpeg ?

In my opinion the documentation of the encode2mepg is a pice of crap ..

EDIT : it is not a pice of crap ... I should read it better ... I saw it .... RTFM still is very important
mea culpa mea culpa ... I have a new ugly unword ... subtitles ..... LOL

Regards
Hans
So the only transcode function inside 0.5c will be native mpeg2 / H2.264

divx -removed
vcd -> removed
svcd -> removed
ogg-vorbis -> removed

Ok only a 3 votes of possible 300 votes is a little low ....

Regards
Hans
I vote for a xvid transcoding too.

For those who want light files to be played on light computers, or xbox based setup.

VCD & SVCD are already stuff from the past , Ogg/Vorbis never succeed to be a scene format sso.

Mpeg2, H264 & Xvid should be sufficient. But i think Xvid is a must have as it's still the biggest scene standard ( not for so long i know ... ).

& I'd love to have possibiliy to decss for the country who have rights to use it.
hotlobster Wrote:I vote for a xvid transcoding too.

For those who want light files to be played on light computers, or xbox based setup.

100 % ACK .... yes ... you 're right ....

For someone with a old comuputer h264 is not the right choice ...

and all this vcd and svcd is past ...

remains divx as a alternate transocde .

I still have problems with the multiplexing of the subtitles into the mpeg.
Do I guess right, that if the name of the subtitle file is exact the same as
the movie xbmc can handle it ?

The vlc player can load the subtitle files I extracted from a movie.

If xbmc can handle the subtitle files ... Why we need the subtitle files
to be muxed into the mpeg2 stream ?

Yes .. this subtitle thing transcodes my hairs to gray .... Shocked

I for one do not need subtitles ....but I do it because I was feature request
witch make sense ...


Regards ....
Hans

If I have next week only gray hairs .... my WAF has to talk to you all .-)
Or how I would say in german . "Dann habt ihr aber ein echtes Problem .-) LOL "
or forget about hail storms ...

Inside switzerland we had one yesterday ....
You're true saying that it shoud be sufficient to have the .idx .sub file in the same folder as the video file, with the same name. It works ok without problem with any avi.kv.mov,.mpeg etc.

But for your DVD mastering/requantizing stuff, you will need to have the sub mastered inside the iso ( or how your player will know when to start subs with thos animated menu, and bonus videos ? ).


So only for mpeg2 video remastered in iso dvd, you will need to remus sub in the stream. For mkv it's not a big deal, If people really ant encapsulated subs in mkv, they can do it easily with mkvmerge.

The week-end is coming, perhaps i will have some time to help you with this issue. What problem do you encounter in remuxing mpeg2 with sub files ?

Can you post me some commandline you tried and where you're locked ?

Cheers.
Mhh I answer myself about keeping external sub as i said stupid things. Confused
I thought your mpeg2 export was in dvd format, and requantized to feet in a 4.5dvd for ex.


As it's not the case, there's no interest to remux the subs in the mpeg file.

edt: About using SSH to launch commands on localhost, why not using "at" command to start scripts outside xbmc process ?
Or using "screen" if you prefer ?
It should be more proper than creating a user without using keys ( i use auth with private key for sshd ) for localhost only ?

That would give us a command like this:

/usr/bin/at now -f /usr/bin/yourcommand

or with screen:

screen -d -m -S dvd-ripper yourscript yourscriptargs

( -d will reattach a former dvd-ripper screen if there is one not closed, but when your script dies, it should close the screen session too )
hotlobster Wrote:Mhh I answer myself about keeping external sub as i said stupid things. Confused
I thought your mpeg2 export was in dvd format, and requantized to feet in a 4.5dvd for ex.


As it's not the case, there's no interest to remux the subs in the mpeg file.

edt: About using SSH to launch commands on localhost, why not using "at" command to start scripts outside xbmc process ?
Or using "screen" if you prefer ?
It should be more proper than creating a user without using keys ( i use auth with private key for sshd ) for localhost only ?

That would give us a command like this:

/usr/bin/at now -f /usr/bin/yourcommand

or with screen:

screen -d -m -S dvd-ripper yourscript yourscriptargs

( -d will reattach a former dvd-ripper screen if there is one not closed, but when your script dies, it should close the screen session too )

As long you wont only to play the mpeg2 local on the xbmc system it is enough to have
the subtitles with the same name like the movie ...
Ok I do not longer try to multiplex the subfile into the mpeg2 stream ....

If you select to transcode a subtitle the native sub / idx file has the same name like
the export name ....


Yes ... there a inside the python script a lot of ways to start the script

- Over at now ~/dvdrip.sh p1 p2 p3
- or with screen
- or wihtout any python script by hand
- or with ssh
- witch cron


But I would like to have a solution witch do work over the network ... I do this way on
my home sytem ....

I have 2 dvd-roms inside ... I can force a command like [email protected] ~/dvdrip.sh /dev/sr0 /dvdrip iso-1.iso

and 10 secounds later [email protected] ~/dvdrip.sh /dev/sr1 /dvdrip iso-2.iso

in later version of the scripts I would like to send the dd output over a pipe

rip it local and set it to a remote maschine and vice versa

and of course I allready made a ssh key for the remote ssh-server under witch the xbmc system is running.

I will try to puplish 0.5C at monday ... I still have a lot work because the school at witch
I teach begins in 2 weeks again ... My students should also have some documents
and a few nice scripts .... not only the xbmc community ....

Best regards
Hans
It looks good now.

You can expect to burn a iso file with 0.5C within the next days.

Let us make example.

1.) You rip a dvd an save it to the folder /dvdrip

2.) In the transcode screen will be a option "Transcode to iso-image"

3.) Depend on the size of the iso it will be called burning_ss.01 or
burning_ds.01

4.) Go to main-screen and select Burn iso-image ...

select the iso-file and execute

Pastebin from a very early stage of dvd2iso.sh .. but it shows in witch direction it comes ...

http://www.pastebin.ch/2674

remember it is alpha script .... I could may finsh 0.5C soon ...

I know burning is the most wanted feature for all of you ...

Regards
Hans
Hello to all ;-)

The new release 0.5c is allmost ready ...

- Gui for the settings has to be finished
- All scripts has ben rewriten and tested
- Generating ISO images is working

Before the above things be made .. I need testers with ntsc dvd's

All the burning tests I made was with pal material ...

I don't have any ntsc dvd's therefore I can not test the new script dvd2iso.sh

Today I could make a testsrcript.rar in witch the 2 scripts are placed.
If someone with ntscs dvd's could make a test would be fine ....

the script dvd2iso.sh is a new script ...

- As source a dvd-device or a allready ripped iso-file could be used
- All chapter points from the dvd remain intact
- Up to 2 audio-tracks could be added
- Up to 1 subtitle track could be added
- Inside the rip-directrory a subdirectory is created.
- I do not upscale the video or audio tracks ... (they are 1:1)
- All the steps to produce the iso-file are automated (dvdauthotr,mkisofs)

I did a few test .... and if select one audio and one subtitle the
generated iso fits perfectly on a single layer dvd.

By this tests I saw that if I add a secound audio-track the generated
iso-image was 90 mb to big for a single layer dvd.

I guess most of you can overburn a standart single dvd a little bit more
than the offical cap. with 4.7GB


In the evening I make the download of testsrcript.rar to test with
ntsc material.

the script is called like follows.


./dvd2iso.sh /dvdrip/alien.iso /dvdrip 1 0 -a 3 -s 0

p1. Device or ripp-file
p2 Directory
p3 Title select 1..x
p4 Audio select 0 ...x

p5 p6 -a 3 secound audio language

or

p7 p8 -s 0 subtitle select

Regards
Hans
linuxluemmel Wrote:I did a few test .... and if select one audio and one subtitle the
generated iso fits perfectly on a single layer dvd.

By this tests I saw that if I add a secound audio-track the generated
iso-image was 90 mb to big for a single layer dvd.

I guess most of you can overburn a standart single dvd a little bit more
than the offical cap. with 4.7GB
This depends a lot on which DVD ur ripping. I have a lot DVDs that are much smaller then 4GB (with more then 1 Audio). But then I have some that are 7GB (with 1 Audio).
Ok the script for testing is here

http://luemmels-dvd-ripper.googlecode.co...script.rar

Please do copy both files to your home directory and make them executable

You have to install

dvdauthor
mkisofs
subtitleripper

Please make a few tests that the included script encode2mpeg
also do encode ntsc dvds (Standart without an paramter would be pal ...)

Regards
hans
Luemmels. everything is looking good with this script. Not to get you off the subject entirely, but in the future do see your script at being able to rip blu-ray to its native .m2ts file? I know you can do it with AnyDVD HD and was wondering if yours would soon be able to as well. Thanks, keep up the awesomeness.
Rardgerard Wrote:Luemmels. everything is looking good with this script. Not to get you off the subject entirely, but in the future do see your script at being able to rip blu-ray to its native .m2ts file? I know you can do it with AnyDVD HD and was wondering if yours would soon be able to as well. Thanks, keep up the awesomeness.

Well ... so you tested the script with ntsc dvd ... ok expect 0.5C in the next days ...

Well , in the future plans I see that my script could rip blue-ray ... to h264 ...
Native blue ray would need to mutch space .... 10 movies and your hd would be filled ..

But rembember ,,,, my little project that I started at june 2009 ist still beta ....
it is ugly ... it may works ... and in the near future there is may a release far away from beta

Regards
hans
hello to all .-=)

After the confirmation that the script dvd2iso.sh is working fine I would like
to integrate burning this isos ...

What size should I use for a single layer dvd ..... ?


The exact size in bytes ..... 47........... bytes ?

Or should I add the paramter to overburn ... ?

The question is how many bytes could most of you overburn without any problem ?

If I do set the size of the overburn size to big .... There is may a damaged dvd-burner ....

Regards
Hans
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