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
7
votes
2 answers

How to get .mp4 videos from motion on a Raspberry Pi?

I use motion on my laptop and it works perfectly in any format. But when I use it on my Raspberry Pi 3 (Raspbian Jessie) with the Raspberry Camera V2, the only formats that work are : .avi and .swf. When I choose any other format, the output video…
Maarti
  • 3,600
  • 4
  • 17
  • 34
7
votes
1 answer

How to decode frames from MDAT atom extracted from mp4 video

I am new to video codecs and learning video file format specifications. I have read about QUICKTIME file format specifications from here, and MP4 file format (which is almost similar) from here. There are atoms such FTYPE, MOOV, MDAT etc. The MDAT…
7
votes
3 answers

Correctly Allocate And Fill Frame In FFmpeg

I am filling a Frame with a BGR image for encoding, and I am getting a memory leak. I think I got to the source of the problem but it appears to be a library issue instead. Since FFmpeg is such a mature library, I think I am misusing it and I would…
Michel Feinstein
  • 13,416
  • 16
  • 91
  • 173
7
votes
1 answer

Discrete Wavelet Transform LeGal 5/3 with Lifting (negative values, visualizing, LH HL confusion)

I am currently diving into Wavelets and are a bit confused about certain things. First of all, this is NOT homework. Its for recreational coding only. In order to gain a better understanding, I implemented the lifting-scheme for the LeGal 5/3…
markus_p
  • 574
  • 8
  • 25
7
votes
1 answer

High Quality Screen Capture with FFmpeg

I'm trying to figure out a command for high quality screen capture on REHL. I have tried various options, but none really worked. The quality is not good enough. I'm quite new to ffmpeg and doesn't quite understand all the different flags. So any…
plumzl
  • 83
  • 1
  • 1
  • 5
7
votes
2 answers

Creating a video from images using ffmpeg libav and libx264?

I am trying to create a video from images using the ffmpeg library. The images have a size of 1920x1080 and are supposed to be encoded with H.264 using a .mkv container. I have come across various problems, thinking I am getting closer to a…
marikaner
  • 304
  • 1
  • 2
  • 15
7
votes
3 answers

Can I use Amazon Elastic Transcoder to only create thumbnails?

I have a Rails app using Paperclip to upload and store videos on Amazon S3. I'm not particularly interested converting the video files into another format, or adding watermarks, nothing fancy. I just want to create thumbnails from the videos to…
ays0110
  • 240
  • 4
  • 18
7
votes
3 answers

Why frame->pts increases by 20, rather than by 1?

Following the exmaples of ffmpeg: decoding_encoding.c and filtering_video.c, I process one video file taken by iPhone. The video file: .mov, video dimensions; 480x272, video Codec: H.264/AVC, 30 frames per second, bitrate: 605 kbps. I first extract…
user1914692
  • 3,033
  • 5
  • 36
  • 61
7
votes
1 answer

Need help understanding HTML 5 audio/video meta data use and placement

I have spent a significant amount of time researching HTML 5 audio and video, however I am stuck understanding the encoding of the meta data. It seems that in my research, using programs like Handbrake (ffmpeg) it is recommend to check of "web…
nicoz
  • 145
  • 1
  • 7
7
votes
1 answer

How to upload video from a(n Android) phone as it is being recorded

I'm trying to write an app that uploads videos from Android phones as they are being recorded by reading from .mp4 file and uploading the bytes as they are written to the file. The problem is that, as far as I can tell, the moov atom and some other…
6
votes
2 answers

Recommendation on the best quality/performance H264 encoder for video encoding?

I am looking for a video encoder that is fast, requires less CPU power and produces very good quality mp4 video. The input videos can be in any format and uploaded by users. Only thing I know is FFMPEG library. Is there anything else that is…
kheya
  • 7,546
  • 20
  • 77
  • 109
6
votes
5 answers

Alternatives for generating a video feed from screenshots

I'm working in a remote administration toy project. For now, I'm able to capture screenshots and control the mouse using the Robot class. The screenshots are BufferedImage instances. First of all, my requirements: - Only a server and a client. -…
Mister Smith
  • 27,417
  • 21
  • 110
  • 193
6
votes
4 answers

EC2 for video-encoding

I have a potential job which will require me to do some video encoding with FFMPEG and x264. I'll have a series of files which I'll need to encode once, then I'll be able to bring down the instances. Since I'm not really sure of the resource…
Naftuli Kay
  • 87,710
  • 93
  • 269
  • 411
6
votes
1 answer

How does H.264 or video encoders in general compute the residual image of two frames?

I have been trying to understand how video encoding works for modern encoders, in particular H264. It is very often mentioned in documentation that residual frames are created from the differences between the current p-frame and the last i-frame…
cloudraven
  • 2,484
  • 1
  • 24
  • 49
6
votes
4 answers

How to handle queueing of video encoding during multiple video uploads?

I am working on developing a video streaming site where users can upload videos to the site (multiple videos at once using the uploadify jquery plugin). Now, I am faced with the question of encoding the videos to FLV for streaming them online. When…
YD8877
  • 10,401
  • 20
  • 64
  • 92