Command:
ffmpeg -y -i PXL_20221224_013646321.mp4 -crf 23 -vf format=yuv420p -c:v h264 -b:a 64k -maxrate 218k -bufsize 218k -vf scale=-1:1080,setsar=1 001c43b4-a9ff-4e95-b38f-ec4a640005b3.mp4
Output:
ffmpeg version n5.1.2 Copyright (c) 2000-2022 the FFmpeg developers
built with Android (7155654, based on r399163b1) clang version 11.0.5 (https://android.googlesource.com/toolchain/llvm-project 87f1315dfbea7c137aa2e6d362dbb457e388158d)
configuration: --cross-prefix=aarch64-linux-android- --sysroot=/files/android-sdk/ndk/22.1.7171670/toolchains/llvm/prebuilt/linux-x86_64/sysroot --prefix=/home/taner/Projects/ffmpeg-kit/prebuilt/android-arm64/ffmpeg --pkg-config=/usr/bin/pkg-config --enable-version3 --arch=aarch64 --cpu=armv8-a --target-os=android --enable-neon --enable-asm --enable-inline-asm --ar=aarch64-linux-android-ar --cc=aarch64-linux-android24-clang --cxx=aarch64-linux-android24-clang++ --ranlib=aarch64-linux-android-ranlib --strip=aarch64-linux-android-strip --nm=aarch64-linux-android-nm --extra-libs='-L/home/taner/Projects/ffmpeg-kit/prebuilt/android-arm64/cpu-features/lib -lndk_compat' --disable-autodetect --enable-cross-compile --enable-pic --enable-jni --enable-optimizations --enable-swscale --disable-static --enable-shared --enable-pthreads --enable-v4l2-m2m --disable-outdev=fbdev --disable-indev=fbdev --enable-small --disable-xmm-clobber-test --disable-debug --enable-lto --disable-neon-clobber-test --disable-programs --disable-postproc --disable-doc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages --disable-sndio --disable-schannel --disable-securetransport --disable-xlib --disable-cuda --disable-cuvid --disable-nvenc --disable-vaapi --disable-vdpau --disable-videotoolbox --disable-audiotoolbox --disable-appkit --disable-alsa --disable-cuda --disable-cuvid --disable-nvenc --disable-vaapi --disable-vdpau --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-gmp --enable-gnutls --enable-libmp3lame --enable-libass --enable-iconv --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libxml2 --enable-libopencore-amrnb --enable-libshine --enable-libspeex --enable-libdav1d --enable-libkvazaar --enable-libx264 --enable-libxvid --enable-libx265 --enable-libvidstab --enable-libilbc --enable-libopus --enable-libsnappy --enable-libsoxr --enable-libtwolame --disable-sdl2 --enable-libvo-amrwbenc --enable-libzimg --disable-openssl --enable-zlib --enable-mediacodec --enable-gpl
libavutil 57. 28.100 / 57. 28.100
libavcodec 59. 37.100 / 59. 37.100
libavformat 59. 27.100 / 59. 27.100
libavdevice 59. 7.100 / 59. 7.100
libavfilter 8. 44.100 / 8. 44.100
libswscale 6. 7.100 / 6. 7.100
libswresample 4. 7.100 / 4. 7.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'saf:2.mp4':
Metadata:
major_brand : isom
minor_version : 131072
compatible_brands: isomiso2mp41
creation_time : 2022-12-24T01:37:16.000000Z
com.android.capture.fps: 30.000000
Duration: 00:00:29.35, start: 0.000000, bitrate: 20012 kb/s
Stream #0:0[0x1](eng): Data: none (mett / 0x7474656D), 31 kb/s (default)
Metadata:
creation_time : 2022-12-24T01:37:16.000000Z
handler_name : MetaHandle
Stream #0:1[0x2](eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 191 kb/s (default)
Metadata:
creation_time : 2022-12-24T01:37:16.000000Z
handler_name : SoundHandle
vendor_id : [0][0][0][0]
Stream #0:2[0x3](eng): Video: hevc (hvc1 / 0x31637668), yuvj420p(pc, bt470bg/bt470bg/smpte170m), 1920x1080, 19781 kb/s, SAR 1:1 DAR 16:9, 29.91 fps, 29.92 tbr, 90k tbn (default)
Metadata:
creation_time : 2022-12-24T01:37:16.000000Z
handler_name : VideoHandle
vendor_id : [0][0][0][0]
Side data:
displaymatrix: rotation of 90.00 degrees
Multiple -filter, -af or -vf options specified for stream 0, only the last option '-filter:v scale=-1:1080,setsar=1' will be used.
Stream mapping:
Stream #0:2 -> #0:0 (hevc (native) -> h264 (libx264))
Stream #0:1 -> #0:1 (aac (native) -> aac (native))
Press [q] to stop, [?] for help
[swscaler @ 0xb400007ebcdc82d0] [swscaler @ 0xb400007ebcdf8300] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0xb400007ebcdc82d0] [swscaler @ 0xb400007ebce28330] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0xb400007ebcdc82d0] [swscaler @ 0xb400007ebce18320] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0xb400007ebcdc82d0] [swscaler @ 0xb400007ebce08310] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0xb400007ebcdc82d0] [swscaler @ 0xb400007ebce58360] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0xb400007ebcdc82d0] [swscaler @ 0xb400007ebce48350] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0xb400007ebcdc82d0] [swscaler @ 0xb400007ebce68370] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0xb400007ebcdc82d0] [swscaler @ 0xb400007ebce38340] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0xb400007ebcdc82d0] [swscaler @ 0xb400007ebcea83b0] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0xb400007ebcdc82d0] [swscaler @ 0xb400007ebcea83b0] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0xb400007ebcdc82d0] [swscaler @ 0xb400007ebce38340] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0xb400007ebcdc82d0] [swscaler @ 0xb400007ebce68370] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0xb400007ebcdc82d0] [swscaler @ 0xb400007ebce48350] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0xb400007ebcdc82d0] [swscaler @ 0xb400007ebce58360] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0xb400007ebcdc82d0] [swscaler @ 0xb400007ebce08310] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0xb400007ebcdc82d0] [swscaler @ 0xb400007ebce18320] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0xb400007ebcdc82d0] [swscaler @ 0xb400007ebce28330] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0xb400007ebcdc82d0] [swscaler @ 0xb400007ebcdf8300] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0xb400007ebcdc82d0] [swscaler @ 0xb400007ebcdf8300] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0xb400007ebcdc82d0] [swscaler @ 0xb400007ebce28330] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0xb400007ebcdc82d0] [swscaler @ 0xb400007ebce18320] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0xb400007ebcdc82d0] [swscaler @ 0xb400007ebce08310] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0xb400007ebcdc82d0] [swscaler @ 0xb400007ebce58360] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0xb400007ebcdc82d0] [swscaler @ 0xb400007ebce48350] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0xb400007ebcdc82d0] [swscaler @ 0xb400007ebce68370] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0xb400007ebcdc82d0] [swscaler @ 0xb400007ebce38340] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0xb400007ebcdc82d0] [swscaler @ 0xb400007ebcea83b0] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0xb400007ebcdc82d0] [swscaler @ 0xb400007ebcea83b0] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0xb400007ebcdc82d0] [swscaler @ 0xb400007ebce38340] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0xb400007ebcdc82d0] [swscaler @ 0xb400007ebce68370] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0xb400007ebcdc82d0] [swscaler @ 0xb400007ebce48350] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0xb400007ebcdc82d0] [swscaler @ 0xb400007ebce58360] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0xb400007ebcdc82d0] [swscaler @ 0xb400007ebce08310] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0xb400007ebcdc82d0] [swscaler @ 0xb400007ebce18320] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0xb400007ebcdc82d0] [swscaler @ 0xb400007ebce28330] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0xb400007ebcdc82d0] [swscaler @ 0xb400007ebcdf8300] deprecated pixel format used, make sure you did set range correctly
[libx264 @ 0xb400007dbcc297b0] using SAR=1/1
[libx264 @ 0xb400007dbcc297b0] using cpu capabilities: ARMv8 NEON
[libx264 @ 0xb400007dbcc297b0] profile High, level 3.1, 4:2:0, 8-bit
[libx264 @ 0xb400007dbcc297b0] 264 - core 164 - H.264/MPEG-4 AVC codec - Copyleft 2003-2022 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=218 vbv_bufsize=218 crf_max=0.0 nal_hrd=none filler=0 ip_ratio=1.40 aq=1:1.00
[mp4 @ 0xb400007dacb21630] muxer does not support non seekable output
Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
Error initializing output stream 0:1 --
[aac @ 0xb400007dbcc1c8b0] Qavg: nan
Conversion failed!
Result: FAILURE
On ffshare 1.2.4 from FDroid on a Pixel 4a 5g with Android 13
ffshare log:
On ffshare 1.2.4 from FDroid on a Pixel 4a 5g with Android 13