libx264

Fast Video Compression on Android

不问归期 提交于 2019-11-26 17:27:04
问题 I want to upload video files to server and compress before uploading. I'm using ffmpeg libx264. I have seen viber can upload 30 second video file of size 78MB within a minute [reduce it's down to 2.3MB]. I want to know how do they do it so fast? What I have tried so far - FFMPEG version : n2.4.2 Built with gcc 4.8 Build Configuraiton : --target-os=linux --cross-prefix=/home/sb/Source-Code/ffmpeg-android/toolchain-android/bin/arm-linux-androideabi- --arch=arm --cpu=cortex-a8 --enable-runtime

FFMPEG (libx264) “height not divisible by 2”

人盡茶涼 提交于 2019-11-26 14:53:07
I am trying to encode a .mp4 video from a set of frames using FFMPEG using the libx264 codec. This is the command I am running: /usr/local/bin/ffmpeg -r 24 -i frame_%05d.jpg -vcodec libx264 -y -an video.mp4 I sometimes get the following error: [libx264 @ 0xa3b85a0] height not divisible by 2 (520x369) After searching around a bit it seems that the issue has something to do with the scaling algorithm and can be fixed by adding a -vf argument. However, in my case I don't want to do any scaling. Ideally, I want to keep the dimensions exactly the same as the frames. Any advice? Is there some sort

FFMPEG (libx264) “height not divisible by 2”

早过忘川 提交于 2019-11-26 03:47:30
问题 I am trying to encode a .mp4 video from a set of frames using FFMPEG using the libx264 codec. This is the command I am running: /usr/local/bin/ffmpeg -r 24 -i frame_%05d.jpg -vcodec libx264 -y -an video.mp4 I sometimes get the following error: [libx264 @ 0xa3b85a0] height not divisible by 2 (520x369) After searching around a bit it seems that the issue has something to do with the scaling algorithm and can be fixed by adding a -vf argument. However, in my case I don\'t want to do any scaling.