html5-video

FFMPEG converted mp4 file does not play in firefox and chrome

心不动则不痛 提交于 2019-11-29 01:01:59
问题 I have used FFMPEG command to convert flv video file to mp4 and use html5 video tag and play video in browser. But after the video is converted to mp4 using ffmpeg it does not play in firefox and chrome browser. It displays a error saying 'No video with supported format and MIME type found'. I have added the code below, Please help. cmd /C ffmpeg -i INPUT_FILE_PATH -y -ar 22050 -ab 512 -b 800k -f mp4 -s 514*362 OUTPUT_FILE.mp4" 回答1: This is what you need. I recently found myself fighting the

How to edit (trim) a video in the browser? [closed]

百般思念 提交于 2019-11-29 00:44:04
I am trying to trim the length of a video within the browser, from either the beginning or the end. What I currently have is a MediaStream which is being recorded using the MediaRecorder API, which I use to produce a Blob at the end of the recording with type set to 'video/mp4'. This works great and I am able to play the video back, however I would like a way to trim the video either at the start or end. Upon further investigation of the MediaStream API I came across the SourceBuffer object, that you can obtain from a MediaStreamTrack and use it to remove a time slice, which is exactly what I

HTML5 Video Error - Internet Explorer 9

混江龙づ霸主 提交于 2019-11-29 00:40:50
I am trying to get a .m4v video to play in IE9 using html5 video tags. When I play the video from a remote location it works fine: <video src="http://www.jplayer.org/video/m4v/Big_Buck_Bunny_Trailer_480x270_h264aac.m4v" controls="controls"> </video> But when I want to play it from my server... <video src="Big_Buck_Bunny_Trailer_480x270_h264aac.m4v" controls="controls"> </video> ...it only works in Chrome and not in IE9. What could cause the video not to play when located on my server? Many thanks, Chris In addition to needing the server to send the correct Content-Type header for the requested

HTML5 video won't play in Chrome only

不羁的心 提交于 2019-11-28 23:09:07
some background I've tested my video in FF and Safari (including iDevices) and it plays properly, but it will not play in the Chrome browser. As you can see in the code below, I've created mp4, m4v, webM, and ogv files, and I've tested all of them on my computer for any playback issues. the symptoms/issue In Chrome, the video seems to load, and there are no errors in the console log . When the play button is pressed, it loads a portion of the file, but then does not play it. Yet, interestingly, if I arbitrarily click on a later time in the time-bar, say about halfway through, it will play

Video 100% width and height

て烟熏妆下的殇ゞ 提交于 2019-11-28 22:34:25
I have a video, and I want it to FILL 100% of the width, and 100% of the height. And keep the aspect ratio. Is it possible that it at least fills 100% for both? And if a bit of the video has to be out of the screen to keep the aspect ratio, that doesn't matter. HTML: <video preload="auto" class="videot" id="videot" height="100%" preload> <source src="BESTANDEN/video/tible.mp4" type="video/mp4" > <object data="BESTANDEN/video/tible.mp4" height="1080"> <param name="wmode" value="transparent"> <param name="autoplay" value="false" > <param name="loop" value="false" > </object> CSS: .videof,

Having custom controls still apply when go fullscreen on a HTML5 video?

本小妞迷上赌 提交于 2019-11-28 21:44:20
I've made custom controls for my HTML5 video but I don't know how to have that CSS still apply when I go fullscreen. Here's the [website] I've based my controls on. On this site, you'll notice that when you click the fullscreen button the custom controls get lost and the video reverts to the default <video> controls. Does anyone know how to have these custom controls styling/CSS still apply when you go fullscreen? i answered my own question, the key is that the custom controls are inside the <div> that includes the video that you want to take full screen. In my code below, this <div> is called

Sending camera video from browser to server

﹥>﹥吖頭↗ 提交于 2019-11-28 21:41:46
问题 Im trying out the new and exciting features of chrome canary 19. I can basically grab the video from the web-cam and set it to a source element for a video tag. <!DOCTYPE html> <html> <head> <title>Camera capture</title> <script> var localStream; var localStreamObjUrl; window.onload = function() { navigator.webkitGetUserMedia("audio, video", gotStream); } function gotStream(stream) { localStream = stream; localStreamObjUrl = webkitURL.createObjectURL(localStream); var video = document

Installing a TURN Server on Ubuntu for WebRTC

我与影子孤独终老i 提交于 2019-11-28 21:37:39
问题 How can I install a TURN server on my ubuntu 12.04? Can you share tutorial? I read this tutorial: Implementing our own STUN/TURN server for WebRTC Application. But what I don't understand is how I can I install my own TURN server on my ubuntu 12.04? I am using currently using something like the following code to create the RTCPeerConnection const pc_config = {"iceServers": [{"url": "stun:stun.l.google.com:19302"}, {"url":"turn:my_username@<turn_server_ip_address>", "credential":"my_password"}

How to check a user watched the full video in html5 video player

﹥>﹥吖頭↗ 提交于 2019-11-28 21:13:58
问题 This question was migrated from Super User because it can be answered on Stack Overflow. Migrated 3 years ago . Does anyone knows how I can check if a video was completely watched or not? I am using html5 video players: <video width="480" height="400" controls="true" poster=""> <source type="video/mp4" src="video.mp4"></source> </video> 回答1: Basic check is simple, wait for the ended event. This is so simple you can just google it. Now to check that user played full video an extensive analysis

Reading metadata from the <track> of an HTML5 <video> using Captionator

纵然是瞬间 提交于 2019-11-28 20:53:15
I am having trouble getting a working example that reads metadata from a WebVTT file, which was specified by the <track> element of a <video> in an HTML5 page. To be clear, I am not talking about reading the metadata out of the video file itself (as you would with an MPEG Transport Stream, for instance). What I'm talking about is the <track> element that is used for captioning videos. One of the attributes of a <track> is kind , which can be specified as any of the following values: Subtitles Descriptions Captions Navigation Chapters Metadata I am trying to use the metadata type to access text