Questions tagged [video-compression]

99 questions
5
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, …
4
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
  • 727
  • 7
  • 26
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…
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
  • 4,513
  • 5
  • 30
  • 75
4
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…
4
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…
3
votes
0 answers

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
  • 4,063
  • 5
  • 26
  • 54
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
  • 444
  • 3
  • 15
3
votes
1 answer

What ffmpeg command will produce a video compression similar to Instagram's compression?

I am looking to take a video and compress it in a way that is similar to the compression that Instagram uses. What ffmpeg command can do this?
user592419
  • 4,535
  • 7
  • 37
  • 64
2
votes
1 answer

How to create a anAudioSampleBuffer for CMSampleBufferGetFormatDescription in iOS Swift

I have been working on video compression in iOS Swift, and following this SO's answer. It is working fine until I change this piece of code's file format to .mp4 let videoWriter = try! AVAssetWriter(outputURL: outputURL as URL, fileType:…
Ahsan
  • 157
  • 1
  • 11
2
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…
2
votes
0 answers

ffmpeg: Is there a way to decode a video frame, given the previous frame, motion vectors, and a residual image?

Assume we are given the following numpy arrays: the BGR video frame for timestep t-1, the motion vectors for timestep t, and the residual image for timestep t. Also, assume the video frame, motion vectors, and residual iamge, come from a video which…
aarzchan
  • 21
  • 2
2
votes
1 answer

How to fix error duplicate entry: com/coremedia/iso/AbstractBoxParser$1.class?

After add isoparser-1.0.6.jar into lib folder, I got error something like this Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'. com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate…
Lukmanpryg
  • 156
  • 1
  • 13
2
votes
1 answer

Video compression estimated size - android

I am developing an android video compression application. I have video 1280*720, video duration is 4 seconds and size of the video is 7Mb, How can get estimated video size for different resolutions. I want to find estimated video size for 854*504,…
rajahsekar
  • 890
  • 11
  • 25
1
2 3 4 5 6 7