Questions tagged [video]
Video is an electronic medium for the recording, copying, and broadcasting of moving visual images. Use more specific tags when relevant, such as [video-editing] for questions related to trimming and modifying videos, [video-encoding] for questions related to editing videos into any format, and [video-processing] for questions related to processing videos with filtering video frames.
34,632
questions
557
votes
9
answers
1.3m
views
How do we download a blob url video [closed]
I want to download a video whose URL is not a simple MP4 file, but rather a blob type for example:
<video id="playerVideo" width="450px" autoplay="autoplay" height=&...
478
votes
11
answers
291k
views
How can I embed a YouTube video on GitHub wiki pages?
I am fairly new to markup (though it's extremely easy to pickup). I am working on a package and am trying to get the wiki pages looking nice as a help manual. I can insert a YouTube video link into ...
357
votes
24
answers
468k
views
Programmatically generate video or animated GIF in Python?
I have a series of images that I want to create a video from. Ideally I could specify a frame duration for each frame but a fixed frame rate would be fine too. I'm doing this in wxPython, so I can ...
300
votes
25
answers
470k
views
An attempt was made to access a socket in a way forbidden by its access permissions. Why? [duplicate]
private void StartReceivingData(string ipAddress, int iPort)
{
try
{
if (!_bContinueReciving)
{
//initializeMainSocket(ipAddress, iPort);
_mSocket = new ...
293
votes
9
answers
261k
views
Streaming video from Android camera to server [closed]
I've seen plenty of info about how to stream video from the server to an android device, but not much about the other way, ala Qik. Could someone point me in the right direction here, or give me some ...
281
votes
20
answers
555k
views
How to handle "Uncaught (in promise) DOMException: play() failed because the user didn't interact with the document first." on Desktop with Chrome 66?
I'm getting the error message..
Uncaught (in promise) DOMException: play() failed because the user didn't interact with the document first.
..when trying to play video on desktop using Chrome ...
262
votes
10
answers
258k
views
How to add a new audio (not mixing) into a video using ffmpeg?
I used a command like:
ffmpeg -i video.avi -i audio.mp3 -vcodec codec -acodec codec output_video.avi -newaudio
in latest version for adding new audio track to video (not mix).
But I updated the ...
259
votes
5
answers
441k
views
Embed YouTube video - Refused to display in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN' [duplicate]
I am trying to feed my Django page with some resource I am getting from somewhere else.
Inside the feed, I have YouTube videos with URL like: https://www.youtube.com/watch?v=A6XUVjK9W4o
Once I ...
250
votes
0
answers
3k
views
GStreamer Editing Services freezes when transitions are added [closed]
I'm trying to use Gstreamer's GStreamer Editing Services to concatenate 2 videos, and to have a transition between the two.
This command, which joins 2 segments of the videos together without a ...
249
votes
15
answers
381k
views
How to change the playing speed of videos in HTML5?
How to change the video play speed in HTML5? I've checked video tag's attributes in w3school but couldn't approach that.
233
votes
10
answers
473k
views
Fastest way to extract frames using ffmpeg? [closed]
Hi I need to extract frames from videos using ffmpeg.. Is there a faster way to do it than this:
ffmpeg -i file.mpg -r 1/1 $filename%03d.jpg
?
221
votes
1
answer
117k
views
Meaning of ffmpeg output (tbc, tbn, tbr) [closed]
I am using ffmpeg to tell me video info. Specifically:
ffmpeg -i video.ext
I get the output:
Stream #0.0[0x1e0]: Video: mpeg2video, yuv420p, 704x576 [PAR 12:11 DAR 4:3], 9578 kb/s, 25 tbr, 90k tbn, ...
211
votes
4
answers
301k
views
Correct mime type for .mp4
I have two applications as mentioned below:
Admin application through which I am able to upload a .mp4 file to the server.
I am trying to download the .mp4 using mobile application in iPad.
The ...
205
votes
15
answers
937k
views
How can I autoplay a video using the new embed code style for Youtube?
I can't work out how to autoplay a video using the new embed code style for Youtube. I tried adding &autoplay=1 to the url, which worked with the old style, but it didn't work. For example, http://...
201
votes
24
answers
450k
views
changing source on html5 video tag
I'm trying to build a video player that works everywhere. so far I'd be going with:
<video>
<source src="video.mp4"></source>
<source src="video.ogv"&...
200
votes
2
answers
190k
views
How to extract 1 screenshot for a video with ffmpeg at a given time?
There are many tutorials and stuff showing how to extract multiple screenshots from a video using ffmpeg. You set -r and you can even start a certain amount in.
But I just want 1 screenshot at, say ...
195
votes
17
answers
209k
views
Fetch frame count with ffmpeg
Does anyone know how to fetch the number of total frames from a video file using ffmpeg? The render output of ffmpeg shows the current frame and I need the frame count to calculate the progress in ...
192
votes
6
answers
289k
views
What are all codecs and formats supported by FFmpeg? [closed]
I need a list of codecs and formats supported by FFmpeg. Where can I find it?
177
votes
3
answers
218k
views
How can I extract a good quality JPEG image from a video file with ffmpeg?
Currently I am using this command to extract the images:
ffmpeg -i input.mp4 output_%03d.jpeg
But how can I improve the JPEG image quality?
173
votes
10
answers
581k
views
Streaming via RTSP or RTP in HTML5
I'm building a web app that should play back an RTSP/RTP stream from a server http://lscube.org/projects/feng.
Does the HTML5 video/audio tag support the rtsp or rtp? If not, what would the easiest ...
170
votes
7
answers
254k
views
HTML5 Video autoplay on iPhone
I have some kind of a strange problem. I try to create a website with a looped background video. The code looks like this one:
<video src="video/bg.mp4" style="z-index: -1;object-fit: cover;" ...
168
votes
6
answers
84k
views
Trying to understand CMTime and CMTimeMake
1) CMTimeMake(1,10) means duration of 1 second and timescale of 10, or 10 frames per second. This means 1s duration of video with 10 frames?
2)
CMTime lastTime=CMTimeMake(1,10);
CMTime frameTime=...
162
votes
21
answers
344k
views
Is there a way to make HTML5 video fullscreen?
Is there a way to play a video fullscreen using the HTML5 <video> tag?
And if this is not possible, does anybody know if there is a reason for this decision?
149
votes
7
answers
145k
views
Can I avoid the native fullscreen video player with HTML5 on iPhone or android?
I've built a web app that uses the HTML5 tag and JavaScript code that renders other content synchronized with the running video. It works great in desktop browsers: Firefox, Chrome, and Safari. On an ...
144
votes
11
answers
237k
views
How can I record a video in my Android app?
How can I capture a video recording on Android?
143
votes
4
answers
125k
views
Creating a video from a single image for a specific duration in ffmpeg [closed]
How do I generate a movie using ffmpeg using a single image (image1.png) for a duration of 15 seconds with a specific resolution so when I play the video, the image will appear on screen for 15 ...
134
votes
9
answers
57k
views
WebRTC - scalable live stream broadcasting / multicasting
PROBLEM:
WebRTC gives us peer-to-peer video/audio connections. It is perfect for p2p calls, hangouts. But what about broadcasting (one-to-many, for example, 1-to-10000)?
Lets say we have a ...
132
votes
4
answers
373k
views
Play infinitely looping video on-load in HTML5
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 ...
125
votes
13
answers
152k
views
WebView and HTML5 <video>
I'm piecing together a cheapo app that amongst other things "frames" some of our websites... Pretty simple with the WebViewClient. until I hit the video.
The video is done as HTML5 elements, and ...
124
votes
15
answers
23k
views
TDD/BDD screencast/video resources [closed]
I've recently finished watching the Autumn of Agile screencasts and I'm looking for more material of similar scope. Basically, I'm looking for screencasts that present TDD/BDD process while developing ...
119
votes
5
answers
210k
views
Force HTML5 youtube video
Regarding the Youtube API Blog they are experimenting with their new HTML5 Video Player.
Apparently to play a video in html5, you have to use the iframe embedding code :
<iframe class="youtube-...
119
votes
4
answers
141k
views
Live-stream video from one android phone to another over WiFi
I have searched the internet for days now on how to implement a video streaming feature from an android phone to another android phone over a WiFi connection but I can't seem to find anything useful. ...
117
votes
31
answers
33k
views
HTML 5 <video> tag vs Flash video. What are the pros and cons?
IMPORTANT UPDATE
This question was made over 9 years ago. It made sense then, it doesn't make it now. Flash is hard on its way out; <video> support is ubiquitous, including mobile devices. ...
116
votes
9
answers
542k
views
HTML5 Video // Completely Hide Controls
How Could I completely hide HTML5 video controls?
<video width="300" height="200" controls="false" autoplay="autoplay">
<source src="video/supercoolvideo.mp4" type="video/mp4" />
</...
114
votes
5
answers
151k
views
How to know total number of Frame in a file with cv2 in python
How to know total number of Frame in a file ( .avi) through Python using open cv module.
If possible what all the information (resolution, fps,duration,etc) we can get of a video file through this.
113
votes
3
answers
103k
views
FFMPEG mux video and audio (from another video) - mapping issue
I would like to place the audio from a video to another video without an audio (in one command):
ffmpeg.exe -i video1_noAudio.mov -i video2_wAudio.mov -vcodec copy -acodec copy video1_audioFromVideo2....
112
votes
3
answers
154k
views
Streaming a video file to an html5 video player with Node.js so that the video controls continue to work?
Tl;Dr - The Question:
What is the right way to handle streaming a video file to an html5 video player with Node.js so that the video controls continue to work?
I think it has to do with the way that ...
112
votes
2
answers
3k
views
Problem setting video frame rate using AVAssetWriter/AVAssetReader
Situation:
I am trying to export video with some parameters like video bit rate, audio bit rate, frame rate, changing video resolution, etc. Note that I am letting the user set the video frame rate in ...
111
votes
13
answers
181k
views
TCP vs UDP on video stream
I just came home from my exam in network-programming, and one of the question they asked us was "If you are going to stream video, would you use TCP or UDP? Give an explanation for both stored video ...
108
votes
17
answers
235k
views
Detect if HTML5 Video element is playing [duplicate]
I've looked through a couple of questions to find out if an HTML5 element is playing, but can't find the answer. I've looked at the W3 documentation and it has an event named "playing" but I can't ...
108
votes
16
answers
426k
views
Download content video from video stream with a path of .TS or .m3u8 file through actual code so i can make chrome extension [closed]
Videos on most sites make use of progressive downloading, which means that the video is downloaded to my computer, and easy to trace. There are lots of extensions out there to do this, and even in the ...
103
votes
4
answers
203k
views
Using ffmpeg to encode a high quality video [closed]
I have a set of video frames saved as images in a directory, and I'm trying to encode these to a good quality video, however every setting and every format I try produces very noticeable artifacts.
...
102
votes
4
answers
175k
views
Play local (hard-drive) video file with HTML5 video tag?
I want to achieve the following.
<video src="file:///Users/username/folder/video.webm">
</video>
The intent is that the user will be able to select a file from his/her hard drive.
And ...
101
votes
8
answers
144k
views
How do you change video src using jQuery?
How do you change the src of a HTML5 video tag using jQuery?
I got this HTML:
<div id="divVideo">
<video controls>
<source src="test1.mp4" type="video/mp4" />
</video>...
100
votes
9
answers
305k
views
How to make a movie out of images in python
I currently try to make a movie out of images, but i could not find anything helpful .
Here is my code so far:
import time
from PIL import ImageGrab
x =0
while True:
try:
x+= 1
...
98
votes
2
answers
112k
views
HTML5 - How to stream large .mp4 files?
I'm trying to setup a very basic html5 page that loads a .mp4 video that is 20MB. It appears that the browser needs to download the entire thing rather than just playing the first part of the video ...
97
votes
10
answers
133k
views
How can I get the resolution (width and height) for a video file from a linux command line?
I've been digging through the mplayer/mencoder and ffmpeg documentation and I can't seem to come up with anything. I'm not especially picky as to the output format as I can use a regular expression to ...
95
votes
1
answer
125k
views
How to add transparent watermark in center of a video with ffmpeg?
I am currently using these commands:
Top left corner
ffmpeg –i inputvideo.avi -vf "movie=watermarklogo.png [watermark]; [in][watermark] overlay=10:10 [out]" outputvideo.flv
Top right corner
ffmpeg –...
94
votes
12
answers
109k
views
Solid FFmpeg wrapper for C#/.NET [closed]
I have been searching the web for some time for a solid FFmpeg wrapper for C#/.NET. But I have yet to come up with something useful. I have found the following three projects, but all of them apears ...
91
votes
15
answers
222k
views
HTML5 <video> element on Android
According to:
http://developer.android.com/sdk/android-2.0-highlights.html
Android 2.0 should support the HTML5 video element. I haven't been able to get this to work using a Motorola Droid, and ...