FAQ Database Discussion Community


How to align videos, their height and wifth and their progress bar on the page

javascript,jquery,html,css,video
I have a function that works fine and videos are played properly but these videos are shown in a single line but I want one video in one line and all the videos should have same width and height. function appendReturnedVideos(data) { var $html = $(); $.each(data.videos, function(index, element) {...

ffmpeg - combine videos into one wide video

video,ffmpeg
I have 3 video of 1920x1080. They are all the same length/codec. I'd like to combine them (not concatenate), so that the result is one video of 5760x1080. Can someone explain to me how to do this in ffmpeg (or another free application)? Thanks!...

How obtain codec info of an HTML5 video from JavaScript?

javascript,html5,video,codec
I want to know the video codec and, mainly, the audio codec used to encode an HTML5 video because, for example, Firefox supports MP4 video but, in its Windows version, if the audio is encoded with "sowt" the sound will not work. In this cases I can provide a WEBM...

Get all videos from a playlist (Youtube API v3)

xml,api,video,youtube,playlists
I'd like to use the new youtube API to retrieve a list of all the videos (their ID's and titles) from a specific playlist. I need the id's separated so that I can make a "video gallery" using php on my website, instead of only one video with the playlist...

how to add Videos in UITableViewCell

ios,uitableview,video,tablerow
I am developing an app in which I have to show video list in a table view. I want to show different videos in each Row as like youtube shows. I have added mediaplayerFramework only. Please tell me what I have to do next? Can anyone tell me in detail.?...

ffmpeg cut first 5 seconds

python,video,ffmpeg
I am having trouble removing the first 5 seconds of a .mp4 video. Here is what I have so far: subprocess.call("ffmpeg -ss 00:00:00 -t 00:00:05 -i /home/requiem/Desktop/t1.mp4 -vcodec copy -acodec copy /home/requiem/Desktop/t2.mp4", shell=True) The issue is that it just takes the first 5 second and saves it, but I want...

Populate div with content of external div with rendered html?

jquery,video
fellas. I'm working on a video portfolio site. There's a video wrapper and underneath there are thumbnails. When you click a thumbnail, it populates the main video frame with a vimeo embed. That works great. But for each video, there needs to be additional info to the side. I've gotten...

Infinite stream from a video file (in a loop)

video,ffmpeg,video-streaming,avconv
Is there any way howto create an infinite h264 stream from a video file (eg. mp4, avi, ...). I'd like to use ffmpeg to transcode avi file to h264 but there's no loop option for output.

Playing a video in Google Cardboard

android,video,google-cardboard
I am looking at playing a video in Google Cardboard. I have already created 2 cardboard views and am able to display 2 images in those views. But am not able to play a video in those views. Also, am not getting any exception. The cardboard sample here shows a...

Skip frames in video playback with MediaExtractor and MediaCodec

java,android,video,mediacodec,mediaextractor
I'm using MediaExtractor/MediaCodec to decode a video and render it to a TextureView. As a template, I've used the code from: https://github.com/vecio/MediaCodecDemo/blob/master/src/io/vec/demo/mediacodec/DecodeActivity.java I'd like to be able to playback the video at 2x speed. Luckily, the media encoding/decoding is fast enough so that I can accomplish this by letting the...

Crop video before encoding with MediaCodec for Grafika's “Continuous Capture” Activity

android,video,opengl-es,crop,grafika
I am learning about Grafika's "Continuous Capture" Activity, It is about recording a video with MediaCodec, the video recording implementation is described in https://source.android.com/devices/graphics/architecture.html The activity source code is at https://github.com/google/grafika/blob/master/src/com/android/grafika/ContinuousCaptureActivity.java The program uses a SurfaceTexture obj to receive data from camera and creates 2 EGLSurface obj with this SurfaceTexture...

How can I use javascript to get the thumbnail of an html5 video?

javascript,video,html5-video,video-thumbnails
I have found the JavaScript code to get the thumbnail of a video, given its URL. However, I've only found this for YouTube and Vimeo. Nobody seems to have listed an example of how to do it with video that is intended to be embedded with the html5 video tag....

create movie from [UIImage], Swift

ios,swift,video,avfoundation
I've been scouring the internet for hours to find a Swift solution. I've found export [UIImage] as movie, but its all in ObjectiveC and I can't figure it out for Swift. I really need to create a video from [UIImage] Working on Zoul's answer from above link. part 1) Wire...

Play multiple videos on page with jQuery each() function

javascript,jquery,css,html5,video
I have a page with multiple HTML5 videos on it. For each video, there is a "poster" image that sits on top of the video. When someone clicks the poster image, the image disappears via CSS, and the video below it plays. My problem is that I can only get...

Can a text attribute be set on .mp4 files that could be used for version info?

video,mp4,chm
I have a number of mp4 training videos that I use as help files with our software suite. I do not want to disrupt the naming convention of the video because that would change links all over the place, but would rather like to be able to tag the video...

Direct link of vimeo android

android,video,videoview,vimeo,vimeo-api
I have a video view which is able to stream video, plus I have pro account. where I can upload trailers (movies). I need anyone to help,how can I get direct link of video which is possible to load in video view. I have explored some method like to load...

Getting YUV from CMSampleBufferRef for video streaming

ios,objective-c,video,video-streaming,avfoundation
I am building an iOS video streaming chat application and the library I am working with requires that I send the video data passing it the YUV (or I guess YCbCr) data individually. I have the delegate set up, but I'm not sure how to extra the individual YUV elements...

How to trim video in android?

android,video,ffmpeg
I know the same question has been asked so many times, but I am not able to solve my issue. Hi, I tried FFmpeg command for trimming video & it works quite good. I want to trim a video & it works, but the only problem I have is that...

How to add video background over a section?

html,css,html5,video,html5-video
I'm trying to replace a header background image with a short video. I've searched a lot but couldn't find a proper solution to it. I could find this article but couldn't do much with it as I'm still a novice in web development. Can anyone please help me with the...

Base64 video encoding - good\bad idea?

javascript,html,cordova,video,base64
I'm working on a mobile front-end project using cordova, and the backend developer i'm working with insists that the media files (images/videos) should be transferred as base64 encoded in json files. Now, with images it's so far working. Although it freezes the UI for a few seconds, it can be...

Opening frame that is under the JavaFX program category

eclipse,video,javafx,jframe,mp4
Most of program is using JFrames throughout the application for all the different windows that can appear. However, I have to play an instructional video for the user inside a JFrame. I couldn't find a way to do this, so I had to make a JavaFX program. Is there a...

Cloudfront stream only part of the video

video,amazon-web-services,video-streaming,amazon-cloudfront,rtmp
I'm using AWS Cloudfront RTMP protocol to stream my videos on website. In some cases I need to present preview of video to my users. For example: I display only 60 seconds of 2 hour video and if user likes and buys it, then I give full video. I know...

R: segments can not be displayed in a video file

r,video,text
I attempted to create a video file in R using the "animation" package. Each frame is formed by a two-dimensional matrix (graphics::images) and a text and a segment are also added to the frame. Prior to creating the video, the text and segment have been tested, following the following post;...

M3U8 playback issues with Vimeo and JW Player

video,jwplayer,vimeo,m3u8
M3U8 streams which previously played back without issues have started to fail with "Cannot load M3U8: cross domain access denied" errors. The video embed logic in our application hasn't changed, video playback worked without issues last week, this week it's failing. :/ Replacing the M3U8 URL in the embed with...

video to audio file convert & save through FFMPEG in node js

javascript,node.js,audio,video,ffmpeg
I am working on an FFMPEG on node js. I'd like to retrieve the audio track from a video file using node js. I would also like to save such file but I can't figure out how. I though this line of code would help me : ffmpeg('/path/to/file.avi').noVideo(); I have...

Php curl for downloading facebook video

php,facebook,curl,video,download
I'm trying to build a php script that downloads youtube & facebook videos to my server. This is my code $url = "video_url"; ini_set('max_execution_time', 0); ini_set('memory_limit', '1024M'); $fp = fopen ('../cache_temp/file.mp4', 'w+'); $ch = curl_init(str_replace(" ","%20",$url)); curl_setopt($ch, CURLOPT_TIMEOUT, 50); curl_setopt($ch, CURLOPT_FILE, $fp); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); curl_exec($ch); curl_close($ch); fclose($fp); This code...

How to cut a Video and mute it in one step with FFmpeg?

video,ffmpeg,mute,ffmpeg-php
I tried this: "ffmpeg -i input.mp4 -ss 00:00:50.0 -vcodec copy -an -t 20 output.mp4" Because I know this is for cutting a s "ffmpeg -i input.mp4 -ss 00:00:50.0 -codec copy -t 20 output.mp4" And I know this is for muting (deleting the all the sound from the video): "ffmpeg -i...

FFmpeg - Requested output format 'mpeg' is not a suitable output format

video,ffmpeg,codec,file-conversion,mpeg
I am trying to use FFmpeg to convert a video from mp4 format to an mpeg, so that I can merge multiple videos. I have a custom build of FFmpeg where I control the configuration options: ffmpeg -y -i VID_20150514_171122_12085.mp4 -an -f mpeg VID_20150514_184208.mp4.0.mpg ffmpeg version git-2015-02-25-b0d3322 Copyright (c) 2000-2015...

make autoplay work on IPAD and IPHONE

ios,iphone,ipad,video
I have fullscreen video background, here is my code: <div id="video-container"> <video id="video" autoplay loop> <source src="ocean.mp4" type="video/mp4"> <source src="ocean.ogv" type="video/ogg"> <source src="ocean.webm" type="video/webm"> </video> </div> how you see it has autoplay attrubute, but on IPAD, IPHONE,etc.. it doesn't work untill you click on play button, but when I add...

Creating a 25fps slow motion video from a 100fps GoPro .mp4 video with C++/OpenCV

c++,opencv,video,visual-studio-2013,slowmotion
I have a 100fps .mp4 GoPro video and I want to create from it a slow Motion one with 25fps. I'm trying since two days but to no avail. I could play the video, save a video from the GoPro's WiFi stream, but when I try to read the 100fps...

Authenticate Videos for logged in users only

html,asp.net-mvc,video,video-streaming
I have a div that plays a given video in it. Here is the HTML code <video id="tutorial_video" width="100%" height="100%"> <source src='videoURL' type='video/mp4'> Your browser does not support the video tag. </video> What I want is not to set the URL in the src as this will allow anyone to...

More than one target with the same function

javascript,video
I trying to use Video JS HD Toggle Plugin to delivery more features to my users but I do know how to have two videos at same page and use the HD plugin on my player. How can I change the code and put it to work with multiple videos?...

FFmpeg move overlay from one pixel coordinate to another

video,ffmpeg
I'm trying to write a command within FFmpeg that will first overlay one video stream on top of another one. Then I want the overlayed video to move from one pixel coordinate at a known time, and end at another pixel coordinate at a later time. I'm comfortable with the...

How to detect squares in video with OpenCV?

c++,c,opencv,video
So I combined squares.cpp with cvBoundingRect.cpp code to detect squares in video. I therefore, had to convert from IplImage to Mat type so that findSquares and drawSquares methods could run (By using cvarrToMat function). But unfortunately, after successful compilation I get this error when running: OpenCV Error: Assertion failed (j...

Getting All Uploaded Videos

java,video,youtube
I need a Java method which gives me a list with all YouTube watch urls (or video ids) uploaded on my own YouTube channel. Since private and unlisted videos are supposed to be included, authentication has to be given via username and password or OAuth 2.0. Also, I'm aware of...

Can I embed my Picasa video to play on my website?

video,embed,picasa
Is it possible to embed my Picasa videos (not the whole album) on my website so it plays directly on the website without redirecting back to Picasa (kinda like youtube embedded videos)? I've seen this done on another website but can't seem to get mine to work. Picasa keeps giving...

WMV and MP4 support in TnyMice editor

video
I am using the latest version of TnyMice (4.1) in a custom CMS and find that it no longer supports WMV or MP4 video. Using the INSERT media produces an error "No video with supported format and Mimetype found". The other option of using EMBED video expects the user to...

How to play video in video view from url based on buffer %age in android?

android,video,mediacontroller
I have a link of video from s3 server and i am playing this video on VideoView. Video is playing properly but the problem is that first it downloads the entire video then plays it. I want it play like buffer. I mean if 20 % video downloaded it should...

video texture loop in pixijs

html5,video,html5-canvas,pixi
I am able to load a video texture and render it using pixi // create an new instance of a pixi stage var stage = new PIXI.Stage(0x66FF99); // create a renderer instance var renderer = PIXI.autoDetectRenderer(window.innerWidth, window.innerHeight); // add the renderer's view element to the DOM document.body.appendChild(renderer.view); requestAnimFrame(animate); // create...

Converting images to video format

java,image,video
I have searched a lot for Java libraries that can convert images to video format. However, I couldn't get any of them to work. So, could you suggest a library that can convert images to video format that is user friendly. And also pleas give an example of how to...

AS3 Center Video in StageVideo

actionscript-3,flash,video,centering,stagevideo
I've a brief question that I'm sure some AS3 genius knows. I'm surprised I haven't seen any other topics on this after 30 minutes of Google-fu, StageVideo seems to be largely silent. So I've been trying out the StageVideo API in place of traditional Videos for better video playback. This...

Matlab - combine two videos into a single split-screen video

matlab,video,matlab-cvst,avi,split-screen
I have 2 videos I would like to play side by side in a split screen. They are same duration and dimensions. I found a code developed few years back to do the job. The problem is, it is full of errors maybe due to the fact I am using...

Bootstrap modal and multiple vimeo videos

jquery,twitter-bootstrap,video
I have a page that has multiple videos embedded. Each link opens up the video in bootstraps modal. The problem I have is if I close the modal the video is still playing. I found a script that will force this to stop but then my next issue was the...

Why does video resolution change when streaming from Android via WebRTC

android,google-chrome,video,webrtc,video-processing
I'm trying to stream at 640x480 from Chrome on Android using WebRTC, and the video starts off at that, but then the resolution drops to 320x240. Here are the getUserMedia parameters that are sent: "getUserMedia": [ { "origin": "http://webrtc.example.com:3001", "pid": 30062, "rid": 15, "video": "mandatory: {minWidth:640, maxWidth:640, minHeight:480, maxHeight:480}" }...

Need to remove loop in autoplay background video jquery

javascript,jquery,loops,video,autoplay
I'm new to jquery and I have a video running in the background of a homepage of a website I'm working on. The video is on autoplay and is looped but I only want it to play once. I looked online to see how I could remove the loop but...

No video with supported format and MIME type found

internet-explorer,firefox,video,html5-video
So i have this video element on my website <videogular vg-responsive="true" vg-theme="config.theme.url" vg-player-ready="onPlayerReady($API)" vg-complete="onCompleteVideo()" vg-theme="config.theme.url"> <vg-media vg-src="config.sources" vg-tracks="config.tracks" vg-native-controls="true"> </vg-media> IF i view this in chrome there is no problem and the video is displayed if however i view the same page in Firefox i get the following error: No...

Emulation prevention bytes in MP4

video,ffmpeg,mp4,h.264,libavcodec
H.264 defines that a sequence of two zero bytes should be escaped by adding a '3' byte after the two zero bytes ("Emulation prevention"). Is this escaping rule correct also for the mp4 file format? The question is followed by results of debugging ffmpeg. I've tried to open the following...

Video in original VC continues playing after switching to a different tab in tab bar

ios,swift,video,uitabbarcontroller,uitabbar
I currently have a view controller that is playing a video. When i click a tab in in the tab bar, I switch to a new VC but the audio from the original video is still playing. Is there any way to stop the audio? Thank You! ...

Pause HTML5 video when out of view

javascript,jquery,html5,video,html5-video
I've built a multimedia slider with images and html5 video using slick slider-- a fiddle can be viewed here-- and I'm trying to find a way to automatically pause any videos that might be playing that are not active in the slider, i.e. those that are out of view. Thus,...

When debugging on an Android device, Video objects sometimes refuse to play a Camera or a NetStream object

android,flash,video,mobile,air
I have been coding in Flash for a while, though I haven't worked a whole lot on AIR Mobile yet. That being said, when debugging on an Android device via USB, Video objects sometimes work just fine when Camera or NetStream objects are attached, and sometimes they refuse to do...

How to modify the content of WebRTC MediaStream video track?

javascript,html5,video,browser,webrtc
I use WebRTC in a scenario in which the client video stream is recorded on a third-party server https://tokbox.com/. I would like to put some kind of watermark in the recorded video. Investigation brought me to this page http://w3c.github.io/webrtc-pc/#mediastreamtrack and it seems that it is technically possible since it says...

ffmepg video from uneven sequence of png images

video,ffmpeg,screencast
I'm going to make a video from series of screenshots (.png files). For each screenshot there is assosiated timestamp information about when it was taken. The time intervals between screenshots may vary and it's highly desired to preserve that difference in the video. Is there a way to use single...

html crop height video to height 100vh, video to fullscreen

html,css,video
I am struggling with a stupid little thing. Working on this site: http://i333180.iris.fhict.nl/p2_vc/ (sorry for the slow server, school stuff you know) The video you'll see is on height vh100, witch is wat i want. When I have this video on the max height of your browser the width of...

why video background is not working in mobile devices?

video,html5-video
I have been using HTML5 video background on my website. It's working good in computer, but it's not working on mobile devices.

Responsive Video Window resize (possible js / jquery conflict)

javascript,jquery,html5,video,resize
I have a module wherein a user can select which video file to play for the smartphone, tablet and desktop. Let's say the user uploads three different videos. When you go to the site(local) it loads the appropiate file according to screen size so the document ready code is working....

node js & videogular loading video using node

javascript,node.js,video
So i have the following node code for uploading video to my node server: var fs = require('fs'); var videoExtensions = ['mp4','flv', 'mov']; //Media object function Media(file, targetDirectory) { this.file = file; this.targetDir = targetDirectory; } Media.prototype.isVideo = function () { return this.file.mimetype.indexOf('video') >= 0; }; Media.prototype.getName = function ()...

Mp4 to HLS using ffmpeg

ios,video,ffmpeg,m3u8,hls
I'm trying to convert a local .mp4 video to HLS using ffmpeg in an iOS app. I have integrated the ffmpeg wrapper using pods and generated all the segmented .ts files and the m3u8 file, but some of the .ts file segments are not listed in the .m3u8 playlist file...

Autoplay video JQuery when video is in center of my screen

jquery,video
i need your help. I want to launch my video when the video is around in a center of my screen , and put in pause when its around out of the screen How i can do this? Actually, i have just this code : <%= video_tag 'Garden.mp4', :height =>"350px",...

OpenGL: How to get a pointer into video RAM for a texture's pixels?

opengl,video,ram
I would like to directly access the pixels of texture in video ram. Is this possible in OpenGL?

Video Delivery Performance of Node+Express vs Apache

node.js,apache,video,express
I'm using a nodejs+express server to deploy a website. On that website, I'll have hundreds of videos (mp4) that I want my users to load and view. Right now, I'm delivering the videos by putting them into the public directory of node, so the data is piped through node and...

how can i get image more than one video in ffmpeg in a loop

vb.net,video,ffmpeg,video-editing
i am writing a simple application for creating thumbnails of multiple video somunteneously .but the problem is the image file namei.e one name so it only save the last video thumbnail in the folder . enter code here For Each fi In aryFi proc.StartInfo.Arguments = " -i " + fi.FullName...

How Does YouTube Stream Long-Form Videos to Mobile

html5,video,mobile,youtube,streaming
I'd like to know how YouTube plays long-form videos so quickly, with seeking, on mobile. This is an example video: https://www.youtube.com/watch?v=eyU3bRy2x44 I can load it just fine on mobile within 5-15 seconds and I can even seek through it. Are they using HLS? Or are they using any other streaming...

How to read all video type in a video tag

javascript,php,html5,video,codec
I make a web interface for my server and I want to read all my video, but I have some problems: When I change the innerHTML (in javascript) of my video tag with a new source tag, it keep playing the previous video then I need to refresh the page...

Load Html5Video 100% then show Page

jquery,html5,video,html5-video
I need to load a Html5 Video 100% then i need to "play" it and show my page with the video. I need to do this because my video is a little big and its start without load 100% and freeze...

Loading HTML Video With jQuery not working anymore

javascript,jquery,wordpress,video,localization
Here is the Development site: legiondesigns.com/pauls And I also posted a previous question here Loading HTML Video With jQuery and that was working for a few days then it just stopped working. I am using WordPress 4.2.2 so I know that I have to use "wp_localize_script" which I have done....

Ignore HTML5 on mobile devices

javascript,html,css,video,html5-video
Right now, I have a background video that I'd like to display only on devices larger than 768px (width). When you collapse the browser past 768px, the video disappears, and the poster.jpg for the video is displayed as the background instead. All is working well with simple CSS, but the...

which is more performant,

javascript,html5,video,canvas
I am developing a page with a full width / full height intro video (100vw / 100vh), looks "full screen" until you scroll down. Currently I am using HTML5 <video> to accomplish this, but I've noticed the page can get a little choppy, particularly while scrolling. The video is about...

Loading HTML Video With jQuery

javascript,jquery,html,video
So what I am trying to to is load different video based on the screen size of the device. Here is my jQuery: var v = new Array(); v[0] = [ "header.webm", "header.ogv", "header.mp4" ]; v[1] = [ "mobHead.webm", "mobHead.ogv", "mobHead.mp4" ]; var src = $('#bgvid source'); if(window.innerWidth >= 642){...

Autoplay / Pause when mouseover mouseout JQuery

javascript,jquery,video,autoplay
I have the following problem. Here is the code: <div class="article-content-wrapper> <%= video_tag 'Garden.mp4', :class => "video", :controls => true %> </div> On mouseover I want the video to go on autoplay/resume, and on mouseout, the video to pause. How I can do that with JQuery? I searched a lot...

Javascript - how to tell the video element to stop playing the video at xyz duration?

javascript,jquery,html5,google-chrome,video
I have content in French, Nederland, English (on same topic example: "global warming" ) But its in one large file, how can i tell the video element to please play from duration 00:00:00 till 00:05:00 only do not play the whole 02:00:00 ? function video_play_onetime_withcut(input) { $('#mediaplayer').prop('loop', false); $('#mediaplayer').attr('src', filename).show();...

How to render video in browser before uploading it using angularjs?

javascript,html,angularjs,video,upload
I want to render the video in the browser before its uploaded to server.I have done the code in angular js. here is my codes html(jade) input(type='file' ng-file-select="readURL(this)" accept='video/*') video(width='320', height='240', controls='') source(id ='blah' src='#', type='video/mp4') javascript: $scope.readURL = (input) -> console.log "inside" if input.files and input.files[0] console.log 'hello' reader...

Catch HTML5 autoplay not available

html5,video,html5-video
So there is this *** restriction: HTML 5 Autoplay Google Chrome Android Not Playing It is not possible to autoplay a video on Chrome Android. How can I catch this in the code? if (video.mediaPlaybackRequiresUserGesture) { // Display a call to action for starting video } ...

How to show image like video in facebook

facebook,image,video
I want to ask about how to show image like video in facebook Look if you post this link in facebook post area will show you video but no video in this link.

Rev slider loading issue in WordPress

wordpress,video,plugins,slideshow
I have a revolution slider on my WordPress site with a video in my banner. It was working just fine and suddenly I got a black box for about 15-20 seconds before it loaded. In the meantime I've added a banner image as the background for this div so it...

Qt 5.5 Video shader issue on iOS

ios,qt,video,multimedia
I'm working with Qt(especially 5.5) on iOS device not simulator I'm just add Video object to QML code for play HLS stream like below. Video { id: livePlayer anchors.fill: parent source: "http://content.jwplatform.com/manifests/vM7nH0Kl.m3u8" autoPlay: true } But Qt returns me bug with log like below Failed to find shader ":/qtmultimediaquicktools/shaders/rgbvideo.vert" Failed...

Using libav-tools versus libav built from source - video quality much worse

video,libav
We are trying to create a video from still images, running on Ubuntu 14.04. If we have installed libav-tools then the output video is much higher quality than if we have installed libav manually. Unfortunately, we need to run a solution where libav is built from source, so we want...

Can I write videos pixel-by-pixel in javascript?

javascript,html,video
I am trying to port a program from python (using OpenCV) to javascript/html, which generates a video where pixel colour are determined by a random function of its coordinates and its frame number. I already created a program that creates still images in this fashion in javascript/html, but I'm having...

How to Display multiple videos from JSON using jQuery

javascript,jquery,html,css,video
I want to display videos on HTML using J Query, all videos should have same height and width and i cannot use for loop for this and I have data set like this function appendReturnedVideos(data) { var $html = $(); $.each(data.videos, function(index, element) { $html = $html.add($("<video/>", { height: 400,...

Embed video stop on div hide

html,video,hide,embed
Ok, so I'm currently using the code below, to hide and show a div. The div contains a video which is embedded direct from an MP4 link, the problem i'm having is when I hide the div, the video continues to play in the background, how do I stop this.....

Attach data to simpleWebRTC room or video

javascript,php,video,webrtc
I'm using simpleWebRTC for a multi-party video chat. Each user creates his own room. When a user subscribes to another (in order to see this person 0 and registers in the db). When a user chooses another - he gets this users username by XHR from the db. I tried...

C# send video frame

c#,video,udp,frame
I would like to send video frames using UDP connection from the client to server. How do I get the video frame from my webcam? Do I need to save every frame to my computer and from there send it to the server? If i run on 30fps which means...

Timer flash to show something at the right time

actionscript-3,flash,video,timer
I want to make a timer that will show text at my panelText (dynamic text box) at specific time, actually I have a video that I want to have subtitles, and I want to use timer, my video is 3 minutes and 37 second long, and I have script that...

Javascript pause loop till event

javascript,loops,for-loop,video,eventlistener
I have javascript question,this is part of my code: for(var a = 0; a < videos.length; a++) { source.setAttribute('src', videos[a]); video.load(); video.play(); for(var b = 0; b < times[a].length; b++) { video.addEventListener("timeupdate", function() { if (this.currentTime >= times[a][b]) { this.pause(); var answer = prompt("Please answer the question", "Answer"); } },...

HTML5 Canvas drawImage with video source not working on Android

android,html5,video,canvas,drawimage
I am trying to use canvas's drawImage method with video source, but it's not working in Android 4.4.2, tested with Chrome browser. Here's my code: $(function() { var canvas = document.getElementById('canvas'); var ctx = canvas.getContext('2d'); var video = document.getElementById('video'); var videoWidth; var videoHeight; var paused = false; canvas.addEventListener('click', function() {...

OpenCV Java RGB BGR

java,opencv,image-processing,video
I tried several times to obtain a normal video in Java with OpenCV but all the time I have the colours switched: I mean when I run the program blue is orange in the video. Here is my code: public class Mat2Image { BufferedImage img; Mat mat = new Mat();...

MediaElement freezes upon launch of video

c#,wpf,user-interface,video,hang
I'm working on a project that is designed to play both audio and video files through a WPF Window through a MediaElement. This is the xaml for the window: <Window x:Class="HomeSystem_CSharp.MediaWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="MediaWindow" MinHeight="480" MinWidth="720" WindowStyle="None" ResizeMode="NoResize" Visibility="Visible" Cursor="None"> <Grid Background="Black"> <MediaElement LoadedBehavior="Manual"...

Create a new html5 video object with jQuery

jquery,html5,video
How can you create a video element with jQuery, and add it's properties like control to true (<video control>), add and remove video sources (<source src='http://somesite.com/somevideo.mp4'), etc? I would like to set all it's options before loading (like autoplay, true or false, etc) I tried this without success (It worked...

Stop auto-play video

javascript,html,css,iframe,video
I am playing a video with in iframe. which is in auto play mode. I want to make it play on click. Can I get any help in this? <iframe width="896" height="424" src="http://link.brightcove.com/services/player/bcpid1956333307001?bckey=AQ~~,AAABxzD3Y9k~,w_VmDmf4kc-gzMlyacBFjrfIduWxlrSQ&amp;bctid=4235240679001" id="video"></iframe> ...

Merge 2 video files with thier audio in a single file side by side

audio,video,ffmpeg,mux
I need to merge 2 video files along with their audio in single file side by side. I am able to merge 2 video files in single file but it using audio of first video file only, where as I need to merge audio of second file as well. below...

Verify youtube api v3 video exists JS

api,video,youtube,exists
I used the v3 API to check if a youtube video exists, however, I am not able to fetch the return data. I assume I need the "pageInfo": { "totalResults": 1, "resultsPerPage": 1 }, to check it. But how to get this information using the following code? var data =...

FFmpeg: How to convert vertical video with black sides, to video 16:9, with blurred background sides

video,background,ffmpeg,blur
How to make this by using FFmpeg? Example without FFmpeg: Adobe After Effects Sony Vegas Pro...

Video is in low fps when playing on TextureView

android,video,textureview
I'm creating video filter for Android app, so I'm using TextureView to play video and filter on its SurfaceTexture. But the FPS of video's always lower than original(30fps). As I checked on Galaxy S3, onSurfaceTextureUpdated() only enter 5~8 times per sec although having filter or not. But on stronger device,...

Javafx - Create player (which doesn't play file)

java,video,javafx,media,player
I have a class that create video player (code is attached below), this class work only with video file. I want to show the player without a video file, and when I send to the object, by public method "setFile", it's will start to play. I tried to send "null",...

What is the best practice add video background view?

ios,objective-c,swift,video
I want to add background view with video (or gif) like in app "Uber" I'd like to use video background view for a long time in my app. And I want to know the answers to these questions: What of them will consume less battery energy Can I use it...

Get Video File and save using c#

c#,asp.net-mvc-4,video,file-io
I am working on MVC4 web api,where I need to get video file from server path("C:\web_app\content\video\demo.mp4") and need to save that video to the different location("C:\video\demo.mp4").Video format is "MP4". Thanks in advance....

getting the current duration of recorded video using PBJVision

ios,video,camera
How can I get the length of the video session in seconds? I understand that I may have to do some sort of conversion of CMTime in didCaptureVideoSampleBuffer, but I can't seem to find the right property...

MP4Parser creates corrupt mp4

java,android,video,mp4,mp4parser
I'm using mp4parser to add two videos together in an android app, but the output is a file I can't play with my phone or my computer (Windows Media Player and VLC). This is the function i use public void MergeVideos(String[] pathsToVideos, String pathToOutput) throws IOException, InterruptedException { List<Track> tracks...

Stacking 3 gmp4-files using Avisynth and VirtualDub, results in wrong colors and distorted files

video,ffmpeg,avisynth,virtualdub
I need to conduct the seemingly simple task of stacking 3 files next to each other. They are all the same: .avi Container, 320x240, 4:3, 25 fps, GeoVision Advanced MPEG-4 GEO codec. I installed the GeoVision codec (http://www.geovision.com.tw/english/5_8.asp# - select "other utilities"), so my system (windows media player, media player...

ffmpeg recording h264 live stream got error

c,video,ffmpeg,video-streaming,video-capture
I am trying to record a h.264 live stream using the following code: AVOutputFormat* fmt = av_guess_format(NULL, "test.mpeg", NULL); AVFormatContext* oc = avformat_alloc_context(); oc->oformat = fmt; avio_open2(&oc->pb, "test.mpeg", AVIO_FLAG_WRITE, NULL, NULL); AVStream* stream = NULL; ... while(!done) { // Read a frame if(av_read_frame(inputStreamFormatCtx, &packet)<0) return false; if(packet.stream_index==correct_index) { //////////////////////////////////////////////////////////////////////// //...

How to play video backwards in WPF?

c#,.net,wpf,c#-4.0,video
I want to smoothly play video in backwards direction in WPF. I am using MediaElement to play the video. I read this post which suggests changing MediaElement.Position periodically to mimic the rewinding behaviour. I tried following code for changing position of MediaElement.Position private void Button_Click(object sender, RoutedEventArgs e) { mePlayer.Pause();...