- Home /
How can I convert a video to .ogg format and have it play from a web server?
I've been attempting to convert our video files for a project into .ogg format so that we can stream them from the web in our game. However all of the various encoders I have tried haven't made an .ogg video that works on our web server. The sample .ogg file that Unity provides however does work off of our web server.
The encoding programs I've tried so far are:
MiniCoder
FFCoder
GFrontend(ffmpeg2theora)
DS Mux
Miro Video Encoder
TheorConverter .NET
None of them seem to be able to make an .ogg or .ogv that Unity will play off a web server. Has anyone had a similar problem and/or does anyone have any solutions to this problem?
Answer by ScroodgeM · Jul 23, 2012 at 06:55 PM
i used VLC player for the same task - works just fine and unity plays that file OK
Answer by mdentonetc · Jul 23, 2012 at 09:00 PM
That didn't work either. Nothing we convert with will give us an .ogg that works. I feel like there might be something else we're missing here that is making all our files not work like the sample provided.
Any thoughts on anything else you'd need to do to this file other than convert it to .ogg?
You should use 'comment' unless you are answering your own question
Answer by mdentonetc · Jul 23, 2012 at 09:00 PM
Alright we figured out the problem.
Apparently Unity was reading the video files as having a duration of -1 for some reason. Eventually we noticed that the sample video had the duration saved as Metadata in the video file which we could see from VLC Player. The other encoders weren't automatically saving that metadata out, instead just listing the encoder in the metadata field, so Unity didn't know what the duration was.
Our coders are not particularly happy to find that we are now going to have to embed duration Metadata into all of our videos to make sure Unity knows how long the clips are. Frustrating but at least we have a solution.
Answer by DaveA · Jul 23, 2012 at 09:02 PM
I have had good luck with this one: http://video.online-convert.com/convert-to-ogg
Thanks, though like I said we found out the problem was in the metadata. Playing just in Unity is fine, but once you try to stream from a web server and want to be able to play and pause, you have to have the Duration embedded in the metadata.
So you either need an encoder that can embed metadata or you have to use another piece of software after encoding to embed the metadata, which is what we're doing.
Answer by sachinweb · Nov 06, 2013 at 01:21 PM
either you can search on google that conver video .ogg and post on webserver, play online videos http://www.googlevideo.co/ for more services go [format conversion]
Your answer
Follow this Question
Related Questions
Get Ogg Video Information 0 Answers
Ogg Stream Live Video 0 Answers
How o I prevent streamed video stutter? 1 Answer
Unity simple client server video streaming using RPC calls to send webcamTexture 2 Answers