Saturday, October 12, 2013

Quality Test - GPU-accelerated H.264/AVC Game Recording with CUDA (with Screenshot Comparisons and Examples)

To perform game recording solely on the videocard, utilizing the high resources of today's little powerhouses sitting in our cases - resulting in high quality video and less lag while recording - sounds like manna from heaven. You might be saying, "Wait, the possibly of lowered performance hit and the possibility of a high-quality recording?.. if this is true, please stop teasing and just tell me now..". Well, dear reader, let me tell you that these things are indeed true [for the most part..].

Beginning with version 1.9.0, Bandicam (a game recording application) included support for utilizing NVIDIA's CUDA for recording your gameplay, touting high speed (less 'lag'), high compression ratio (smaller file sizes) and high quality. All you needed was a CUDA-capable NVIDIA videocard, the latest videocard drivers from NVIDIA, and Bandicam. In the most recent version of Bandicam (1.9.1) they have also included support for AMD's APP ACCELERATION and INTEL's QUICK SYNC. 

For this QualityTest, I took an NVIDIA GPU and put it through the paces of some game recording with the accelerated H.264/AVC codec (as opposed to the CPU-based x264 for example), using Bandicam [which at the time of this writing, to my knowledge, was the only game recording app that could utilize accelerated/gpu-based AVC recording] to test things out. Here are my findings, shared just for you.


An example of an NVIDIA CUDA encoded game recording, this is a frame extracted from the CUDA-produced output file (Unigine Heaven Benchmark Test @ 1080p). Click to see Full Size


Overall, recording with the GPU gave good performance (low performance hit / lag), fairly small file size output, with decent quality [surprising to anyone that has compressed video with CUDA in the past, I know, more info below]. It was only with certain games that the performance suffered (although this may be more the fault of optimization with the game's engine and not NVIDIA's programming) and it was slightly disappointing that the performance wasn't "that much faster" than other codecs [more info at the end about that]. For the most part however, game recording "live" with the GPU and directly encoding to a file using a compatible videocard is indeed nice and fast and produces comfortably-small footprint file sizes.



What file sizes are we talking about here? 



I haven't looked at the specs for the codec and how it's utilized, but from what I can quickly see on the surface, it is using the h.264/AVC codec with my NVIDIA GPU, with Deblocking enabled and with a keyframe/I-frame inserted every 5 seconds. That doesn't leave 'a lot' of headroom for compression (x264 AVC usually defaults to 250-300 frames between keyframes which, at 30 frames per second, is more like 10 seconds to 'play with' for compression); but it still gave a nice small filesize when recording with VBR (Variable Bit Rate), where it would compress slower-motion areas and scenes when it could and increased the bitrate (to try to keep apparent quality) when needed in faster/high-motion sections.


An example of an NVIDIA CUDA encoded game recording, this is a frame extracted from the CUDA-produced output file (Battlefield 3 @ 1080p). Click to see Full Size


Just below, you will find some data samples of game recordings that were done at incremental quality settings, showing the average bitrate of the recording overall and the sizes of the files produced as output
[(i)all game samples were recorded with accelerated/gpu-based H.264/AVC generated by NVIDIA's CUDA at 1080p unless otherwise indicated (ii)although test recordings varied in length between games, throughout each game title, all 4 tests of the same game were done with the same elapsed time]:


Recorded Game TitleQ. settingAverage BRFilesize
Batman: Arkham CityQuality 100(~75000 kbps)753 MB
Batman: Arkham CityQuality 70(~22000 kbps)224 MB
Batman: Arkham CityQuality 50(~10000 kbps)104 MB
Batman: Arkham CityQuality 20(~5000 kbps)59 MB
Unigine Heaven BenchmarkQuality 100(~120000 kbps)1390 MB
Unigine Heaven BenchmarkQuality 70(~48000 kbps)551 MB
Unigine Heaven BenchmarkQuality 50(~24000 kbps)276 MB
Unigine Heaven BenchmarkQuality 20(~11000 kbps)140 MB
Diablo IIIQuality 100(~22000 kbps)44 MB
Diablo IIIQuality 70(~9000 kbps)20 MB
Diablo IIIQuality 50(~5000 kbps)12 MB
Diablo IIIQuality 20(~4000 kbps)9 MB
Alien Versus Predator (PC-2010)Quality 100(~110000 kbps)380 MB
Alien Versus Predator (PC-2010)Quality 70(~37000 kbps)126 MB
Alien Versus Predator (PC-2010)Quality 50(~18000 kbps)66 MB
Alien Versus Predator (PC-2010)Quality 20(~8000 kbps)28 MB
Minecraft (Standalone)Quality 100(~47000 kbps)44 MB
Minecraft (Standalone)Quality 70(~27000 kbps)25 MB
Minecraft (Standalone)Quality 50(~13000 kbps)12 MB
Minecraft (Standalone)Quality 20(~7600 kbps)7 MB
Lord Of Ultima (Browser Game)Quality 100(~ 24000 kbps)59 MB
Lord Of Ultima (Browser Game)Quality 70          -      -
Lord Of Ultima (Browser Game)Quality 50(~7000 kbps)20 MB
Lord Of Ultima (Browser Game)Quality 20(~3000 kbps)11 MB
Lottso Express (Browser, 384p)Quality 100(~870 kbps)10 MB
Lottso Express (Browser, 384p)Quality 70(~320 kbps)7 MB
Lottso Express (Browser, 384p)Quality 50(~225 kbps)6 MB
Lottso Express (Browser, 384p)Quality 20(~164 kbps)5 MB
table code created by Danny Sanchez (journalistopia.com)

As you can see in the table above, due to the nature of Variable Bit Rate recording, setting a quality figure of "50" does not produce 'exactly one-half' of the bitrate or filesize of a "100" quality setting. The codec is adjusting as needed and where required, allocating more bitrate to complex areas and changes between frames, to help keep "apparent quality" near the desired estimate. Configuring the Quality setting of "100" is essentially telling everything to keep as much detail as possible - but it will only do so within the limitations of the codec being used (in this case, AVC) and how it is configured internally (the calculation time allowed per frame, the buffer allowed, etc), depending on how the developers have programmed it to encode.


An example of an NVIDIA CUDA encoded game recording, this is a frame extracted from the CUDA-produced output file (Minecraft @ 1080p). Click to see Full Size


Overall, it seems that with CUDA, the file sizes are kept comfortably small - especially compared to a FRAPS or DXTORY codec recording. The bitrate doesn't stray too far from a 100,000kbps maximum (about 12 MB per second of video data) despite how much action is going on in the game at the time. At that bitrate, a half hour of straight recording would take up only about 22GB. Not too bad, especially if you are creating long recordings or can't afford that 4TB drive upgrade just yet. A Blu-Ray disc title typically uses a bitrate of 25,000-50,000kbps, so a GPU-based/accelerated recording is still allowing for more than double that bitrate to try to represent what is happening on the screen in viewable quality.



So then, what is the quality like?



Normally, if you ask anyone about quality who has used GPU-acceleration together with words like "video editing" and "compression", they will tell you: "It encoded faster, but the output looked craptacular..". I myself have tried off and on in the past to compress videos for myself and others with acceleration and every time I tried CUDA or AMD's APP.ACCEL for the final AVC output I was disappointed at the blotchy, blurred, 'macroblock-y' mess that comes out, unless I allow for a much larger bitrate than intended (and receive a correspondingly larger file size). Somewhat surprisingly then, it was nice to find that I did not need to confine myself to "100% Quality" and always expect huge filesizes with GPU-based game recording to get decent viewable quality, suitable for sharing.

A side-by-side comparison of four CUDA quality settings (100%, 70%, 50%, and 20%), these are frames extracted from the CUDA-produced output file (Batman: Arkham City @ 1080p). Click to see Full Size






As can be seen in the screenshot comparison above, decent quality can be maintained at the 100% Quality setting, despite the speed of the encoding being done with H.264/AVC. I was pleasantly surprised, to be honest. Of course, Videophiles will notice slight Posterization and light MPEG-compression artifacts (such as Macroblocking) occuring even at 100% Quality if looked closely for; but for the majority of people, a quality setting of 100% (even down to 80%) should be found quite acceptable. I personally found that at 70%, the compression artifacts became more noticeable, especially the 'trails' that occur from the lossy Vector Quantization (the codec keeping track of where things are moving around between frames), which is why I chose 70% as the 'next notch down' on these tests. At a Quality setting of 60% and any setting below that, these 'trails' left behind are very apparent and in my personal opinion I do not recommend going below 60% for GPU-based game recording at this time, as the quality loss and compression artifacts become too obvious and may remain apparent even in a final render after editing.

An example of an NVIDIA CUDA encoded game recording, this is a frame extracted from the CUDA-produced output file (Diablo III @ 1080p). Click to see Full Size
The screenshot above is a frame taken from a CUDA-produced Diablo III game recording. Even during a busy moment, with many things happening quickly on the screen, clarity seems to be maintained at a decent level, even the somewhat-hard-to-compress 'Red Text On A Dark Background' - and this video clip was recorded at the 80% Quality setting. Although some macroblocking is beginning to occur in the darker/flatter area of the upper left (as the codec attempts to keep detail in the high-motion areas by compressing the more static areas of the screen to a higher degree), the darker/flatter toolbar and stone floor overall do not seem to be suffering excessively.  [As always however, my personal opinions on quality are mere suggestions based on my own tests and I encourage you to do a bit of your own testing, to find out what settings you would like to settle on and use for your projects]

Since the desktop/GUI can also be recorded with Bandicam, I decided to try record a web browser game with the GPU as well, for the people out there who like to record these games. I recorded two free online games, Lord of Ultima (a city/area building game) and Lottso Express (a bingo-style game), both of which are 2D (flat, board-like), which I thought would be a good example of more static detail (low-motion) compression.
An example of an NVIDIA CUDA encoded game recording, this is a frame extracted from the CUDA-produced output file (Lord of Ultima, a web browser game @ 1080p). Click to see Full Size

Lord of Ultima takes up the entire desktop in this large example of low-motion/static area handling by the accelerated codec. The game, captured above, is largely non-moving, especially the toolbars and left portion of the screen. Recorded at GPU-encoded 100% Quality, the toolbars are clear, text is very readable, and even the darker, static area of the Town Hall pop-up is clean and macroblock-free (very little compression artifacts throughout the entire screen), very nice.

A side-by-side comparison of four CUDA quality settings (100%, 70%, 50%, and 20%), these are frames extracted from the CUDA-produced output file (Lottso Express, a web browser game @ 384p). Click to see Full Size

Lottso Express runs in a small window, so I tested out recording at the exact resolution of this window (576x384) to see how gpu-acceleration handles lower resolutions. The differences inherent in the four Quality settings, in each of the four extracted frames from the CUDA recordings above, is shown. Although the top section/frame is quite clear (at 100% Quality), it quickly degrades as the quality setting goes down, but the recording still remains watchable. In my opinion, if one is recording just for themselves for fun, or just to share with a friend quickly, even a recording level as low as 60% quality may be acceptable when recording a low-motion 2D game with gpu-accelerated encoding; but I still recommend not going below the 70% Quality setting when recording a 3D (high-motion) game, to maintain enjoyability and clarity when using gpu-accelerated recording (such as CUDA, being used here).
 [My tests presented here are only done with CUDA, as I do not own any other videocards capable of gpu-based recording at this time. Output quality may vary when recording with AMD's App Acceleration or Intel's Quick Sync. As always, I suggest doing a few short tests yourself to see what codec and settings you personally would prefer]


What are the configuration settings that can be changed? 



There was not much available to configure, as far as the Quality settings and configuration, within the game recording application (Bandicam) at the time of this test. Certainly not as much as the x264 codec, with it's VFW interface, that has been developed over time by generous programmers/contributors. For CUDA, you can choose between Variable Bitrate and Constant Bitrate (allowing CBR if you wish to more precisely estimate the file size) if you wish, and you can utilize the CPU to assist with recording and compression as well, but that's about it. This may be a limitation in CUDA itself however, as I contacted Bandicam developers to see if there would be any deeper configuration options for the codec that CUDA is using (such as Deblocking settings and Partitions) and they got back to me stating that there were no other configuration options of that type available to include, at this time.

The interface for CUDA recording found within Bandicam's Video Format settings. 

As of the most recent version of Bandicam (announced at the Bandicam website just days ago), they have added the option to change the Keyframe Interval (the frequency of Information Frames within the Groups Of Pictures, which helps with things like 'trails' or corruption from compression) and the ability to change the FourCC identifier, both of which will make the recording more compatible with video editors such as the Sony Vegas and Adobe Premiere lines of products. I am proud to say that I did a lot of compatibility testing previous to this on my own and submitted my findings to the developers of Bandicam, just in case they were interested, which contributed directly towards this recent addition to their application. Information on my tests and findings, for those interested, can be found in these articles, here:
http://gametipsandmore.blogspot.com/2013/05/game-recording-with-mpeg-4-using.html
http://gametipsandmore.blogspot.com/2013/06/and-more-how-to-stop-trails-and.html
http://gametipsandmore.blogspot.com/2013/06/and-more-game-recording-for.html
http://gametipsandmore.blogspot.com/2013/06/and-more-how-to-record-with.html
http://www.bandicam.com/forum/viewtopic.php?f=14&t=1687&sid=06b9cdb4450af00f3d33fb4306963f6f




As always, remember that if sharing your video on streaming sites (which limit bitrate) and uploading sites (such as YouTube), your video will be recompressed [converted again] at settings much lower than your production video and detail will be lost (blurred/smoothed and show Macroblocking) due to  the nature of recompression. Therefore, if wanting to save time, there is no need to create and upload huge-bitrate, finely-detail video, as can be seen in this comparison of an uploaded YouTube video and the output that people will be seeing afterward:
A side-by-side comparison of frames extracted from the Original Uploaded Video (Left), YouTube's 1080p Compressed Video (Middle), and YouTube's 720p Compressed Video (Right), showing loss of data/detail due to recompression.
(Diablo III @ 1080p, high-motion scene, moderately-detailed game engine)
Click to see Full Size



How about performance?



I don't usually talk much about performance when I do QualityTests or TestRuns, except for maybe a short paragraph on my own experiences or a "Personal Short Version/Opinion" section at the end. The reason is, every system is different and everyone has their system configured in different ways. I could say that GPU-recording ran great for me, but then someone with a laptop running a non-dedicated videocard will tell me how wrong I am and that it doesn't run well at all. I could say it lagged me out all the time, but there would be many who could run the same thing with no problems. A quick look at any Technical Support area of any forum anywhere is evidence of the fact that even with the same hardware, there are a bunch of people who will have no problem at all and a bunch who will be having no joy. So, I mainly leave the issue aside but I sometimes mention how it seemed to run for me and [especially if anyone asks directly] I would be happy to provide more information to those who want to know more about it.

For me, performance while recording with the GPU was a mixed bag. For the most part it seemed to work fine, but there were a handful of games that just didn't like it as much. Some were choppy or laggy when I began recording. The theory is, that recording with the many cores of a GPU, processing and encoding a frame to a file should be more streamlined, but in practice it seems to take more resources from the videocard itself than I expected. Perhaps it is due to needed optimization of the games or drivers, or perhaps it is my 'older' videocards that are beginning to get on in years (I was running two GTX 560 Ti's in SLI mode during these tests). I did find that some games preferred non-SLI mode when recording with CUDA (such as Diablo III, if I remember correctly) and things were smoother when recording that way; but for the most part, accelerated recording ran with about the same responsiveness as [and in some games, slower than] my own optimized settings for the x264 iteration of AVC. Not long ago, I spent a bunch of time testing and tweaking x264 to record with the H.264/AVC codec, finding the best settings for speed while maintaining quality - and in light of the performance I was able to tweak out of x264 - GPU-based-recording didn't impress me much [if talking strictly about performance hit here]... perhaps I'll end up just using my settings with x264, for now.

For more information, tests and tweaks that I did over time with h.264/AVC and the x264 codec, feel free to check out these articles here at the blog (some are the same as the above asection):



An example of an NVIDIA CUDA encoded game recording, this is a frame extracted from the CUDA-produced output file (Allods @ 1080p). Click to see Full Size



Overall, recording with gpu-acceleration was pleasantly surprising. Quality (at 100%) was better than I expected from it (it does taper off quickly as you lower the quality setting, however). The file sizes were comfortably small (about 25GB for an hour of recording at 70% Quality, about 45GB for an hour of recording at 100% Quality). The performance was a mixed bag for me, but for most games it was indeed fast and could get the job done. So, in essence, it managed to deliver on all promises. Not bad at all.


Have fun recording with your GPU and See You In The Games!



Monday, September 23, 2013

Battlefield Play4Free - PlayTesting The XM8AR LMG (3 Full Rounds - Myanmar, Dalian) Raw Gameplay [Unedited] Gameplay Video



Battlefield Play4Free is a Free-To-Play title, where it doesn't cost anything to join in, but you can purchase weapons, armor, clothing and other items for Real Money by purchasing Tokens (now called Play4Free Funds) that you can then use in the in-game Store. There is also a nice feature where you can win prizes (weapons, armor, clothing, etc) from a game called The Daily Draw, where you choose a card from a random draw of eight and it will generate an item for you.

The items range from temporary one-day use weapons and clothing, to seven day usage, to permanent items your character (Soldier) can use in the game forever (for example, a scope that can be attached to a gun for that soldier for all time). This is great for those who can't afford to purchase many in-game items, as it not only offers the possibility of getting some great gear 'forever', it also gives a nice preview of a weapon, mod or clothing, so that you can see what it will look like/feel like, if you decide to splurge and purchase it for yourself (supporting the game and developers as well) sometime in the future.


I recently won the XM8AR in The Daily Draw (for one day of use) on my Medic and thought I'd try it out and see how it felt and quickly write a post about it [I'll call these PlayTests]. I am not a gun expert or know a lot about the statistics of the guns, but I will discuss briefly here how the gun actually feels and plays, especially compared to the Medic default, the MG3 Light Machine Gun. I played a few rounds with XM8AR LMG and recorded the first three full rounds. Here they are, shared unedited for you [a 'Raw Gameplay' video]:



Recorded with: Bandicam @1080p (HD) using the x264/H264/AVC Codec
Recorded game: Battlefield Play4Free (MMOFPS, a F2P game/Microtransactions)
Recorded levels/maps: Myanmar (Jungle, Assault), Dalian Plant (Rural Industrial Port, Defense then Attack)

[YouTube did something with the Aspect Ratio of this video and I had to use a command in the Tags section to fix it. Let me know if anyone has problems viewing this video properly]


Normally locked until Level 15, the XM8 felt great to use on my Level 10 Medic. It's ammo box is a little smaller at 60 rounds (vs. the default Medic's MG3 having 80 rounds), but it never felt 'cramped for shots' and didn't feel like it took too long to reload.
The XM8AR Light Machine Gun is normally locked and cannot be used until your Soldier is Level 15, unless it is bought outright or won in The Daily Draw. Click to see Full Size


The nicest thing about the XM8 was the accuracy. You could really tell you were going from the "Low" rating of the Medic Default MG3 to the "High" rating of the XM8AR.
Comparison of basic stats between the default Medic gun, the MG3, and the XM8AR


Looking down the sights, the three-prong irons of the front sight are quite thin and easy to line up in the view of the rear sight, which is in the form of a circle. There is only a little bit of a pull up and slightly to the right, but the recoil is very small and easy to compensate for once you get used to it. I even felt comfortable shooting from the hip and at a distance because this gun felt so darn accurate compared to the starting weapon for a Medic.
The thin front prongs of the iron sight feel easy to line up for targets farther away and the XM8AR feels like it is very accurate, as can be seen by this Headshot from across a courtyard in Myanmar. Click to see Full Size


An all around great gun, it was fun as hell to use for a day. For only 300 Credits you can try out for a day of play, too. If you have 1250 spare Play4Free Funds you can purchase it permanently. It is a nice accurate gun to run with and may be worth it. Try it out for yourself sometime.


Have fun and See You In The Game!


Disclaimer: Any gameplay videos or animations uploaded are only one example of one possible path of game play and is not representative of the gameplay experience of the entirety of the game material as it is non-repeatable in exactness (movements, actions, viewpoints, etc) to a high degree of accuracy (especially in regards to online multiplayer play and interactions) and therefore is not a representation of a large portion of the game content (this includes complete Walkthroughs/Playthroughs, Raw Gameplay Footage and Tutorials). All material and content uploaded attempts to respect copyright and is presented for Educational and Entertainment purposes only, utilized under Fair Use and can be construed as Free Advertising. No copyright infringement is intended and cannot be inferred. Any possible representation approaching any infringement, to those seeking infringement action, requires double notification and will be honoured by permanent removal of the infringing material. This information exists for entertainment and educational purposes only and is not a substitute for medical attention.

Wednesday, July 17, 2013

Game Tip - Rollercoaster Tycoon 3: Changing The Game Display Resolution


Just a quick tip for Rollercoaster Tycoon 3 (and any Expansions you may have installed): To change the resolution to match your monitor's native rez or to bump it up higher, simply edit the Options.TXT file found at

Computer > [WindowsDrive] Disk C > Users > [UserName] > AppData > Roaming > Atari >RCT3

(See the screenshot just below, my 'username' was "Tr")
The location of the Options text file that allows you to edit the resolution the game will run in (Windows7)

Another way to get to this location in Windows is:
  1. Click on the Start button, then click on Run [or press 'WindowsKey+R']
  2. In the command box that comes up, type "%appdata%" (without the quotation marks) and it will open Windows Explorer at the folder >Roaming - then all you need to do is navigate into the Atari folder, then within that, the RCT3 folder - and you will be at the same location as the above, where the Options.txt file can be found
Note that you may have to show Hidden Files in Windows in order to see some of the folders (such as AppData). To do this:
  • In Windows Explorer, click on the Tools pulldown menu and select Folder Options.
  • In the Folder Options window, click on the View tab
  • In here, under the Advanced Settings section, where it says 'Hidden files and folders', select the 'Show hidden files, folders, and drives' Radio Button
  • Also, take out the checkmarks for the next 3 'Hide' selections (Hide empty drives, Hide extensions and Hide protected files)

Here's what the checkboxes, etc look like:

After the steps above, you should be able to now navigate to the RCT3 folder that has the Options.txt file with the resolution setting inside (open it with Notepad or your favorite text editor). You'll see the setting near the beginning of the file. Simply change those numbers to the resolution you wish to use - that's all.

Have fun and See You In The Game!

Tuesday, July 02, 2013

Quality Test - H.264/AVC Game Recording with the x264 AVC Codec, with the goal of Quality (with "2K" HD Video Samples from Four Games)


In an earlier post about game recording with H.264/AVC (MPEG-4 Part 10) here, I went somewhat in-depth about concepts and considerations for the various settings and why you might want to use them or leave them as they are. With plans to make a "short version" of why you might want to use some settings over others (and setting recommendations geared more towards Speed of recording, reducing lag/choppiness) in the near future, for now, enjoy this short sampling of some game recordings done with H.264/AVC - this time with the goal of increased Quality in mind as well - showcased using four different games and presented in 2K Resolution (2048x1152p):

Clicking the Gear icon in YouTube's player and choosing 'Original'/1440p, while still Youtube-recompressed, is the closest to the original upload in viewing quality (You may need to click on the YT logo and watch it at YT to enable the Quality Setting)

Recorded games:
Battlefield 3 (Grand Bazaar), Planetside 2 (48+ Players Per Side in a BioLab territory, Night), Hitman: Absolution ('Run For Your Life, Shangri-La'), Grand Theft Auto 4 (Broker area, Night)
These games were selected because I felt they created a good 'obstacle course' for this codec Test, with light and dark areas, large panning/movement areas and hard edges to deal with, either from on-screen text or finely detailed textures [all Texture Filtering was turned Off in the Videocard Control Panel settings] (they were also all relatively demanding games, showing then, the low performance hit of this codec, with these settings)
Recording codec:
H.264/AVC configured with the x264 Video For Windows Unofficial (Black Logo) interface (the XiWave GNU GPL MPEG-4 Codec)
Recording settings:
CRF18, NoPartitions, Fast P-Skip, 1 Reference Frame, Diamond ME, ME Range 4, Subpixel ME 1, GOP 1 (for editing with Vegas/Premiere), NoWeightedP-Frames, No B Frames, Deblocking Filter (Strength 1), Non-Interlaced, No CABAC, DCT Decimation, No Trellis, Deadzone (11,21), Flat Matrix, MaxBitrate 50000k (Buffer 5000k), Threads 4, all other settings left as Default/Off
Recording compression:
Originally recorded @ 50000kbps, H.264/AVC format @ HD Resolution (1920x1080p)
Compressed @ 25000kbps for smaller upload to YouTube, WMV format @ 2k Resolution (2048x1152p), in attempt to keep detail/compensate for YT recompression
[The 'analog pause' effect wasn't added to accentuate any specific action going on at the time, it was more to showcase the detail maintained at that time/frame, when recording with the h.264/AVC codec] 


At a max bitrate of 50000k (a high quality Blu-Ray movie bitrate), the original recorded output takes up about 375MB per minute of recording. For an hour of gameplay, that's less than 25GB (including uncompressed audio (uncompressed to be more compatible with video editing apps and use less CPU resources while recording)). Maintaining good quality - although quality is relative, mind you - that is still about one-tenth the filesize of a FRAPS1 codec recording or a YUV or Lagarith codec recording. Chalk it all up to a powerful codec that has the ability to not only compress more where it can (without over-compression in dark/flat or low-motion areas), but also compensates for its' own compression via Deblocking and other built-in techniques.

Doing a quick test without the self-compensation capabilities found within the codec (turning off Deblocking, CABAC, etc), the output has macroblocking and other artifacts occurring, as can be seen in this screenshot:
An example of the internal filtering/compression-compensation found within the h.264/AVC codec, two frames taken directly from two h264/avc recordings, done one after another in the same area in the same online game
(Rift, recorded @ 1080p).
Click to see Full Size (cropped and zoomed source)
The two frames above are from videos shot close together in time, at the same bitrate, resolution, everything... The only difference between the two is that the left side has all filtering/compensation for compression that the codec can perform 'OFF' and the right side has CABAC, Deblocking and other compression/correction techniques 'ON' (Deblocking within the codec was set at only +2+0, as higher Deblocking settings have the effect of excessive smoothing.. [but if you don't mind that or you like the look of it, you can turn up the Deblocking to a maximum setting of +6+6, with a small hit to recording performance]).

These powerful compensators for compression come at a tradeoff however, as the more that you turn on, the longer the codec will take to scrutinize the frames and the slower the compression/output will be. This results in 'lag' both in the game and in the output video, as the resources of the system are directed more towards analysis and compression of the recording, where doing the calculations on the frames, then writing them to disk, can cause the recording to fall behind what is actually occurring on the screen. Also, turning up too many compensators/filters within the codec can result in a 'washed-out' (or at least excessively-smoothed out) video, meaning higher loss of detail.

So, are you stuck with only either crappy looking video or too-smoothed-out video output? Not at all. There are two main directions you can go with your h264/avc game recording (which one you decide on is limited somewhat by your system capabilities):

  • On the one hand, you can have small filesizes, allowing you to record longer and more video. You can turn up the analysis and compensation techniques within the codec (Deblocking, Motion Estimation, CABAC calculations, Partition Analysis, etc) - as much as your system can handle, but not too much or you risk excessive smoothing, lag and other effects - and still end up with good quality game recordings.
  • On the other hand, you will have larger filesizes, but if your system cannot handle the extra analysis and calculations of the codec, you can turn off these compression/compensation techniques and also gain more speed/performance [less 'lag' during gameplay and in the video output - this may also result in more detail being kept from the original source]. All you have to do is allow more Bitrate (setting a lower CQP or lower CRF, if you are using those) to more accurately represent what is occurring on-the-screen/in-the-frames, so that you don't get compression artifacts (as in the left portion of the screenshot above) - and still end up with good quality game recordings.

What settings to use, then? I will present the settings I settled on, after much testing; but again, these were done on my system, with the limitations that includes for me. You may have a more powerful or lesser so system, but all it will take is a few tests, changing a few settings each time, to see what kind of quality you can arrive at, with the balance/tradeoff of performance hit you are willing to tolerate.


Although JPG-compressed for posting, it can still be seen in this frame extracted directly from the H.264/AVC game recording (Hitman: Absolution @ 1080p), that decent quality can be maintained, despite the ability to record in smaller filesizes, with this codec and these suggested settings for the x264 interface.
Click to see Full size


There was only a light performance hit for my system with these upcoming settings, usually only a couple frames per second (averaging about 5fps loss, depending on the game/area being played); but it may depend on the 'overhead space' that you have running a game already. What I mean is, if a game is already chugging along for you, you may not be able to use or turn many things on with this codec (it can be much more demanding, as the different processing options get turned on). Along that same line of thought however, if you are able to run a game you want to record smoothly already, you should have no problem trying out this codec (esp. with my suggested settings). Since that was the case with many of the games I was playing with at the time [although games like GTAIV are always choppy haha], I will list the basic system specs that were used during the time of this Test:

AMD FX-6100 CPU @ 4.0GHz
AMD/ATi Radeon HD 6870 GPU (1GB VRAM) @ 950MHz
16GB Patriot "Gamer" RAM
all on a Gigabyte 990FXA Chipset Mainboard
running Windows7 64-bit
recording to two SATA III harddrives set up in RAID 0 (~233MB/s throughput, according to Dxtory)

I also managed to perform these couple of quick tests, as a comparison of the performance hit to be expected when recording with this codec and these settings on some other systems (CPU/GPU combinations listed):

Unigine Heaven Benchmark
6-core CPU / HD 6870 GPU ~1-3fps
4-core CPU / GTX 560 Ti GPU ~3-5fps
2-core CPU / GTS 250 GPU ~5fps

Rift (Online MMORPG)
6-core CPU / HD 6870 GPU ~1-3fps
4-core CPU / GTX 560 Ti GPU ~ 5fps
2-core CPU / GTS 250 GPU ~5fps

Not bad, in my opinion. These settings seem to work well, no matter what combination of hardware there was. Hopefully this will be the same for you, dear reader.


So then, just below are the settings I normally use when recording with the H.264/AVC codec. I might change things a bit for certain games that look vastly different, such as, if I wanted to keep the grain in the Left4Dead series of games or if I was recording a solid-coloured/static-area looking game like Minecraft or Web Browser games. For the most part however I use these settings, both for maintaining good quality and keeping disk space usage relatively low (at least, far lower than using the FRAPS1 codec, Lagarith, or a YUV codec).

[Note that I have chosen to use a GOP (Group of Pictures (Frames) (called "keyint" in the bottom example)) of "1". This is for editing compatibility with Vegas/Premiere and is optional if you are not using these video editing applications. Feel free to change the "1" in this setting to the Codec Default of "250", or as desired. For more information on this, especially if you plan to edit the recordings with Sony's Vegas or Adobe's Premiere lines of products, see this post earlier, here]

When using the 'Unofficial' (Black Logo) x264 Video For Windows interface to configure settings:





When using the 'Official' (Red Logo) x264 Video For Windows interface to configure settings:

For the official/redlogo interface, choosing the Ultrafast Preset configures many settings that are the same as the above prior three screen captures, seen using the unofficial/blacklogo interface. The command line area (box at the bottom) where things are typed in, change the remainder of the settings so that they end up the same as the other interface settings in the prior three screen captures above.


As you can see, these settings can be configured using the x264 interface for the codec, so no matter what game recording program you use* - be it Dxtory, Bandicam, MSI's Afterburner, etc - you will be able to choose these settings, adjusting for your own tastes as you prefer (or adjusting to be within your hardware limitations). 

[*The game recording application must be able to use 'external/third-party codecs', i.e. other codecs not included with the program itself, that you have installed on your system, in order to utilize the x264 interface for the h264/avc codec]


For more detailed coverage of the settings used when recording with h.264/AVC [in an article that focuses more on speed of recording, reducing 'lag'/choppiness], where to download the codec/interface and how to start using it in Dxtory, Bandicam and MSI's Afterburner, see this earlier post here at the blog:
http://gametipsandmore.blogspot.ca/2013/05/game-recording-with-mpeg-4-using.html


Please note dear reader, that I am not saying "This codec is the best one to record with" or "use this one only".
I am merely showing that it is possible, or how to tweak it for quality or file size, as to your own personal preference.
There are many codecs out there to choose from when game recording and although some are more apt for certain types of games than others, overall it is your own choice to use whichever one you prefer. Do some short tests and see which one works best for you and your current system - and try to have fun with it



Have Fun Recording with H.264/AVC and See You In The Games!



Sunday, June 23, 2013

Game Tip - Planetside 2: Missing Terminal Panels/Displays with Anti-Aliasing Enabled (Fix/Workaround)

Just a quick tip for Planetside 2 that I meant to post a while back: If you have Enabled AA through the Control Panel of your Video Card (NVIDIA or AMD/ATi) and can no longer see the display screens of the Vehicle/Resupply Terminals or other transparency effects (and if you want to keep AA enabled and see them), all you have to do is go into the in-game 'Graphics' Settings and adjust the 'Render Quality' - even just knocking it down from 100% to 99% will allow them to show up again - a screenshot example of the setting and the result is below
Have fun and See You In The Games!


Sunday, June 16, 2013

Game Tip - Minecraft: Seed with Village at Spawn II


Just a quick tip for Minecraft I've found: another seed that generated a helpful Village near the Spawn Point! I think I typed in "bobvilla" lol but I'm not 100% sure so here is the seed number: 1643249337 and it is in the screenshot below. Beware, as (perhaps fittingly) it is a 'fixer-upper'... Also, for those that don't know yet, you can't quickly see the Seed for games by just hitting F3 anymore, you need to hit / and type seed, to make it say /seed and then hit Enter
Have fun and See You In The Games!

This view is from just above the Spawn Point. The Village/Town can be seen poking out from behind the trees on the right side of the screen. Beware, it's a 'fixer-upper'... Enjoy! Click to see Full Size


Wednesday, June 12, 2013

And More: How to record with H.264/AVC/x264/x264vfw (MPEG-4 Part 10) so that your video clips will open in Sony Vegas and Adobe Premiere (Short Tutorial/Example Video)


Originally created to show an example of what to change so that your game recordings using the H.264/AVC/x264/x264vfw (MPEG-4 Part 10) codec will open up in Vegas, this also works for Premiere, Lightworks and other NLE's (Non-Linear Editors), for those who were having problems editing.

In this example*, I am recording with an x264vfw (Komisar's Unofficial, Black Logo) interface**, which sets up h.264/AVC encoding, used as an "External Codec" in Bandicam:

*Just a silly version of the video, sorry for taking up your time with this little joke
Summary of Video: Within the x264 Video For Windows interface, change the FourCC code that x264 is recording with [think of it as the 'UPC label' or 'QR tag' for the videos] to a code that these video editing apps can recognize natively. That's all.
Now, you should be able to import all your future game recordings into Vegas and Premiere without problem...


Ok, for a truly easy-to-follow video, that shows examples of how to set the code for Bandicam, Dxtory and Afterburner, look no further than here:

The true version of the video, showing how to adjust the setting required


As you can see, because the main setting to change occurs within the x264vfw interface itself, this change can be utilized no matter what game recording program you prefer to record with (Bandicam, Dxtory, MSI Afterburner, etc.)


**If you are using the 'Official' version of the x264vfw codec interface (Red Logo), the setting to change is indicated in this screenshot below:



»» Note: 
When editing the x264vfw codec with NLEs (Non-Linear Editors) such as Sony's Vegas line of products and Adobe's Premiere applications, you may experience artifacts such as 'trails' or 'corruption' unless you set the GOP setting to "1", which will make "Intra-frame only" encodes. This will encode frames that do not depend on surrounding frames, containing all necessary data within each frame itself (similar to how the MJPEG codec operates, requiring more bitrate/filesize, but MPEG-4 still uses less bitrate overall), which alleviates this problem.

This seems to only occur with Vegas, Premiere, Lightworks and similar products when using MPEG4, but does not occur with most other video editing applications (tested with Windows Movie Maker, CyberLink's PowerDirector, Nero Video, Avidemux, VirtualDub, etc), so you could always extract the portions of the video you want from your recordings with those, then import your portions into Vegas/Premiere/etc and finalize your video projects that way. However, to omit having to do that extra step, you can have your H.264/AVC (x264) recordings editable in Vegas/Premiere/etc by doing the following:

For the Official (Red Logo) x264vfw interface, add "--keyint 1" (without quotations) into the Extra Command area at the bottom
For The Unofficial (Black Logo) x264vfw interface, set the Maximum GO Size to "1"


***
A lengthy article, talking about recording with x264/H.264/AVC in detail (testing settings, recommendations for speed, etc.) can be found at the blog here:
http://gametipsandmore.blogspot.ca/2013/05/game-recording-with-mpeg-4-using.html

***


Have fun editing and See You In The Games!


Tuesday, June 11, 2013

And More: Game Recording for Compatibility with Video Editing Programs (Text-Only Version)


Just some quick tips for recording your gaming adventures, so that no matter what recording or editing program you use, you can open the recorded file and edit it without any problems:

Most game recording programs will automatically install CODECs (COmpressor/DECompressors) when you install the program itself. Codecs can be thought of as 'handlers' for the video and audio formats that the program will 'prefer' [that is, formats that they were programmed with], so that you can open them in video editing applications. Also, most video editing apps can read certain widely-accepted/standardized formats such as MJPEG, RGB, YV12, Uncompressed, and so on, "natively" (without installing any additional codecs, once you install the video editing program itself). The thing is, sometimes there is a format that is selectable or useable in a recording application and then you can find out later that your video editing application "doesn't like it" (won't open your recorded file)...

To solve this problem, you can do a few things (in order of ease-of-use):

  • Change the format you are recording with.
[This also works if you don't want/can't install any additional codecs on the system]
All you have to do is switch the recording codec you are using to something that the editor can easily open. If your recording cannot easily be imported into your video editor, take a look at the 'importable formats' that are listed for your video editing application at the manufacturer's website.
You can also just do a couple of short test recordings to find out what can be recorded to and opened by your favourite editing app without problem. You may, for instance, test with a short recording and find that only the video (or only the audio) can be opened. This means you just have to check what formats you are recording with and switch out the one that is not being read properly. 
For example:

Problem: Sony Vegas opening a recorded file and the video track is fine but the audio has only a small 'sliver' of data (no sound track)
Fix: Change the audio recording format to Uncompressed PCM Audio
Now Sony Vegas can properly open both the video and audio portions of the recording (without installing any additional codecs) - all solved by merely switching to using a different codec for recording

  • Install the codec you wish you use.
A recording program may offer a format that you can record with, but it may not automatically install the decoder portion for it, so you may have to download and install the codec package in order to open the recordings.
Some examples:

Some find that when using the MJPEG codec offered within MSI's Afterburner program to record, they cannot open the MJPEG format recorded files in their video editing application. Within MSI Afterburner, there is an option to enable an MJPEG decoder within it, if it is needed (it shouldn't be, since most video editing programs support MJPEG natively (it is just a sequence of JPGs))

Some find that when using the Xvid codec offered within Bandicam to record, they cannot open the Xvid format recorded files in their video editing application. To solve this, merely download the Xvid codec package from the Xvid.org website and then you should be able to open the Xvid recorded files in your video editing program

  • Convert the recorded file into a format that the video editing app can open without problem.
Most editing programs have a list of 'compatible' formats that it was programmed to open natively [without installing anything else]. From the list, choose a format that is easy for you to convert your recordings into, so that you can easily import them into your video editing application.

To convert your recordings, you can use the conversion program that came with your camera or multimedia device, if it came with one. There are also many freeware programs that you can use, such as:

Avidemux
Virtualdub
FormatFactory
Xvid4PSP
Xmedia Recode
Nero Recode
WinFF
and more
Simply use the one that you find easiest to use and convert your files with. You can also purchase a video editing program/software suite that will allow you to convert/edit the recordings.

Once you try one of the above steps (listed in order of easiest/quickest first), you should find importing your recordings into your favourite editing apps going a lot smoother and having less problems/glitches when starting your editing.


Good luck with it and Have Fun editing your gaming adventures!


Tuesday, June 04, 2013

And More: How To Stop the "Trails" and "Corruption" in Sony Vegas When Importing an Xvid Codec Recorded File (Tutorial with Example Video)

[The title sounds like a spell of some sort.. BEWARE THE TRAILS OF CORRUPTION]

As part of the 'And More' of this blog, I would like to present a Tip that will help anyone that may be experiencing the 'trails' or 'corruption' effect that appears when importing an Xvid-recorded video into the Sony Vegas line of products.

This effect can occur no matter what game recording software you are using (Dxtory, Bandicam [as an External Codec], MSI Afterburner, etc.**), if it is configured to record with the Xvid codec downloaded from the Xvid.org website. An example of the corruption (and the associated setting that can fix it) can be seen in this short video:

The first portion is an Xvid Codec recording with the Motion Search Precision setting ON (which is the default setting if you are using the "Real-time" Quality Preset to record with, for instance).
The second portion is the same Xvid Codec recording, but with the Motion Search Precision setting OFF (Set to "None" (0)).

That is all that need be changed to fix this problem with importing Xvid recordings into Vegas, all other settings can remain how you prefer. One more example of what can be fixed/corrected (a still frame from a 'corrupted' video) is shown here:


To change the required setting in the Xvid Codec interface:


  • After selecting Xvid MPEG-4 Codec as your recording codec [in whatever game recording software you prefer], click on the Configure button to open the Xvid Configuration window. Then, under the More section, Quality Preset, click the "more..." button past the pull-down menubar and it will Question you with the choice to Copy the values that cannot be changed to a "User Defined" setting. Clicking "Yes" will copy the Real-time Preset settings to the pull-down selection called "User Defined" and then you can change the preset settings within.
Click to see Full Size

  • In the Motion Precision category on the first tab (Motion), next to Motion Search Precision, click on the pull-down menubar and click on "0 - None", to turn off Motion Searching when recording using the Xvid Codec.
Click to see Full Size
That's it. Sony Vegas Movie Studio and Sony Vegas Pro should both now be able to import your Xvid format recordings, no matter what game recording program you are using (Dxtory, Bandicam [as an External Codec], MSI Afterburner, etc**).


** Users of Bandicam will find that a built-in/optimized version of Xvid is already included within the program codec menu and provides good capture ability/quality, it just does not have the codec-native configuration interface (to change settings) and this version will not natively import into Vegas, as of this version.
If you are using Bandicam as your game recording application and you wish to record with the 
built-in/optimized version of Xvid and import your recordings into Vegas, simply download the Xvid codec from the Xvid.org website. Then, Bandicam's version of the codec can be opened within the Sony Vegas line of products. The problem presented above in the article does not occur when using Bandicam's built-in/optimized version of Xvid††

†† It should be noted, that this issue of "corruption" or "trails" or "glitchy-ness" does not occur in all Video Editing Applications. While most NLE editors (Vegas, Premiere, Lightworks, etc) will experience this, many 'Pro-sumer' grade video editing programs, do not. I have personally tested editors such as Corel's VideoStudio Pro, CyberLink's PowerDirector and even Microsoft's Movie Maker - and none of these editors display the issue mentioned herein.
If a user desires to stick with Xvid as their recording codec (indeed a speedy and potentially semi-high quality codec), then perhaps utilizing one of these other editors, should be considered.




Have fun recording and See You In The Games!


Monday, June 03, 2013

Speedrun - Hitman: Blood Money - A Vintage Year (Silent Assassin, Pro Difficulty, Suit Only, Targets Only, "No Coins")

Messing around trying another Speedrun, this time booting up some good'ol Hitman: Blood Money, "A Vintage Year" level.



Hitman is a wonderfully crafted, enjoyable game. In my opinion, every single installment in this series has been. People have enjoyed the 'puzzle-play' aspects of it, people have enjoyed the gunplay, the stealth. Players have also enjoyed trying to run as-fast-as-they-can through levels that were probably not designed with this intention. Now, Hitman: Blood Money may not win any awards for "realism" in some areas of gameplay, but I personally have something against the concept that an Assassin, wearing a nice suit, most likely a millionaire, is carrying around twenty dollars in pocket change. Heck, I am sometimes annoyed at the jingle in my own pocket of a couple of quarters when I come across them. Thus, my personal aim with this level: to do a Suit-Only, Targets-Only, Silent Assassin, 'No Coins' Speedrun (on Professional Difficulty). I am probably not the fastest at this sort of thing, I have only done a couple of intentional Speedruns in the past; but it was still fun to make and I figured it was 'decently fast', so I wanted to share. Enjoy!


Recorded game:  Hitman-Blood Money, First/Third Person Shooter/Stealth/Action
Recorded with:  Bandicam (Registered Version) @ 1080p
Recording codec:  MPEG-1 @ 80% Quality (Default Setting), 30fps


This was actually not as hard as I thought it would be - after finding out that Delgado.Sr is snipe-able up out on his balcony. It was his Son that gave me trouble (as it seems to do with everyone, after a few forum finds on the subject). I started just pushing him down the stairs and also setting up the Barrels to fall on him; but eventually I settled on just a good-old-fashioned-assassin-stand-by: the single bullet to the head. This felt 'right', after sniping dear-ol'Dad, anyway. Instead of pushing the Guards at the bottom into the water, I just walked non-chalantly by them, as they didn't seem to care anyway.
[On the actual Playthrough, I seem to get some guards' attention, but I assumed this was for going into the areas I wasn't supposed to, not for being witnessed killing anyone]

I also wanted to do things like 'leave nothing behind', such as 'just dropping weapons' (like the Sniper Rifle) to save time. This sort of stems from the multitude-of-coins thing... Don't get me wrong by the way, I appreciate the time so many have taken to figure out their own ways to complete Hitman levels by using distractions. I just for some reason [OCD?lol] find it hard to extend my fantasy thinking within the game 'that far' - to where a so-called Silent-Assassin-slash-Hitman is always carrying around and actually utilizes enough laundry money to make the homeless cry on every mission. [I didn't actually mean to rant here, hah] I just think if an assassin wanted to throw anything around to distract guards, it could more realistically at least be a found weapon of some sort, as opposed to a ton of coinage everywhere (pebbles could even make more sense).

At any rate, whether you use coins (a mechanic that is indeed offered directly within the game) or you don't, there you have it; not the fastest run [or the most 'Silent' lol], but hopefully an enjoyable little watch, nonetheless.


See you in the games!


Saturday, June 01, 2013

Quick Tip: Can't Record Your Game At All? (64-bit/32-bit Fix)

Just a quick tip for when it seems like you cannot record your game 'at all':
64-bit computing is still relatively new for home users, which means that not all 64-bit hardware and applications communicate without problems. Many game recording apps simply can't record games that operate in 64-bit modes. Just look for a 32-bit version of your game/gameclient and then your game recording program (no matter which one you use, be it Dxtory, Bandicam, MSI Afterburner..) should be able to record the screen. [For games that use Java (eg. Minecraft), download the 32-bit Java at their website]

See you in the games!