ffmpeg source camera sharpen

Forum for questions and support relating to the 1.25.x releases only.
Post Reply
solarix
Posts: 12
Joined: Tue Apr 10, 2012 2:34 pm

ffmpeg source camera sharpen

Post by solarix » Tue Apr 10, 2012 2:37 pm

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
Debian 7.8 Zoneminder 1.28.1 from source AMD FX-8370 Processor 16 gig of ram. 11 HD IP cameras.

User avatar
nightcrawler
Posts: 71
Joined: Fri Aug 12, 2011 9:54 am
Location: the netherlands

Re: ffmpeg source camera sharpen

Post by nightcrawler » Wed Apr 11, 2012 8:46 am

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
Zoneminder @Ubuntu 11 server, ZM 1.25.0 , FFMPEG, 4 Analoge cameras, 1.6ghz P4mobile, 2GB ram, 60GB-HDD.
I also have an (homeseer) domotica system up-and-running with touchscreens,light controllers,weather forecast etc.

solarix
Posts: 12
Joined: Tue Apr 10, 2012 2:34 pm

Re: ffmpeg source camera sharpen

Post by solarix » Wed Apr 11, 2012 1:51 pm

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'
-------------
Debian 7.8 Zoneminder 1.28.1 from source AMD FX-8370 Processor 16 gig of ram. 11 HD IP cameras.

solarix
Posts: 12
Joined: Tue Apr 10, 2012 2:34 pm

Re: ffmpeg source camera sharpen

Post by solarix » Sun Apr 15, 2012 7:23 pm

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
Debian 7.8 Zoneminder 1.28.1 from source AMD FX-8370 Processor 16 gig of ram. 11 HD IP cameras.

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests