[FFmpeg-user] Does ffmpeg have options to increase speed of ffmpeg scaling command?
Dmitry Kazakov
Dmitry.Kazakov at EF.com
Tue Jul 5 06:44:04 CEST 2016
Hello Lou,
Thank you for your feedback, please see console output in the end of the file.
07-05 12:40:41.355 16398-16398/package D/TAG: ImageProcessor:onStart
07-05 12:40:41.375 16398-17393/package D/FFmpeg: Running publishing updates method
07-05 12:40:41.385 16398-16398/package D/TAG: ImageProcessor:onProgress: ffmpeg version n3.0.1 Copyright (c) 2000-2016 the FFmpeg developers
07-05 12:40:41.385 16398-16398/package D/TAG: ImageProcessor:onProgress: built with gcc 4.8 (GCC)
07-05 12:40:41.385 16398-16398/package D/TAG: ImageProcessor:onProgress: configuration: --target-os=linux --cross-prefix=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/bin/arm-linux-androideabi- --arch=arm --cpu=cortex-a8 --enable-runtime-cpudetect --sysroot=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/sysroot --enable-pic --enable-libx264 --enable-libass --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-fontconfig --enable-pthreads --disable-debug --disable-ffserver --enable-version3 --enable-hardcoded-tables --disable-ffplay --disable-ffprobe --enable-gpl --enable-yasm --disable-doc --disable-shared --enable-static --pkg-config=/home/vagrant/SourceCode/ffmpeg-android/ffmpeg-pkg-config --prefix=/home/vagrant/SourceCode/ffmpeg-android/build/armeabi-v7a --extra-cflags='-I/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/include -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all' --extra-ldflags='-L/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/lib -Wl,-z,relro -Wl,-z,now -pie' --extra-libs='-lpng -lexpat -lm' --extra-cxxflags=
07-05 12:40:41.385 16398-16398/package D/TAG: ImageProcessor:onProgress: libavutil 55. 17.103 / 55. 17.103
07-05 12:40:41.385 16398-16398/package D/TAG: ImageProcessor:onProgress: libavcodec 57. 24.102 / 57. 24.102
07-05 12:40:41.385 16398-16398/package D/TAG: ImageProcessor:onProgress: libavformat 57. 25.100 / 57. 25.100
07-05 12:40:41.385 16398-16398/package D/TAG: ImageProcessor:onProgress: libavdevice 57. 0.101 / 57. 0.101
07-05 12:40:41.385 16398-16398/package D/TAG: ImageProcessor:onProgress: libavfilter 6. 31.100 / 6. 31.100
07-05 12:40:41.385 16398-16398/package D/TAG: ImageProcessor:onProgress: libswscale 4. 0.100 / 4. 0.100
07-05 12:40:41.385 16398-16398/package D/TAG: ImageProcessor:onProgress: libswresample 2. 0.101 / 2. 0.101
07-05 12:40:41.385 16398-16398/package D/TAG: ImageProcessor:onProgress: libpostproc 54. 0.100 / 54. 0.100
07-05 12:40:41.495 16398-16398/package D/TAG: ImageProcessor:onProgress: Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/storage/emulated/0/Android/data/package/files/Pictures/.nomedia/mediahub/TAG_VID_20160701_154549-1998486542.mp4':
07-05 12:40:41.495 16398-16398/package D/TAG: ImageProcessor:onProgress: Metadata:
07-05 12:40:41.495 16398-16398/package D/TAG: ImageProcessor:onProgress: major_brand : isom
07-05 12:40:41.495 16398-16398/package D/TAG: ImageProcessor:onProgress: minor_version : 0
07-05 12:40:41.495 16398-16398/package D/TAG: ImageProcessor:onProgress: compatible_brands: isom3gp4
07-05 12:40:41.495 16398-16398/package D/TAG: ImageProcessor:onProgress: creation_time : 2016-07-01 07:45:54
07-05 12:40:41.495 16398-16398/package D/TAG: ImageProcessor:onProgress: location : +31.2284+121.4457/
07-05 12:40:41.495 16398-16398/package D/TAG: ImageProcessor:onProgress: location-eng : +31.2284+121.4457/
07-05 12:40:41.505 16398-16398/package D/TAG: ImageProcessor:onProgress: Duration: 00:00:03.58, start: 0.000000, bitrate: 9216 kb/s
07-05 12:40:41.505 16398-16398/package D/TAG: ImageProcessor:onProgress: Stream #0:0(eng): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p, 1280x720, 7926 kb/s, SAR 1:1 DAR 16:9, 29.96 fps, 30 tbr, 90k tbn, 180k tbc (default)
07-05 12:40:41.505 16398-16398/package D/TAG: ImageProcessor:onProgress: Metadata:
07-05 12:40:41.505 16398-16398/package D/TAG: ImageProcessor:onProgress: rotate : 90
07-05 12:40:41.505 16398-16398/package D/TAG: ImageProcessor:onProgress: creation_time : 2016-07-01 07:45:54
07-05 12:40:41.505 16398-16398/package D/TAG: ImageProcessor:onProgress: handler_name : VideoHandle
07-05 12:40:41.505 16398-16398/package D/TAG: ImageProcessor:onProgress: Side data:
07-05 12:40:41.505 16398-16398/package D/TAG: ImageProcessor:onProgress: displaymatrix: rotation of -90.00 degrees
07-05 12:40:41.505 16398-16398/package D/TAG: ImageProcessor:onProgress: Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 97 kb/s (default)
07-05 12:40:41.505 16398-16398/package D/TAG: ImageProcessor:onProgress: Metadata:
07-05 12:40:41.505 16398-16398/package D/TAG: ImageProcessor:onProgress: creation_time : 2016-07-01 07:45:54
07-05 12:40:41.505 16398-16398/package D/TAG: ImageProcessor:onProgress: handler_name : SoundHandle
07-05 12:40:41.505 16398-16398/package D/TAG: ImageProcessor:onProgress: Please use -b:a or -b:v, -b is ambiguous
07-05 12:40:41.515 16398-16398/package D/TAG: ImageProcessor:onProgress: [mpeg4 @ 0x4203b3d0] Invalid pixel aspect ratio 5121/5120, limit is 255/255 reducing
07-05 12:40:41.545 16398-16398/package D/TAG: ImageProcessor:onProgress: Output #0, mp4, to '/storage/emulated/0/Pictures/.nomedia/mediahub/transformed_TAG_VID_20160701_154549-1998486542.mp4':
07-05 12:40:41.545 16398-16398/package D/TAG: ImageProcessor:onProgress: Metadata:
07-05 12:40:41.545 16398-16398/package D/TAG: ImageProcessor:onProgress: major_brand : isom
07-05 12:40:41.545 16398-16398/package D/TAG: ImageProcessor:onProgress: minor_version : 0
07-05 12:40:41.545 16398-16398/package D/TAG: ImageProcessor:onProgress: compatible_brands: isom3gp4
07-05 12:40:41.545 16398-16398/package D/TAG: ImageProcessor:onProgress: location-eng : +31.2284+121.4457/
07-05 12:40:41.545 16398-16398/package D/TAG: ImageProcessor:onProgress: location : +31.2284+121.4457/
07-05 12:40:41.545 16398-16398/package D/TAG: ImageProcessor:onProgress: encoder : Lavf57.25.100
07-05 12:40:41.545 16398-16398/package D/TAG: ImageProcessor:onProgress: Stream #0:0(eng): Video: mpeg4 ( [0][0][0] / 0x0020), yuv420p, 640x1138 [SAR 1:1 DAR 320:569], q=2-31, 2097 kb/s, SAR 5121:5120 DAR 9:16, 15 fps, 15360 tbn, 15 tbc (default)
07-05 12:40:41.545 16398-16398/package D/TAG: ImageProcessor:onProgress: Metadata:
07-05 12:40:41.545 16398-16398/package D/TAG: ImageProcessor:onProgress: handler_name : VideoHandle
07-05 12:40:41.545 16398-16398/package D/TAG: ImageProcessor:onProgress: creation_time : 2016-07-01 07:45:54
07-05 12:40:41.545 16398-16398/package D/TAG: ImageProcessor:onProgress: encoder : Lavc57.24.102 mpeg4
07-05 12:40:41.555 16398-16398/package D/TAG: ImageProcessor:onProgress: Side data:
07-05 12:40:41.555 16398-16398/package D/TAG: ImageProcessor:onProgress: unknown side data type 10 (24 bytes)
07-05 12:40:41.555 16398-16398/package D/TAG: ImageProcessor:onProgress: Stream #0:1(eng): Audio: aac (LC) ([64][0][0][0] / 0x0040), 48000 Hz, stereo, 97 kb/s (default)
07-05 12:40:41.555 16398-16398/package D/TAG: ImageProcessor:onProgress: Metadata:
07-05 12:40:41.555 16398-16398/package D/TAG: ImageProcessor:onProgress: creation_time : 2016-07-01 07:45:54
07-05 12:40:41.555 16398-16398/package D/TAG: ImageProcessor:onProgress: handler_name : SoundHandle
07-05 12:40:41.555 16398-16398/package D/TAG: ImageProcessor:onProgress: Stream mapping:
07-05 12:40:41.555 16398-16398/package D/TAG: ImageProcessor:onProgress: Stream #0:0 -> #0:0 (h264 (native) -> mpeg4 (native))
07-05 12:40:41.555 16398-16398/package D/TAG: ImageProcessor:onProgress: Stream #0:1 -> #0:1 (copy)
07-05 12:40:41.555 16398-16398/package D/TAG: ImageProcessor:onProgress: Press [q] to stop, [?] for help
07-05 12:40:42.205 16398-16398/package D/TAG: ImageProcessor:onProgress: frame= 5 fps=0.0 q=2.0 size= 247kB time=00:00:01.04 bitrate=1934.6kbits/s dup=0 drop=1 speed=1.94x
07-05 12:40:42.695 16398-16398/package D/TAG: ImageProcessor:onProgress: frame= 8 fps=7.5 q=3.6 size= 336kB time=00:00:01.04 bitrate=2636.9kbits/s dup=0 drop=4 speed=0.984x
07-05 12:40:43.185 16398-16398/package D/TAG: ImageProcessor:onProgress: frame= 12 fps=7.7 q=5.3 size= 415kB time=00:00:01.04 bitrate=3250.1kbits/s dup=0 drop=8 speed=0.669x
07-05 12:40:43.745 16398-16398/package D/TAG: ImageProcessor:onProgress: frame= 15 fps=7.2 q=5.6 size= 499kB time=00:00:01.04 bitrate=3906.7kbits/s dup=0 drop=11 speed=0.499x
07-05 12:40:44.225 16398-16398/package D/TAG: ImageProcessor:onProgress: frame= 19 fps=7.3 q=5.6 size= 552kB time=00:00:02.04 bitrate=2207.1kbits/s dup=0 drop=15 speed=0.785x
07-05 12:40:44.755 16398-16398/package D/TAG: ImageProcessor:onProgress: frame= 23 fps=7.4 q=5.6 size= 604kB time=00:00:02.04 bitrate=2415.0kbits/s dup=0 drop=19 speed=0.657x
07-05 12:40:45.345 16398-16398/package D/TAG: ImageProcessor:onProgress: frame= 27 fps=7.3 q=6.2 size= 712kB time=00:00:02.04 bitrate=2849.7kbits/s dup=0 drop=23 speed=0.556x
07-05 12:40:45.845 16398-16398/package D/TAG: ImageProcessor:onProgress: frame= 30 fps=7.1 q=6.2 size= 748kB time=00:00:02.04 bitrate=2991.0kbits/s dup=0 drop=26 speed=0.487x
07-05 12:40:46.335 16398-16398/package D/TAG: ImageProcessor:onProgress: frame= 34 fps=7.2 q=5.7 size= 796kB time=00:00:03.05 bitrate=2137.0kbits/s dup=0 drop=30 speed=0.647x
07-05 12:40:46.895 16398-16398/package D/TAG: ImageProcessor:onProgress: frame= 37 fps=7.0 q=4.0 size= 895kB time=00:00:03.05 bitrate=2402.5kbits/s dup=0 drop=33 speed=0.58x
07-05 12:40:47.535 16398-16398/package D/TAG: ImageProcessor:onProgress: frame= 41 fps=7.0 q=6.5 size= 939kB time=00:00:03.05 bitrate=2522.5kbits/s dup=0 drop=37 speed=0.521x
07-05 12:40:48.025 16398-16398/package D/TAG: ImageProcessor:onProgress: frame= 44 fps=6.9 q=6.1 size= 977kB time=00:00:03.05 bitrate=2623.7kbits/s dup=0 drop=40 speed=0.475x
07-05 12:40:48.625 16398-16398/package D/TAG: ImageProcessor:onProgress: frame= 48 fps=6.9 q=5.6 size= 1000kB time=00:00:03.20 bitrate=2561.2kbits/s dup=0 drop=44 speed=0.458x
07-05 12:40:49.085 16398-16398/package D/TAG: ImageProcessor:onProgress: frame= 51 fps=6.8 q=5.8 size= 1118kB time=00:00:03.58 bitrate=2554.3kbits/s dup=0 drop=47 speed=0.479x
07-05 12:40:49.085 16398-16398/package D/TAG: ImageProcessor:onProgress: frame= 51 fps=6.8 q=5.8 Lsize= 1123kB time=00:00:03.58 bitrate=2566.5kbits/s dup=0 drop=48 speed=0.475x
07-05 12:40:49.085 16398-16398/package D/TAG: ImageProcessor:onProgress: video:1078kB audio:42kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.250146%
07-05 12:40:49.115 16398-16398/package D/TAG: ImageProcessor:onSuccess: ffmpeg version n3.0.1 Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 4.8 (GCC)
configuration: --target-os=linux --cross-prefix=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/bin/arm-linux-androideabi- --arch=arm --cpu=cortex-a8 --enable-runtime-cpudetect --sysroot=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/sysroot --enable-pic --enable-libx264 --enable-libass --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-fontconfig --enable-pthreads --disable-debug --disable-ffserver --enable-version3 --enable-hardcoded-tables --disable-ffplay --disable-ffprobe --enable-gpl --enable-yasm --disable-doc --disable-shared --enable-static --pkg-config=/home/vagrant/SourceCode/ffmpeg-android/ffmpeg-pkg-config --prefix=/home/vagrant/SourceCode/ffmpeg-android/build/armeabi-v7a --extra-cflags='-I/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/include -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all' --extra-ldflags='-L/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/lib -Wl,-z,relro -Wl,-z,now -pie' --extra-libs='-lpng -lexpat -lm' --extra-cxxflags=
libavutil 55. 17.103 / 55. 17.103
libavcodec 57. 24.102 / 57. 24.102
libavformat 57. 25.100 / 57. 25.100
libavdevice 57. 0.101 / 57. 0.101
libavfilter 6. 31.100 / 6. 31.100
libswscale 4. 0.100 / 4. 0.100
libswresample 2. 0.101 / 2. 0.101
libpostproc 54. 0.100 / 54. 0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/storage/emulated/0/Android/data/package/files/Pictures/.nomedia/mediahub/TAG_VID_20160701_154549-1998486542.mp4':
Metadata:
major_brand : isom
minor_version : 0
compatible_brands: isom3gp4
creation_time : 2016-07-01 07:45:54
location : +31.2284+121.4457/
location-eng : +31.2284+121.4457/
Duration: 00:00:03.58, start: 0.000000, bitrate: 9216 kb/s
Stream #0:0(eng): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p, 1280x720, 7926 kb/s, SAR 1:1 DAR 16:9, 29.96 fps, 30 tbr, 90k tbn, 180k tbc (default)
Metadata:
rotate : 90
creation_time : 2016-07-01 07:45:54
handler_name : VideoHandle
Side data:
displaymatrix: rotation of -90.00 degrees
Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 97 kb/s (default)
Metadata:
creation_time : 2016-07-01 07:45:54
handler_name : SoundHandle
Please use -b:a or -b:v, -b is ambiguous
[mpeg4 @ 0x4203b3d0] Invalid pixel aspect ratio 5121/5120, limit is 255/255 reducing
Output #0, mp4, to '/storage/emulated/0/Pictures/.nomedia/mediahub/transformed_TAG_VID_20160701_154549-1998486542.mp4':
Metadata:
major_brand : isom
minor_version : 0
compatible_brands: isom3gp4
location-eng : +31.2284+121.4457/
location : +31.2284+121.4457/
encoder : Lavf57.25.100
Stream #0:0(eng): Video: mpeg4 ( [0][0][0] / 0x0020), yuv420p, 640x1138 [SAR 1:1 DAR 320:569], q=2-31, 2097 kb/s, SAR 5121:5120 DAR 9:16, 15 fps, 15360 tbn, 15 tbc (default)
Metadata:
handler_name : VideoHandle
creation_time : 2016-07-01 07:45:54
encoder : Lavc57.24.102 mpeg4
Side data:
unknown side data type 10 (24 bytes)
Stream #0:1(eng): Audio: aac (LC) ([64][0][0][0] / 0x0040), 48000 Hz, stereo, 97 kb/s (default)
Metadata:
creation_time : 2016-07-01 07:45:54
handler_name : SoundHandle
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> mpeg4 (native))
Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame= 5 fps=0.0 q=2.0 size= 247kB time=00:00:01.04 bitrate=1934.6kbits/s dup=0 drop=1 speed=1.94x
frame= 8 fps=7.5 q=3.6 size= 336kB time=00:00:01.04 bitrate=2636.9kbits/s dup=0 drop=4 speed=0.984x
frame= 12 fps=7.7 q=5.3 size= 415kB time=00:00:01.04 bitrate=3250.1kbits/s dup=0 drop=8 speed=0.669x
frame= 15 fps=7.2 q=5.6 size= 499kB time=00:00:01.04 bit
07-05 12:40:49.115 16398-16398/package D/TAG: ImageProcessor:onPreprocessFinish
-----Original Message-----
From: ffmpeg-user [mailto:ffmpeg-user-bounces at ffmpeg.org] On Behalf Of Lou
Sent: Tuesday, July 05, 2016 11:22 AM
To: ffmpeg-user at ffmpeg.org
Subject: Re: [FFmpeg-user] Does ffmpeg have options to increase speed of ffmpeg scaling command?
On Mon, Jul 4, 2016, at 05:51 PM, Dmitry Kazakov wrote:
[...]
> Could you please advise, does ffmpeg supports any others options which
> can potentially help to increase the speed?
>
> -y -I <origin.mp4> -vf scale=640:-1 -r 15 -ab 12288 -vcodec mpeg4
> -preset ultrafast -acodec copy -b 2097152 <result.mp4>
You need to include the complete console output from your command.
Note that "-preset ultrafast" is ignored by mpeg4 because it is a private option used by specific encoders.
_______________________________________________
ffmpeg-user mailing list
ffmpeg-user at ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
To unsubscribe, visit link above, or email ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
More information about the ffmpeg-user
mailing list