Log in

View Full Version : Danny's Recommended Codec's! ~ Page 2


Dannyboy007
2nd July 2007, 13:02
Danny's Recommended Codec's! ~ Page 2

http://img519.imageshack.us/img519/9439/bannerhl2.png

This is Page 2 of my "guide". You can find Page 1 here (http://forum.doom9.org/showthread.php?t=127542). And this time too, I gently ask you to read through all, and let med know if there's any faults :)

================================
Great Rip- and Encoder Applications:
================================

NOTE: These programs are only my own personal preference. Either are they good or bad, but I like them.

Let's say you have a DVD movie you want to copy to your hard drive, but you can't?? That's because the DVD has DRM (http://en.wikipedia.org/wiki/Digital_rights_management) (Digital rights management) which doesn't allow you to copy. The Rip-program will then break that code, and allow you to copy it. That's what a Rip-program is.

An encoder-program is a program that is able to convert a format to another format. Convert AVI to MKV for example. Or DVD (MPEG2) to AVI (MPEG4). Those programs is dependent on codecs.

You don't need to download these programs I will list now. This is just some examples of encoder applications which is capable of converting AVI to MKV for example. When you come to Part 3 of my "guide", you will see many links to different tutorials on how to either convert movies or backup (rip) your DVDs. I will explain further about some programs in the next parts.

Rip Application: DVD Decrypter (http://www.doom9.org/dvddec.htm) or Something Else (http://www.doom9.org/descrambling-guides.htm). You can use DVD Shrink to shrink you DVD movies easy to ca. 4.7GiB (4.38 GB) if their over, of course, with some cost of quality.

1. AviSynth (http://avisynth.org/mediawiki/Main_Page).
2. MeGUI (http://mewiki.project357.com/wiki/Main_Page).
3. AutoMKV (http://automkv.wiki-site.com/index.php/Main_Page).
4. Mencoder & FFmpeg (Command lines).
5. AVI2DVD (http://www.videohelp.com/tools/Avi2Dvd)
6. MkvMagic (http://forum.doom9.org/showthread.php?t=101786)

\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
=================
FRAMESERVING - Part 2
=================
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

Frameserving is a quite nice thing. Let's say you have a DVD movie, and you want to edit it in Adobe Premiere (video editing software), but Premiere cannot open DVD files. But here comes the answer; instead of encoding the movie to AVI, you can frameserve it directly into premiere! To understand it better, you should look at these two great topics:

* How to frameserve (dvd2avi / VirtualDub / Avisynth / VFAPI) (http://forum.videohelp.com/topic87270.html) - NOTE: dvd2avi is now called DGIndex (http://www.free-codecs.com/download/DGMPGDec.htm).
* How to frameserve DVD/MPEG2/HDTV to an advanced video editor (http://forum.videohelp.com/topic261416.html).

\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
==================
Frameserving Applications:
==================
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

AviSynth (http://www.AviSynth.org) - Explanation here (http://forum.videohelp.com/topic87270.html). Or here (http://www.animemusicvideos.org/guides/avtech/amvappavisynth.html).

AviSynth is one my favourite applications. It's not so newbie friendly, but not sooo hard either. It's manual is well written too, on their website. The great thing of course is that with AviSynth you can open formats that are not supported in some encoder applications, like VirtualDub. It's great to use when encoding DVDs, and far more, like frameserving videos into video editors, just read what I have written under the Troubleshooting-part in the end of my guide.

You really need to read on their website for how to use, because I'm not going to tell everything. I'm going to show you some handy scripts, right now:

** Opening an image sequence: (http://avisynth.org/mediawiki/ImageSource)
ImageSource("C:\Images\video%05d.bmp", start=18, end = 130, use_DeVIL = true, fps = 29.97)
%05d.bmp - Means that there are five zeros in this image sequence. It starts at 18, and ends at 130.
To better explain it, it starts at 00018, and ends at 00130, because this image sequence have five zeros.

** Crop (http://avisynth.org/mediawiki/Crop) (cut borders) and resize (http://avisynth.org/mediawiki/BicubicResize):
Crop(0,140,-0,-109).BicubicResize(720,480)
OR it could be like this:Crop(0,140,-0,-109)
BicubicResize(720,480)

** AVI to DVD with proper resolution: (http://www.doom9.org/mpg/avistretching.htm)
AviSource("C:\Video\Elephants Dream.avi")
BicubicResize(720,336,0,0.5)
AddBorders(0, 104, 0, 106)

\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
=========================
VIDEO CONVERSIONS - Part 3
=========================
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

==============================
RECOMMENDED OUTPUTS:
==============================

NOTE: This is only personally what I recommend. But these outputs are actually great. And remember that you actually can mux in AAC into AVI. See how to here (http://forum.doom9.org/showthread.php?p=1020865#post1020865).

AVI - XviD / Lame MP3, AC3
MP4 - x264 / AAC or XviD / Lame MP3, Ogg Vorbis, Nero AAC. (More hardware support (http://forum.doom9.org/showthread.php?p=988930#post988930))
MKV - x264 / AAC or XviD / Lame MP3, Ogg Vorbis, Nero AAC. (Less hardware support (http://forum.doom9.org/showthread.php?p=988930#post988930))
WMV - WMV9 / WMV
OGM - XviD / MP3, Ogg Vorbis
MOV - x264 / AAC

=================================
Setting up the program settings! IMPORTANT!
=================================

1. MeGUI (http://mewiki.project357.com/wiki/Main_Page) - Update it, download Nero AAC (neroAacEnc.exe) (http://www.nero.com/nerodigital/eng/Nero_Digital_Audio.html) and remember to go to Tools -> Settings -> Program Paths and check that everything is right. Nero AAC (neroAacEnc.exe) is probably the one you manually have to set a path to. And take a look at the MeGUI Custom x264/AVC video profiles (http://forum.doom9.org/showthread.php?t=101813) if you like to. And before you start using it, check out AviSynth (http://avisynth.org/mediawiki/Main_Page), cause you'll need it.

2. XviD (http://www.doom9.org/index.html?/gknot-main6.htm) - Set up your XviD codec for a perfect good looking DVD rip or something else.

3. x264 (http://www.doom9.org/index.html?/gknot-main6.htm) - Set up your x264 codec for a perfect good looking rip or something else.

=================
DVD Backup aka DVD Rip
===================

NOTE: I recommend you to encode your DVD to 800MBs, even though you're going to burn it out on a 700MBs CD. Because Doom9 has written a nice method on how to put 800MBs on a 700MBs CD. You can find it here (http://www.doom9.org/xcd.htm). The great thing with this, is that you get even better quality ;)

* Blu-ray / HD-DVD / TS / DVD / AVI -> TO H.246 (http://forum.videohelp.com/topic333634.html) - using MeGUI.

* DVD to high quality XviD or very high quality x264 (http://www.doom9.org/divx-encoding.htm).
* DVD to high quality movie files with XviD and AC3 (http://www.bobsomers.com/articles/dvd-xvid-ac3/).
* DVD to H.264/AVC/AAC/MP4/MKV - Higher quality than XviD (http://kitty.110mb.com/dvd2avc/dvd2avc.html).

======================
MPEG-4 encodings/conversions
======================

NOTE: Use MKVToolNix with MKVExtractGUI to demux different streams easy. For example if you have an MKV file, demux the streams and encode them then properly to AVI with VDMod. Or if the MKV has XviD and MP3, just use the Direct stream copy in VDMod.

Take a look here: VideoHelp.com/Guides (http://www.videohelp.com/guides).
And a look on Doom9.org (http://www.Doom9.org) in the Guides section, and on their forum.

However, Look down and you'll see some examples of what the different programs can do;

* How to open MP4, MKV, WMV, RM, MOV, OGM with any editor (http://forum.videohelp.com/topic284288.html) - using AviSynth and DirectShow. Instead of using Windows Media Player, you can use Zoom Player (Pro), which is far more better.

* AVS to DVD (http://forum.doom9.org/showthread.php?t=126647) (Avisynt Script to DVD) - with AVStoDVD (download link here (http://sourceforge.net/projects/avstodvd/).
* AVI/OGM/MKV/WMV to DVD (http://www.divx-digest.com/articles/article_avi2dvd_page1.html) - with AVI2DVD.
* AVI to DVD (http://www.doom9.org/mpg/avi2dvdr.htm) - Doom9.org
* MKV to anything (http://www.64k.it/andres/MkvMagic%20Tutorial.html) - with MkvMagic.

* MKV/OGM with XviD & Ogg Vorbis to AVI (http://forum.videohelp.com/topic241422.html) - with VirtualDubMod.
* MKV with H.264 to AVI (http://forum.doom9.org/showthread.php?p=1013682#post1013682) - with Haali Media Splitter, MKVExtractGUI & VirtualDubMod.
* MKV with H.264 codec to XviD AVI (http://anime.nickistre.net/blog_entry/anime/2007/03/03/mkv_h_264_codec_to_avi_xvid_codec_conversion)
* MKV, OGM and AVI to DVD (Anime to DVD) (http://forums.boxtorrents.com/index.php?topic=253.0)

* FLV (Flash/YouTube) to AVI (XviD / DivX or FLV1/FLV4) (http://www.digital-digest.com/articles/FLV_to_AVI_Conversion_Guide_page1.html) - with FLV Splitter.

* RMVB (Real Media Files) to AVI or DVD (http://www.jakeludington.com/dv_hacks/20051210_how_to_convert_rmvb.html) - with VirtualDubMod.

==============================
MKV with H264/AVC (x264 and AAC) to DVD
==============================

Follow this tutorial (http://anime.nickistre.net/blog_entry/anime/2007/03/03/mkv_h_264_codec_to_avi_xvid_codec_conversion), but don't follow it further after you have done the avc2avi part! And you don't need CCCP for this. If you already have FFDShow (http://sourceforge.net/projects/ffdshow), then it's OK. And as the tutorial says, make sure FFDShow has H.264 as libavcodec in the VFW configuration. And btw, there is a GUI to avc2avi if you are not familiar with command lines. Download here (http://forum.doom9.org/showthread.php?t=89979). However, the GUI doesn't find .h264-files, only .264- or .avc-files, so you need to change the extension from .h264 to .264 to get it to work. For example:

"Video_one.h264" needs to be renamed to "Video_one.264".

Now, after you have have converted the .h264-file to AVI, close the tutorial and read on here. It's time to convert the sound to AC3, or MP3 if you prefer that. To do that, you can use one of these (http://www.videohelp.com/tools?toolsearch=&s=&orderby=Name&hits=50&convert=AAC+to+AC3&dvdauthorfeatures=&Submit=Search+or+List+tools). If you get "Runtime error '6': Overflow", then you should read this thread (http://forum.videohelp.com/topic329122.html). If that doesn't work either, then make an AviSynth script for the MKV-file, load it up in VDMod (http://sourceforge.net/projects/virtualdubmod/), and then go to Streams - stream list. Right on the sound, and choose Full Processing Mode. Right click again, choose Compression, and choose AC3 here, and then choose the quality you want to the right. If you can't see it, then you need to install AC3ACM (http://fcchandler.home.comcast.net/AC3ACM/). And the reload VDMod again. And if you're VDMod keeps crashing, then just try again and again (worked for me). If it doesn't work, then I don't know...

Now that we have finally converted the sound, we need to mux both the video (not the MKV-file, but the AVI-file) and audio. Do this by Open VDMod. Choose File -> Open -> find the AVI-file. Go to Streams - stream list -> add the sound here. Now to File -> Save as. Make sure the video box below is set to Direct stream copy, and it will saved as an AVI-file. Then write in your name and save!

Now play the video. If the audio is out of sync, then open this tutorial (http://anime.nickistre.net/blog_entry/anime/2007/03/03/mkv_h_264_codec_to_avi_xvid_codec_conversion) again. Go down to where he starts writing about the sound (shows a picture of the stream list in VDMod). Then start reading from there.

And NOW the rest should be easy. An easy way to get this video to mpeg2 now, and then author it, is to use the program
AVStoDVD (http://forum.doom9.org/showthread.php?t=126647), or someone else if you prefer.

============================
MENCODER & FFFMPEG TUTORIALS:
============================

MKV/OGM TO AVI (XviD & MP3) USING MENCODER:

Original Tutorial (http://forum.videohelp.com/viewtopic.php?t=268844#1)
I'll just going to write a new way of commanding it.

1. Install Mencoder (http://www.videohelp.com/tools/MPlayer) for Windows, and XviD and Lame MP3 of course.
2. Open notepad (Right-click > New > notepad)
3. Type in this;
"C:\Program Files\mplayer\mencoder.exe" "c:\video\video.ogm" -oac mp3lame -ovc xvid -xvidencopts pass=1 -o "c:\video\videooutput.avi"
4. Now save the file as an Batch file. File > Save as > type in Video.bat here.
5. Now run Video.bat, and wait until it's done. Done! :D

Now, if you're having like 30 movies that you want to convert, it's really boring to do this every time a movie is done. A quick adjustment in you Batch file, and you can convert automatically all the 30 movies without being on your computer. Here's the trick, which you've probably already figured out;

Type this in your text file, and save it as a batch file:
"C:\Program Files\mplayer\mencoder.exe" "c:\video\James Bond 1.mkv" -oac mp3lame -ovc xvid -xvidencopts pass=1 -o "c:\video\Video_ONE.avi"

"C:\Program Files\mplayer\mencoder.exe" "c:\video\[b]James Bond 2.mkv" -oac mp3lame -ovc xvid -xvidencopts pass=1 -o "c:\video\Video_TWO.avi"
Easy, only it takes a while when you have 30 movies. But when you're finished, you can run the batch file and relax for like, let's say, many days :)

BUT! If you don't want to convert the file into XviD, you can actually make a totally clean copy of it, like Direct stream copy in VirtualDubMod. Then you'll have to type this in instead;
"C:\Program Files\mplayer\mencoder.exe" "c:\video\video.ogm" -oac mp3lame -ovc copy -o "c:\video\videooutput.avi"

Enjoy^^
Sincerely Danny Boy

[b]Danny's Recommended Codec's! ~ Page 3 (http://forum.doom9.org/showthread.php?p=1068523#post1068523)

Special Thanks To:

neuron2 and Didée for correcting the last part :)

Guest
2nd July 2007, 13:19
But you get the point, I hope. Sorry, but no. What is the point?

Didée
2nd July 2007, 14:57
Dannyboy: By all means, DELETE the last part of your post: "Trouble converting MKV to AVI /w VdMod?"

Actually, you put a description how to do NOT, no no never!

Re-encoding the video part (to double of the original size!), only to do a vorbis->mp3 audio conversion, is plain nonsense. Also the intermediate steps are either superfluid, or unnecessarily complicated.

- Demux audio and video stream from MKV with mkvToolnix
- recode Vorbis audio to MP3 *)
- Mux original video stream & recoded audio stream with Vdub/Mod or AviMuxGUI or AviDemux or .. or .. or ..

*) actually, vorbis<-->mp3 transcoding is a technical disaster, but for the sake of getting a file with vorbis audio to play on a standalone, oh well ... :rolleyes:

Dannyboy007
2nd July 2007, 15:45
Hehe, all right guys. I deleted the last one. I remember I had some problems with extactly that MKV file. As I wrote, I took a Direct stream copy of it to AVI, since the codec was XviD, but for some reason the file didn't play properly. It was "lagging", which I found very weird. And only half of the sound got converted (Ogg vorbis to MP3) with VDMod. Either I did something terrible wrong, or it was some kind of bad with this MKV file. It must have been the MKV file, since all the other MKVs got converted easy and correct (all of them contained XviD and Ogg Vorbis). But with AviSynth I actually managed to convert the movie, and make it not lagg anymore. And I demuxed the sound from the MKV file, and then converted it into MP3 320kbps in Adobe Audition, which worked. Maybe BeSweet would have been a better choice there, but nevermind :)

The point was that if you'd had a problem like this, then maybe AviSynth could be the answer. I really like AviSynth :)

But you didn't find any other faults in Part 2? Only this one? :) Well this one isn't a "fault", just a history of what I did when I had a problem. And only one fault in my "guide" has to be a new record :D But nevermind that fault now, since I have deleted the history.

And as always, thanks for the answers :)

EDIT: And one more thing. Under the DVD Backup and MPEG-4 encodings/conversions, if you have some tutorials, give me the link, and will gladly put them on. I'm looking for tutorials for most of the things, for example MOV to AVI, AVI ot MOV and such things. My purpose here is to have links to almost every conversion of all formats.