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.

As video capture and playback varies significantly across platforms, please include a tag with the target OS or platform (e.g., Windows, OSX, Android, YouTube, Java, QuickTime). Before posting, please also check that your question is on topic.

Video technology was first developed for cathode ray tube (CRT) television systems, but several new technologies for video display devices have since been invented.

Common digital video codecs (or formats) include:

  • CCIR 601 used for broadcast stations
  • MPEG-4 good for online distribution of large videos and video recorded to flash memory
  • MPEG-2 used for DVDs, Super-VCDs, and many broadcast television formats
  • MPEG-1 used for video CDs
  • AVI
  • DIVX
  • XVID
  • H.261
  • H.263
  • H.264 also known as MPEG-4 Part 10, or as AVC, used for Blu-ray Discs and some broadcast television formats
  • Theora used for video on Wikipedia

References:

See also:

32076 questions
105
votes
1 answer

Creating a video from a single image for a specific duration in ffmpeg

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 seconds.
Dharmesh
  • 1,590
  • 2
  • 11
  • 12
104
votes
3 answers

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 the headers are handled. Anyway, here's the…
WebDeveloper404
  • 1,145
  • 3
  • 9
  • 10
103
votes
13 answers

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 and live video-streams". To this question they…
Alxandr
  • 11,981
  • 10
  • 55
  • 93
100
votes
4 answers

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:
97
votes
4 answers

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 associated with it, and either be compatible with all…
stefmikhail
  • 5,711
  • 12
  • 43
  • 61
94
votes
4 answers

Using ffmpeg to encode a high quality video

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. The basic command is this: ffmpeg -r 25 -i %4d.png…
CakeMaster
  • 1,627
  • 3
  • 15
  • 15
92
votes
4 answers

Play local (hard-drive) video file with HTML5 video tag?

I want to achieve the following. The intent is that the user will be able to select a file from his/her hard drive. And the reason for not uploading is of course transmission costs and…
Chris
  • 2,242
  • 3
  • 18
  • 19
92
votes
12 answers

Solid FFmpeg wrapper for C#/.NET

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 to be dead in early alpha…
Jacob Poul Richardt
  • 3,085
  • 1
  • 24
  • 29
91
votes
0 answers

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 fractions; like user can set the video frame…
Sunil Chauhan
  • 1,804
  • 14
  • 31
91
votes
3 answers

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.mov I guess "-map" is the correct way to do it…
Mark
  • 1,350
  • 1
  • 11
  • 20
90
votes
15 answers

HTML5

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 haven't been able to successfully view a video on any…
jmans
  • 5,508
  • 4
  • 25
  • 32
90
votes
8 answers

HTML5 Video // Completely Hide Controls

How Could I completely hide HTML5 video controls? false didn't work -- how is this done? Cheers.
fred randall
  • 7,023
  • 18
  • 73
  • 167
89
votes
8 answers

Play YouTube videos with MPMoviePlayerController instead of UIWebView

I'm trying to stream some youTube videos using the MPMoviePlayerController but I'm having some problems. The code I'm using is pretty simple and I can play .m4v videos by passing a URL to initWithContentURL. When I launch the movie player the…
jmurphy
  • 1,891
  • 3
  • 22
  • 28
87
votes
8 answers

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:
This doesn't work: var videoFile = 'test2.mp4'; $('#divVideo…
Aximili
  • 26,401
  • 50
  • 141
  • 196
86
votes
5 answers

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.
Niraj
  • 891
  • 1
  • 6
  • 9