Wintermute Engine Forum
Wintermute Engine => Technical forum => Topic started by: Jyujinkai on September 20, 2007, 12:11:05 AM
-
Jyujinkai's Continuing Tutorials for Nubs and the Programming Impaired
(sorry but i can only properly support windows)
How to Transcode a OGG files from an existing video and audio files on your Harddrive
Summery
RTFM - "The video codec [therora] is hardcoded in WME, you don't need to install any external codecs with your game."
RTFM - "File format for storing the sounds - OGG files – Ogg Vorbis files are compressed sound files, similar to the popular MP3’s. Unlike MP3, the Ogg Vorbis is an open format and it provides better sound quality."
So in order to properly use video in WME it is by far better to use OGG files than any other format due to the native WME support. Also it is far better to use OGG for sound as like an mp3 they are a bazzillion times smaller than wav files yet still retain a high level of audio quality, as well as also being a native WME format.
So this tutorial we will learn how to transcode any video or audio file on your harddrive into a ogg video or audio file ready for use!!
Software you will need
VLC Player - http://www.videolan.org/
Codec Pak - http://www.illiminable.com/ogg/
Transcoding Video
1) Load the VLC Player and go to "File/Wizard"
(http://img215.imageshack.us/img215/8147/tut01si6.jpg)
2) Select "transcode/save to file"
(http://img522.imageshack.us/img522/315/tut02jd6.jpg)
3) Select "Select Stream" and hit "Browse"
(http://img228.imageshack.us/img228/3960/clipboard1ph9.jpg)
4) Hit "browse" again and Select your input file
(http://img523.imageshack.us/img523/1007/tut03ln8.jpg)
5) Select "Transcode Video and Transcode Audio
- Set the video to THEORA
- Set the Audio to VORBIS
(if resulting file it to large re-encode using lower bit rates)
(http://img232.imageshack.us/img232/715/tut04du7.jpg)
6) Select OGG (it should be the only thing you can select
(http://img487.imageshack.us/img487/8186/tut05jx3.jpg)
7) Select your output file name and folder
(http://img516.imageshack.us/img516/5333/tut06af1.jpg)
8 ) When you hit finish the transcode will start. NOTE - You will NOT see any video. If the video file you are transcoding is big, this MAY take a while. The VLC "progress" bar is small so it may look like it is not moving at all when it first starts. Try stretching the player to the length of your screen to get a better update on progress.
Transcoding Audio
This is exactly the same process as the way to make the video. The only difference is that you do NOT tick Transcode Video when the option comes up in step 5.
(http://img513.imageshack.us/img513/1589/clipboard2yz2.jpg)
Some Notes
- Remember you can transcode audio directly from a video file and not include the video
- When selecting your video / audio file (step 3) you can add a time index in and out point, allowing you split your video and audio
See ya
Have fun!!!
-
For another transcoding tutorial that is aimed for people with a little more understanding of these things...
Please see CMK2901's Thread:- Ogg Theora - Or, how to convert them and have them play correctly. (http://forum.dead-code.org/index.php?topic=2170.0)
-
This thread was the result of a search. The above instructions do not work with the latest version of VLC Player. What specific version is that above?
-
This tutorial is about the previous version of vlc (0.8.x) and not for the latest version (0.9.x).
For transcoding videos to ogg theora I suggest the command line tool ffmpeg2theora (http://v2v.cc/~j/ffmpeg2theora/).
-
This thread was the result of a search. The above instructions do not work with the latest version of VLC Player. What specific version is that above?
CMK2901 made a very good tut for the more experienced user
http://res.dead-code.org/doku.php/kbase:tranzaudiosimple
try looking though that?