Questions tagged [video-compression]

130 questions
0
votes
1 answer

How to detect and correct errors in x264 NAL Units?

Suppose I am receiving packets containing H264 encoded NAL Units, and each NAL has correct START_CODE (0x00 00 00 01). But in some NALUs, the later Bytes of the NAL may have been corrupted. Is there any standard way to validate whether the…
FahimAhmed
  • 497
  • 3
  • 14
0
votes
1 answer

How to convert an image from YCRCB to RGB using PIL library?

I want to convert an image "from YCRCB" to "RGB" using PIL library
Alaa Hesham
  • 21
  • 1
  • 2
0
votes
1 answer

Is there a video compression algorithm that supports compressing specific regions of the video frame more than others?

Suppose, as an optimization step, some video has metadata attached to it that indicates the regions (say, rectangular) where the most exciting thing is happening at that time. Since the users will be focused on that region, they will be less likely…
user6118986
  • 341
  • 2
  • 15
0
votes
0 answers

How to record video, audio and compress the same video using ffmpeg, so that both the task can be done in a single command line

I am newly using "ffmpeg". I have compressed the video which is stored in the directory, then I got to know that we can do "compression and recording" both at a time using ffmpeg. I tried this by using the below command but that is not working…
0
votes
1 answer

Is there any way to compress video quickly?

I am using AVAssetWriter for compressing video but it taking 20 to 25 seconds to compress a video of size 160 in 12 mb. i want fix bitrate of 1600 kbps and natural frame of video. Is there any way to compress quickly? func…
dinesh sharma
  • 577
  • 10
  • 20
0
votes
2 answers

Why choose 2D-DCT rather than 3D-DCT for video compression

As the title, currently most of algorithms for video compression choose to use 2D-DCT and motion compensation (and some other techniques), which forms a standard. Here is the question: Why not use 3D-DCT for video compression? And what is the…
sissuire
  • 1
  • 1
0
votes
0 answers

How to use ffmpeg to encode multi-channel video?

Like nomral video have RGB/YUV, 3 channels. Is it possible use the existing video convertor to encode more than 3 channel video? (e.g. given 5 folders of the same number and resolution pictures, generate a 5-channel video from them) I not need to…
Leo
  • 11
  • 4
0
votes
1 answer

ffmpeg - Different number of macroblocks per each frame

i am studying the MPEG compression, in particular how are "labeled" the macroblocks with ffmpeg, using the command: ffmpeg -debug mb_type -i input.mp4 out.mp4 From theory, i know that typically a macroblock is a 16x16 (pixels) block. So if a frame…
fabridigua
  • 53
  • 1
  • 7
0
votes
1 answer

What are I-frames and do they affect the video size?

There are multiple parameters that define a video, as you may know they are frame rate, bit rate, resolution,... and some more. I noticed that there are some new parameters that I didn't know about including what is called by B-frames and I…
user9609225
0
votes
1 answer

How to extract frame types along with motion vectors using extract_mvs.c from ffmpeg

I have been researching ways to get frame types (I, P, B) along with the motion vector data returned from extract_mvs.c in the examples folder in ffmpeg. The extract_mvs.c file after it is compiled, returns information like…
0
votes
0 answers

How to remove the MATLAB error '...file is being used by another process '?

I am doing a project on video-compression on MATLAB. Part of my code is: videoFReader = vision.VideoFileReader('myVideo.avi'); videoFWriter = vision.VideoFileWriter('myVideo.avi','AudioInputPort',true); videoFrame =…
0
votes
1 answer

What are the ways to compress Video without using FFMPEG in Android

I need to compress video and upload it to the Server.I do not want to use FFMPEG. I referred many links but solutions are given using FFMPEG. Please Suggest Ideas to compress video WITHOUT using FFMPEG. Thanks in Advance.
0
votes
1 answer

Android ffmpeg needs android.permission.ACCESS_COARSE_LOCATION for compression

I'm using FFmpegAndroid library (based on C) on a project in order to compress encode some videos. The library requires the use of android.permission.ACCESS_COARSE_LOCATION permission. If I remove it the compression fails, but I get no additional…
htafoya
  • 18,261
  • 11
  • 80
  • 104
0
votes
1 answer

How to use startTime and endTime for the trim video in MediaController (MediaCodec)?

Ive tried to change starttime and endtime in MediaController class with value that I take from seekbar. But in result, the size of converted video always stop in 140B long startTime = -1; //this is what I changed to 0 for example long endTime =…
0
votes
0 answers

ffmpeg At least one output file must be specified using Python

I'm executing a python script for FFmpeg encoding. When executing the script I got an error Saying that : At least one output file must be specified Even if I did specifies it: command = [FFMPEG_BIN,'-i',file, '-s',WIDTH_X_HEIGHT,'-r',…
asendjasni
  • 963
  • 1
  • 16
  • 36
1 2 3
8
9