User talk:Zhuyifei1999/Archive 46

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Sorry to bother you but I've been clearing out the really old DRs and I need someone that understands the language to confirm that we can keep this image. Would you be able to look at it and just confirm that it is judicial in nature? I would really appreciate it. Thanks. --Majora (talk) 22:08, 19 April 2019 (UTC)

Yes, the document itself is a legal resolution (don't know if this word is accurate but the Chinese words are 裁定 / 判决). --Zhuyifei1999 (talk) 23:34, 19 April 2019 (UTC)
Great. Thank you very much and also for closing the DR. It is appreciated. --Majora (talk) 00:52, 20 April 2019 (UTC)

SignBot stalled?

Hi. SignBot hasn't edited in almost 4 days. Please check it.   — Jeff G. please ping or talk to me 11:00, 20 April 2019 (UTC)

Restarted, hopefully. No time to check why it stalled. --Zhuyifei1999 (talk) 16:54, 20 April 2019 (UTC)
Thanks!   — Jeff G. please ping or talk to me 19:55, 20 April 2019 (UTC)

19:07, 23 April 2019 (UTC)

Wikimedia Hackathon 2019

I see you are heading to Wikimedia Hackathon 2019. I am planning to be there as well, so let's try to meet and talk. --Jarekt (talk) 12:59, 24 April 2019 (UTC)

Sure --Zhuyifei1999 (talk) 14:49, 24 April 2019 (UTC)

Relicense File:UPS Airlines Airbus A300B4-622R N155UP at Las Américas International Airport (SDQ), 2004.jpg

If you can relicense this file under CC BY-NC-SA 4.0 (which replaced CC BY-NC-SA 4.0) that would be great. Tigerdude9 (talk) 22:55, 28 April 2019 (UTC)

NC itself is unacceptable. See COM:L --Zhuyifei1999 (talk) 01:18, 29 April 2019 (UTC)

22:27, 29 April 2019 (UTC)

video2commons performance

Hi Zhuyifei1999! I started using video2commons. Everything works fine but I see a huge variation in its performance. I suspect this must be due to the thread oversubscription. I wonder if there is any load balancing mechanism on the server and the number of the free logical cores are being taken into account before starting the ffmpeg?

Also, I have many relatively large files to convert and 2 days conversion limit won't be enough for many of them. Is there any way to improve the ffmpeg performance? Do you know if ffmpeg has been compiled with the proper compiler optimization flags? Is it using the full SIMD instruction set of the host machine? -- Meisam (talk) 15:35, 2 May 2019 (UTC)

Load balancing is done between two servers of 16 cores 'randomly'. There is another server that is powered off for unknown reasons. Number of free logical cores is not taken into account; the ffmpegs just set # of threads = # of cores on the server so the transcoding can be done asap.
ffmpeg is compiled with these CPU flags enabled: "aes avx avx2 fma3 mmx mmxext sse sse2 sse3 sse4_1 sse4_2 ssse3" and these disabled: "3dnow 3dnowext fma4 xop". The full configuration flags is:
--prefix=/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr --libdir=/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/lib64 --shlibdir=/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/lib64 --docdir=/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/share/doc/ffmpeg-4.1.3/html --mandir=/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ --ar=x86_64-pc-linux-gnu-ar --optflags='-O2 -pipe -O2 -pipe' --disable-static --enable-avfilter --enable-avresample --disable-stripping --disable-optimizations --disable-libcelt --disable-indev=v4l2 --disable-outdev=v4l2 --disable-indev=alsa --disable-indev=oss --disable-indev=jack --disable-outdev=alsa --disable-outdev=oss --enable-bzlib --disable-runtime-cpudetect --disable-debug --disable-gcrypt --disable-gnutls --disable-gmp --enable-gpl --enable-hardcoded-tables --enable-iconv --disable-libtls --disable-libxml2 --disable-lzma --enable-network --disable-opencl --disable-openssl --enable-postproc --disable-libsmbclient --disable-ffplay --disable-sdl2 --disable-vaapi --disable-vdpau --disable-xlib --disable-libxcb --disable-libxcb-shm --disable-libxcb-xfixes --enable-zlib --disable-libcdio --disable-libiec61883 --disable-libdc1394 --disable-libcaca --disable-openal --disable-opengl --disable-libv4l2 --disable-libpulse --disable-libdrm --disable-libjack --disable-libopencore-amrwb --disable-libopencore-amrnb --disable-libcodec2 --disable-libfdk-aac --enable-libopenjpeg --enable-libbluray --disable-libgme --disable-libgsm --disable-mmal --disable-libmodplug --enable-libopus --disable-libilbc --disable-librtmp --disable-libssh --disable-libspeex --enable-libsrt --enable-librsvg --disable-ffnvcodec --enable-libvorbis --enable-libvpx --disable-libzvbi --disable-appkit --disable-libbs2b --disable-chromaprint --disable-libflite --disable-frei0r --disable-libfribidi --disable-fontconfig --disable-ladspa --enable-libass --disable-lv2 --disable-libfreetype --disable-librubberband --disable-libzmq --disable-libzimg --disable-libsoxr --enable-pthreads --disable-libvo-amrwbenc --enable-libmp3lame --disable-libkvazaar --disable-libaom --disable-libopenh264 --disable-libsnappy --enable-libtheora --disable-libtwolame --disable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --disable-libxvid --disable-armv5te --disable-armv6 --disable-armv6t2 --disable-neon --disable-vfp --disable-vfpv3 --disable-armv8 --disable-mipsdsp --disable-mipsdspr2 --disable-mipsfpu --disable-altivec --disable-amd3dnow --disable-amd3dnowext --disable-fma4 --disable-xop --disable-doc --disable-htmlpages --enable-manpages
If you want to squeeze or the performance, I could try O3 + LTO + Graphite but I don't think that would change much. --Zhuyifei1999 (talk) 15:59, 2 May 2019 (UTC)
Thanks for your quick response. Just two questions:
  1. If I understood it correctly, several transcoding jobs are being run simultaneously on the same machine! So the speed of the transcoding will depend on the number of the jobs currently running. Isn’t it better to queue the jobs and run them sequentially to not oversubscribe the threads on the logical cores? (On second thought, if there are only 2 machines available, this may introduce a huge bottleneck!)
  2. The compiler flags look OK to me. But have you checked the binary or used the hardware counters to ensure that the AVX instructions are actually being used? Depending on the compiler version (and other crazy situations!) this may or may not be true.
-- Meisam (talk) 16:34, 2 May 2019 (UTC)
  1. Yes.
  2. It's very hard to go through the disassembly of each compiled binary and check for each x86 extension. Do you have a specific function in mind that you want to check the disassembly of? These are all the files installed:
Extended content
zhuyifei1999@gfg01:~$ equery f ffmpeg
 * Searching for ffmpeg ...
 * Contents of media-video/ffmpeg-4.1.3:
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/bin
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/bin/aviocat
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/bin/cws2fws
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/bin/ffescape
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/bin/ffeval
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/bin/ffhash
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/bin/ffmpeg
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/bin/ffprobe
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/bin/fourcc2pixfmt
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/bin/graph2dot
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/bin/ismindex
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/bin/pktdumper
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/bin/qt-faststart
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/bin/sidxindex
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/bin/trasher
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavcodec
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavcodec/ac3_parser.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavcodec/adts_parser.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavcodec/avcodec.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavcodec/avdct.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavcodec/avfft.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavcodec/d3d11va.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavcodec/dirac.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavcodec/dv_profile.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavcodec/dxva2.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavcodec/jni.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavcodec/mediacodec.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavcodec/qsv.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavcodec/vaapi.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavcodec/vdpau.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavcodec/version.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavcodec/videotoolbox.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavcodec/vorbis_parser.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavcodec/xvmc.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavdevice
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavdevice/avdevice.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavdevice/version.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavfilter
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavfilter/avfilter.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavfilter/buffersink.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavfilter/buffersrc.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavfilter/version.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavformat
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavformat/avformat.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavformat/avio.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavformat/version.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavresample
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavresample/avresample.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavresample/version.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavutil
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavutil/adler32.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavutil/aes.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavutil/aes_ctr.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavutil/attributes.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavutil/audio_fifo.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavutil/avassert.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavutil/avconfig.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavutil/avstring.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavutil/avutil.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavutil/base64.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavutil/blowfish.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavutil/bprint.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavutil/bswap.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavutil/buffer.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavutil/camellia.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavutil/cast5.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavutil/channel_layout.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavutil/common.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavutil/cpu.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavutil/crc.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavutil/des.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavutil/dict.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavutil/display.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavutil/downmix_info.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavutil/encryption_info.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavutil/error.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavutil/eval.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavutil/ffversion.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavutil/fifo.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavutil/file.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavutil/frame.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavutil/hash.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavutil/hmac.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavutil/hwcontext.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavutil/hwcontext_cuda.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavutil/hwcontext_d3d11va.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavutil/hwcontext_drm.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavutil/hwcontext_dxva2.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavutil/hwcontext_mediacodec.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavutil/hwcontext_qsv.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavutil/hwcontext_vaapi.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavutil/hwcontext_vdpau.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavutil/hwcontext_videotoolbox.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavutil/imgutils.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavutil/intfloat.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavutil/intreadwrite.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavutil/lfg.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavutil/log.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavutil/lzo.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavutil/macros.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavutil/mastering_display_metadata.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavutil/mathematics.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavutil/md5.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavutil/mem.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavutil/motion_vector.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavutil/murmur3.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavutil/opt.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavutil/parseutils.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavutil/pixdesc.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavutil/pixelutils.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavutil/pixfmt.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavutil/random_seed.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavutil/rational.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavutil/rc4.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavutil/replaygain.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavutil/ripemd.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavutil/samplefmt.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavutil/sha.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavutil/sha512.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavutil/spherical.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavutil/stereo3d.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavutil/tea.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavutil/threadmessage.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavutil/time.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavutil/timecode.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavutil/timestamp.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavutil/tree.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavutil/twofish.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavutil/version.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libavutil/xtea.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libpostproc
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libpostproc/postprocess.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libpostproc/version.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libswresample
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libswresample/swresample.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libswresample/version.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libswscale
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libswscale/swscale.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/libswscale/version.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/x86_64-pc-linux-gnu
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/x86_64-pc-linux-gnu/libavutil
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/x86_64-pc-linux-gnu/libavutil/avconfig.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/lib64
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/lib64/libavcodec.so -> libavcodec.so.58.35.100
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/lib64/libavcodec.so.58 -> libavcodec.so.58.35.100
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/lib64/libavcodec.so.58.35.100
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/lib64/libavdevice.so -> libavdevice.so.58.5.100
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/lib64/libavdevice.so.58 -> libavdevice.so.58.5.100
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/lib64/libavdevice.so.58.5.100
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/lib64/libavfilter.so -> libavfilter.so.7.40.101
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/lib64/libavfilter.so.7 -> libavfilter.so.7.40.101
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/lib64/libavfilter.so.7.40.101
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/lib64/libavformat.so -> libavformat.so.58.20.100
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/lib64/libavformat.so.58 -> libavformat.so.58.20.100
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/lib64/libavformat.so.58.20.100
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/lib64/libavresample.so -> libavresample.so.4.0.0
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/lib64/libavresample.so.4 -> libavresample.so.4.0.0
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/lib64/libavresample.so.4.0.0
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/lib64/libavutil.so -> libavutil.so.56.22.100
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/lib64/libavutil.so.56 -> libavutil.so.56.22.100
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/lib64/libavutil.so.56.22.100
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/lib64/libpostproc.so -> libpostproc.so.55.3.100
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/lib64/libpostproc.so.55 -> libpostproc.so.55.3.100
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/lib64/libpostproc.so.55.3.100
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/lib64/libswresample.so -> libswresample.so.3.3.100
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/lib64/libswresample.so.3 -> libswresample.so.3.3.100
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/lib64/libswresample.so.3.3.100
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/lib64/libswscale.so -> libswscale.so.5.3.100
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/lib64/libswscale.so.5 -> libswscale.so.5.3.100
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/lib64/libswscale.so.5.3.100
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/lib64/pkgconfig
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/lib64/pkgconfig/libavcodec.pc
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/lib64/pkgconfig/libavdevice.pc
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/lib64/pkgconfig/libavfilter.pc
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/lib64/pkgconfig/libavformat.pc
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/lib64/pkgconfig/libavresample.pc
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/lib64/pkgconfig/libavutil.pc
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/lib64/pkgconfig/libpostproc.pc
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/lib64/pkgconfig/libswresample.pc
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/lib64/pkgconfig/libswscale.pc
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/share
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/share/doc
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/share/doc/ffmpeg-4.1.3
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/share/doc/ffmpeg-4.1.3/APIchanges.bz2
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/share/doc/ffmpeg-4.1.3/CREDITS.bz2
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/share/doc/ffmpeg-4.1.3/Changelog.bz2
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/share/doc/ffmpeg-4.1.3/README.md.bz2
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/share/doc/ffmpeg-4.1.3/RELEASE_NOTES.bz2
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/share/doc/ffmpeg-4.1.3/build_system.txt.bz2
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/share/doc/ffmpeg-4.1.3/errno.txt.bz2
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/share/doc/ffmpeg-4.1.3/ffmpeg.txt.bz2
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/share/doc/ffmpeg-4.1.3/filter_design.txt.bz2
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/share/doc/ffmpeg-4.1.3/issue_tracker.txt.bz2
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/share/doc/ffmpeg-4.1.3/libav-merge.txt.bz2
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/share/doc/ffmpeg-4.1.3/mips.txt.bz2
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/share/doc/ffmpeg-4.1.3/multithreading.txt.bz2
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/share/doc/ffmpeg-4.1.3/optimization.txt.bz2
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/share/doc/ffmpeg-4.1.3/rate_distortion.txt.bz2
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/share/doc/ffmpeg-4.1.3/snow.txt.bz2
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/share/doc/ffmpeg-4.1.3/swresample.txt.bz2
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/share/doc/ffmpeg-4.1.3/swscale.txt.bz2
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/share/doc/ffmpeg-4.1.3/tablegen.txt.bz2
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/share/doc/ffmpeg-4.1.3/undefined.txt.bz2
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/share/doc/ffmpeg-4.1.3/writing_filters.txt.bz2
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/share/ffmpeg
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/share/ffmpeg/examples
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/share/ffmpeg/examples/Makefile
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/share/ffmpeg/examples/README
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/share/ffmpeg/examples/avio_dir_cmd.c
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/share/ffmpeg/examples/avio_reading.c
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/share/ffmpeg/examples/decode_audio.c
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/share/ffmpeg/examples/decode_video.c
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/share/ffmpeg/examples/demuxing_decoding.c
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/share/ffmpeg/examples/encode_audio.c
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/share/ffmpeg/examples/encode_video.c
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/share/ffmpeg/examples/extract_mvs.c
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/share/ffmpeg/examples/filter_audio.c
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/share/ffmpeg/examples/filtering_audio.c
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/share/ffmpeg/examples/filtering_video.c
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/share/ffmpeg/examples/http_multiclient.c
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/share/ffmpeg/examples/hw_decode.c
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/share/ffmpeg/examples/metadata.c
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/share/ffmpeg/examples/muxing.c
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/share/ffmpeg/examples/qsvdec.c
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/share/ffmpeg/examples/remuxing.c
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/share/ffmpeg/examples/resampling_audio.c
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/share/ffmpeg/examples/scaling_video.c
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/share/ffmpeg/examples/transcode_aac.c
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/share/ffmpeg/examples/transcoding.c
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/share/ffmpeg/examples/vaapi_encode.c
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/share/ffmpeg/examples/vaapi_transcode.c
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/share/ffmpeg/ffprobe.xsd
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/share/ffmpeg/libvpx-1080p.ffpreset
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/share/ffmpeg/libvpx-1080p50_60.ffpreset
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/share/ffmpeg/libvpx-360p.ffpreset
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/share/ffmpeg/libvpx-720p.ffpreset
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/share/ffmpeg/libvpx-720p50_60.ffpreset
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/share/man
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/share/man/man1
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/share/man/man1/ffmpeg-all.1.bz2
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/share/man/man1/ffmpeg-bitstream-filters.1.bz2
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/share/man/man1/ffmpeg-codecs.1.bz2
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/share/man/man1/ffmpeg-devices.1.bz2
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/share/man/man1/ffmpeg-filters.1.bz2
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/share/man/man1/ffmpeg-formats.1.bz2
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/share/man/man1/ffmpeg-protocols.1.bz2
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/share/man/man1/ffmpeg-resampler.1.bz2
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/share/man/man1/ffmpeg-scaler.1.bz2
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/share/man/man1/ffmpeg-utils.1.bz2
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/share/man/man1/ffmpeg.1.bz2
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/share/man/man1/ffprobe-all.1.bz2
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/share/man/man1/ffprobe.1.bz2
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/share/man/man3
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/share/man/man3/libavcodec.3.bz2
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/share/man/man3/libavdevice.3.bz2
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/share/man/man3/libavfilter.3.bz2
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/share/man/man3/libavformat.3.bz2
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/share/man/man3/libavutil.3.bz2
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/share/man/man3/libswresample.3.bz2
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/share/man/man3/libswscale.3.bz2
zhuyifei1999@gfg01:~$ equery f libvpx
 * Searching for libvpx ...
 * Contents of media-libs/libvpx-1.8.0-r1:
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/bin
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/bin/vpxdec
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/bin/vpxenc
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/vpx
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/vpx/vp8.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/vpx/vp8cx.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/vpx/vp8dx.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/vpx/vpx_codec.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/vpx/vpx_decoder.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/vpx/vpx_encoder.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/vpx/vpx_frame_buffer.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/vpx/vpx_image.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/include/vpx/vpx_integer.h
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/lib64
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/lib64/libvpx.so -> libvpx.so.6.0.0
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/lib64/libvpx.so.6 -> libvpx.so.6.0.0
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/lib64/libvpx.so.6.0 -> libvpx.so.6.0.0
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/lib64/libvpx.so.6.0.0
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/lib64/pkgconfig
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/lib64/pkgconfig/vpx.pc
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/share
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/share/doc
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/share/doc/libvpx-1.8.0-r1
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/share/doc/libvpx-1.8.0-r1/AUTHORS.bz2
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/share/doc/libvpx-1.8.0-r1/CHANGELOG.bz2
/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/share/doc/libvpx-1.8.0-r1/README.bz2
Or so you have a better way of knowing that? --Zhuyifei1999 (talk) 21:46, 2 May 2019 (UTC)
  1. Do you know any alternative solution for transcoding lots of ~3GB 1080p videos for the commons?
  2. It is possible to use perf stat to profile the compiled code (if available and permitted by the root). For example, fp_arith_inst_retired.128b_packed_double, fp_arith_inst_retired.256b_packed_double, and fp_arith_inst_retired.scalar_double events can be measured and compared on the Skylake. -- Meisam (talk)
  1. I can run it directly on the server if you prefer that.
  2. I currently have no time to look into pref manual to figure out how to use pref. And a ctrl-f for 'fp_arith_inst_retired' / '128b_packed_double' yield no results on your linked page. Mind listing the commands that would be needed for this? Also, as far as I know abour pref it's for kernel profiling, not userspace, or am I wrong about that? I have root access on the transcoding servers so that is not an issue. --Zhuyifei1999 (talk) 02:40, 3 May 2019 (UTC)
  1. Is there any way for me to upload the videos where you have direct access to from the server?
  2. Sorry about that! I thought you must have used it before. The events like “fp_arith_inst_retired.128b_packed_double” are listed in the page I linked above from the “Skylake”. The names of these events depend on the CPU microarchitecture. Please check the CPU type before running the command. For example, you can use the perf on the Skylake CPUs to profile the ffmpeg by transcoding a relatively small file as:
perf stat -o perf.out -e fp_arith_inst_retired.128b_packed_double -e fp_arith_inst_retired.256b_packed_double -e fp_arith_inst_retired.scalar_double ffmpeg.... 
which writes the output of the perf to the "perf.out" file. BTW, if you are compiling the ffmpeg on the same machine, "-march=native" is usually a nice compiler flag to have. -- Meisam (talk) 13:43, 3 May 2019 (UTC)
  1. I can download it from anywhere publicly accessible, or Toolforge if you have access to that.
  2. Will check in a few hours.
  3. Good point about -march=native. I'll recompile with that flag after I check perf. --Zhuyifei1999 (talk) 17:29, 3 May 2019 (UTC)
I just checked /proc/cpuinfo. This is a Broadwell processor. Then I tryed to get pref working. Emerge failed at perf-4.20.3.ebuild#L201. Then I tried apt-get linux-perf-4.9/jessie-wikimedia 4.9.110-3+deb9u1~wmf1 amd64. This one refuse to run, with message invalid or unsupported event: 'fp_arith_inst_retired.128b_packed_double'. I'll see if I can emerge perf-4.14.33-r1. --Zhuyifei1999 (talk) 23:23, 3 May 2019 (UTC)
I was able to emerge perf-4.14.33-r1. However, it also fails with invalid or unsupported event: 'fp_arith_inst_retired.128b_packed_double'. What flag do I have to enable for this to work? --Zhuyifei1999 (talk) 23:34, 3 May 2019 (UTC)
[Disclaimer: Unfortunately, I don’t have access to any Broadwell processors to verify this!]
The Intel documentations lists the mentioned events as the supported one for the Broadwell microarchitecture. You can also see the list of the supported events by your perf using “perf list” command. If the problem is with your perf version, you can try reading the raw counters as: perf stat -o perf.out -e r04c7 -e r10c7 -e r01c7 ffmpeg....
However, these counters are not listed in the Intel® 64 and IA-32 Architectures Software Developer’s Manual Vol. 3B, Part 2 for the Broadwell! -- Meisam (talk) 11:10, 4 May 2019 (UTC)
Uh,
# started on Sat May  4 16:08:51 2019


 Performance counter stats for 'ffmpeg -y -i tmp.webm -codec:a copy -t 5 -threads 8 -row-mt 1 -qmin 19 -qmax 19 -vcodec libvpx-vp9 -tile-columns 4 -auto-alt-ref 1 -lag-in-frames 25 -f webm -ss 0 -ab 128000 -ar 48000 -acodec libopus /dev/null':

   <not supported>      r04c7                                                       
   <not supported>      r10c7                                                       
   <not supported>      r01c7                                                       

      50.383366703 seconds time elapsed
I should mention that these hosts like all wikimedia cound instances runs on KVM. Could that be the issue here? --Zhuyifei1999 (talk) 16:11, 4 May 2019 (UTC)
(and I realized I put a useless -c:a copy in the flags. No idea why) --Zhuyifei1999 (talk) 16:26, 4 May 2019 (UTC)
The virtualization environment may be the reason. BTW, I don’t know how the VMs are set up but if you don’t have a dedicated processor, the hardware counters are useless for the performance monitoring. I guess it is easier to time the transcodings with different compiler switches and compare them. -- Meisam (talk) 22:11, 4 May 2019 (UTC)
I don't think the difference is significant:
+ CFLAGS='-O2 -pipe'
+ emerge -1q ffmpeg libvpx
>>> Verifying ebuild manifests
>>> Emerging (1 of 2) media-libs/libvpx-1.8.0-r1::gentoo
>>> Installing (1 of 2) media-libs/libvpx-1.8.0-r1::gentoo
>>> Emerging (2 of 2) media-video/ffmpeg-4.1.3::gentoo
>>> Installing (2 of 2) media-video/ffmpeg-4.1.3::gentoo
+ for i in {1..3}
+ ffmpeg -v error -y -i Hurtigruten.01.01.x264.1920x1080.NRK2.mp4 -t 5 -threads 8 -row-mt 1 -qmin 19 -qmax 19 -vcodec libvpx-vp9 -tile-columns 4 -auto-alt-ref 1 -lag-in-frames 25 -f webm -ss 0 -ab 128000 -ar 48000 -acodec libopus /dev/null

real	0m33.391s
user	3m24.548s
sys	0m1.012s
+ for i in {1..3}
+ ffmpeg -v error -y -i Hurtigruten.01.01.x264.1920x1080.NRK2.mp4 -t 5 -threads 8 -row-mt 1 -qmin 19 -qmax 19 -vcodec libvpx-vp9 -tile-columns 4 -auto-alt-ref 1 -lag-in-frames 25 -f webm -ss 0 -ab 128000 -ar 48000 -acodec libopus /dev/null

real	0m33.125s
user	3m22.624s
sys	0m0.944s
+ for i in {1..3}
+ ffmpeg -v error -y -i Hurtigruten.01.01.x264.1920x1080.NRK2.mp4 -t 5 -threads 8 -row-mt 1 -qmin 19 -qmax 19 -vcodec libvpx-vp9 -tile-columns 4 -auto-alt-ref 1 -lag-in-frames 25 -f webm -ss 0 -ab 128000 -ar 48000 -acodec libopus /dev/null

real	0m32.068s
user	3m18.132s
sys	0m0.808s
+ CFLAGS='-O2 -march=native -pipe'
+ emerge -1q ffmpeg libvpx
>>> Verifying ebuild manifests
>>> Emerging (1 of 2) media-libs/libvpx-1.8.0-r1::gentoo
>>> Installing (1 of 2) media-libs/libvpx-1.8.0-r1::gentoo
>>> Emerging (2 of 2) media-video/ffmpeg-4.1.3::gentoo
>>> Installing (2 of 2) media-video/ffmpeg-4.1.3::gentoo
+ for i in {1..3}
+ ffmpeg -v error -y -i Hurtigruten.01.01.x264.1920x1080.NRK2.mp4 -t 5 -threads 8 -row-mt 1 -qmin 19 -qmax 19 -vcodec libvpx-vp9 -tile-columns 4 -auto-alt-ref 1 -lag-in-frames 25 -f webm -ss 0 -ab 128000 -ar 48000 -acodec libopus /dev/null

real	0m32.018s
user	3m16.476s
sys	0m0.836s
+ for i in {1..3}
+ ffmpeg -v error -y -i Hurtigruten.01.01.x264.1920x1080.NRK2.mp4 -t 5 -threads 8 -row-mt 1 -qmin 19 -qmax 19 -vcodec libvpx-vp9 -tile-columns 4 -auto-alt-ref 1 -lag-in-frames 25 -f webm -ss 0 -ab 128000 -ar 48000 -acodec libopus /dev/null

real	0m31.533s
user	3m13.012s
sys	0m0.832s
+ for i in {1..3}
+ ffmpeg -v error -y -i Hurtigruten.01.01.x264.1920x1080.NRK2.mp4 -t 5 -threads 8 -row-mt 1 -qmin 19 -qmax 19 -vcodec libvpx-vp9 -tile-columns 4 -auto-alt-ref 1 -lag-in-frames 25 -f webm -ss 0 -ab 128000 -ar 48000 -acodec libopus /dev/null

real	0m31.601s
user	3m13.688s
sys	0m0.876s
+ CFLAGS='-O3 -march=native -pipe'
+ emerge -1q ffmpeg libvpx
>>> Verifying ebuild manifests
>>> Emerging (1 of 2) media-libs/libvpx-1.8.0-r1::gentoo
>>> Installing (1 of 2) media-libs/libvpx-1.8.0-r1::gentoo
>>> Emerging (2 of 2) media-video/ffmpeg-4.1.3::gentoo
>>> Installing (2 of 2) media-video/ffmpeg-4.1.3::gentoo
+ for i in {1..3}
+ ffmpeg -v error -y -i Hurtigruten.01.01.x264.1920x1080.NRK2.mp4 -t 5 -threads 8 -row-mt 1 -qmin 19 -qmax 19 -vcodec libvpx-vp9 -tile-columns 4 -auto-alt-ref 1 -lag-in-frames 25 -f webm -ss 0 -ab 128000 -ar 48000 -acodec libopus /dev/null

real	0m30.491s
user	3m7.300s
sys	0m0.824s
+ for i in {1..3}
+ ffmpeg -v error -y -i Hurtigruten.01.01.x264.1920x1080.NRK2.mp4 -t 5 -threads 8 -row-mt 1 -qmin 19 -qmax 19 -vcodec libvpx-vp9 -tile-columns 4 -auto-alt-ref 1 -lag-in-frames 25 -f webm -ss 0 -ab 128000 -ar 48000 -acodec libopus /dev/null

real	0m31.440s
user	3m12.292s
sys	0m0.888s
+ for i in {1..3}
+ ffmpeg -v error -y -i Hurtigruten.01.01.x264.1920x1080.NRK2.mp4 -t 5 -threads 8 -row-mt 1 -qmin 19 -qmax 19 -vcodec libvpx-vp9 -tile-columns 4 -auto-alt-ref 1 -lag-in-frames 25 -f webm -ss 0 -ab 128000 -ar 48000 -acodec libopus /dev/null

real	0m31.353s
user	3m11.044s
sys	0m0.940s
+ CFLAGS='-O3 -march=native -mfma -malign-data=cacheline -finline-functions -pipe'
+ emerge -1q ffmpeg libvpx
>>> Verifying ebuild manifests
>>> Emerging (1 of 2) media-libs/libvpx-1.8.0-r1::gentoo
>>> Installing (1 of 2) media-libs/libvpx-1.8.0-r1::gentoo
>>> Emerging (2 of 2) media-video/ffmpeg-4.1.3::gentoo
>>> Installing (2 of 2) media-video/ffmpeg-4.1.3::gentoo
+ for i in {1..3}
+ ffmpeg -v error -y -i Hurtigruten.01.01.x264.1920x1080.NRK2.mp4 -t 5 -threads 8 -row-mt 1 -qmin 19 -qmax 19 -vcodec libvpx-vp9 -tile-columns 4 -auto-alt-ref 1 -lag-in-frames 25 -f webm -ss 0 -ab 128000 -ar 48000 -acodec libopus /dev/null

real	0m31.056s
user	3m9.860s
sys	0m0.824s
+ for i in {1..3}
+ ffmpeg -v error -y -i Hurtigruten.01.01.x264.1920x1080.NRK2.mp4 -t 5 -threads 8 -row-mt 1 -qmin 19 -qmax 19 -vcodec libvpx-vp9 -tile-columns 4 -auto-alt-ref 1 -lag-in-frames 25 -f webm -ss 0 -ab 128000 -ar 48000 -acodec libopus /dev/null

real	0m31.982s
user	3m14.640s
sys	0m0.920s
+ for i in {1..3}
+ ffmpeg -v error -y -i Hurtigruten.01.01.x264.1920x1080.NRK2.mp4 -t 5 -threads 8 -row-mt 1 -qmin 19 -qmax 19 -vcodec libvpx-vp9 -tile-columns 4 -auto-alt-ref 1 -lag-in-frames 25 -f webm -ss 0 -ab 128000 -ar 48000 -acodec libopus /dev/null

real	0m30.909s
user	3m9.292s
sys	0m0.844s
Cleaning up the not-so-necessary info:

-O2 -pipe
real	0m33.391s
user	3m24.548s
sys	0m1.012s

real	0m33.125s
user	3m22.624s
sys	0m0.944s

real	0m32.068s
user	3m18.132s
sys	0m0.808s

-O2 -march=native -pipe
real	0m32.018s
user	3m16.476s
sys	0m0.836s

real	0m31.533s
user	3m13.012s
sys	0m0.832s

real	0m31.601s
user	3m13.688s
sys	0m0.876s

-O3 -march=native -pipe
real	0m30.491s
user	3m7.300s
sys	0m0.824s

real	0m31.440s
user	3m12.292s
sys	0m0.888s

real	0m31.353s
user	3m11.044s
sys	0m0.940s

-O3 -march=native -mfma -malign-data=cacheline -finline-functions -pipe
real	0m31.056s
user	3m9.860s
sys	0m0.824s

real	0m31.982s
user	3m14.640s
sys	0m0.920s

real	0m30.909s
user	3m9.292s
sys	0m0.844s
So, < 10% difference between -O2 & -O3 -march=native -mfma -malign-data=cacheline -finline-functions. Anynow, I'm going with -O3 -march=native --Zhuyifei1999 (talk) 22:56, 5 May 2019 (UTC)
Seems fine for now. Thanks for the efforts! -- Meisam (talk) 21:16, 6 May 2019 (UTC)