Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [video]

Video is an electronic medium for the recording, copying, and broadcasting of moving visual images. Use this tag for posts in which the code works with videos.

3
votes
2answers
45 views

SRT caption support for HTML5's video element

With HTML5 you can add captions to your video using the <track /> element. However, only vtt files are officialy supported, while the current most populair ...
3
votes
1answer
53 views

Building a timelapse with ffmpy

As a 'trying to learn Python' project, I am using ffmpy to stitch together a timelapse from a series of still images. I'd like the script to output a couple of formats for web use. This is what I ...
3
votes
1answer
120 views

C# screen recorder [closed]

After a while of working on it, I've finally got my screen recorder to work in C#. I'm looking for suggestions to improve the video quality as well as clean up the code a bit. Specifically I want to ...
8
votes
4answers
2k views

Screen recorder producing huge AVI files

I'm currently trying to make a screen recorder in C#, and so far it works but the problem is that something as simple as a 20second video will take about 1GB of space. I have it setup so a timer ...
1
vote
0answers
142 views

Convert video to GIF using ffMPEG

Looking for the best way to speed up or maybe move from FFMpegConverter to another application for converting video to GIF, because it takes much time, will be much ...
1
vote
2answers
40 views

A function that generates arrays of video thumbnails using canvas

I have just finished my first version of a function that returns an array of video screenshots created with canvas. What I am looking for are ways to improve this speed by as much as possible. I want ...
3
votes
2answers
105 views

Testing Video Frames for Uniqueness

I'm working on a program that will (hopefully) eventually allow me to perform frame rate analysis like Digital Foundry does. The code below works (as far as I know), but before I iterate on it, I'd ...
8
votes
2answers
52 views

Streaming scheduled TV shows according to a CSV playlist

I'm very new to Python, and I've made a small program/script that will allow me to stream specific files at a given time. My idea is that I have a .csv file for each day, with one row for each movie/...
5
votes
0answers
54 views

ffmpeg shell script to squeeze videos for Twitter

Here's a pretty rookie attempt at creating a shell script to squeeze videos into Twitter's 140s limitation: ...
6
votes
2answers
133 views

Prototype to add subtitle .srt support to any video element

I've written a JavaScript prototype which extends the video tag with a new function. ...
-1
votes
2answers
473 views

Adding text to video frames

I'm currently trying to add text to a video. To do so I've been manipulating each frame by adding text to each bitmap and then rendering a new video. ...
9
votes
1answer
573 views

Converting MP3 albums into MP4 videos for YouTube

This is a quick script that helps me to convert MP3 files from my CDs into videos I can upload on YouTube. It is intended for personal use, so no input error checks. I am creating a silent video using ...
3
votes
2answers
3k views

FFMPEG with Java Wrapper

In this java application, I am trying to convert an video into small clips. Here is the implementation class for the same ...
1
vote
0answers
569 views

Trimming a video, keeping quality

I am trimming an existing (stored in my gallery) video into smaller chunks; but I find the resulting video quality to be too degraded. ...
3
votes
1answer
3k views

Updating WPF image from camera frame grabber thread

I have created a WPF application in .NET 4.6.1. to display video from the frame grabbing event for a machine vision camera. In XAML there is an image control bound to a WriteableBitmap ...
1
vote
0answers
29 views

Duplicate Video Finder

This finds duplicate video files using size, duration and partial filename. I have a mass of 17000+ videos and it seems to do an OK job; the amount of duplicates has certainly reduced drastically. ...
1
vote
0answers
77 views

Display multiple video in video tag using timeduration in Grails Application

I've requirements to display video of some time duration in video tag. I've written following code for the same in my grails application. videoFeed.gsp ...
4
votes
1answer
6k views

OpenCV motion detection and tracking

I've been tinkering with Python and OpenCV for a while now, and thought I'd start an actual project. This is my first time making something that I'd actually consider using, and my first time posting ...
5
votes
1answer
3k views

Generate video thumbnail

I wrote a simple, yet disgusting video thumbnail image generator method—which uses the MediaToolkit .NET library. The code is not self-explanatory whatsoever, and it's extremely inefficient. It ...
2
votes
1answer
298 views

Random YouTube video player

I just finished making this quick and dirty random YouTube video player for fun and learning. Before I get started, by "random" I mean selecting a video from a list of videos using PHP RNG, not truly ...
2
votes
1answer
105 views

Media manager batch script for qbittorrent downloads + video sorting & duplicates check

I am building a complete-as-possible media manager in batch. It watches your qbittorrent downloads, processes them and sorts the media to your collection. This is the main part of the script which ...
4
votes
0answers
2k views

Capture, display, and save webcam video with openCV using C++

The basics were taken from one of the more basic OpenCV examples. Any comments are welcome regarding style and conventions, etc., as well as tips on using the OpenCV library, which I'm new to. Also, ...
13
votes
1answer
3k views

Streaming H264 video from PiCamera to a JavaFX ImageView

I'm currently working on a robotics application where a video feed is being displayed from a Raspberry Pi 3. I've been working on a way to stream the video directly into JavaFX (the rest of the UI is ...
3
votes
0answers
61 views

Remove pre-loader animations when all assets on page become available

This code starts when the page loads and when all assets become available, it removes pre-loader animation and page becomes visible. I know some functions has code repetition, but it can await ...
3
votes
1answer
74 views

Webcam frame splitter

I wrote a camera streaming app for pizero. Since the pizero is too weak to do any video encoding I am using it to just capture usb webcam frames (mjpeg format) and forward them over udp to a ...
2
votes
0answers
212 views

Watermark and join videos in bulk using ffmpeg

I have this batch file using ffmpeg to add a logo to my videos and then add an intro but it's taking anywhere from 10 hours to a day depending on how many I have to watermark, is there a more ...
1
vote
0answers
60 views

Counting dropped frames while converting uncompressed video data

I am writing a class for converting uncompressed video data which processes data in its incoming queue and stores them in its outgoing queue. Every time it tries to process a frame of a format it ...
4
votes
1answer
100 views

Analyzing the color composition of a video

Here is a snippet of code from a project I have been working on that can be found here. I am looking for suggestions on how I can improve my code to make it cleaner and maybe improve performance. <...
4
votes
2answers
140 views

Temporal kernel filtering on video frames coming in a loop

I have a video which I read in a loop frame by frame. For every frame, I want to do temporal kernel filtering, the coefficients of which come from the input variable model (a dictionary). The temporal ...
4
votes
1answer
132 views

Responsive video embedding

I figured out a alternative way to make embedded videos responsive and I like to have some feedback on it. Would this be considered a hack or just bad coding to add a extra piece of html to make this ...
1
vote
1answer
89 views

Video Feed via TCP Socket

I managed to send video feed over tcp socket using code and decode of string64. My problem is that the video feed is kinda laggy, and it's probably because of this time between coding and decoding. ...
3
votes
1answer
80 views

Display captions based on video time

I need to display a "caption" from a video but I cannot use built in captions provided by a vtt file for my situation. I created an array that stores the key,value pair (time, caption). I traverse ...
5
votes
1answer
8k views

H.264 image encoding using Media Foundation .NET

We have some video analysis software written in c# .NET that uses OpenCV via the Emgu.CV wrappers. The video frames come from a GiGEVision camera (not a normal capture device) which are then analysed, ...
4
votes
1answer
959 views

Google Analytics tracking for HTML 5 video player

The jQuery code is for html5 video event GA tracking and I want to make it a little bit more shorter and cleaner. The code works: I am getting all the events, but would like to make it more simple. <...
4
votes
0answers
1k views

JavaFX Scene Video Capture Utility

2 days ago as I was working on my game I decided I wanted to include some sort of a video showing sneak peaks of the themes and tutorials and such. I then decided to check how to record my scene or ...
4
votes
1answer
223 views

Bash script for xrandr modification

Simply, I call the script (brightness.sh) and pass a three character value as an argument. I've got commands to strip individual numbers for math processes, and then the final commands to apply the ...
0
votes
1answer
74 views

iframe play & thumbnail function

This is quite a simple function, but I just wanted some opinions on it, like is this the correct way to run a function and check if an element exists or not? ...
7
votes
2answers
2k views

Bare-bones C# MJPEG stream decoder implementation

I tried to prove to myself that MJPEG stream decoding can be accomplished using bare-bones .NET. So I wrote a class that decode MJPEG streams, trying to keep tips in mind: No allocation, except the ...
6
votes
1answer
152 views

Aligning out-of-sync subtitles

This is my 2nd program I wrote on my own, a pretty simple program consisting of two functions (those functions are not combined in any way yet though). The first function moves the display times of ...
2
votes
1answer
724 views

Interactive command line YouTube downloader with option to burn subtitles into video

EDIT: This code is now public on GitHub with more focused purpose in case anyone is interested. Thanks for the help! This is only used on Mac machines. I know that there is a Python implementation ...
2
votes
1answer
135 views

Creation of playlist to fake-split a full-album video

I created this snippet to "split" my full-album videos into its individual songs without the need of actually splitting the video file. I personally created this snippet because I enjoy reading all ...
4
votes
1answer
2k views

FFmpeg command line for showing two videos side by side

Here is command line for playing two videos side by side in sync in FFmpeg (ffplay). It can be useful for comaring videos, for example. ...
5
votes
2answers
3k views

Video streaming client

I have written a client for streaming video playback. The client uses two threads, a receive thread and a decode thread. Events are fired off periodically for drawing a completed frame onto a SDL ...
4
votes
1answer
222 views

Froogaloopelise - A Vimeo Wrapper

I have developed a tiny bit of JavaScript to quickly output a Froogaloop Vimeo video and some basic controls attached with almost no effort. You don't have to include the script from Vimeo (the script ...
4
votes
1answer
2k views

Converting uploaded video and saving preview images

I'm coding a basic video upload system for a client. The uploaded videos will live on the page using the HTML5 video element. Essentially what I've done is call the following PHP script ...
5
votes
1answer
1k views

Generating a thumbnail collage of videos

Just came home from a vacation, and I have a bunch of GoPro videos that I want to compile into a fun music video. In order to support this process, I wanted to write a script that would take all my ...
4
votes
2answers
659 views

HTML5 Video player

I do HTML5 Video player with some controls. I have a button, where I change classname for make play, pause or replay button. I have a mute/unmute button, volume range slider, timer and fullscreen mode ...
5
votes
3answers
249 views

Avoid static initializer for lists of image and video formats?

I wrote the following code to read constants from annotations: ...
7
votes
1answer
152 views

Displaying a video player to eligible users

I posted this on Stack Overflow, but it was suggested that I move it over to Code Review. I would like some feedback on the way I decided to clean up code from the in a .NET project that had ...
5
votes
1answer
62 views

Organize JavaScript for video player controls

I have a small piece of code, and the problem is that I don't know how to organize it. There are tons of tutorials about JS code organization but I feel that those are for large scale apps. Also, I'm ...