Hard Light Productions Forums

Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: IPAndrews on July 02, 2007, 01:19:45 pm

Title: Converting movies to OGG
Post by: IPAndrews on July 02, 2007, 01:19:45 pm
Please can someone suggest a good free tool for converting movies of various formats to OGG.
Title: Re: Converting movies to OGG
Post by: chief1983 on July 02, 2007, 04:33:45 pm
I think they recommend ffdshow2theora, but I don't know where to get it right now.  Use the Google.
Title: Re: Converting movies to OGG
Post by: Wanderer on July 02, 2007, 04:40:33 pm
Or ffmpeg2theora
Title: Re: Converting movies to OGG
Post by: chief1983 on July 02, 2007, 04:43:03 pm
Right that was it, my bad.
Title: Re: Converting movies to OGG
Post by: Kazan on July 02, 2007, 04:55:49 pm
better yet would be a program that i can use to combine an audio track to a video+audio track... existing video is mpeg from what i can tell (Contained in an .avi) with .mp3 audio
Title: Re: Converting movies to OGG
Post by: karajorma on July 02, 2007, 05:03:42 pm
VitualDubMod (http://sourceforge.net/project/showfiles.php?group_id=65889) will do that but it's old.
Title: Re: Converting movies to OGG
Post by: Kazan on July 02, 2007, 05:07:23 pm
virtualdub doesn't support directshow filters so is incapable of decoding the video

[edit]
now it opens it.. crochity bstrd

[edit]
nope... no.. it opened one of them.. but not the combined one that is in divx.. i have dsfilters for divx but no vfw
Title: Re: Converting movies to OGG
Post by: Kazan on July 02, 2007, 06:00:22 pm
does ffmpeg2theora support .avi input (such as a divx file)
Title: Re: Converting movies to OGG
Post by: chief1983 on July 02, 2007, 07:12:47 pm
Install the Gordian Knot codec pack, and VDubMod should be able to open almost anything under the sun.  Just don't install the included Divx codec, get one from somewhere else that doesn't have the spamware.
Title: Re: Converting movies to OGG
Post by: taylor on July 02, 2007, 11:37:08 pm
does ffmpeg2theora support .avi input (such as a divx file)
Yes (on Linux at least, but should on Windows too).  It's a bad idea to convert from DivX though, since the quality/compression algorithm results aren't nearly as good as they could be with an uncompressed source.

When doing the conversion for the FS2/FS1 movies I originally tested with a DivX -> Theora conversion and compared that with an MVE -> Uncompressed AVI -> Theora conversion.  Coming from the MVEs gave better results for both quality and final file size.
Title: Re: Converting movies to OGG
Post by: WMCoolmon on July 02, 2007, 11:53:44 pm
ffmpeg can mix and match audio and video tracks via the -map command line option. I'm not familiar with ffmpeg2theora.
Title: Re: Converting movies to OGG
Post by: Kazan on July 03, 2007, 09:53:22 am
yay for dual booting Fedora Core 7 on a dual core athlon 64 :D
Title: Re: Converting movies to OGG
Post by: Kazan on July 03, 2007, 10:13:38 am
1 ogg on request http://ferrium.org/media/tbpintro.ogg
Title: Re: Converting movies to OGG
Post by: Col. Fishguts on July 03, 2007, 05:18:18 pm
That's nice, although I don't understand what the credits are doing in the intro. I'm all for credit where credit is due, but your average player isn't interested in seeing a bunch of names each time he starts the game.
Title: Re: Converting movies to OGG
Post by: IPAndrews on July 03, 2007, 05:22:52 pm
So is 3.6.9 release supposed to play ogg movies? I recoded intro.mpg as intro.ogg and now it won't play.
Title: Re: Converting movies to OGG
Post by: karajorma on July 03, 2007, 05:40:40 pm
It should work. What did you use?
Title: Re: Converting movies to OGG
Post by: IPAndrews on July 04, 2007, 03:51:37 am
ffmpeg2theora

It reduced the mpeg from 90meg to 12meg, and now it won't play. It's named intro.mpg/intro.ogg so it's supposed to fire off every time I start the game engine. This is what happens if you force a stupid poorly supported file format on people.
Title: Re: Converting movies to OGG
Post by: chief1983 on July 04, 2007, 03:59:54 am
Please be careful what you say.  It wasn't a force first of all.  It's really the only option.  Theora is a free to use, non-GPL protected format, and it isn't all that poorly supported.  It's just not as big as Xvid because no one uses it to make illegal movie rips.  The move is to ensure a free, non-license violating codebase is used for movie support, as opposed to the proprietary one used to play the MVE files.  It's even more poorly supported than Theora is, since it's only in a handful of games.  Most people seem to be able to get theora converting to work ok, so odds are something was done wrong at some step.  I'd doublecheck what was done to convert it, and maybe post a few more details here so someone can offer some more insight.
Title: Re: Converting movies to OGG
Post by: taylor on July 04, 2007, 08:54:41 am
If you use a debug build then it will spit out into the log any errors that make it not play a movie.  But, all movies must be 640x480 or smaller, and you must be using OpenGL, in order for them to play.  I'd bet you have an issue with one of those two things.
Title: Re: Converting movies to OGG
Post by: Col. Fishguts on July 04, 2007, 09:53:48 am
But, all movies must be 640x480 or smaller. *snip*

How come ? Performance reasons ?
Title: Re: Converting movies to OGG
Post by: taylor on July 04, 2007, 10:12:22 am
But, all movies must be 640x480 or smaller. *snip*
How come ? Performance reasons ?
That, and I didn't have time to get down-scaling working properly for 3.6.9.  It was always a temporary limitation though.  I was under the gun to get the Theora code done and just didn't have time to work out all of the little issues.

It will probably be fixed for 3.6.10, assuming that I have extra time to do it, and the size limit will be gone.  I have improved the RGB->YUV conversion, and added two extra render modes (using register combiners and shaders) for the people whose video cards can do it, and those extra modes are much faster.  The size limit is already affectively history, it's just the speed issues that still need some working out.
Title: Re: Converting movies to OGG
Post by: Kazan on July 04, 2007, 12:53:21 pm
resolution is 640x320 30fps
Title: Re: Converting movies to OGG
Post by: IPAndrews on July 04, 2007, 01:25:43 pm
Mine is 720x480.
Title: Re: Converting movies to OGG
Post by: Kazan on July 04, 2007, 04:00:41 pm
if ffmpeg2theora resized it i'm gunna kick it's arse

[edit]
nope.. the one i posted is 640x320
Title: Re: Converting movies to OGG
Post by: IPAndrews on July 05, 2007, 04:19:56 am
Different movie Kazan. Your intro is the Earth Minbari War demo campaign intro. My intro is the mod intro.