Questions tagged [video-encoding]

This tag should be used for questions related with programmatically handling of video encoding in any format. For questions related to trimming and modifying videos use [video-editing], and [video-processing] for questions related to processing videos with filtering video frames.

Video encoding (and video compression) reduces redundancy in video data with algorithms and codecs. Most of the techniques are to combine spatial image compression and temporal motion compensation.

See also:

Read more:

950 questions
12
votes
5 answers

What video formats are compatible with the assets library?

What video formats are compatible with the iPhone's assets library? In other words, for what video formats will ALAssetsLibrary's videoAtPathIsCompatibleWithSavedPhotosAlbum return YES? I can't seem to locate any information on this in the iPhone…
Avalanchis
  • 4,500
  • 3
  • 39
  • 48
12
votes
3 answers

How can I achieve the best overall FLV quality with FFMPEG?

I'm looking to accomplish the best quality FLV with the lowest file size. After all, isn't that everyone's goal? These videos will be streamed if that makes any difference. For now, my video(s) are no wider than 320px, and some are widescreen, so…
dcolumbus
  • 9,596
  • 26
  • 100
  • 165
12
votes
3 answers

How to compile avconv with libx264 on Ubuntu 12.04 LTS (Precise Pangolin)?

Is there a step-by-step guide on how to compile avconv in Ubuntu? It seems hard to search for any tutorial with avconv compared to ffmpeg.
Kugutsumen
  • 600
  • 1
  • 6
  • 19
11
votes
1 answer

Video recording to a circular buffer on Android

I'm looking for the best way (if any...) to capture continuous video to a circular buffer on the SD card, allowing the user to capture events after they have happened. The standard video recording API allows you to just write directly to a file, and…
lacop
  • 2,024
  • 4
  • 22
  • 36
11
votes
2 answers

H264 encoder in android?

I've been having some problems while trying to fix a simple video recording app*. I think I followed the sequence of steps correctly. The following is a simplification of the part of the code that is giving me problems. This code is executed only as…
Bilthon
  • 2,461
  • 8
  • 36
  • 44
11
votes
2 answers

Multiple CUDA contexts for one device - any sense?

I thought I had the grasp of this but apparently I do not:) I need to perform parallel H.264 stream encoding with NVENC from frames that are not in any of the formats accepted by the encoder so I have a following code pipeline: A callback informing…
Rudolfs Bundulis
  • 11,636
  • 6
  • 33
  • 71
10
votes
1 answer

How to stream H.264 video over UDP using the NVidia NVEnc hardware encoder?

This is going to be a self-answered question, because it has driven me nuts over the course of a full week and I wish to spare fellow programmers the frustration I went through. The situation is this: you wish to use NVidia's NVEnc hardware encoder…
JPNotADragon
  • 2,050
  • 2
  • 25
  • 31
9
votes
3 answers

iPad Doesn't Render H.264 Video with HTML5

I have some H.264-encoded videos which render in HTML5 correctly in the web browser, but do not render correctly on the iPad. When I use a H.264 video I downloaded off the internet, my video renders correctly on the iPad, so it is not an HTML…
jgoldberg
  • 455
  • 5
  • 11
9
votes
1 answer

Convert WEBM to HEVC with alpha

I'm trying to convert a simple WEBM video with transparency to HEVC with alpha. I couldn't find any resources about how to convert without losing the alpha channel. I don't know if it's possible with FFMPEG: encoding requests cannot be made here as…
Bastien Robert
  • 809
  • 1
  • 10
  • 31
9
votes
1 answer

How to check whether Android MediaCodec supports Constant Quality mode

I have a screen recording app that uses a MediaCodec encoder to encode the video frames. Here's one way I retrieve the video-encoder: videoCodec = MediaCodec.createEncoderByType(MediaFormat.MIMETYPE_VIDEO_AVC); I then try to determine the best…
Piet
  • 356
  • 3
  • 10
9
votes
2 answers

Convert video to WebM using GStreamer

Documentation for GStreamer is confusing. This is still no excuse for resorting to StackOverflow.com, but still: What is the GStreamer command line to convert any video file (from any format) to WebM (+WebM audio)? This is the only documentation…
Ory Band
  • 14,716
  • 14
  • 59
  • 66
9
votes
8 answers

Which video streaming platform would you choose today?

We have decided that it is time to ditch the ad-hoc method of deploying video on our web properties and pick one or more Video Platforms to handle this task for us. High level requirements are: Needs to have an easy to mount and embed player. Needs…
Wyatt Barnett
  • 15,573
  • 3
  • 34
  • 53
9
votes
1 answer

Android how to video record, upload, transcode, download, play

I'm researching the development of an Android (2.2) app/service that will enable users to record short (I do emphasize short, < 30seconds) video on their phones and then upload that video (HTTP) to a server that will then transcode the video to…
Marc
  • 1,178
  • 1
  • 18
  • 31
9
votes
5 answers

stitching videos together using ffmpeg on the command line

Does anybody know how to stitch two (or more) videos together using ffmpeg (or another cli)? This is assuming that all the videos are in the same format and the video format being used allows for lossless stitching (no transcode, just end-to-end…
quinn
  • 5,508
  • 10
  • 34
  • 54
9
votes
1 answer

repeating the first frame of a video with ffmpeg

To repeat the first frame of a video, for example padding it to compensate for longer audio, the following pipeline can be used. ffmpeg -i video.mp4 -vframes 1 -f image2 image.jpg ffmpeg -loop 1 -i image.jpg -t 5 pad.mkv ffmpeg -i pad.mkv -i…
XZS
  • 2,374
  • 2
  • 19
  • 38