[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mjpeg-users
Subject:    [Mjpeg-users] generate a DVD?  prepare data for dvdauthor?
From:       Raena Lea-Shannon <raen () internode ! on ! net>
Date:       2006-03-23 9:37:42
Message-ID: 200603232037.42796.raen () internode ! on ! net
[Download RAW message or body]

1.	The mjpegtools web site does explain this.
2.	This is the sort of question that you can find the answer to by using 
google.
["tv2dvd" (text/plain)]

Step 1

Rip TV
Streamer

streamer -t 02:49:00 -n ntsc -i Composite1 -r 30 -s 352x240  -o \
/home/Raena/hdb2/Joan/Joan.yuv -O /home/Raena/hdb2/Joan/Joan.wav -R 48000 -F stereo

PAL
-n pal r 25 -s 352x288

Or Mencoder

mencoder tv:// -tv driver=v4l:input=1:norm=ntsc:alsa:amode=1:width=720:height=480:audiorate=48000:buffersize=16:forcechan=2 \
-idx -vf denoise3d=8:6:6,pp=md -oac pcm  -ovc lavc -lavcopts vcodec=mjpeg:vqscale=8 \
-o /home/Raena/TEMP/Tivo/MYDVD.avi

Or for AC3

-oac lavc -lavcopts acodec=ac3:abirate=320 (default is 224)

Step 2
from .yuv file

 build mpeg movies using mjpegtools + raw, uncompressed video:
    mp2enc -o audio.mp2 < audio.wav
    mpeg2enc -o video.m1v < video.yuv
    mplex audio.mp2 video.m1v -o movie.mpg


from .avi file

build mpeg movies using mjpegtools + compressed avi file:
    streamer -t 0:30 -s 352x240 -r 24 -o movie.avi -f mjpeg -F stereo
    lav2wav +p movie.avi | mp2enc -o audio.mp2
    lav2yuv +p movie.avi | mpeg2enc -o video.m1v



lav2yuv stream.eli | mpeg2enc -f 8 -o video.m2v
*or if bad vhs
lav2yuv moby.eli | yuvdenoise -F -l 2 | mpeg2enc -f 8 -q 7 -4 1 -2 1 -P -I 0 -N -o \
video_DVD.m2v


NOTE: If you have specified the -S option for mpeg2enc mplex will automatically split \
the files if there is in the output filename a %d (looks like: -o test%d.mpg) The \
files generated this way are separate stand-alone MPEG steams!

or you can do it in: mplex -f 8 -S 200 MYDVD.m2v MYDVD.mpa -o MYDVD%d.mpg

Step 3
mp2enc -r 48000 -o audio.mp2 < audio.wav
lav2wav myDVD.avi | mp2enc -r 48000 -o MYDVDsound.mp2

*The sample rate has to be 48kHz

Step 4

mplex -f 8 sound.mp2 video.m2v -o my_dvd.mpg

Step 5

mkdir /dvd
dvdauthor -o /dir/dvd/ -v ntsc+352x240+4:3 -c 00:00:00,00:05:00,.../path/MYDVD.mpg
dvdauthor -o /dir/dvd/ -T


Cut and paste below arg for 33x5 minute chapters
 -c 00:00:00,00:05:00,00:10:00,00:15:00,00:20:00,00:25:00,00:30:00,00:35:00,00:40:00,0 \
0:45:00,00:50:00,00:55:00,01:00:00,01:05:00,01:10:00,01:15:00,01:20:00,01:25:00,01:30: \
00,01:35:00,01:40:00,01:45:00,01:50:00,01:55:00,02:00:00,02:05:00,02:10:00,02:15:00,02:20:00,02:25:00,02:30:00,02:35:00,02:40:00



Step 6

mkisofs -dvd-video -o mydvd.iso /dir/dvd/

growisofs  -dvd-compat -speed=1 -overburn -Z /dev/scd0=mydvd.iso

NB Some dvdrs do not have lead out so always use -dvd-compat
if you forget then try:

dvd+rw-format -lead-out /dev/scdN

which relocates the lead-out next to outermost written sector as well as makes sure \
there is no virgin surface before it. Previously written data is not affected by this \
operation. http://fy.chalmers.se/~appro/linux/DVD+RW/


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic