Issue How do I split my folder containing multiple video files into train and test folders based on dataframe variables that tell me the which video should be in the train folder and which video should be in the test
Continue readingTag: video
FFmpeg saturates memory + CPU usage drops to 0% during very basic conversion of PNG files to MP4 video
Issue I have this Python function that runs ffmpeg with minimal options from the Windows command line: def run_ffmpeg(frames_path, ffmpeg_path=notebook_directory): ”’ This function runs ffmpeg.exe to convert PNG image files into a MP4 video. Parameters ———- frames_path : string Absolute
Continue readingChanging the output of a convolutional layer to a tuple of tensors
Issue For processing video frames, I use the squeeze and excitation block for weighting the channels of a convolutional layer. I want to combine (using torch.stack) the channels(feature maps) of a convolutional layer with the weighted channels (by using the
Continue readingcv2.VideoCapture inconsistent behavior between cap.set and loop read
Issue I was trying to read the 600th frame of a video using cv2.VideoCapture. However, I found that the following two methods both successfully read an image but the images are different. I was wondering which is the correct way
Continue readingStoring RTSP stream as video file with OpenCV VideoWriter
Issue I’m developing a Python module, with OpenCV, that connects to an RTSP stream to perform some preprocessing on the video (mostly, reducing fps and resolution), and then store it in the file system. But, even after trying several codecs,
Continue readingRead video frame directly in grayscale with Python OpenCV cv2.VideoCapture()
Issue I am working with OpenCV. I have a video file, and I want to read it in grayscale, instead of converting every frame in grayscale. i.e cap = cv2.VideoCapture(VIDEO_PATH) results = {} curr_frame = 0 start = time.time() while(cap.isOpened()):
Continue readingAre raw video better than mp4 encoded video as an input for a Neural Network?
Issue I am working on a project for a university exam in computer vision where the objective is to analyse different road scenarios from videos. For example, it is to do instance segmentation of street images to recognise various objects
Continue readingVideo loading message until response comes from backend
Issue Video Upload.js var json = { “request”: { “service”:{ “servicetype”:servicetype, “session_id”: session_id }, “data”:{ “rolename”:rolename } } }; FileService.uploadFile( json, file ).then(function(res){ console.log(JSON.stringify(res)); if( res && res.status.code == 0 ) { $scope.getVideo( res.data.mediaids[0] ); $scope.getAll(); } else FlashService.Error(res.status.message, true);
Continue readinghtml5: display video inside canvas
Issue is it possible to display a html5-video as part of the canvas? basically the same way as you draw an Image in the canvas. context.drawVideo(vid, 0, 0); thanks! Solution var canvas = document.getElementById(‘canvas’); var ctx = canvas.getContext(‘2d’); var video
Continue readingrestart html video with javascript
Issue I have a tag in my html code with a locally stored video in it (not a link from youtube). I know there is a way to play/pause the video from javascript by using .pause() and .play(). Lets say
Continue readingNode.js: Is it possible to extract sub-clips from a broader video file based on start/stop time stamps?
Issue I have a flow where iOS app users will record a large video file and upload it to our server. After the fact, the user might want to extract certain portions of that larger video based on specific time
Continue readingAlign volume panel to right
Issue I need to align volumePanel to the right corner. It seems API hasn’t this functionality, so, I’ve done a lot of attempts on CSS, but it doesn’t want to move 🙁 I’ve built a ready-to-work template at codesandbox. Help
Continue readingAlways showing video controls
Issue Is there a way to Always show the video controls in the HTML5 video tag instead of just showing them on MouseOver? Video code: <table cellpadding=”0″ cellspacing=”0″> <tr> <td runat=”server” width=”680px” height=”383px” id=”vContainer”> <div style=”z-index: 1;” runat=”server” id=”cont”> <div
Continue readingHow can I add a transparent image overlay on top of a video?
Issue I currently have a series of video thumbnails that play/pause when onmouseover or onmouseout occurs. I would like to add a logo with a transparent background (a .png file) that sits on top of the video and then disappears
Continue readingAndroid WebView crashes trying to play .mp4 video via <video> tag
Issue We have Android Studio 2.0 installed. Using android studio 2.0 we have created new application. Inside that application we added WebView. We try to open our webpage inside webview. Our webpage contains following video tag: <video id=”my_video” width=”100%” height=”100%”
Continue readingHow to determine the intended frame-rate on an html video element
Issue Is there a way to determine the intended frame rate of content playing in the html video element? Does the video element even know the intended FPS or frame count, or does it simply “guess” (maybe 24fps) and play
Continue readingAutomatically Pause Embedded iFrame Vimeo Video at Specific Time?
Issue I’m using a Vimeo video-embed (iFrame embed code from their website) on my website, and I need the video to automatically stop at a specific timestamp (I’ll use 6 seconds here) whenever users of my site play the video.
Continue readingWorking on Angular Project and I am trying to center an auto-playing video. It ends up steering right of the screen everytime
Issue Hello StackOverflow Community, I am working on a project in Angular so it doesn’t accept some of the normal HTML Attributes for front end work. When I attempt to center a video I play, it ends up steering to
Continue readingOpening Youtube video, after clicking a custom button
Issue I’m not sure if this is the correct place to ask this but, I am trying to implement something similar to what Project Jacquard by Google have done in this website https://www.google.com/atap/project-jacquard/ As you can see, there is a
Continue readingHTML5 Javascript Play/Pause button
Issue I’m attempting to customise the control buttons on my video player. Currently I have a button that plays and pauses my video. This is working great. Though I want a visual representation of the play and pause buttons, instead
Continue readingrandom video generator in HTML
Issue I used a simple random number generator and named my mp4 files “1” “2” and “3” and my html page is blank code: <!DOCTYPE html> <html> <head> <meta charset=”UTF-8″> <title>Connor’s video clock</title> </head> <body> <script> < div id =
Continue readingHTML + JavaScript custom player for multiple videos on a website page
Issue EDIT: I have found the solution, posted and marked as the best answer below. I’m coding a portfolio website for myself using HTML, CSS and JS and I need to add multiple videos on a lot of pages. I
Continue readingHow can I redirect to a URL after a HTML video has ended?
Issue I am trying to redirect to a different URL after a html video has ended. This cannot be using a FLASH player as it won’t work on iOS devices. Any help or direction will be appreciated. Here is my
Continue readingAutomatic height when embedding a YouTube video?
Issue i’ve embed a YouTube video on my website but the trouble is that i need the height to automatically adjust based on the width and the aspect ratio of the video. So if my width is 1280, my height
Continue readingplay video from data in File object
Issue Is it possible to play video by somehow passing data from a File object into a <video> tag? I know you can base64 encode things to put include the data in the DOM, but I understand there are size
Continue readingplay video from data in File object
Issue Is it possible to play video by somehow passing data from a File object into a <video> tag? I know you can base64 encode things to put include the data in the DOM, but I understand there are size
Continue readingHow can I place a embedded video on-top of an image in HTML/CSS?
Issue So I’m trying to create a simple layering technique, by putting an image behind a video in html/css. To give the video section some meaning and background style. Heres a photoshop mockup of what I’m trying to achieve. http://s8.postimg.org/tl749vxvp/example.jpg
Continue readingHow can I redirect to a URL after a HTML video has ended?
Issue I am trying to redirect to a different URL after a html video has ended. This cannot be using a FLASH player as it won’t work on iOS devices. Any help or direction will be appreciated. Here is my
Continue readingelements over video in native full screen mode – SAFARI
Issue This bug is appearing only in Safari on Mac OS and only with the current set up in our application. Initially I though it was a z-index issue, since some elements disappeared after updating that value. Although there’s a
Continue readingMuted video fails to autoplay when inserted into HTML via Javascript
Issue I am trying to insert an HTML5 <video> element through Javascript, but it fails to autoplay despite it being muted. Background Context I would like to transfer all of my gif assets over to an mp4 format. Likewise, I
Continue readingonmouseover & onmouseout help – unable to continually to do it
Issue This is my code, I am trying to make so when I hover over the image it plays a video, and when you hover off it stops the video and goes back to the original image. The issue is
Continue readingVideo text overlay with "responsive" center alignment
Issue I am trying to display a full width video with an overlay text that sits centered on the video vertically and horizontally. The centered positioning should respond to changes in the viewport width such that it is always centered.
Continue readingVideo text overlay with "responsive" center alignment
Issue I am trying to display a full width video with an overlay text that sits centered on the video vertically and horizontally. The centered positioning should respond to changes in the viewport width such that it is always centered.
Continue readingWhy is my photo overlapped by my video's player when hovered?
Issue Basically when hovered, my image is *2 scaled and it overlaps my video as I expect it to, the problem is that it only overlaps my video, not the player with the timer and the play button of my
Continue readingHow to set the download file extension for blob data
Issue In my site video use the blob data, when the video was downloaded, the saved filename is the blob name with .txt(4671addc-3ce0-4eb6-b414-ddf3406b1fe5.txt) extension in Chrome borwser, while in firefox is with .mp4(4671addc-3ce0-4eb6-b414-ddf3406b1fe5.mp4) extension. How can I specific the download
Continue readingHow to set the download file extension for blob data
Issue In my site video use the blob data, when the video was downloaded, the saved filename is the blob name with .txt(4671addc-3ce0-4eb6-b414-ddf3406b1fe5.txt) extension in Chrome borwser, while in firefox is with .mp4(4671addc-3ce0-4eb6-b414-ddf3406b1fe5.mp4) extension. How can I specific the download
Continue readingHow to put a background video loop on a website HTML/CSS
Issue I’m trying to put a video as a background video on my website. I’ve researched a lot and it is not working and I don’t know why. On my html I have: <video id=”bgVideo” controls preload=”true” autoplay loop muted>
Continue readingHow to put a background video loop on a website HTML/CSS
Issue I’m trying to put a video as a background video on my website. I’ve researched a lot and it is not working and I don’t know why. On my html I have: <video id=”bgVideo” controls preload=”true” autoplay loop muted>
Continue readingWhy is my photo overlapped by my video's player when hovered?
Issue Basically when hovered, my image is *2 scaled and it overlaps my video as I expect it to, the problem is that it only overlaps my video, not the player with the timer and the play button of my
Continue readingHTML5 Canvas drawImage from video not showing on first draw
Issue I have a video element with a canvas overlay. Then I have a drawing tool setup to draw over the video and a save button that does a drawImage from both the video and then the canvas to save
Continue readingEncrypt video served by php to only show on certain html player
Issue Im using following php code to display a video to an html player ( video.js library ). if ($fp = fopen($path, "rb")) { $size = filesize($path); $length = $size; $start = 0; $end = $size – 1; header(‘Content-type: video/mp4’);
Continue readingHTML5 frame-by-frame viewing / frame-seeking?
Issue I’m looking for a way to view HTML5 <video>, frame-by-frame. The scenario: Having a video, with an additional button that skips to the next frame when pressed. What do you think is the best method to do this? Play
Continue readingHow to change the playing speed of videos in HTML5?
Issue How to change the video play speed in HTML5? I’ve checked video tag’s attributes in w3school but couldn’t approach that. Solution According to this site, this is supported in the playbackRate and defaultPlaybackRate attributes, accessible via the DOM. Example:
Continue readingLimit the number of times an HTML5 video plays
Issue I know I can loop a video infinitely using the ‘loop’ attribute. But can I limit the number of times the video loops to perhaps 5 times? Solution You will need to use JavaScript to achieve this. Have a
Continue readingPlay infinitely looping video on-load in HTML5
Issue I’m looking to place a video in an HTML5 page that will begin playing on page-load, and once completed, loop back to the beginning without a break. The video should also NOT have any controls associated with it, and
Continue readingWhat is the difference between canplay and loadedmetadata event listener for video?
Issue I was wondering what the difference between loadedmetadata and the canplay event listeners for video. According to MDN: canplay Sent when enough data is available that the media can be played, at least for a couple of frames. This
Continue readingProblems fitting a video background with css grid
Issue new here at every aspect xd Sry for my bad english. Im trying to make a typical "background" video at my page but i can’t to make the video fit the content of the grid cell whatever I do.
Continue readingGenerate ffmpeg thumbnail from stream in Node.js
Issue Im using node.js together with ffmpeg to receive an rtmp-stream and output this into m3u8-format. [ ‘-y’, ‘-fflags’, ‘nobuffer’, ‘-analyzeduration’, ‘1000000’, ‘-i’, ‘rtmp://localhost:1935/live/ANMZJ2ZRUiMhKaAoygRXwAfHe’, ‘-c:v’, ‘copy’, ‘-c:a’, ‘aac’, ‘-f’, ‘tee’, ‘-map’, ‘0:a?’, ‘-map’, ‘0:v?’, ‘-y’, ‘-an’, ‘[hls_time=10:hls_list_size=0]./media/live/ANMZJ2ZRUiMhKaAoygRXwAfHe/SX3otgDdf6/index.m3u8|’ ] Together with
Continue readingPlaying and looping multiple videos in a file (HTML)
Issue I cant seem to get the videos to loop continuously. It is only playing one video so far. <body onload=”onload();”> <h1>Video Autoplay</h1> <div id=”message”></div> <input type=”file” id=”ctrl” webkitdirectory directory multiple/> <video id=”ctrl” onended=”onVideoEnded();” autoplay loop></video> <script> var playSelectedFile =
Continue readingCan't change the background behind a text, in which a video is playing inside it
Issue I have made a text inside which a video is playing. I can’t change the background, behind the text, to something different that white color. I would like to add a photo as a background instead of white color.
Continue readingAngular HTML Fullscreen Video Autoplay Not Working
Issue Can anyone explain why this autoplay video is not working in chrome? The video is stored in firebase storage. It plays when you visit a page and then go back to home page, but not when you first enter
Continue readingCalling AngularJS controller function when html5 video ends
Issue I have a video on the homepage of my app which plays when I launch it. When the video ends I’d then like to use some CSS 3 transitions to move the page around. <ion-view hide-back-button=”true” title=””> <ion-pane> <div
Continue readingHow can I align a video to the right?
Issue I have an HTML5 video with a height greater than its width. I gave the video 100% in height and 100% in width, so it scales automatically depending ob my window size. But I want the video to be
Continue readingVideogular fails to play video
Issue I have dynamically binded the video src tag using angular.But videogular fails to append the video url. Below is my videogular tag with angular bind expression where it binds video url dynamically. <vg-media vg-src='[{src: “{{selectedVideo.Uris[0].AbsolutePath}}”, type: “video/mp4″}]’ vg-loop=”controller.config.plugins.controls.loop” vg-preload=”controller.config.plugins.controls.preload”>
Continue readingHow to disable HTML Video Player playback speed / three dots
Issue I don’t want to show playback speed in my video, is there any controls or controlList properties to disable that option like controls disablepictureinpicture controlslist="nodownload" Solution According to the docs only three options are available (nodownload, nofullscreen, and noremoteplayback)
Continue readingffmpeg Error: Too many packets buffered for output stream
Issue I am working on an electron app that uses ffmpeg, I am developing on a win10 machine so I am using command prompt and I have installed the npm package ‘ffmpeg-ffprobe-static’. I can run ffmpeg commands in the terminal
Continue readingpreparing mp4 file for html 5
Issue In html 5, I want to embed an mp4 like this: <video width=”640″ height=”480″ controls> <source src=”somefile.mp4″ type=”video/mp4″> Your browser does not support the video tag. </video> The video runs fine the the browser in my development machine, but
Continue reading