473,394 Members | 2,052 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

convert video to html 5 format while uploading

170 100+
Hope this is the right category.

Let's say a site is designed to allow a user to upload a video. The video will later be accessed by the user or others.

My understanding is the 3 formats are mp4, webm and ogg. If the user's video is in, say, avi or wmv format (or something other than the html 5 formats), is it essential for the user to convert the video themselves before upload, or can this somehow be done on the fly as it's being uploaded?
Jun 7 '12 #1
7 3131
Dormilich
8,658 Expert Mod 8TB
if you have the codecs and a converting tool (e.g. ffmpeg) installed on the server, you can do the conversion after the upload.
Jun 7 '12 #2
beary
170 100+
Thanks for your quick answer. More questions.

1) Is this the only accepted (or possible) way of doing what I need?

2) When you say codecs, do you mean the H264, VP8 and Theora video codecs and the AAC and Vorbis audio codecs?

3) For a newbie (to this) like me, are there any good instructions for how to install ffmpeg and the codecs on a server? I've designed large php/mysql websites before, just never needed to install software.

4) Any idea how long it takes to convert a 1 minute video to the 3 formats?
Jun 7 '12 #3
Dormilich
8,658 Expert Mod 8TB
1) don’t know. that’s how I’d do it.

2) yup

3) depends on whether you own the server. you have to install software, after all.

4) that depends on the input video (codec, size), the performance of the machine and the desired output video settings (better video takes longer to create).
Jun 7 '12 #4
beary
170 100+
OK. Thanks again.

I'd appreciate anyone else who has further clues on question 3 above.
Jun 7 '12 #5
Dormilich
8,658 Expert Mod 8TB
more clues for 3) depend on the system. if you don’t own the system (you’re not the sysadmin), then you can’t install anything, period. if you’re the sysadmin, install it like any other software. ffmpeg comes with installation instructions as do the codecs that you download. as for the rest, Google is your friend.
Jun 7 '12 #6
beary
170 100+
@Dormilich
Oh right. Well initially I'm trying to get it working on wamp 2 on my local machine. But ultimately I'll be uploading to a web host's server. Sounds like you're saying that I need to make sure I choose a web host that specifically has ffmpeg installed already?
Jun 7 '12 #7
Dormilich
8,658 Expert Mod 8TB
ask the web host’s support team, they know best what is possible.
Jun 7 '12 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Rock | last post by:
Hi,all: how to convert VBA #date# format (ex: #2004/3/6#) to C# code ? here are vba code : Dim objUserPerm As Office.UserPermission Set objUserPerm =...
0
by: thomaz | last post by:
HI... I would like to know as to convert the content of a RitchTextBox for the format of HTML files. A method or a function exists to convert automatically?? Thanks; Thomaz
1
by: bidllc | last post by:
I'm working on a minor bug from an open source bug tracking system (bugtracket.net). It's a great app, but I don't want to bother the creator any more than I have to, so I thought I'd pose the...
3
by: rojavenkat81 | last post by:
Hi All, Please help me regarding php program for convert video file to .flv file. I searched in many sites but i got only tool to convert video file to .flv file.But I want convert...
1
by: sweet | last post by:
can anybody help me out?what i need to do is -- upload a .doc file to an html format so that the formatted text is not changed.can someone plz provide me with the asp code for this? --...
1
by: Vinodrajora | last post by:
Hello Everyone Can you help me for convert word, rtf and excel files into the html format it is very urgent. Thanks Vinod Kumar
2
by: praveen1983 | last post by:
Hi al I need a solution for for converting my text to HTML using C# code. for Ex.. if i am entering a some text in a textarea and formatting the text and i want to convert those foramtted text...
9
by: Fred Yu | last post by:
Hi, I want to encode input text into html format such as replace "<" with "&lt", replace "&" with "&amp". Could you give me some ideas? Thanks. Fred
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.