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
3
votes
0 answers

Compressing video using created pixel buffer in kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange format

I have a bi-planar raw video buffer data in YCbCr format, which I'm using as source to compress one new mp4/mov video in H.264 format on iPhone and iPad. Therefore, I'm using a CVPixelBufferRef to make a new pixel buffer and then use an…
JasonYang
  • 686
  • 7
  • 14
3
votes
1 answer

AVCDecoder : Video resolution too high, reject it

I have been having some problems with mp4 video on Android . The codec is ok , the resolution is the same , but 2 different videos one runs , and the other ... 10-05 12:45:39.363: INFO/HTTPDataSource(8773): try to receive 65536 10-05 12:45:39.563:…
A.Quiroga
  • 5,704
  • 6
  • 37
  • 58
3
votes
3 answers

How to encode non-camera video in Android

I am working on an android application in which a video is dynamically generated by compositing a sequence of animation frames. I tried to use the Android Media Recorder API for this but have not found a way to get it to accept a non-camera source…
rwei
  • 31
  • 3
3
votes
0 answers

How does this video file crash discord?

https://cdn.discordapp.com/attachments/882079986599751680/954144030449631332/UOOOOPA.webm this video will crash your discord if you open it in discord (do it at your own risk) i was wondering how this video achieves that. i downloaded and hexdumped…
David Marshal
  • 43
  • 1
  • 1
  • 5
3
votes
2 answers

FFmpeg best LGPL alternative to libx264?

I'm developing a commercial software that is not open source. It will use FFmpeg to export videos. The libx264 codec doesn't appear to be an option for me since I can only use LGPL for legal reasons. What is the best LGPL alternative to libx264? I'd…
XylemFlow
  • 963
  • 5
  • 12
3
votes
2 answers

Appropriate codec for real-time video compression with DirectShow

Can anybody suggest a good codec for real-time video compression? Here is a list of key requirements: Must be represented as DirectShow video compression filter Royalty-free Good quality/bitrate output comparable to the DivX on relatively low…
s.ermakovich
  • 2,641
  • 2
  • 26
  • 24
3
votes
1 answer

How to extend a video by freezing the last frame without reencoding the whole stream?

I'd like to achieve two things without re-encoding the whole video stream: Extend a video by freezing the last frame for a given duration. Extend a video by freezing a frame at a given timestamp for a given duration. Currently I'm using ffmpeg -i…
3
votes
1 answer

perform frame transition using ffmpeg and php

i am building a movie using various images using ffmpeg. movie generating properly but what i want that. when any frame changes I want some effects to be perform like fade in, fade out, slide in , slide out, etc.. I want to perform this image…
Avinash
  • 6,064
  • 15
  • 62
  • 95
3
votes
2 answers

Using ffmpeg results in undesirable motion blur

I am trying to convert a video with the best quality possible. The problem is, no matter which command arguments I use, a motion blur appears (the first image is converted, the second is the original): The ffprobe's output of the original…
Oleg Yablokov
  • 736
  • 8
  • 19
3
votes
0 answers

ffmpeg - replace all corrupted frames with a dummy

I look for a solution on how to detect and then automatically replace all corrupted (or completely broken) frames with a black one. I've already tried the following command, but the result is not quite what I actually need. ffmpeg -err_detect…
Dmitry
  • 31
  • 1
3
votes
1 answer

Rotate a h264 video using the Display Orientation SEI

I'm trying to rotate a h264 video 90 degrees anticlockwise. The syntax for the Display Orientation Supplementary EnhancementInformation (SEI) is given as: Which I first tried encoding as follows: val prefix = byteArrayOf(0, 0, 0, 1) val nalHeader =…
Tunji_D
  • 3,677
  • 3
  • 27
  • 35
3
votes
3 answers

FFmpeg API example (encode_video.c) does not work correctly

I am using the official encode_video.c example to test if FFmpeg works correctly for me. I got the pre-built windows edition from ffmpeg.zeranoe.com/builds. It is built already with libx264 and other external libraries. I got both dev and shared…
NewbieCoder
  • 105
  • 9
3
votes
3 answers

Why the "MediaCodec CodecException" in "queueInputBuffer" only happen on Android API 29?

Basic Info targetSdkVersion 28 Goal: The objective of the class is to resize a video before sending to my server. Problem: The app crashes only on API 29, whether with real devices or using AVD. For example, the code works fine on Pixel 2 API 28,…
3
votes
1 answer

Transcoding mxf video file with CopyAudio in Azure Media Services v3

We are using Azure Media Services V3 API to transcode video files of various input formats into mp4 output. In case we have a mxf input file we receive the following exception when trying to transcode video with audio codec 'CopyAudio'): Azure Media…
Joeri
  • 31
  • 2
3
votes
1 answer

Simple and Fast Video Encoding/Decoding

I need a simple and fast video codec with alpha support as an alternative to Quicktime Animation which has horrible compression rates for regular video. Since I haven't found any good open-source encoder/decoder with alpha support, I have been…
ronag
  • 49,529
  • 25
  • 126
  • 221