Difference between revisions of "Sony Handycam"

From YobiWiki
Jump to navigation Jump to search
Line 5: Line 5:
   
 
===Tests with a finalized DVD-RW===
 
===Tests with a finalized DVD-RW===
  +
====Ripping====
 
dvdbackup -i /dev/dvd -I
 
dvdbackup -i /dev/dvd -I
 
dvdbackup -i /dev/dvd -M -o . [-n title]
 
dvdbackup -i /dev/dvd -M -o . [-n title]
  +
  +
====Re-multiplexing====
 
# For each VTS_0${i}_1.VOB
 
# For each VTS_0${i}_1.VOB
 
tcextract -i VTS_0${i}_1.VOB -t vob -x mpeg2 > movie.m2v
 
tcextract -i VTS_0${i}_1.VOB -t vob -x mpeg2 > movie.m2v
Line 14: Line 17:
 
spumux -m dvd sub.xml < movie${i}.mpg > movie${i}sub.mpg
 
spumux -m dvd sub.xml < movie${i}.mpg > movie${i}sub.mpg
 
rm -f sub* movie${i}.mpg
 
rm -f sub* movie${i}.mpg
  +
Now the movie${i}sub.mpg are ready for authoring
mkdir dvd
 
dvdauthor -o ./dvd movie*sub.mpg
 
dvdauthor -o ./dvd -T
 
mkisofs -dvd-video -o dvd.iso ./dvd
 
growisofs -dvd-compat -speed=1 -Z /dev/dvd=dvd.iso
 
   
===Mount a VR-mode DVD-RW===
+
===Tests with a VR-mode DVD-RW===
  +
====Ripping (actually mounting)====
It seems it is formatted in UDF
+
Those special VR-mode DVD are formatted in UDF
 
<br>For some info on UDF under Linux, cf http://www.lea-linux.org/cached/index/Hardware-hard_plus-packet-writing.html
 
<br>For some info on UDF under Linux, cf http://www.lea-linux.org/cached/index/Hardware-hard_plus-packet-writing.html
 
apt-get install udftools
 
apt-get install udftools
Line 32: Line 32:
 
<br>The content appears to be /cdrom/DVD_RTAV/
 
<br>The content appears to be /cdrom/DVD_RTAV/
 
<br>Note that if you want to play with UDF, you can:
 
<br>Note that if you want to play with UDF, you can:
<br>Format the CD:
+
<br>Format a CD:
 
cdrwtool -d /dev/cdrom -q
 
cdrwtool -d /dev/cdrom -q
 
Mount it rw:
 
Mount it rw:
Line 38: Line 38:
 
And don't forget to umount it! Especially when writing to it!!
 
And don't forget to umount it! Especially when writing to it!!
   
===Rip a VR-mode DVD-RW===
+
====Re-multiplexing====
 
cf http://www.avtechpulse.com/opensource/dvd.html
 
cf http://www.avtechpulse.com/opensource/dvd.html
<br>Mount it as explained in the previous paragraph
 
 
<br>You need to install some tools
 
<br>You need to install some tools
 
apt-get install mjpegtools
 
apt-get install mjpegtools
   
cd /tmp
 
 
mplayer -dumpvideo /cdrom/DVD_RTAV/VR_MOVIE.VRO
 
mplayer -dumpvideo /cdrom/DVD_RTAV/VR_MOVIE.VRO
 
mv stream.dump video
 
mv stream.dump video
Line 50: Line 48:
 
mv stream.dump audio
 
mv stream.dump audio
 
spuunmux /cdrom/DVD_RTAV/VR_MOVIE.VRO
 
spuunmux /cdrom/DVD_RTAV/VR_MOVIE.VRO
mplex -f 8 audio video -o dvd-%02d.mpg
+
mplex -f 8 audio video -o movie%d.mpg
  +
spumux -m dvd sub.xml < movie${i}.mpg > movie${i}sub.mpg
# I get only one mpg stream anyway
 
spumux -m dvd sub.xml < dvd-01.mpg > dvd-01sub.mpg
+
rm -f sub* movie${i}.mpg
  +
Now the movie${i}sub.mpg are ready for authoring
rm -f sub* dvd-01.mpg
 
  +
===Authoring===
  +
====Very basic authoring====
 
mkdir dvd
 
mkdir dvd
dvdauthor -o ./dvd dvd-*sub.mpg
+
dvdauthor -o ./dvd movie*sub.mpg
 
dvdauthor -o ./dvd -T
 
dvdauthor -o ./dvd -T
  +
I'm not sure the subtitles are properly taken into account
  +
====With decent menu====
 
More complex menu can be created, cf e.g. [http://kaybee.org:81/~kirk/dvdauthor.html this page]
  +
<br>Or use dvdwizard for a quite good startup without much effort:
  +
dvdwizard -T "<DVD title>" -M fr -t "Part 1" -s hh -WS nopanscan <mpg files>
  +
-t "Part 2" -s hh -WS nopanscan <mpg files>...
  +
-M fr: for main menu in french (you can change the messages in the conf file)
  +
-s hh: for the timestamps subtitles, I added the following to dvdwizard.conf:
  +
HH=Timestamps
  +
You can also try qdvdauthor but with more power comes more stuff to learn ;-)
  +
===Burning===
 
mkisofs -dvd-video -o dvd.iso ./dvd
 
mkisofs -dvd-video -o dvd.iso ./dvd
 
growisofs -dvd-compat -speed=1 -Z /dev/dvd=dvd.iso
 
growisofs -dvd-compat -speed=1 -Z /dev/dvd=dvd.iso
   
  +
Or simply
More complex menu can be created, cf e.g. [http://kaybee.org:81/~kirk/dvdauthor.html this page]
 
 
growisofs -Z /dev/dvd -dvd-video ./dvd
  +
 
Apparently this should also be possible with
 
mkisofs -dvd-video -o dvd.iso ./dvd
 
dvdrecord speed=1 -dao dev=0,0,0 dvd.iso
 
but dvdrecord supports only DVD-R(W) media.
  +
 
See also [[CD & DVD Burning]]
   
===Ripping programs===
+
===Other tools===
  +
====Ripping programs====
 
* acidrip - ripping and encoding DVD tool using mplayer and mencoder
 
* acidrip - ripping and encoding DVD tool using mplayer and mencoder
 
** I get an error as lsdvd segfaults
 
** I get an error as lsdvd segfaults
Line 77: Line 97:
 
* ripmake - an automatic command line ripping makefile generator for transcode
 
* ripmake - an automatic command line ripping makefile generator for transcode
   
===Edition programs===
+
====Edition programs====
 
* devede - program to create video DVDs
 
* devede - program to create video DVDs
 
* dvd+rw-tools - DVD+-RW/R tools
 
* dvd+rw-tools - DVD+-RW/R tools
Line 115: Line 135:
 
DVD-player: no
 
DVD-player: no
 
wmv2 Windows Media Video, version 2 (alias WMV8)
 
wmv2 Windows Media Video, version 2 (alias WMV8)
 
===DVD creation===
 
 
From dvdbackup files:
 
growisofs -Z /dev/dvd -dvd-video /PATH/TO/BACKUP/
 
Apparently this should also be possible with
 
mkisofs -dvd-video -o ISONAME.iso /PATH/TO/BACKUP/
 
dvdrecord speed=1 -dao dev=0,0,0 ISONAME.iso
 
but dvdrecord supports only DVD-R(W) media.
 
 
See also [[CD & DVD Burning]]
 
   
 
===CD creation===
 
===CD creation===

Revision as of 00:00, 7 March 2007

Handycam DCR-DVD105E

This records directly on 8cm DVD-R, DVD-RW or DVD+RW.
So to get the movies under linux, just rip the DVD!

Tests with a finalized DVD-RW

Ripping

dvdbackup -i /dev/dvd -I
dvdbackup -i /dev/dvd -M -o . [-n title]

Re-multiplexing

# For each VTS_0${i}_1.VOB
tcextract -i VTS_0${i}_1.VOB -t vob -x mpeg2 > movie.m2v
tcextract -i VTS_0${i}_1.VOB -t vob -x ac3 -a 0 > movie.ac3
spuunmux VTS_0${i}_1.VOB
mplex -f 8 -o "movie%d.mpg" shrink.m2v movie.ac3
spumux -m dvd sub.xml < movie${i}.mpg > movie${i}sub.mpg
rm -f sub* movie${i}.mpg

Now the movie${i}sub.mpg are ready for authoring

Tests with a VR-mode DVD-RW

Ripping (actually mounting)

Those special VR-mode DVD are formatted in UDF
For some info on UDF under Linux, cf http://www.lea-linux.org/cached/index/Hardware-hard_plus-packet-writing.html

apt-get install udftools
zless /usr/share/doc/udftools/README.Debian.gz

Edit /etc/default/udftools

DEVICES="/dev/scd0"

Normally at next reboot the module will be loaded and /dev/pktcdvd/0 created, otherwise:

modprobe pktcdvd

Now we can mount the DVD, "ro" as we don't plan to change it
The content appears to be /cdrom/DVD_RTAV/
Note that if you want to play with UDF, you can:
Format a CD:

cdrwtool -d /dev/cdrom -q

Mount it rw:

mount /dev/pktcdvd/0 /mnt/udf -o noatime,sync

And don't forget to umount it! Especially when writing to it!!

Re-multiplexing

cf http://www.avtechpulse.com/opensource/dvd.html
You need to install some tools

apt-get install mjpegtools
mplayer -dumpvideo /cdrom/DVD_RTAV/VR_MOVIE.VRO
mv stream.dump video
mplayer -dumpaudio /cdrom/DVD_RTAV/VR_MOVIE.VRO
mv stream.dump audio
spuunmux /cdrom/DVD_RTAV/VR_MOVIE.VRO
mplex -f 8 audio video -o movie%d.mpg
spumux -m dvd sub.xml < movie${i}.mpg > movie${i}sub.mpg
rm -f sub* movie${i}.mpg

Now the movie${i}sub.mpg are ready for authoring

Authoring

Very basic authoring

mkdir dvd
dvdauthor -o ./dvd movie*sub.mpg
dvdauthor -o ./dvd -T

I'm not sure the subtitles are properly taken into account

With decent menu

More complex menu can be created, cf e.g. this page
Or use dvdwizard for a quite good startup without much effort:

dvdwizard -T "<DVD title>" -M fr -t "Part 1" -s hh -WS nopanscan <mpg files> 
                                 -t "Part 2" -s hh -WS nopanscan <mpg files>...
-M fr: for main menu in french (you can change the messages in the conf file)
-s hh: for the timestamps subtitles, I added the following to dvdwizard.conf:
HH=Timestamps

You can also try qdvdauthor but with more power comes more stuff to learn ;-)

Burning

mkisofs -dvd-video -o dvd.iso ./dvd
growisofs -dvd-compat -speed=1 -Z /dev/dvd=dvd.iso

Or simply

growisofs -Z /dev/dvd -dvd-video ./dvd

Apparently this should also be possible with

mkisofs -dvd-video -o dvd.iso ./dvd
dvdrecord speed=1 -dao dev=0,0,0 dvd.iso

but dvdrecord supports only DVD-R(W) media.

See also CD & DVD Burning

Other tools

Ripping programs

  • acidrip - ripping and encoding DVD tool using mplayer and mencoder
    • I get an error as lsdvd segfaults
  • drip - GNOME application for encoding a DivX from a DVD
    • Not updated since 04/2004
  • dvdbackup - tool to rip DVD's from the command line
dvdbackup -i /dev/dvd -I
dvdbackup -i /dev/dvd -M -o . [-n title]

  • dvdrip - perl front end for transcode
    • I get an error as lsdvd segfaults
  • k9copy - copy DVD like dvdshrink
  • lxdvdrip - tool to make a copy from a Video DVD
  • ripmake - an automatic command line ripping makefile generator for transcode

Edition programs

  • devede - program to create video DVDs
  • dvd+rw-tools - DVD+-RW/R tools
  • dvd-slideshow - tools to create dvd slideshow with menus
  • dvdauthor - create DVD-Video file system
    • qdvdauthor - GUI frontend for dvdauthor and other related tools
  • dvdrtools - DVD writing program
  • dvdwizard - fully automated creation of a DVD-structure
  • dvdstyler - a crossplatform DVD Authoring System
  • gaupol - subtitle editor for text-based subtitle files
  • gopchop - Fast, lossless cuts-only editor for MPEG2 video files
  • mandvd - Video DVD creator
  • submux-dvd - subtitle multiplexer, muxes subtitles into .vob


Mplayer conversions

To play DVD-RW Video 16:9 correctly and non-interlaced: (here the 4th video)

mplayer dvd://2 -chapter 2 -vf tfields -aspect 16:9

To dump raw:

mplayer dvd://2 -dumpstream -dumpfile video.raw

To convert to MS Mpeg4v2 800 / mp3 128 (2 passes)

mencoder video.raw -o /dev/null -vf scale=720:405  -oac copy -ovc lavc -lavcopts vcodec=msmpeg4v2:vpass=1
mencoder video.raw -o video.avi -vf scale=720:405  -oac lavc -ovc lavc -lavcopts acodec=mp3:abitrate=128:vcodec=msmpeg4v2:vpass=2:vbitrate=800

For a 4:3 video, rescale with

scale=720:540

Other tests:

-ovc lavc -lavcopts vcodec=mpeg4:mbd=1:vbitrate=1800
-ovc lavc -lavcopts vcodec=mpeg4:vbitrate="1200":vhq:vpass=1
-ovc lavc -lavcopts vcodec=mpeg4:vbitrate="1200":vhq:vpass=2
-ovc xvid -xvidencopts pass=1
-ovc xvid -xvidencopts pass=2:bitrate=1200

Other codecs of lavc to try:

mpeg4       MPEG-4 (DivX 4/5)
msmpeg4     DivX 3
msmpeg4v2   MS MPEG-4v2
   Windows: ok 
   DVD-player: no
wmv2        Windows Media Video, version 2 (alias WMV8)

CD creation

Burning the avis on a CD:

genisoimage -R -J <dir> | wodim -v -eject -

I tried the codec "MS Mpeg4v2" on my DVD player but it does not recognize that codec