Deinterlacing with ffmpeg?

Support and queries relating to all previous versions of ZoneMinder
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

lol i found that too.
The only way to do it would be to capture the input with ffmpeg and then deinterlace it then give it to zm, how i dont know

Also the new hd std has 1080i so its still interlaced as it uses half the bandwidth of 1080p
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
kdf
Posts: 13
Joined: Mon May 07, 2007 12:41 pm

Post by kdf »

720p would be the ideal resolution really as its progressive without too much bandwidth. There are lots of programs that would capture the input and de-interlace it but I dont think you could get proper status reports from it which is probably why a custom capture program was written.

With regards to the original question in this forum. While researching I found out if you want to de-interlace clips when exporting, ffmpeg wont do it (as you found out)

but mencoder will using the following command

Code: Select all

mencoder mf://filename.jpg -mf w=720:h=576:fps=10:type=jpg -vf lavcdeint -ovc lavc -lavcopts vcodec=mpeg4 -ofps 25 -oac copy -o output.avi
Where

filename.jpg = the jpg file you want to convert (can use *.jpg to convert an entire event)
w= width in pixels
h= height in pixels
fps = the fps rate of your camera
-vf lavcdeint is the deinterlacing filter (read the man as there are quite a few deinterlacing filters)

dunno if that helps but after a quick test I got a working video file of an event that was fully deinterlaced.
Voltage54
Posts: 23
Joined: Sat Feb 21, 2009 1:35 am

Post by Voltage54 »

hi kdf... nice find! Exactly what I've been looking for.

Can you help a noob out though and show us all how you could integrate this function into zoneminder to replace the ffmpeg/mpeg_encode function?

Thanks heaps:)
Locked