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
8
votes
1 answer

How to combine a .mp4 video with a .wav audio with an offset in ffmpeg from command line?

I've got a TV clip in mp4 format containing audio and video, and an WAV audio_commentary track. I've been trying to combine them in ffmpeg and then play it online with a flash player (which can only take h264 format) What's the best ffmpeg command…
minder42
  • 83
  • 1
  • 1
  • 4
8
votes
1 answer

Video encoding libraries for iOS

I really stucked with that problem, because I haven't seen enough information in the internet regarding video encoding in iOS, however we can observe plenty of apps that deal with the problem of video streaming successfully (skype, qik, justin.tv,…
peetonn
  • 2,942
  • 4
  • 32
  • 49
8
votes
3 answers

Writing video with OpenCV + Python + Mac

I keep getting an assertion error when I'm trying to write frames to video. The error I'm getting is this: Traceback (most recent call last): File "VideoMixer.py", line 23, in cv.WriteFrame(writer, cv.LoadImage(fileName)) cv.error:…
rgbrgb
  • 1,146
  • 1
  • 11
  • 17
8
votes
9 answers

What video encoding and streaming services are there out there?

I looking for something that I can either embed their uploader directly or send the video files to that will then encode the video and allow me to stream the video through a player on "my" website. The services, I have found so far are: Bits on the…
Darryl Hein
  • 142,451
  • 95
  • 218
  • 261
8
votes
1 answer

How to Convert CMSampleBuffer/UIImage into ffmpeg's AVPicture?

I'm trying to encode iPhone's camera frames into a H.264 video using ffmpeg's libav* libraries. I found in this Apple's article how to convert CMSampleBuffer to UIImage, but how can I convert it to ffmpeg's AVPicture? Thanks.
Alexandre OS
  • 687
  • 6
  • 17
8
votes
1 answer

FFmpeg: what does the "global_header" flag do?

According to the description, it places global headers in extradata instead of every keyframe. But what's the actual purpose? Is it useful e.g. for streaming? I guess that the resulting video file will be marginally shorter, but more prone to…
Leszek Pachura
  • 403
  • 4
  • 18
8
votes
2 answers

Muxing from Audio and Video files with FFmpeg

I am learning how to create MP4 video from this example.The problem is that the example demonstrates audio encoding from some dummy source data generated on the fly.I need to encode audio from a file.I have checked many examples and most of them…
Michael IV
  • 11,016
  • 12
  • 92
  • 223
8
votes
1 answer

Video encode from sequence of images from java android

I would like to encode video from sequence of images with java only in my current android project. I mean without any use of external tools such as NDK. Also is there any availability of java libraries for encoding video from sequence of images ?
captaindroid
  • 2,868
  • 6
  • 31
  • 45
8
votes
1 answer

Capture, encode then stream video from an iPhone to a server

I've got experience with building iOS apps but don't have experience with video. I want to build an iPhone app that streams real time video to a server. Once on the server I will deliver that video to consumers in real time. I've read quite a…
7
votes
1 answer

Distributed video encoding - Gearman vs Beanstalkd

Im looking to build a distributed video encoding cluster of a few dozen machines. Ive never worked with a messaging queue before, but the 2 that I started playing around with were Gearman and Beanstalkd. Beanstalk seems to be a lot simpler and…
user15063
7
votes
2 answers

Video on websites and mobile device, is there one cross-platform code/format for all these support?

I have to manage a website which will display mainly videos. This website will have a mobile version with < video > tag, so that the video can also be played on ipod, iphone, ipad, and other mobile devices, in their browser. The question that I now…
daviddarx
  • 3,485
  • 3
  • 20
  • 23
7
votes
1 answer

Encoding a video in FFmpeg to X264 and have it playable in Quicktime

I am wondering which command line settings i need to explicitly set (or avoid) to make a video encoded into x264 (in the mp4 format) using ffmpeg by default playable in Quicktime. I find that a number of the predefined preset files work for me but…
illu
  • 71
  • 1
  • 2
7
votes
1 answer

ffmpeg: Cannot find a matching stream for unlabeled input pad 0 on filter Parsed_pad_5

This shouldn't be that hard. I'm trying to combine three disparate video sources. I'm upscaling them to a consistent 1280x720 frame, with black backgrounds for letterboxing, and trying to concatenate to the output file. The two input files are show…
rsswtmr
  • 1,776
  • 5
  • 16
  • 26
7
votes
2 answers

python opencv videoWriter fps rounding

I am trying to measure some event in an input video file: "test.mp4". This is done by processing the video in several steps, where each step performs some operations on the video data and writes the intermediate results to a new video file. The fps…
smerlung
  • 1,459
  • 1
  • 13
  • 32
7
votes
1 answer

Encoding AAC with ffmpeg (c++)

I'm working on video encoding that will be used in a Unity plugin. I have made image encoding work, but now I'm at the audio. So trying only with the audio in to a mp4 file with AAC encoding. And I'm stuck. The resulting file does not contain…
Mockarutan
  • 442
  • 4
  • 28