G
G
gibigate2016-06-23 11:47:59
fmpeg
gibigate, 2016-06-23 11:47:59

Correct ffmpeg options for online streaming?

Good afternoon, I would like to know from experts what ffmpeg parameters should be used when formatting video for online streaming, without a strong loss of quality.
The following lines are currently used:

-vcodec libx264 
-vpre lossless_medium 
-threads 0 
-r 25 -g 50 -crf 20 
-me_method hex 
-trellis 0 
-bf 8 
-directpred auto 
-acodec libfaac -ar 44100 -ab 128k 
-f mp4 
-vf "scale=1024:576"

~300mb is compressed to ~120.
After ffmpeg naturally qt-faststart
ffmpeg configuration:
configuration: --prefix=/usr/local --mandir=/usr/local/man --enable-shared --enable-gpl --enable-postproc --enable-avfilter --enable-pthreads --enable-memalign -hack --enable-runtime-cpudetect --cc=cc --extra-cflags='-I/usr/local/include/vorbis -I/usr/local/include' --extra-ldflags='-L/ usr/local/lib'--extra-libs=-pthread --disable-debug --disable-libaacplus --disable-indev=alsa --disable-outdev=alsa --enable-libopencore-amrnb --enable-libopencore-amrwb --disable- libcelt --disable-libdirac --enable-libfaac --disable-ffserver --enable-libfreetype --enable-frei0r --enable-libgsm --enable-libmp3lame --enable-libopencv --disable-libopenjpeg --disable- librtmp --enable-libschroedinger --disable-ffplay --disable-libspeex --enable-libtheora --disable-vaapi --disable-vdpau --disable-libvo-aacenc --disable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-nonfree --enable-version3

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question