Questions tagged [video-compression]
130 questions
10
votes
3 answers
How to compress video to target size by Python?
I am uploading text and videos to a site by Python program. This site says they only receive video files of up to 50 MB in size. Otherwise, they will reject the video and other associated information.
To ensure I can send video continuously, I want…

武状元 Woa
- 690
- 3
- 10
- 24
6
votes
1 answer
ffmpeg width not divisible by 2 (375x500) error
i tried to scale the video to 375x500 using ffmpeg.
ffmpeg -i input.mp4 -s 375x500 -c:a copy output.mp4
Getting this error, [libx264 @ 0x5639d358ad60] width not divisible by 2 (375x500)
Error initializing output stream 0:0 -- Error while opening…

Karthikeyan Balusamy
- 193
- 1
- 1
- 12
6
votes
2 answers
How to compress a video in React Native
Tried using react-native-video-processing by Shahen:
Below is the code:
compressVideo(source) {
const options = {
width: 800,
height: 800,
bitrateMultiplier: 3,
saveToCameraRoll: true,
…

Niveditha
- 148
- 1
- 8
6
votes
2 answers
Compress Video files in NodeJS
I am improving the performance of my application.
I want to compress images and videos to minimum size without any quality loss i.e. lossless compression.
For images, i've used imagemin package. It works well with png format, but for jpeg, its very…

Krishan Saini
- 428
- 1
- 4
- 8
6
votes
2 answers
ffmpeg video compressed but not playing in browser
I have integrated ffmpeg4android lib. Video compressing is working fine but video is not playing in browser except safari browser. after uploading to server. I have used following command.
ffmpeg -y -i -strict experimental -r 30 -ab…

Ankita Shah
- 1,866
- 16
- 31
5
votes
2 answers
ffmpeg quality conversion options (video compression)
Can you provide a link, or an explanation, to the -q:v 1 argument that deals with video/image quality, and compression, in ffmpeg.
Let me explain...
for f in *
do
extension="${f##*.}"
filename="${f%.*}"
ffmpeg -i "$f" -q:v 1…

Display name
- 4,153
- 5
- 27
- 75
5
votes
1 answer
ffmpeg returns 'frame_pts' as unrecognized option
Earlier today I posted a question about frame extration with keyframes per encoding order (here) and I tried to run the command provided in one of the answers but ffmpeg returns:
Unrecognized option 'frame_pts'.
Error splitting the argument list:…

tavalendo
- 857
- 2
- 11
- 30
4
votes
1 answer
For lossless video compression, which is better? crf or qp?
I have a raw video. I need it to compress it losslessly. There are two ways to do this. Setting the parameters crf or qp to 0. crf achieves constant bitrate while qp has constant quantization. I've two questions:
Do the options -crf 0 and -qp 0…

Nagabhushan S N
- 6,407
- 8
- 44
- 87
4
votes
2 answers
video compression using silicompressor in android not working
i am trying to compress videos in project therefore using silicompressor. but when i pass it the destination path my application gets and hang and does nothing. But it does create a folder in my storage and stores a video file but when i try to play…

Hasnain Ali
- 53
- 1
- 7
4
votes
1 answer
Video compression issue in samsung s5 device
I trying to compress video. it's working fine in all device but in Samsung S5 it gives below error.
Error Log : android.media.MediaCodec$CodecException: Error 0xffffec77
below have my compression function
public boolean convertVideo(final String…

Sanjay Bhalani
- 2,424
- 18
- 44
4
votes
0 answers
IllegalStateException while compressing video at "dequeueOutputBuffer()"
I've also checked a few or more similar posted questions, but none of them was having any satisfying response.
My requirement is to compress videos in approx. 1-2 minutes.
The video size restriction in my app is 500 MB and the duration limit is 4…

Narendra Singh
- 3,990
- 5
- 37
- 78
3
votes
0 answers
Why does my video compressor not work? Throws error: Null check operator used on a null value (video_compress)
Unhandled Exception: Null check operator used on a null value
I am encountering an error when trying to compress videos. I am testing the app on an Iphone 12 pro.
I have tried using the following versions of the package:
3.1.1
3.1.0
3.0.0
My…

Henrik
- 61
- 4
3
votes
1 answer
compress selected video file before upload in javascript
I have included video upload feature in my javascript project. Selecting the video from local storage in the project is uploading, but I want the size of the video file to be compressed and uploaded. My main focus is to upload recorded video from…

MANISH SHARMA
- 33
- 1
- 8
3
votes
2 answers
Convert 16bit Grayscale PNG to HEVC/x265
I want to convert a 12bit image signal to HEVC for effective compression. Because I need to be able to reconstruct the original 12bit signal, the compression needs to be losslessly reversible. At the moment I have the data as 16-bit PNG files.
My…

Ben Bezos
- 43
- 1
- 5
3
votes
0 answers
How to compress a video file to a specific size using JavaScript?
I need to compress files to fit 5mb cap.
It doesn't matter which compression methods are used, I just need the easiest way of compressing file to a certain size in JavaScript.

Gieted
- 835
- 6
- 21