Slashdot Mirror


Understanding DVD Compression?

canyon289 asks: "My friends and I created a full length movie using a regular Sony Camcorder. After importing and editing all of the video and audio in Adobe Premiere, the exported AVI comes out to 19 gigs. The length of the movie is 90 minutes. We tried compressing it with Nero Burning Rom to a 4.7 single layer DVD but when played in a standard DVD player theres pixelation and frame skips aplenty. Does anyone know how to fit the movie into a DVD (preferably 4.7) and still maintain adequate quality?"

24 of 114 comments (clear)

  1. Burn it slower by delidana · · Score: 1, Informative

    Try to burn it slower, if you noticed will run smoothly in your PC's dvd player but not in home dvd-player.

  2. Don't use nero by arodland · · Score: 2, Informative

    The full version is pathetically slow and not very good; the bundled versions are pathetically slow, not very good, and force you to use LPCM audio. ffmpeg + mplex + dvdauthor will do nicely. And there are tools that will wrap them all together for you in some sort of graphical thing, I think :)

  3. Cinema Craft Encoder by Anonymous Coward · · Score: 4, Informative

    CCE is the standard used in the rampant legal archiving of DVDs. Best DVD encodes I've seen of any of the major products. Nero has a quick and dirty encoder that is fitting 1hr-1:30 on a DVD5 with decent quality, but CCE sets the standard.

    1. Re:Cinema Craft Encoder by svunt · · Score: 2, Informative

      Seconded. Cinema Craft Encoder is the professional standard. Nero's compression, or that used by dvdshrink etc will drop frames to make your video fit. CCE will re-encode your film to the size you want, with excellent quality. It's not cheap, but there are some er....'unlimited trial' versions around, knowhatimean?

    2. Re:Cinema Craft Encoder by Sancho · · Score: 4, Informative

      You're incorrect, sir.

      First of all, DVDShrink doesn't drop frames. It modifies the coefficient data in the stream to reduce the overall file size. It leaves the motion vector information (which is really the hardest part of encoding) untouched. It is extremely fast compared to re-encoding because the bulk of the work is done. Nero has a very similar product, but it doesn't work on CSS-encrypted discs. In neither case are frames dropped--in fact, because they maintain the motion vector information, every frame is necessarily maintained in the output. These are considered transcoders.

      Nero also has an AVI to MPEG encoder you can use. This one might "drop" frames (or more accurately, there may not be a 1:1 correlation in frames between the two products) but it will still produce roughly 30fps NTSC output. This is a true encoder and will go through roughly the same steps as any other MPEG encoder (including CCE). The difference is that it's not really made for high-quality encodings. It's made for your average Joe to put his videos on DVDs.

    3. Re:Cinema Craft Encoder by Shrubbman · · Score: 2, Informative
      CCE is extremely expensive ($1950) for a regular consumer.


      There's a basic version available priced much more affordably at US$ 58.00. Misses some of the more advanced features of the full version, but still quite good.
    4. Re:Cinema Craft Encoder by stikves · · Score: 3, Informative

      > Nero has a very similar product, but it doesn't work on CSS-encrypted discs.

      Actually Nero has the never version of the same program. Since it was so good, Nero apparently bought DVD Shring along with the author and released it as "Nero Recode". For apparent reasons they've dropped CSS decrypting support. Also the author stopped developing (or even distributing) the freeware version, but the website was still intact.

    5. Re:Cinema Craft Encoder by MrLizardo · · Score: 2, Informative
      --
      ^I'm with stupid.^
  4. Multiple passes by tomstdenis · · Score: 4, Informative

    MPEG only specifies the decoder not the encoder. So

    1. Choose a quality encoder
    2. Use a high quality mode (if it has one) usually this enables more MV searches
    3. Use multiple passes if supported. This helps distribute the bandwidth where it is needed more.

    Mencoder [part of mplayer] can encode DVDs using lavc that look [for the most part] just as good as the original on a CD. It'd be trivial to get near losslessness in the size of a DVD.

    Tom

    --
    Someday, I'll have a real sig.
  5. i guess google was down? by aquaepulse · · Score: 2, Informative
  6. Use another compression engine? Audio too big? by Sancho · · Score: 5, Informative

    You want a multi-pass, high quality encoder to create your output files. For video and on Windows, I suggest Tsunami Mpeg Encoder (TMPGEnc). It's been a few years since I've messed with any of this, but it was quite good and inexpensive 3-4 years ago. It does 2-pass encoding and can output any number of DVD-compatible formats.

    If you're still having problems, you might try reducing the resolution. DVD supports 704(720) or 352 vertical lines. Obviously quality suffers as you reduce resolution, but if you're having problems squeezing your content onto a DVD at 720 lines, you may just get an overall increase in quality this way.

    Also, you don't talk much about your audio. Is it raw audio (which is really big and uses up lots of room on the disc that could be devoted to video)? You may have good results compressing this, as well.

    I like http://www.doom9.net/ for all things video/dvd/vcd. They have a number of guides which detail the various methods of compression and burning. It's pretty likely that you'll find the tips you need there.

    1. Re:Use another compression engine? Audio too big? by towzzer · · Score: 5, Informative

      Like the other comments i recommend a high quality encoder, my preference is Cinema Craft Encoder. I've tried the nero encoder and anything i put it comes out looking quite horrible. If there is alot of noise you might need a bit of a smoother filter to help the mmpeg-2 compression. Try getting a program called avi2dvd, it does everything for you and you only need to input which encoder you'd like to use (free ones are provided).

  7. Feel free to adapt by Anonymous Coward · · Score: 5, Informative

    ffmpeg -i INPUT.avi -target ntsc-dvd 01.mpg
    mkdir dvd
    dvdauthor -o dvd -t -v 4:3 01.mpg
    dvdauthor -o dvd -T
    growisofs -Z /dev/dvd -dvd-video dvd
    rm -r dvd 01.mpg

    1. Re:Feel free to adapt by julesh · · Score: 4, Informative

      ffmpeg -i INPUT.avi -target ntsc-dvd 01.mpg

      I'd recommend, as a minimum:

      ffmpeg -i INPUT.avi -async 1 -hq -b 5000 -ab 224 -target ntsc-dvd -y output.vob

      Play with the numbers 5000 and 224 until you have an output file that'll fit on your 4.7gb disc. The formula is (number_of_seconds * total_of_bitrates) / 8 / 1024 / 1024 = megabytes of output. You'll need it to be less than about 4400. Aim for 4200 if you don't want to have to reencode if it runs too high, because ffmpeg is a variable-rate encoder that just aims for the target you specify and often seems to overestimate how much data it can put in.

      DVDAuthor's a great way of mastering the DVDs and learning to produce menus with it can be fun. Both of these programs work fine on Windows.

    2. Re:Feel free to adapt by Phreakiture · · Score: 2, Informative

      My method is similar, but looks like this:

      lav2yuv INPUT.avi | yuvdeinterlace | mpeg2enc -f 8 -o VIDEO.mpg
      ffmpeg -i INPUT.avi -ab 384 -o AUDIO.ac3
      mplex -f8 VIDEO.mpg AUDIO.ac3 -o OUTPUT.vob
      dvdauthor -o dvd -t -v 4:3 01.mpg
      dvdauthor -o dvd -T

      This will produce a set of directories like you normally find on a DVD. Now, you need to branch on whether or not the dvd directory is over4.7GB.

      If not:

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

      ...will burn the DVD.

      If it is, then you can use DVDShrink under WINE to reduce the video. At anything over 60 minutes, you will need to do this.

      --
      www.wavefront-av.com
  8. You need to author first by seinman · · Score: 4, Informative

    Basically, you need to author your DVD. Authoring takes the AVI file output of Premiere, compresses the video to MPEG2, the audio to AC3, creates menus (if you want them) and prepares and burns the entire thing. Good authoring software does a MUCH better job at compression than the crappy encoder in Nero, since these programs are designed to create only video DVDs, whereas Nero is designed to do everything (and none of it particularly well). As you're already using Adobe products, you may want to try Encore. It's their DVD authoring application. However, if you're open to other options, I highly recommend Sony DVD Architect. Both of those programs will create splendid quality results; the difference is that Adobe's Encore will give you more options (but is harder/more confusing for beginners) while Sony's DVD Architect will be much easier to learn and use (however lacks some of the fancy features that Encore provides).

    1. Re:You need to author first by friedmud · · Score: 2, Informative

      I second the recommendation of Sony DVD Architect.

      I bought the Sony Vegas Movie Studio + DVD Architect bundle and have been very satisfied. I use Vegas Movie Studio to import from my DV Camera (a fairly inexpensive entry level JVC) and edit everything together. You then "Render" your final movie... and then fire up DVD Architect.

      DVD Architect allows you to create all of the menus and add media to the disk (including moving menus, stills galleries (for jpegs), and easy Chapter menus). Then you just hit "burn" and it takes care of the rest.

      The quality is superb... I can't tell any difference between the video on the DVD and the video I watch while I'm editing the raw DV footage.

      The whole bundle is fairly inexpensive ($80-$100)... and I highly recommend it.

      I sampled _lots_ of editing software (most all have free trials) before I bought Vegas... I went with Vegas because it had the most professional "feel"... meaning that it didn't dumb down the features or do too much hand holding. It also has a great help system that walks you through some of the more difficult editing tasks (it actually uses your own video clips and points to things on the screen to show you how to get the job done... you should atleast grab the trial version and see what I mean.)

      I also like the capture program that Vegas uses the best... it actually catalogs everything (including searchable tag fields) you import. It can also remove the actual avi files while retaining the clip information... and then when you need that clip it will ask you to put in the correct tape and it will recapture it. This is great because the raw footage can take up a lot of space, so I always tell it to remove the media (and retain clip information) after I finish a project. But it's good to know that if I want to go back and change something it still remembers the clips and can recapture them.

      Anyway... enough with the free advertising... I've just been really happy with the product! Here's the website:

      http://psp.sonymediasoftware.com/Products/ShowProd uct.asp?PID=977

      Friedmud

  9. Wrong URL by Dan+East · · Score: 3, Informative

    You entered the wrong url in your browser. Instead of slashdot.org try videohelp.com.

    Dan East

    --
    Better known as 318230.
  10. This isn't piracy guys by canyon289 · · Score: 2, Informative

    Hey guys. No of course its not a rip if you guys are wondering. What kind of rip would be twice the size of the commercial dvd? Please don't think youre supporting piracy by giving me suggestions. I'd really appreciate any help I can get and thank you to whoever has already given me more possible solutions. I'll also bring you up to date on what I've done. The nero compression barfs during the credit and theres pixelation everywhere. However the audio and picture stay in sync. I've also tried Winavi but there are parts where the dvd player can't play the sound or video. Does anyone know if FFmpeg or some apple program will work? It doesn't matter what operating system. Thank you

  11. File info by canyon289 · · Score: 4, Informative

    Oh yes. Im very sorry that I forgot to mention the details. Here they are. Pixels: 720 x 480 Duration: 1:30:32 Audio Bitrate: 1536 Kbps Audio Sample Size: 16 bit Audio Format: PCM Framerate: 29 frames a second (can't lower this anymore, The movie gets too choppy) Video Sample Size: 24 bit

  12. DivxtoDVD by 1u3hr · · Score: 4, Informative
    There are a bunch of forums to get you going. Slashdot isn't one of them. VideoHelp is one of the larger, and friendlier, ones, with links to tools and such. Afterdawn has a very good archive of software.

    Simple, free, one-click solution: DivxtoDVD. Fast and easy, quite good results.

    If you want to get into it more, you need Avisynth (to load the AVI, scale it, apply filters); a video encoder (I like HCenc), an audio encoder (like BeSweet), an authoring app (like GUifor DVDAuthor, finally a burning app (use Nero or whatever came with your burner).

    These are all free Windows software, you can do it all in Linux, but it's not so user-friendly. Most Mac users tend to use commercial software.

  13. Max bitrates by sakusha · · Score: 2, Informative

    There is a fixed limit on the max bit rate, some older DVD players don't have the horsepower to decode and play high bitrate files. You can lay down high bitrate files just fine, but the player might not be able to play them. This is especially problematic for PCM files, you really should encode them as AC3, which are far lower bitrates but are essentially the same quality. There is a fixed limit on the total (audio + video) bitrate in the DVD spec, don't exceed it or you end up with stuttering files just as you described.

  14. Use a better encoder by Xesdeeni · · Score: 2, Informative

    90 minutes on a single-layer DVD should look excellent. You will use a bitrate of about 6 Mbps, which is plenty for high quality SD. But you must use a decent encoder.

    Nero's, as well as those on most all-in-one DVD edit/encode/author software are crap. The one that comes with Premiere is actually very good, but I prefer CinemaCraft Encoder Basic available at Visible Light for a mere $58. (Understand that the full version retails for over $2500 and has been used on commercial DVDs for many years.) It's not only quite good, but it's very fast. And it will plug directly into Premiere so you don't have to save that 19 GB intermediate AVI (or go through the associated additional encode/decode cycle, which also degrades the quality).

    After encoding, you must author your DVD. Adobe's Encore is good, but at $350, it's pretty expensive. I recommend DVD-Lab, the standard version of which is only $99.

    Both of these are available for trial download, so you don't have to take my word for it.

    Note that for audio, you can use MP2 for PAL destinations, even for commercial DVDs, and CCEB will do this for you. But for NTSC destinations, MP2 is not required to be supported by the players. You'll need to obtain a DolbyDigital (AC3) encoder, which is a different story (or you can use PCM, but this would force you to use a lower bitrate on the video, which would degrade the quality, so I don't recommend it).

    Xesdeeni

  15. 4 simple rules not to lose quality by Ilgaz · · Score: 2, Informative

    There are 3 simple rules not to lose quality:

    1) Perform effects, fade in,fade out etc on non compressed source never overwriting it. E.g. use "edited.avi" as output file

    2) Never upsample. E.g. don't convert to DivX, it is lossy, "final" format. Decide what media you will need and compress using regular TV specs, don't delete the source if you can. For example, if you want to output to NTSC/Progressive (which in case, camera is not HD), here is resolution specs. Anything lower loses quality, higher won't work.

    648 x 486-->Standard NTSC ( http://www.strata.com/support/3dmanual/ch13/ch13_7 .html ). If the program allows it, select also "progressive scanning" option. Near all TVs,DVD players support it. It becomes dubbed as "480p"

    3) Do not transcode. E.g. do not convert something to DivX (mpeg 4 variant) and re-convert it to Mpeg 2..

    4) Always use "multi pass" encoding. Not only the result will be smaller, it will be better quality as the bandwidth is used wherever needed.

    Your problem was, single layer DVD. As the output media lacks space , the program you used lowered quality to fit 4.7 gb media. You should use dual layer DVD or 2 DVDs (which seems like bad idea)

    I am on Mac so I really forgot/don't watch Windows/Linux programs but there is one program I can blindly suggest: TGMpegEnc. I have even seen it used in purely professional production work on windows based studios. Don't let its "plain" look trick you. It is a very advanced solution which I heard "basic" version is free.