Jump to content

DVD - encode, copy, rip


Lexicon
 Share

Recommended Posts

Copying, ripping, decoding DVD How?

Requires programs usefulness

 

DVD this is format for PAL 720x576 MPEG2 9570 kbit/s bitrate 25 f/s and audio AC3 5,1 448kbit/s, MP2 224 kbit/s for one chanel

 

NTSC 1/4 352x240 (1/4 NTSC)

PAL 1/4: 352x288

NTSC video: 720x480 (standard NTSC)

PAL video: 720x576 (standard PAL)

NTSC TV: 640x480

PAL TV: 768x576

 

Requires...

Mplayer, Mencoder, Gmencoder, Mjpegtools, DVDBackup, DVDauthor, Acidrip, Lame, Toolame, Streamdvd, Streamanalyze, K3b, Ogle, libdvdread, livdvdcss, Codecs, Acidrip, Avidemux2, liblzo1

Mplayer and Mencoder must be --version mplayer-1.0-0.pre7.4.1.102plf compiled with libmp3lame or custom compiled.

 

To begin....

ftp://ftp.pbone.net/mirror/carroll.cac.ps...0-1mdk.i586.rpm

 

http://gmencoder.sourceforge.net/

 

1. For newbie easy program this a Gmencoder

 

Insert dvd in Your device dvd and run Gmencoder, press Analize. If runing movie press ESC and check all Tittles.

Set Video codec e.g mpeg4 - ISO standard MPEG-4 (DivX 5, XVID compatible)

Set Audio codec lame (liblame needed), select language (en - ac3 (stereo))

If You can all tittles ripping type name of output file and press Encode. You can select Size, number of cd and more other options. This program is very easy and stability.

 

I see and can problem with gtk version!!!

 

2.If You can make copy dvd to dvd I use only console,

 

lex@lexicon ~]$ dd if=/dev/hdc of=/home/user/dvd.img

[lex@lexicon ~]$ mkdir /kino

[lex@lexicon ~]$ mount -o loop /home/user/dvd.img /kino

[lex@lexicon ~]$ xine /kino

[lex@lexicon ~]$ k3b --dvdimage /home/user/dvd.img

 

 

3. Other way

Install dvdbackup

Name: dvdbackup

Wersion: 0.1.1-1mdk

Size: 51 KB

 

[lex@lexicon ~]$ mkdir ~/videos/backup

[lex@lexicon ~]$ dvdbackup -i /dev/dvd -M -o ~/videos/backup

 

If OK, all content dvd is in ~/videos/backup

 

Note: if your device dvd is /dev/dvd, maybe /dev/hdc, and now ~/videos/backup.

Checking

[lex@lexicon ~]$ mplayer -alang en -dvd-device ~/videos/backup/<name of movie> dvd://1

 

Yes, and we have copy dvd on harddisk. Now we can use Gmencoder use this device on hard disk.

 

4. Other program for dvd ripping this Streamdvd, streamanalyse

 

Numeration video, audio and subtitles

 

video stream start from 0xe0

audio stream start from 0x80

subtitles stream start from 0x20

 

[lex@lexicon ~]$ streamanalyze -i /dev/dvd -t 1 ##use device from hard disk

e.g.

Title 1 - 6 Chapters (249 Blocks / 509952 Bytes) - Runtime 1 sec.

 

Track List:

X 0xe0 MPEG Video 475177 Bytes

X 0x80 AC3 Audio 24576 Bytes

 

Size of selected streams: 509952 Bytes

Max. target size : 4700000000 Bytes

Factor : not needed

 

 

For identity language audio use

 

[lex@lexicon ~]$ tcprobe -i /dev/dvd -T 1

 

find...

(dvd_reader.c) mpeg2 pal 4:3 U0 720x576 video

(dvd_reader.c) ac3 en drc 48kHz 2Ch

 

[tcprobe] summary for /dev/hdc, (*) = not default, 0 = not detected

import frame size: -g 720x576 [720x576]

aspect ratio: 4:3 (*)

frame rate: -f 25.000 [25.000] frc=3

audio track: -a 0 [0] -e 48000,16,2 [48000,16,2] -n 0x2000 [0x2000]

[tcprobe] V: 50 frames, 2 sec @ 25.000 fps

[tcprobe] A: 0.03 MB @ 128 kbps

[tcprobe] CD: 650 MB | V: 650.0 MB @ 2726166.5 kbps

[tcprobe] CD: 700 MB | V: 700.0 MB @ 2935881.7 kbps

[tcprobe] CD: 1300 MB | V: 1300.0 MB @ 5452464.1 kbps

[tcprobe] CD: 1400 MB | V: 1400.0 MB @ 5871894.5 kbps

 

You can use Mplayer

 

[lex@lexicon ~]$ mplayer -v -frames 1 dvd://1

 

DVD successfully opened.

[open] audio stream: 0 audio format: ac3 (stereo) language: en aid: 128

[open] number of audio channels on disk: 1.

[open] number of subtitles on disk: 0

DVD start cell: 0 pack: 0xBF8-0xCF1

DVD start=3064 end=3313

CACHE_PRE_INIT: 0 [0] 0 pre:0 eof:0

 

Streamdvd:

You can copying all stream video to disk, but this program is speedy but unstability.

This command create copy video to one file vob.

 

[lex@lexicon ~]$ streamdvd -i /dev/dvd -t 1 -f 1.037710 -s 0xe0, 0x81, 0x21 > $HOME/movie.vob

 

If You have any problem type for identify streams

 

[lex@lexicon ~]$ tcprobe -i /dev/dvd -T 1

now throwing

 

libdvdread: Using libdvdcss version 1.2.9 for DVD access

[tcprobe] DVD image/device

libdvdread: Using libdvdcss version 1.2.9 for DVD access

Please send bug report - no VTS_TMAPT ??

(dvd_reader.c) mpeg2 pal 4:3 U0 720x576 video

(dvd_reader.c) ac3 en drc 48kHz 2Ch

Please send bug report - no VTS_TMAPT ??

(dvd_reader.c) DVD title 1/5: 6 chapter(s), 1 angle(s), title set 1

(dvd_reader.c) title playback time: 00:00:01.00 2 sec

(dvd_reader.c) [Chapter 01] 00:00:00.000 , block from 0 to 3063

(dvd_reader.c) [Chapter 02] 00:00:00.000 , block from 16777219 to 257

(dvd_reader.c) [Chapter 03] 00:00:00.000 , block from -268435711 to 0

(dvd_reader.c) [Chapter 04] 00:00:00.000 , block from 0 to 0

(dvd_reader.c) [Chapter 05] 00:00:00.000 , block from 16 to 16

(dvd_reader.c) [Chapter 06] 00:00:00.000 , block from 16842752 to 32768

[tcprobe] summary for /dev/dvd, (*) = not default, 0 = not detected

import frame size: -g 720x576 [720x576]

aspect ratio: 4:3 (*)

frame rate: -f 25.000 [25.000] frc=3

audio track: -a 0 [0] -e 48000,16,2 [48000,16,2] -n 0x2000 [0x2000]

[tcprobe] V: 50 frames, 2 sec @ 25.000 fps

[tcprobe] A: 0.03 MB @ 128 kbps

[tcprobe] CD: 650 MB | V: 650.0 MB @ 2726166.5 kbps

[tcprobe] CD: 700 MB | V: 700.0 MB @ 2935881.7 kbps

[tcprobe] CD: 1300 MB | V: 1300.0 MB @ 5452464.1 kbps

[tcprobe] CD: 1400 MB | V: 1400.0 MB @ 5871894.5 kbps

 

Yes, is 6 chapters

 

[lex@lexicon ~]$ tccat -i /dev/dvd -T 1 -L -P > $HOME/movie.vob

 

Yes, We have one title on hard disk.

 

Make extract audio and video

[lex@lexicon ~]$ tcextract -i movie.vob -t vob -x ac3 -a 0 > movie.ac3

 

 

why? search......

 

audio track: -a 0 [0] -e 48000,16,2 [48000,16,2] -n 0x2000 [0x2000]

 

[lex@lexicon ~]$ tcextract -i movie.vob -t vob -x mpeg2 > movie.m2v

 

If You can subtitles needed use spumux from dvdaurhor and ifo_dump from libdvdread-utils.

 

check for color palette

[lex@lexicon ~]$ ifo_dump /dev/hdc 1 | grep Color | sed 's/Color ..: 00//' > palette.yuv

 

Generate picture PNG in format 4.12

[lex@lexicon ~]$ spuunmux -s 1 -p palette.yuv movie.vob

This command generated PNG files and command files sub.xml

 

Requantize

If You have burning file on DVD but file is too big...

 

[lex@lexicon ~]$ tcrequant -i movie.m2v -o newmovie.m2v -f 1.13

 

And now paste file with audio..

 

[lex@lexicon ~]$ mplex -f 8 -o newmovie.mpg movie.m2v audio.ac3

 

If I can insert subtitles file

[lex@lexicon ~]$ spumux sub.xml < new.mpg > new.vob

 

 

For example, we have complete programs for create our first movie.

 

I have movie "Showgirls", dvdbackup and streamdvd don'n manage.

I must use tccat for copy any files from dvd to /home.

One file VOB hat 5Gb. Gmencoder don't ripping directly from dvd. But from file VOB on my disk already encoding.

Go to section File and press Analyze. On my disk to appearing

file precisely for my CD-ROM 700Mb DivX/XviD and Mp3 audio. Three pass progress to give high quality movie and audio.

Thanks tccat, saving our dvd device.

 

Avidemux2 desgned for reencoding file and cating, basis of transcode.

 

Note. Home players can be play files bigger of 2 Gb. For export with transcode we use many codecs..How? Type

 

[lex@lexicon dvd]$ ls -l `tcmodinfo -p` /export*.so

 

And filter

 

[lex@lexicon dvd]$ ls -l `tcmodinfo -p` /filter*.so

 

For accept data

 

[lex@lexicon dvd]$ tcmodinfo -i logo

 

If can create the DivX file type

 

[lex@lexicon dvd]$ transcode $INPUT -y ffmpeg -Fmpeg4 -w 2500 -b 192 -o movie.avi

 

MPEG2 file create

 

cat > ffmpeg.cfg <<EOF

[mpeg2video]

aspect = 1.3333

vrc_maxrate = 9570

EOF

transcode $INPUT -y ffmpeg -N 0x2000 -F 'mpeg2' -V --keep_asr -Z 720,576,fast -o tempfile --export_prof dvd_pal -b 224 -J resample,normalize E 48000,16,2 -m tempfile.ac3 -w 3500 mplex -f 8 tempfile.m2v tempfile.ac3 -o newmovie.mpg

 

This option can't use from content Transcode.

 

Mencoder hat more formats input and output of Transcode.

 

DivX file make

 

[lex@lexicon dvd]$ mencoder $INPUT -noskip -oac mp3lame -lameopts cbr:br=192 -ovc lavc lavcopts vcodec=mpeg4:vhq:vbitrate=3000 -vf scale=720:-3,expand=:576 -o movie.avi

 

MPlayer was compiled without libmp3lame support.

Mplayer must be compiled with libmp3lame

Note: If paste file AVI

 

[lex@lexicon dvd]$ cat 1.avi 2.avi 3.avi > file.avi

You must type repeir index (only for AVI)

[lex@lexicon dvd]$ mencoder -ovc copy -oac copy --forceidx file.avi

 

Mencoder create MPEG2 (for DVD)

 

[lex@lexicon dvd]$ mencoder $INPUT -noskip -oac lavc -lavcopts acodec=ac3:abitrate=224:vcodec=mpeg2video:vhq:vbitrate=2500:aspect=4/3 -vf scale=720:-3,expand=:576 -aspect 4:3 -of mpeg -mpegopts format=dvd:rsaf -o movie.mpg

 

For older Mencoder

 

[lex@lexicon ~]$ mencoder $INPUT -noskip -oac lavc -lavcopts acodec=ac3:abitrate=224 -ovc lavc -lavcopts vcodec=mpeg2video:vhq:vbitrate=2500:aspect=4/3 -vf scale=720:-3,expand=:576 -aspect 4:3 -of mpeg -mpegopts format=dvd -o movie.mpg

 

AcidRip

 

Acidrip is complex program for ceate movie DivX from DVD. base for mencoder.

Program is very easy to operate. Click Load and program automatictly calculate bitrate for settings capacity for CD (700Mb)

Options

Scaling, copping, secting audio track. If You have essential software click Encode and wait for Your stream. Version 0.14 don't have interface for muxer module for create mpeg file compatibility with DVD format. You must use only Mplayer

type e.g.

[lex@lexicon ~]$ mplayer -sub movie.sub movie.avi

This program is very nice for not only newbies to resemble Gmencoder

 

Create VCD from AVI

 

[lex@lexicon dvd]$ mencvcd myvideo movie.avi

 

And now create BIN and CUE file for K3b

 

[lex@lexicon dvd]$ mencvcd myvideo movi.avi -mpgonly -noburn

 

If have only MPEG1 file.

 

Create MPEG file with Digikam

 

Whats new, watch bugs?. If You can problem whit create MPEG file check mjpegtools version.

You needed

libmjpegtools1.6-1.6.2-10mdk

mjpegtools-1.6.2-10mdk

digikamimageplugin (any version)

libkipi0-0.1.1-4mdk

kipi-plugins-0.1.0-0.rc1.2.1.20060mdk

 

Look also Kim program

 

Swftools Create Shockwave files from avi, gif, wav and etc files

swftools-0.7.0-1plf

 

/usr/bin/avi2swf

/usr/bin/font2swf

/usr/bin/gif2swf

/usr/bin/jpeg2swf

/usr/bin/pdf2swf

/usr/bin/png2swf

/usr/bin/swfbbox

/usr/bin/swfc

/usr/bin/swfcombine

/usr/bin/swfdump

/usr/bin/swfextract

/usr/bin/swfstrings

/usr/bin/wav2swf

 

Usage: avi2swf file.avi [-o output.swf]

 

DVDAuthor - Create dvd format DVD5 from DVD double layer without menus, advertising

 

[lex@lexicon dvd]$ dvdauthor -t -o dvd -f movie1.mpg

[lex@lexicon dvd]$ dvdauthor -t -o dvd -f movie2.mpg

[lex@lexicon dvd]$ dvdauthor -t -o dvd -f movie3.mpg

 

[lex@lexicon dvd]$ dvdauthor -T -o dvd

 

How add easy menu and submenue

 

[lex@lexicon dvd]$ dvdwizard --vmgm "My first movie" --vmgmbg beach.png --audio-seq --Audio en --vts "First clip" --vtsbg backg1.png --chapters 300 movie1.mpg --vts "Second clip" --vtsbg backg2.png --chapters 300 movie2.mpg

 

You must prepare before picture of background and movie files

Better use Qdvdauthor or DVDStyler

 

If You can insert subtittles to Your movie type

 

mencoder tutorial.avi -ovc lavc -lavcopts vcodec=mpeg1video:vhq:vbitrate=1152 -ofps 25 -oac lavc -lavcopts acodec=mp2:abitrate=224 -sub tutorial.txt -o tutorial.mpg

 

mencoder -fontconfig -font Arial -subfont-text-scale 4 -subcp cp1250 -subfont-encoding unicode input.avi -ovc lavc -lavcopts vcodec=mpeg1video:vhq:vbitrate=1152 -ofps 25 -oac lavc -lavcopts acodec=mp2:abitrate=224 -sub subtitl.txt -o output.mpg

 

Format movie file is for example

 

Remember, use $HOME/dir as /dev/dvd (/dev/hdc /cdrom),

Edited by Lexicon
Link to comment
Share on other sites

The pbone link seems not to be working. But most sources are best being downloaded using easyurpmi sources, unless of course you need to compile from source.

 

gmencoder can be got using:

 

urpmi gmencoder

Link to comment
Share on other sites

  • 2 months later...

Here's the command I've always used to rip DVD's, works like a charm. Mplayer and its requirements like mencoder are required.

 

 

mplayer dvd://1 -dumpstream -dumpfile /home/user/Movies/filename.vob

 

you can change the file extension to whatever format such as

 

mplayer dvd://1 -dumpstream -dumpfile /home/user/Movies/filename.avi

 

or

 

mplayer dvd://1 -dumpstream -dumpfile /home/user/Movies/filename.mpg

 

It works with a bunch of different codecs even mp4.

Edited by SurfahBoy808
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...