JeganRX
Well-known member
Encoding is unfortunately one of those dark water topics that very few people seem willing to dive into; I can't blame anyone, there's a LOT of information to take in at once, and it really just takes years of practice, memorization, and developing an extremely fine eye that can scrutinize any video to pieces.
But there are a number of issues that people here seem to face on a daily basis, so I would like to explain, in as simplistic terms as possible (avoiding such things as color space coefficients, the exact graphical descriptions of telecine cadence patterns, etc, instead relying on more general, intuitive forms of these topics). I tried to create a thread almost a year ago on how to get around most encoding obstacles for free, but I never got around to finishing it, so for this one, I'll be more brief, and just list software solutions. It'll be up to you to research them.
Part 1 - Tools That Everyone Should Download and Get Used To:
x264 (StaxRip) - Undisputed king of H.264 encoding. I'm not a fan of the command line myself (though the addition of presets has made it significantly easier to encode with), so I recommend StaxRip for almost all H.264 purposes. It includes presets for many mobile devices, standalone devices, and of course, customization over every x264 parameter. MPEG-4 ASP (Divx, Xvid, etc) is also covered here if you wish, and the program can convert most audio formats for you. It has built in filters for most basic processing functions, such as deinterlacing, inverse telecine, resizing, denoising, etc, though I'll touch on that later, since I prefer to do it externally myself.
AVISynth - A requirement of Staxrip actually, AVISynth is an extremely powerful scripting language to call video, audio, images, etc, and filter them in almost any variety of ways. You can significantly, and very effectively reduce noise in your videos, you can deinterlace better than any commercial NLE can, and you can even perform proper IVTC of 24p-in-60i footage. You can do colorspace and color sampling conversions, proper interlaced scaling, and yes, even editing. I'm not a master of the language myself, but many of the best filters and scripts are easy to learn. Trust me, it can get scary, but only for the functions that some of the crazies on Doom9.org create; you'll likely never want to spend much time a lot of the slow deinterlacing and denoising functions, though some of them are indeed godsends.
AvsP - My current preferred previewer for AVISynth scripts. Since AVISynth scripts are simply text files that "load" a video, it's useful to have a previewer. The popular, but old VirtualDub (and VirtualDubMod for its AVS editor) was my former choice, but it lacks some features that AvsP has, such as autofill for AVISynth, and slider bars that load based on your input. It features tabbed scripting for better navigation.
VirtualDub - I don't really recommend this program anymore. When I'm lazy, I'll export something in Huffyuv, Lagarith, or even Xvid out of here, since it is a relatively quick way to do a test file. Get it if you must, but otherwise stick to AvsP.
Foobar2k w/ Nero AAC output, and AVISynth input - My favorite minimalist audio player, also serves as a great audio encoder. The great part is combining the .avs input filter with it so that you can directly load your AVISynth scripts into foobar and export to any format you choose. It's great if you're cutting up something in AVISynth and want to make an audio track that adheres to it, along with giving you more control over the encode. You can also get a variety of input plugins, such as AC3, which will allow you to export editable WAVs from any AC3 file you may have. Nero AAC will come with Staxrip, though if you want, you can acquire it separately (either way, you must locate the file for foobar) from Nero's website.
___________________________
Optional:
LAME MP3 - In reality, I don't consider this optional, but it's included with Staxrip if I'm not mistaken. These days, I rarely encode to MP3, but I do my occasional CD ripping, so it's useful to have for foobar2k.
FAVC - Contrary to the acronym, it's not an H.264 encoder, it's actually a quick DVD building script. Feed this program .avs scripts, configure a few tabs, and it'll spit out a very basic DVD quite quickly using HC or QuEnc MPEG2 encoders (it's up to you). Great for quick demo discs or dailies for clients.
Audacity - I assume that many of you use professional, commercial audio editors, but for most tasks, Audacity is really good. I prefer Audition for most edits since I find it more stable, but Audacity is great when coupled with ffdshow input, as it can read almost any format you want to throw at it. You can load AC3 files, edit them, and re-export them (this of course means a loss, but if you must, it's available).
ImgBurn - This is inclusive of FAVC I believe, but it's great to have on its own too. ImgBurn is exactly what every DVD burning program should be: Lightweight, simple, intelligent (it will detect if you're trying to burn a DVD VIDEO_TS folder, but have not set the appropriate file system settings), and highly configurable. It also makes setting dual layer break points very easy, offering you optimum points to perform layer switches. I don't even use any other burning tool.
YAMB - It's actually a GUI for MP4Box, but damn it, it's the best one around. It's literally a muxer, demuxer, and editor for .MP4 files. This is a great tool because you can extract streams from other file types (say, MKV or MOV), and place them into more friendly MP4 containers. You can create highly customized .MP4 files from this program, and of course, extract raw streams from MP4s. This is a must have for me, really, but because StaxRip can export MP4s on its own (presumably through MP4Box, though I'd have to check), I've placed it in optional.
MKVMerge - Another GUI frontend for a muxer. You guys may not have much use for MKV files, but I personally love them, as they are the ultimate containers for almost any format imaginable. You can have multiple video tracks, chapters that link to other video files, audio tracks in different formats, attached fonts for subtitles, many more subtitle formats than MP4 can ever support, and far greater support for more video formats. It's a dream container... and it's royalty free. Use this for your own purposes, such as backing up your DVDs. I use this a lot for my own collection, but it's mostly optional.
Stay tuned for Part 2 - What You Can Do With These Programs (AVISynth)... You won't be disappointed.
But there are a number of issues that people here seem to face on a daily basis, so I would like to explain, in as simplistic terms as possible (avoiding such things as color space coefficients, the exact graphical descriptions of telecine cadence patterns, etc, instead relying on more general, intuitive forms of these topics). I tried to create a thread almost a year ago on how to get around most encoding obstacles for free, but I never got around to finishing it, so for this one, I'll be more brief, and just list software solutions. It'll be up to you to research them.
Part 1 - Tools That Everyone Should Download and Get Used To:
x264 (StaxRip) - Undisputed king of H.264 encoding. I'm not a fan of the command line myself (though the addition of presets has made it significantly easier to encode with), so I recommend StaxRip for almost all H.264 purposes. It includes presets for many mobile devices, standalone devices, and of course, customization over every x264 parameter. MPEG-4 ASP (Divx, Xvid, etc) is also covered here if you wish, and the program can convert most audio formats for you. It has built in filters for most basic processing functions, such as deinterlacing, inverse telecine, resizing, denoising, etc, though I'll touch on that later, since I prefer to do it externally myself.
AVISynth - A requirement of Staxrip actually, AVISynth is an extremely powerful scripting language to call video, audio, images, etc, and filter them in almost any variety of ways. You can significantly, and very effectively reduce noise in your videos, you can deinterlace better than any commercial NLE can, and you can even perform proper IVTC of 24p-in-60i footage. You can do colorspace and color sampling conversions, proper interlaced scaling, and yes, even editing. I'm not a master of the language myself, but many of the best filters and scripts are easy to learn. Trust me, it can get scary, but only for the functions that some of the crazies on Doom9.org create; you'll likely never want to spend much time a lot of the slow deinterlacing and denoising functions, though some of them are indeed godsends.
AvsP - My current preferred previewer for AVISynth scripts. Since AVISynth scripts are simply text files that "load" a video, it's useful to have a previewer. The popular, but old VirtualDub (and VirtualDubMod for its AVS editor) was my former choice, but it lacks some features that AvsP has, such as autofill for AVISynth, and slider bars that load based on your input. It features tabbed scripting for better navigation.
VirtualDub - I don't really recommend this program anymore. When I'm lazy, I'll export something in Huffyuv, Lagarith, or even Xvid out of here, since it is a relatively quick way to do a test file. Get it if you must, but otherwise stick to AvsP.
Foobar2k w/ Nero AAC output, and AVISynth input - My favorite minimalist audio player, also serves as a great audio encoder. The great part is combining the .avs input filter with it so that you can directly load your AVISynth scripts into foobar and export to any format you choose. It's great if you're cutting up something in AVISynth and want to make an audio track that adheres to it, along with giving you more control over the encode. You can also get a variety of input plugins, such as AC3, which will allow you to export editable WAVs from any AC3 file you may have. Nero AAC will come with Staxrip, though if you want, you can acquire it separately (either way, you must locate the file for foobar) from Nero's website.
___________________________
Optional:
LAME MP3 - In reality, I don't consider this optional, but it's included with Staxrip if I'm not mistaken. These days, I rarely encode to MP3, but I do my occasional CD ripping, so it's useful to have for foobar2k.
FAVC - Contrary to the acronym, it's not an H.264 encoder, it's actually a quick DVD building script. Feed this program .avs scripts, configure a few tabs, and it'll spit out a very basic DVD quite quickly using HC or QuEnc MPEG2 encoders (it's up to you). Great for quick demo discs or dailies for clients.
Audacity - I assume that many of you use professional, commercial audio editors, but for most tasks, Audacity is really good. I prefer Audition for most edits since I find it more stable, but Audacity is great when coupled with ffdshow input, as it can read almost any format you want to throw at it. You can load AC3 files, edit them, and re-export them (this of course means a loss, but if you must, it's available).
ImgBurn - This is inclusive of FAVC I believe, but it's great to have on its own too. ImgBurn is exactly what every DVD burning program should be: Lightweight, simple, intelligent (it will detect if you're trying to burn a DVD VIDEO_TS folder, but have not set the appropriate file system settings), and highly configurable. It also makes setting dual layer break points very easy, offering you optimum points to perform layer switches. I don't even use any other burning tool.
YAMB - It's actually a GUI for MP4Box, but damn it, it's the best one around. It's literally a muxer, demuxer, and editor for .MP4 files. This is a great tool because you can extract streams from other file types (say, MKV or MOV), and place them into more friendly MP4 containers. You can create highly customized .MP4 files from this program, and of course, extract raw streams from MP4s. This is a must have for me, really, but because StaxRip can export MP4s on its own (presumably through MP4Box, though I'd have to check), I've placed it in optional.
MKVMerge - Another GUI frontend for a muxer. You guys may not have much use for MKV files, but I personally love them, as they are the ultimate containers for almost any format imaginable. You can have multiple video tracks, chapters that link to other video files, audio tracks in different formats, attached fonts for subtitles, many more subtitle formats than MP4 can ever support, and far greater support for more video formats. It's a dream container... and it's royalty free. Use this for your own purposes, such as backing up your DVDs. I use this a lot for my own collection, but it's mostly optional.
Stay tuned for Part 2 - What You Can Do With These Programs (AVISynth)... You won't be disappointed.
Last edited: