Sony Handycam

From YobiWiki
Jump to navigation Jump to search

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

Mount a VR-mode DVD-RW

It seems it is 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 the 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!!

Rip a VR-mode DVD-RW

cf http://www.avtechpulse.com/opensource/dvd.html
Mount it as explained in the previous paragraph
You need to install some tools

apt-get install mjpegtools
cd /tmp
mplayer -dumpvideo /cdrom/DVD_RTAV/VR_MOVIE.VRO
mv stream.dump video
mplayer -dumpaudio /cdrom/DVD_RTAV/VR_MOVIE.VRO
mv stream.dump audio
mplex -f 8 audio video -o dvd-%02d.mpg
mkdir dvd
dvdauthor -o ./dvd dvd-*.mpg
dvdauthor -o ./dvd -T
mkisofs -dvd-video -o dvd.iso ./dvd
growisofs -dvd-compat -speed=1 -Z /dev/dvd=dvd.iso

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)

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

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