[FFmpeg-user] Change filters in running process without restarting it

Maxim Kozlov rogat1y at gmail.com
Mon Feb 9 11:19:12 CET 2015


Hi all.

I have such command:
ffmpeg -deinterlace -r 25 -f decklink -i DeckLink SDI (1)@9 -c:a copy -s
1920x1080 -r 25 -pix_fmt yuv422p -codec:v huffyuv -vf
movie=logo_720x576_43.png[wm];[in][wm]overlay=1065:45[out] -f nut - | \
ffmpeg -re -rtbufsize 2G -fflags +genpts -f nut -i - \
-vcodec libx264 -pix_fmt yuv420p -profile:v baseline -aspect 16:9 -s
1280x720 -x264opts
level=31:keyint=25:fps=25:ref=3:no-scenecut:vbv_maxrate=4096:vbv_bufsize=4096
-preset:v medium -map 0:v -map 0:a -af aresample=44100 -acodec libvo_aacenc
-ab 128k -ar 44100 -ac 2 -f tee [f=mpegts]udp://
192.168.0.6:10073?pkt_size=1316|[f=mpegts]udp://192.168.0.26:10073?pkt_size=1316
\
-vcodec libx264 -pix_fmt yuv420p -profile:v baseline -aspect 16:9 -s
640x360 -x264opts
level=31:keyint=25:fps=25:ref=3:no-scenecut:vbv_maxrate=700:vbv_bufsize=700
-preset:v fast -map 0:v -map 0:a -af aresample=22050 -acodec libvo_aacenc
-ab 64k -ar 22050 -ac 1 -f tee [f=mpegts]udp://
192.168.0.6:10071?pkt_size=1316|[f=mpegts]udp://192.168.0.26:10071?pkt_size=1316
\
-vcodec libx264 -pix_fmt yuv420p -profile:v baseline -aspect 16:9 -s
480x270 -x264opts
level=31:keyint=25:fps=25:ref=3:no-scenecut:vbv_maxrate=384:vbv_bufsize=384
-preset:v fast -map 0:v -map 0:a -af aresample=22050 -acodec libvo_aacenc
-ab 32k -ar 22050 -ac 1 -f tee [f=mpegts]udp://
192.168.0.6:10072?pkt_size=1316|[f=mpegts]udp://192.168.0.26:10072?pkt_size=1316

and i need to remove overlay filter without stoppping or restarting
encoding process.
Is it possible to change filters in running process without restarting it?


ffmpeg version 2.5.git Copyright (c) 2000-2015 the FFmpeg developers
  built on Jan 15 2015 21:32:07 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
  configuration: --disable-shared --enable-static --enable-gpl
--enable-nonfree --enable-fontconfig --enable-libfaac --enable-libfreetype
--enable-libmp3lame --enable-librtmp --enable-libvo-aacenc --enable-libx264
--enable-decklink --enable-version3 --enable-ffplay --disable-ffserver
--enable-pthreads --enable-filters --enable-libvorbis
--enable-runtime-cpudetect --enable-bzlib --enable-zlib
--extra-cflags=-I/misc/encoder/ffmpeg_ubuntu/ffmpeg_src/BlackmagicDeckLinkSDK10_1_4/Linux/include
--prefix=/misc/encoder/ffmpeg_ubuntu/compiled/
  libavutil      54. 16.100 / 54. 16.100
  libavcodec     56. 20.100 / 56. 20.100
  libavformat    56. 18.101 / 56. 18.101
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5.  7.100 /  5.  7.100
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  3.100 / 53.  3.100


More information about the ffmpeg-user mailing list