Page 1 of 1

ffmpeg source camera sharpen

Posted: Tue Apr 10, 2012 2:37 pm
by solarix
Is there a way to apply the ffmpeg unsharp filter on input to sharpen the incoming frames from an ffmpeg sourced h264 camera?

Thanks,

Jerry Allen

Re: ffmpeg source camera sharpen

Posted: Wed Apr 11, 2012 8:46 am
by nightcrawler
Let me Google that for u

If you look at ffmpeg.org at the command list (24.47) you can use Strong luma sharpen effect parameters

Code: Select all

unsharp=7:7:2.5
so use this at the optional input options at ZM config (FFMPEG_INPUT_OPTIONS) and try it! Beware this input command slows your system and will be used for all your camera inputs

Re: ffmpeg source camera sharpen

Posted: Wed Apr 11, 2012 1:51 pm
by solarix
Tried unsharp=7:7:2.5 before posting. This seems to only effect the image input for creating avi/mpeg etc from events and does not work at first glance. The cameras still work so it is not effecting the connection to the camera only the creation of video from events.

This option fails with;
Unable to generate video, check ...ffmpeg.log for details
----------
ffmpeg version 0.7.3-4:0.7.3-0ubuntu0.11.10.1, Copyright (c) 2000-2011 the Libav developers
built on Jan 4 2012 16:08:51 with gcc 4.6.1
configuration: --extra-version='4:0.7.3-0ubuntu0.11.10.1' --arch=amd64 --prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --enable-shared --disable-static
libavutil 51. 7. 0 / 51. 7. 0
libavcodec 53. 6. 0 / 53. 6. 0
libavformat 53. 3. 0 / 53. 3. 0
libavdevice 53. 0. 0 / 53. 0. 0
libavfilter 2. 4. 0 / 2. 4. 0
libswscale 2. 0. 0 / 2. 0. 0
libpostproc 52. 0. 0 / 52. 0. 0
Unable to find a suitable output format for 'unsharp=7:7:2.5'
-------------

Re: ffmpeg source camera sharpen

Posted: Sun Apr 15, 2012 7:23 pm
by solarix
Solved for you.

Really cleans up the created video from an event.

Add this to the output entry in ffmpeg options;
-r 25 -vf "unsharp=l:7:7:5" -ab 64k -b 5000k

Jerry