Development > Artwork
OGM videos made easy - buffer issue in game playback though...
Destructavator:
I was close to getting working presets for various GUIs for Mencoder and FFMPEG, it got kind of messy after a bit, but then I found a better solution:
The 1.0.0 release candidate for VLC media Player has a Ogg/Ogm conversion preset built-in that works terrific for making working OGM files. It isn't in the 9.9 release, but the RC runs fine on my test (Win32) system and the conversion preset works fine out-of-the-box without any need for adjusting bitrate or any other settings.
Converting is easy - just download the RC installer on Windows, use the easy and friendly wizard for conversion ("Convert/Save") under "File" and select the preset for "Video - Theora + Vorbis (OGG)" after picking a filename with "ogm" extension.
It doesn't get much easier than that.
The encoding worked in *realtime* on my test system, much faster than RoQ-encoding with WinFF.
The quality is also much better than RoQ.
One issue though: With playback inside the game, video and audio both stutter a bit, as if the buffers are just a little too small and should be increased. I could be wrong, it might be some other bug, but I'm guessing it's a buffer issue.
If anyone else wants to test this, just use any video file that VLC will read, it should work.
Destructavator:
Hang on, I did some more testing, and found that some videos - depending on how the source original is encoded - have audio/video sync errors.
I'll be doing some more testing and experiments to see if I can correct a few things, I *might* be able to fix the stuttering with some adjustments to the way the files are transcoded, I'll report back later.
Mattn:
i've tested with big buck bunny and there it worked fine
Destructavator:
--- Quote from: Mattn on June 08, 2009, 06:04:18 pm ---i've tested with big buck bunny and there it worked fine
--- End quote ---
Funny coincidence, Big Buck Bunny just happens to be one video I used for testing, and I was also going to recommend it for others to test with as well! I downloaded the AVI stereo version. On a side note, I only watched the short movie for the first time about a month ago, I found it entertaining even though I'm probably a bit older than the intended viewer, and had a good laugh.
I've been playing with conversion and encoding options, I'm still getting stuttering in playback on Windows, the type that usually means a buffer issue, and I'm having this with videos from all different sources, including my music video collection and DVD backups.
I'm going to test this on Linux, same machine (I multi-boot) as well as another computer to see if the problem is specifically with my computer.
Destructavator:
I'm still doing more testing, but I've also found that a new version of Xvid came out, with a new xvidcore.dll file, from 1.2.1 to 1.2.2. I checked Xvid's site, the API is the same, but it internally has many performance and security enhancements.
By placing the new xvidcore.dll in the game directory I saw an improvement right there with the stuttering issue, although it didn't make it go away completely.
I also found that going to the sound options menu and switching to 22050 KHz frequency (from 44100) made the stuttering go away totally on some OGM videos, but only most of the way on others.
I looked at the code - I noticed a "DEFINE" for Ogm buffer size in one place, and also from looking up SDL Mixer the docs talked about "Chucksize" which, if too small, can cause this issue.
I'm wondering if there could be a troubleshooting option in the game options menu for optionally increasing the buffer and chunksize for audio if there is a problem playing video.
I'm also hoping some other people can test videos on their computers to verify how many computers and what environments this problem occurs on, so far I haven't seen anyone else test video playback yet. (FYI to anyone who wants to test: There's an "Intro.ogm" video file already in the SVN version you can start with if you don't want to try to convert some random video.)
Navigation
[0] Message Index
[#] Next page
Go to full version