+LTS/SOPINE ffmpeg for x264 encoding
#1
I'm working on use my Pine64 RevB (2016) with 2Gb RAM, and armbian distro installed, for x264 encodings.

I'm using this command:

Code:
ffmpeg -i video_in.mkv \
-loglevel error -stats -an -vcodec libx264 -b:v 3500k -preset:v slow -profile:v high -tune:v film \
-aspect 16:9 -vf scale=w=1280:h=720 -threads 1 -cpu-used 1 -f rawvideo -passlogfile \
video_out.mkv -pass 1 -y /dev/null

using the 2-pass encoding method. In this case, I got 2.7 fps on analysis. If I use:

Code:
-threads 3 -cpu-used 1

i got about 4.5 fps.
I've found another ffmpeg compiled for AllWinner H3 processor. May I use this?
The configuration of my ffmpeg is:

Code:
ffmpeg version 2.8.15-0ubuntu0.16.04.1 Copyright (c) 2000-2018 the FFmpeg developers
 built with gcc 5.4.0 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.10) 20160609
 configuration: --prefix=/usr --extra-version=0ubuntu0.16.04.1 --build-suffix=-ffmpeg \
--toolchain=hardened --libdir=/usr/lib/aarch64-linux-gnu --incdir=/usr/include/aarch64-linux-gnu \
--cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg \
--disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa \
--enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite \
--enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm \
--enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse \
--enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr \
--enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis \
--enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi \
--enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq \
--enable-frei0r --enable-libx264 --enable-libopencv

 libavutil      54. 31.100 / 54. 31.100
 libavcodec     56. 60.100 / 56. 60.100
 libavformat    56. 40.101 / 56. 40.101
 libavdevice    56.  4.100 / 56.  4.100
 libavfilter     5. 40.101 /  5. 40.101
 libavresample   2.  1.  0 /  2.  1.  0
 libswscale      3.  1.101 /  3.  1.101
 libswresample   1.  2.101 /  1.  2.101
 libpostproc    53.  3.100 / 53.  3.100

I wish in your help. You are my last hope.
  Reply
#2
Why is your ffmpeg version so out of date? The new syntax for everything like your "-vcodec" would be "-c:v" libx264 -c:v -c:a -b:v -b:a etc
Are you trying to get higher fps? change the "slow" preset to "ultrafast"
ultrafast, superfast, veryfast, faster, fast, medium (default), slow, veryslow
I only use medium and slow on x86 with 8 cores.. even if I'm doing real time encoding on 8 cores I'll use veryfast normally.
  Reply
#3
Please explore at Linux-Sunxi IRC and wiki, hopefully developers in there able to help up
  Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)