Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by mdentonetc · Jul 23, 2012 at 06:53 PM · videostreamingoggweb server

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?

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

7 Replies

· Add your reply
  • Sort: 
avatar image
1

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

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

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?

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image DaveA · Jul 23, 2012 at 09:01 PM 0
Share

You should use 'comment' unless you are answering your own question

avatar image mdentonetc · Jul 23, 2012 at 09:02 PM 0
Share

Sorry, new to this. Will remember that for next time.

avatar image
0

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.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

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

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image mdentonetc · Jul 23, 2012 at 09:05 PM 0
Share

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.

avatar image
0

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]

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
  • 1
  • 2
  • ›

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

9 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

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

Streaming videos from web server in android 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges