westman Posted October 10, 2012 Share Posted October 10, 2012 hi all,i don't need any script help just yet but i do need help with a method.i am going to right script for users to upload there videos and other users can see them.i have never worked with videos before and need to know the best method to do this, i have some questions too. what is the best video format to save the uploads?can videos be seen without flash?how do i make the video player or where can i get a free one?how do i get an image and duration out of the video to display in a menu? Link to comment Share on other sites More sharing options...
justsomeguy Posted October 10, 2012 Share Posted October 10, 2012 With HTML5 videos usually get encoded in multiple formats so that every browser can play at least one format. You can also fall back to Flash video for browsers that don't support HTML5. There are plenty of Flash video players online if you search for them, HTML5 does not need an external player. For processing videos I know a lot of people use ffmpeg to do that, you can look into that if it's installed on your server. Link to comment Share on other sites More sharing options...
westman Posted October 10, 2012 Author Share Posted October 10, 2012 is using html5 video better than using flash? Link to comment Share on other sites More sharing options...
justsomeguy Posted October 10, 2012 Share Posted October 10, 2012 It depends on your target audience, not all devices support Flash. Link to comment Share on other sites More sharing options...
justsomeguy Posted October 10, 2012 Share Posted October 10, 2012 There's a discussion about video here: http://stackoverflow.com/questions/4112924/video-codec-settings-to-support-all-major-mobile-devices-in-html5-player Link to comment Share on other sites More sharing options...
westman Posted October 12, 2012 Author Share Posted October 12, 2012 what video format does html 5 need and where can i see an example of one that works? Link to comment Share on other sites More sharing options...
justsomeguy Posted October 12, 2012 Share Posted October 12, 2012 The link I posted includes the formats he used. Youtube has an HTML5 version. http://www.youtube.com/html5 Link to comment Share on other sites More sharing options...
westman Posted October 12, 2012 Author Share Posted October 12, 2012 i could not find the info.what video format can i us for html5? Link to comment Share on other sites More sharing options...
thescientist Posted October 12, 2012 Share Posted October 12, 2012 (edited) i could not find the info.what video format can i us for html5? you should really read the link carefully? The information is in the accepted answer, which is probably the first post after the OP that you should have read. Also, you can find this information out right in the w3schools HTML5 tutorialshttp://www.w3schools.com/html/html5_video.asp And of course, you can always Google. Edited October 12, 2012 by thescientist Link to comment Share on other sites More sharing options...
rahultailwal Posted October 15, 2012 Share Posted October 15, 2012 Hi, Html 5 tag works for all major browsers except ie6, 7 and 8. For these there is option for flash fallback. Now mozilla only works with webm or ogg video files. IE 9, safari and chrome works with mp4 files. Use this javascript to make your player more controllable. http://videojs.com/ Thanks, Rahul Link to comment Share on other sites More sharing options...
westman Posted October 17, 2012 Author Share Posted October 17, 2012 Rahul,thank you, your info was very helpfulbut can my video be .flv to work or dose it need to be .swf ? Link to comment Share on other sites More sharing options...
Ingolme Posted October 17, 2012 Share Posted October 17, 2012 If you're talking about Flash, the player is always SWF. The video player could be programmed to use a variety of formats, depending on what Flash natively supports. Link to comment Share on other sites More sharing options...
westman Posted October 17, 2012 Author Share Posted October 17, 2012 i am having problems with this html5 tag.... <video id="my_video_1" class="video-js vjs-default-skin" controls preload="auto" width="640" height="264" poster="my_video_poster.png" data-setup="{}"> <source src="my_video.mp4" type='video/mp4'> <source src="my_video.webm" type='video/webm'></video> its not working for me i got the script from http://videojs.com/ Link to comment Share on other sites More sharing options...
justsomeguy Posted October 17, 2012 Share Posted October 17, 2012 You have files called my_video_poster.png, my_video.mp4 and my_video.webm in the same directory as that HTML file, and in the correct formats? Link to comment Share on other sites More sharing options...
westman Posted October 18, 2012 Author Share Posted October 18, 2012 i do but named myvid Link to comment Share on other sites More sharing options...
westman Posted October 18, 2012 Author Share Posted October 18, 2012 <video id="myvid1" class="video-js vjs-default-skin" controls preload="none" width="640" height="264" poster="http://mysite.com/hdvideo/0/myvid.png" data-setup="{}"> <source src="http://mysite.com/hdvideo/0/myvid.mp4" type=\'video/mp4\' /> <source src="http://mysite.com/hdvideo/0/myvid.webm" type=\'video/webm\' /> <source src="http://mysite.com/hdvideo/0/myvid.ogv" type=\'video/ogg\' /> </video> its not playing Link to comment Share on other sites More sharing options...
thescientist Posted October 18, 2012 Share Posted October 18, 2012 first step would to make sure the files even exist at those paths, which for all three, come up as 404's for me. Link to comment Share on other sites More sharing options...
westman Posted October 18, 2012 Author Share Posted October 18, 2012 mysite.com is an example when i load the page i can see ... poster="http://mysite.com/hdvideo/0/myvid.png" is working, so the paths are all goodbut it will not play the video Link to comment Share on other sites More sharing options...
thescientist Posted October 18, 2012 Share Posted October 18, 2012 does the video need to preload? i.e. how big is it? can you provide a live link to your site so we can test this for ourselves? Link to comment Share on other sites More sharing options...
westman Posted October 18, 2012 Author Share Posted October 18, 2012 the size of the vid is 24mb i do not know how to work with preload and i can't provide a live link Link to comment Share on other sites More sharing options...
JohnTipperton Posted October 19, 2012 Share Posted October 19, 2012 (edited) here is my answer for you. what is the best video format to save the uploads? MPEG4 video with MP3 audiocan videos be seen without flash? flash is required to play videos in web but i think you can use windows media playerhow do i make the video player or where can i get a free one? you can download one from http://www.longtailvideo.com/playershow do i get an image and duration out of the video to display in a menu? http://www.longtailvideo.com/players there is a setting in here just try to explore on. Edited October 19, 2012 by JohnTipperton Link to comment Share on other sites More sharing options...
westman Posted October 22, 2012 Author Share Posted October 22, 2012 when i downloadhttp://www.longtailvideo.complayer and install it on my site, it comes with a menu in the play bar how do i remove the menu button? i have been trying for days.plus how do i get an image and duration out of the video to display in a menu? Link to comment Share on other sites More sharing options...
westman Posted October 23, 2012 Author Share Posted October 23, 2012 ok i got the video looking and feeling like it should the last and only question i have is.... how do i get an image and duration out of a mp4 video to display in a menu? Link to comment Share on other sites More sharing options...
soofi Posted October 24, 2012 Share Posted October 24, 2012 There's a discussion about video here: http://stackoverflow...in-html5-player Thanks for this thread Link to comment Share on other sites More sharing options...
soofi Posted October 24, 2012 Share Posted October 24, 2012 what video format does html 5 need and where can i see an example of one that works? Here are some "wow" examples of Free HTML5 Video Players Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now