Re: having problems copying a dvd

2009-09-02 Thread Adam Vande More
On Wed, Sep 2, 2009 at 12:19 AM, Roland Smith  wrote:

> On Wed, Sep 02, 2009 at 04:41:24AM +, af300...@gmail.com wrote:
> > Hi,
> >
> > I'm trying to make a copy of a dvd that I have, video, using a technique
> > that I gleaned from this list nearly two years ago that has always worked
> > but now I'm having problems. (When I say always, please bear in mind that
> I
> > don't do this every day or even frequently). You'll also see calls to dd.
> > These were attempts at "last ditch effort." I usually just use the copy
> > command (got it from a thread entitled, "copying a dvd video," from
> > November of 07). If dd will work but I just forgot to get the block size
> > right, what is that supposed to be.
>
> My preferred technique is to use mplayer:
>
> mplayer dvd://1 -dumpstream -dumpfile dvd.mpg
>
> Be sure to play the DVD with mplayer to check which track is actually the
> movie. Usually it is track #1, but not always.
>
> After copying the stream, I tend to re-encode it for backup purposes with
> the
> H.264 video codec with MP3 sound, which makes it a lot smaller. The first
> step
> is to watch the mpeg and see if there are black stripes around the picture:
>
> mplayer -vf cropdetect dvd.mpg
>
> This will give you a continuous list of crop lines, e.g:
> [CROP] Crop area: X: 1..719  Y: 74..500  (-vf crop=704:416:10:80).0
>
> Next step is to re-encode the mpeg file in two steps for enhanced quality,
> including the crop information, if any:
>
> mencoder title.mpg -ovc x264 \
> -x264encopts subq=4:bframes=3:b_pyramid:weight_b:qp=18:threads=auto:pass=1
> \
> -idx -oac mp3lame -vf crop=704:416:10:80 -o /dev/null; \
> mencoder title.mpg  -ovc x264 -x264encopts \
> subq=6:partitions=all:8x8dct:me=umh:frameref=5:bframes=3:\
> b_pyramid:weight_b:qp=18:threads=auto:pass=2 -vf crop=704:416:10:80 \
> -idx -oac mp3lame -o title.avi;
>
> If you want to include a specific language or subtitle, don't forget to
> include the correct options for that; see the mplayer manual.
>
> Roland
> --
> R.F.Smith   
> http://www.xs4all.nl/~rsmith/
> [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
> pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)
>

multimedia/transcode is good option as well.  tccat will dump track vob
without borders, use tcprobe to find track you wish to dump.


-- 
Adam Vande More
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: having problems copying a dvd

2009-09-02 Thread Andrew Falanga
On Wed, Sep 2, 2009 at 7:53 AM, Sergio de Almeida Lenzi <
lenzi.ser...@gmail.com> wrote:

> Hello
>
> Thanks Roland for the parameters in the mplayer/mencoder...
>
> To make things easier.. I recomend to create a profile
> in the directory ~/.mplayer/mencoder.conf with the content:
> =
> [pal]
> oac=lavc=yes
> ovc=lavc=yes
> lavcopts=vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=6000:vbitrate=4000
> Lavcopts=keyint=15:trell=yes:mbd=2:precmp=2:subcmp=2:cmp=2:dia=-10
> lavcopts=predia=-10:cbp=yes:mv0=yes:aspect=16/9
> lavcopts=vqmin=1:lmin=1:dc=10:vstrict=0
> lavcopts=acodec=ac3:abitrate=192
> lavcopts=lumi_mask=0.2:dark_mask=0.15:scplx_mask=0.2:tcplx_mask=0.1
> vf=scale=720:576,harddup=yes
> af=lavcresample=48000
> mpegopts=format=dvd:tsaf=yes
> of=mpeg=yes
> srate=48000
> channels=2
> ofps=25
>
> [pal_cinemascope]
> profile=pal
> vf=scale=720:432,expand=720:576,harddup=yes
> ==
>
> Or using the options from Roland
> extract the stream (as Roland said...)  mplayer dvd://1 -dumpstream
> -dumpfile dvd.mpg
> crop detect...   mplayer -vf cropdetect dvd.mpg
>
> and then finally encode with mencoder using the profile above and
> Roland's example...
>
> mencoder -profile pal -vf crop=704:416:10:80 dvd.mpg -o film.mpg
>
> the result will be a high definition video with 1024x576 PAL (25 fps)
> 16:9 aspect with audio AC3 192Kbps (plays using HDMI)
> in any dvd player... or in your computer.
> if the source (dvd.mpg) is in 2.35/1 ratio use -profile pal_cinemascope
> and mencoder will adjust the aspect for the video.
>
>
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "
> freebsd-questions-unsubscr...@freebsd.org"
>

To both, thanks a bunch for this information.  This is awesome!  I can't
wait to install and try.

-- 
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: having problems copying a dvd

2009-09-02 Thread Sergio de Almeida Lenzi
Hello

Thanks Roland for the parameters in the mplayer/mencoder...

To make things easier.. I recomend to create a profile 
in the directory ~/.mplayer/mencoder.conf with the content:
=
[pal]
oac=lavc=yes
ovc=lavc=yes
lavcopts=vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=6000:vbitrate=4000
Lavcopts=keyint=15:trell=yes:mbd=2:precmp=2:subcmp=2:cmp=2:dia=-10
lavcopts=predia=-10:cbp=yes:mv0=yes:aspect=16/9
lavcopts=vqmin=1:lmin=1:dc=10:vstrict=0
lavcopts=acodec=ac3:abitrate=192
lavcopts=lumi_mask=0.2:dark_mask=0.15:scplx_mask=0.2:tcplx_mask=0.1
vf=scale=720:576,harddup=yes 
af=lavcresample=48000
mpegopts=format=dvd:tsaf=yes
of=mpeg=yes
srate=48000
channels=2
ofps=25

[pal_cinemascope]
profile=pal
vf=scale=720:432,expand=720:576,harddup=yes 
==

Or using the options from Roland
extract the stream (as Roland said...)  mplayer dvd://1 -dumpstream
-dumpfile dvd.mpg
crop detect...   mplayer -vf cropdetect dvd.mpg

and then finally encode with mencoder using the profile above and
Roland's example...

mencoder -profile pal -vf crop=704:416:10:80 dvd.mpg -o film.mpg

the result will be a high definition video with 1024x576 PAL (25 fps)
16:9 aspect with audio AC3 192Kbps (plays using HDMI)
in any dvd player... or in your computer.
if the source (dvd.mpg) is in 2.35/1 ratio use -profile pal_cinemascope
and mencoder will adjust the aspect for the video.


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: having problems copying a dvd

2009-09-01 Thread Polytropon
On Wed, 02 Sep 2009 04:41:24 +, af300...@gmail.com wrote:
> If dd will work but I just forgot to get the block size  
> right, what is that supposed to be.

If you call dd without bs= parameter, the default of 512 is
assumed. This may not be correct for video DVDs. You could
try bs=1m, but I'm not sure what the correct block size for
DVDs is...

For copying them, I always felt comfortable with the vobcopy
tool (for reading), and growisofs -dvd-compat (for writing).
Both tools can be installed via ports or packages.

> [r...@sniper ~]# cp /dev/acd0 /usr/local/dvds/biggest_loser.iso

Just a side note: I don't think /usr/local is a good place
to store DVD images. Some path like /usr/home/dvds would be
good. The /usr/local subtree is "reserved" for locally installed
applications; see "man hier" for details.




-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: having problems copying a dvd

2009-09-01 Thread Roland Smith
On Wed, Sep 02, 2009 at 04:41:24AM +, af300...@gmail.com wrote:
> Hi,
> 
> I'm trying to make a copy of a dvd that I have, video, using a technique  
> that I gleaned from this list nearly two years ago that has always worked  
> but now I'm having problems. (When I say always, please bear in mind that I  
> don't do this every day or even frequently). You'll also see calls to dd.  
> These were attempts at "last ditch effort." I usually just use the copy  
> command (got it from a thread entitled, "copying a dvd video," from  
> November of 07). If dd will work but I just forgot to get the block size  
> right, what is that supposed to be.

My preferred technique is to use mplayer:

mplayer dvd://1 -dumpstream -dumpfile dvd.mpg

Be sure to play the DVD with mplayer to check which track is actually the
movie. Usually it is track #1, but not always.

After copying the stream, I tend to re-encode it for backup purposes with the
H.264 video codec with MP3 sound, which makes it a lot smaller. The first step
is to watch the mpeg and see if there are black stripes around the picture:

mplayer -vf cropdetect dvd.mpg

This will give you a continuous list of crop lines, e.g:
[CROP] Crop area: X: 1..719  Y: 74..500  (-vf crop=704:416:10:80).0

Next step is to re-encode the mpeg file in two steps for enhanced quality,
including the crop information, if any:

mencoder title.mpg -ovc x264 \
-x264encopts subq=4:bframes=3:b_pyramid:weight_b:qp=18:threads=auto:pass=1 \
-idx -oac mp3lame -vf crop=704:416:10:80 -o /dev/null; \
mencoder title.mpg  -ovc x264 -x264encopts \
subq=6:partitions=all:8x8dct:me=umh:frameref=5:bframes=3:\
b_pyramid:weight_b:qp=18:threads=auto:pass=2 -vf crop=704:416:10:80 \
-idx -oac mp3lame -o title.avi;

If you want to include a specific language or subtitle, don't forget to
include the correct options for that; see the mplayer manual.

Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgpSKHv0QcZng.pgp
Description: PGP signature