PDA

View Full Version : Video for all, Copying, ripping, decoding DVD How?


JanlllSobieski
25-November-2006, 21:51
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.

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,

dd if=/dev/hdc of=/home/user/dvd.img
mkdir /kino
mount -o loop /home/user/dvd.img /kino
xine /kino
k3b --dvdimage /home/user/dvd.img


3. Other way
Install dvdbackup
Name: dvdbackup
Wersion: 0.1.1-1mdk
Size: 51 KB

mkdir ~/videos/backup
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
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

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

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

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.

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

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

tccat -i /dev/dvd -T 1 -L -P > $HOME/movie.vob

Yes, We have one title on hard disk.

Make extract audio and video

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]

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
ifo_dump /dev/hdc 1 | grep Color | sed 's/Color ..: 00//' > palette.yuv

Generate picture PNG in format 4.12
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...

tcrequant -i movie.m2v -o newmovie.m2v -f 1.13

And now paste file with audio..

mplex -f 8 -o newmovie.mpg movie.m2v audio.ac3

If I can insert subtitles file

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

ls -l `tcmodinfo -p` /export*.so

And filter

ls -l `tcmodinfo -p` /filter*.so

For accept data

tcmodinfo -i logo

If can create the DivX file type

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

cat 1.avi 2.avi 3.avi > file.avi
You must type repeir index (only for AVI)
mencoder -ovc copy -oac copy --forceidx file.avi

Mencoder create MPEG2 (for DVD)

mencoder $INPUT -noskip -oac lavc -lavcopts acodec=ac3:abitrate=224:vcodec=mpeg2video:vhq:vbit rate=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

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.
mplayer -sub movie.sub movie.avi
This program is very nice for not only newbies to resemble Gmencoder

Create VCD from AVI

mencvcd myvideo movie.avi

And now create BIN and CUE file for K3b

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

dvdauthor -t -o dvd -f movie1.mpg
dvdauthor -t -o dvd -f movie2.mpg
dvdauthor -t -o dvd -f movie3.mpg

dvdauthor -T -o dvd

How add easy menu and submenue

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),

TheIdiotThatIsMe
28-November-2006, 18:52
What's the legality of adding this to the Freespire Wiki / User Manual?

JanlllSobieski
28-November-2006, 20:25
This is my manual, but infinite, all for you

JanlllSobieski
30-November-2006, 23:10
Can you help me? check me. My language isssss no good.

scott.blayney
08-December-2006, 18:29
Working around DVD encryption is only illegal, to my knowledge, in the United States. In Canada, where I live, it is not illegal to do what he is suggesting. You can thank your government for implementing the DMCA to prevent you from doing what you want with your DVDs.;)

JanlllSobieski
08-December-2006, 19:27
Copy, ripping send my brother, dother, grandfather and for me is legal. I to think about film making on holidays ;). Copy protection is legally. Illegally is tading. Witing about is no illegal too