-
Notifications
You must be signed in to change notification settings - Fork 832
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Video conversion/compression is too slow. #54
Comments
I ran into same issue here. I suspect making up a service may help since main thread is in charge of UI drawing, etc. It's only a guess, in fact I'll try this option and then share my discoveries. |
* Overlaying two videos of around max 15 seconds** |
Hello All, add following before output it will help to decrease processing time. |
Hi.. I am using
|
Also noticed that, conversion is very slow. Fortunately "-preset ultrafast" helped a lot. |
This command make video processing really fast |
Hi |
Hi, Reading option '-preset' ...Unrecognized option 'preset'. |
Hi rt1909 |
Hi Sanjay, I have checked it. In the blog post they mentioned about using the "-preset On Thu, Jul 28, 2016 at 12:49 PM, Sanjay Bhalani [email protected]
|
Hi rt1909 "ffmpeg -y -i in.mp4 -strict experimental -r 30 -ab 48000 -ac 2 -ar 48000 -vcodec mpeg4 -b 2097152 out.mp4" |
Hello All, i am using below command with video size 45mb and 12 second. "ffmpeg -y -i /sdcard/videokit/input.mp4 -s 320x240 -r 20 -c:v libx264 -preset ultrafast -c:a copy -me_method zero -tune fastdecode -tune zerolatency -strict -2 -b:v 1000k -pix_fmt yuv420p /sdcard/videokit/123out.mp4"; Please help me to complete this compressor in 12-15 second. |
anyone please help me to solve the issue. Unable to find a suitable output format for 'ffmpeg' ffmpeg: Invalid argumenttried many ways and also change commands but still the same issue "ffmpeg -y -i "+path+" -s 320x240 -r 20 -c:v libx264 -preset ultrafast -c:a copy -me_method zero -tune fastdecode -tune zerolatency -strict -2 -b:v 1000k -pix_fmt yuv420p "+outputFilePath; input and output format is mp4.i want to compress the video |
try this ffmpeg -i /storage/emulated/0/Movies/Instagram/VID_219920217_214928_732.mp4 -vf scale=-1:480.0 -threads 16 -c:v libx264 -maxrate 1984k -bufsize 3968k -ac 2 -vf format=yuv420p -g 60 -c:a aac -b:a 128k -ar 44100 -movflags +faststart -profile:v baseline -level 3.1 -crf 28 -preset ultrafast -strict -2 /storage/emulated/0/Android/data/com.staze/cache/1514433292621.mp4 Working fine for me using |
What is -b:v stands for if bitrate how setting -b:v 1000k decrease the process time |
-b:v means you want to alter bitrate of the video stream. -v:b 1000k means that in the output video, the bitrate of video stream will be 1000 bps. It should decrease processing time becuase the bitrate is low. |
/usr/bin/ffmpeg -y -i /var/www/vod/storage/app/public/temp/GIbSMv9DcueO2maksuvZ6ZeWvGcSiDI4RMtn4qzB.mp4 -map 0 -flags -global_header -f segment -segment_format mpeg_ts -segment_list /var/www/vod/storage/app/public/movies/lopl//nonenc/l69enpRRLtbJuO3wBSbM_1500.m3u8 -segment_time 6 -threads 12 -vcodec libx264 -acodec aac -b:v 1500k -refs 6 -coder 1 -sc_threshold 40 -flags +loop -me_range 16 -subq 7 -i_qfactor 0.71 -qcomp 0.6 -qdiff 4 -trellis 1 -b:a 128k -pass 1 -passlogfile /tmp/ffmpeg-passes5f73880a9868fmowmp/pass-5f73880a9881a /var/www/vod/storage/app/public/movies/lopl//nonenc/l69enpRRLtbJuO3wBSbM_1500_%05d.ts this is my command but very slow!! i change thread from 12 to 16 but not effective! this command use very cpu but not effective |
Did anyone got the command which is fast for video compression in android. i have been trying to reduce the compression time but nothing seems to be working. if anyone have the way please reply |
Hi,
I am compressing .mp4 (3 minutes video) of size 368.2MB using following command:
ffmpeg -y -i /storage/emulated/0/DCIM/Camera/20151119_200558.mp4 -strict experimental -vcodec libx264 -r 30 -acodec aac -ar 44100 -ac 1 -b:a 64k -b:v 790k /storage/emulated/0/output.mp4
It takes too long (I waited for 1 hour and more but still it's still compressing and I closed app). Please help me out how can I speed it up but I want better quality.
Thanks,
momersaleem
The text was updated successfully, but these errors were encountered: