LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Creating DVDs from the Terminal (Ubuntu 8.1) (https://www.linuxquestions.org/questions/linux-newbie-8/creating-dvds-from-the-terminal-ubuntu-8-1-a-827549/)

MooseMagnet 08-20-2010 08:53 PM

Creating DVDs from the Terminal (Ubuntu 8.1)
 
Trying to COPY some of my DVDs, I've had tons of problems with the various applications such as K3B and Brasero (not putting them down though, just my experience).

Recently I found the commands to use dvdbackup, and it worked perfectly. I can copy my DVDs easily and flawlessly. Really happy about that.

Is there a command-line way of creating DVDs? I've got to say that using the terminal has been the most reliable and robust for me.

Is there a way to create DVDs via the terminal?

I'm running Ubuntu 8.1 on a Dell laptop.

thanks in advance,
moose

sag47 08-20-2010 09:05 PM

mkisofs is good for creating ISO images for burning.
cdrecord is a decent terminal burning utility.

I enjoy the benefits of being a terminal ninja. You'll find you can do a lot of things faster in the terminal than you could ever do in the GUI.

Enjoy :)
SAM

GrapefruiTgirl 08-20-2010 09:08 PM

And here's a command I've used many times to burn bootable ISO images (like a Linux OS), such as those made by `mkisofs`:

Code:

growisofs -speed=2 -dvd-compat -Z /dev/sr0=imagefile.iso
Just replace /dev/sr0 with your own DVD writer drive, and put the real name of your .ISO file.

memet 08-22-2010 05:08 AM

I use wodim for burning dvd images. Example command:
wodim -v -dao speed=4 dev=/dev/scd0 image.iso
Used successfully with bootable and normal dvd's both in Ubuntu 10.04 and Debian.
I don't know if it works with bootable media but for creating iso files, I take (possibly) the simplest way, the cat command:
cat /dev/cdrom > image.iso
It worked with data and video dvd's.

MooseMagnet 08-27-2010 05:57 PM

I'm confused. What I'd like to do is make a DVD from a .avi or .divx or etc. file.
I can create a .iso from these, but am not understanding how to make a DVD from them.
For example: I have a .avi movie. Is there a command line way of making a DVD from that file?

sag47 09-21-2010 12:25 AM

Check out http://www.dvdstyler.org/
It may have a CLI but I've never used it.

Also I came across this post on LQ.

prayag_pjs 09-21-2010 12:40 AM

Create the ISO image
Code:

# mkisofs -r -o /tmp/var-www-disk1.iso /var/www
The growisofs command to write the ISO onto the DVD:
Code:

# growisofs -Z /dev/dvd=/tmp/var-www-disk1.iso
Append more data for same DVD:
Code:

# growisofs -M /dev/dvd  /tmp/file.1
Format (erase) a DVD:
Code:

# dvd+rw-format  -force  /dev/dvd


Other Commands :


Code:

# dvd+rw-format  -force=full /dev/dvd
dvd+rw-format command formats dvd disk



Display information about dvd drive and disk using dvd+rw-mediainfo command:
Code:

# dvd+rw-mediainfo /dev/dvd

MooseMagnet 09-22-2010 09:29 AM

Thank you for the answers. It is all way beyond my understanding. No way I could do it.

SharpyWarpy 09-22-2010 05:07 PM

Install ffmpeg. Run:
ffmpeg -i video-filename.avi -target ntsc-dvd final.mpg
ffmpeg will take a while. then run:
dvdauthor -t -f final.mpg -o final-dvd-fs
then:
dvdauthor -T -o final-dvd-fs
then:
growisofs -Z /dev/sr0 -speed=1 -dvd-video final-dvd-fs
the "/dev/sr0" assuming your dvd burner is device sr0 and not sr1. Hope this helps.


All times are GMT -5. The time now is 09:06 PM.