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

Android screen video recording

How I should go about recording a video screen capture of an OpenGL application? So far my plan of attack is to take individual screenshots then run it through a video encoder. Does anyone here know of any sample code I can look at or has any…
Cairo
  • 321
  • 1
  • 17
4
votes
1 answer

Correct Use Of avcodec_encode_video2() Flush

I have a camera sending pictures to a callback function and I want to make a movie with this pictures using FFmpeg. I have followed the decoding_encoding example here but am not sure how to use the got_output for flushing the encoder and getting the…
Michel Feinstein
  • 13,416
  • 16
  • 91
  • 173
4
votes
0 answers

(MEncoder) How to resolve librtsp: buffer overflow in rtsp_get error?

I'm trying to use MEncoder to dump an RTSP stream I get. When I try to do the same, I get an error saying "librtsp: buffer overflow in rtsp_get". The full console output is given below. C:\mplayer-svn-37594>mplayer -dumpstream…
4
votes
0 answers

FFMPEG - Invalid data found when processing input

I want to play an RTSP live stream that I get internally. I'm using ffplay to play this. And this is the command that I use : ffplay -i "rtsp://test.vibrtech.com/mov/video.sav?MAC=00C2100F124&channel=2&GUID=betauser", but when I execute, I get…
Sivaprasanna Sethuraman
  • 4,014
  • 5
  • 31
  • 60
4
votes
1 answer

How to create m3u8 playlist and mpeg-ts chunks with constant duration by using FFMPEG?

I have mp4 file (Big Buck Bunny): Duration: 00:09:56.50 Bitrate: 2048 kb/s Size: 1280x720 fps: 29.97 I've set constant keyframes after 2 second. I want to prepare this video for HLS. I use this for generate m3u8 playlist and generate ts…
Oleksandr
  • 3,574
  • 8
  • 41
  • 78
4
votes
2 answers

Parallelization and H.264 (or probably any compression codec)? Why's it so hard?

My limited (and probably wrong?) understanding of video compression is that intra-frames are completely independent. In other words, all the picture data for a intra frame (key frame) is stored in its entirety for that frame. It's the following…
4
votes
4 answers

Saving Movies from AVCaptureVideoDataOutput Video Frames

With the new video features in AVFoundation that are included with iOS4, it is possible to access the raw video frames as they are captured by the camera by using AVCaptureVideoDataOutput. I would like to overlay text and other information on top…
Avalanchis
  • 4,500
  • 3
  • 39
  • 48
4
votes
2 answers

How to change MediaCodec encoding bitrate on the fly while streaming in Android?

I want to change the encoding bitrate including H264 and AAC by Android MediaCodec dynamically , according to the current network. How to update the encoding bitrate in Android MediaCodec dynamically ? PS: I found PARAMETER_KEY_VIDEO_BITRATE and…
4
votes
1 answer

When converting mkv to mp4, the audio is lost

I have converted my .mkv file into an .mp4 by using the command: sudo avconv -i input.mkv -codec copy output.mp4 I am trying to play the mp4 file in the browser, but the audio is not playing. The video player shows that it is on mute, but the…
manntonn
  • 310
  • 1
  • 5
  • 14
4
votes
2 answers

Introduction into video compression tech

Is it useful to study the H.261 specification for an introduction into modern video compression technology, or should I start somewhere else? I'm not sure where to start, but H.261 seems simple enough to make it easy to grasp the concepts.
greg
  • 41
  • 2
4
votes
1 answer

ASP.net FFMPEG video conversion receiving error: "Error number -2 occurred"

I am attempting to integrate FFMPEG into my asp.net website. The process I am trying to complete is to upload a video, check if it is .avi, .mov, or .wmv and then convert this video into an mp4 using x264 so my flash player can play it. I am using…
Pete
  • 61
  • 1
  • 3
4
votes
0 answers

Performance variation of encoder using MediaCodec encode from surface

I render a texture to both display and a codec input surface (from where an encoder uses it). There is a large performance variation when the texture is rendered to the display surface, and when it is rendered to the input surface of the encoder,…
user1592546
  • 1,480
  • 1
  • 14
  • 30
4
votes
2 answers

ffmpeg hevc (x265) encoding

i'm trying to use h265 encoder in ffmpeg library but give me this error: Cannot open libx265 encoder. this is my code: formatContext = avformat_alloc_context(); videoStream = avformat_new_stream(formatContext,0); if(!videoStream ) { //error …
luca
  • 150
  • 1
  • 9
4
votes
2 answers

Encoding yuv frames to video file in java

I am trying to encode a video in java. I have access to the separate frames as I420 yuv frames (these come from a different part of the program that I cannot change). I basically have 3 bytebuffers for the different planes of a frame (+…
4
votes
3 answers

Encode an Array of Images into a movie file? (iPhone)

My app takes time-lapse photos, and also records audio to go with it. The problem is, I have absolutely no idea how to go about turning it into a .mov/.mpeg file (I am new to this type of iPhone development). I have heard some things about FFMPEG,…
iSkythe
  • 91
  • 1
  • 9