Announcement: Our new CyberLink Feedback Forum has arrived! Please transfer to our new forum to provide your feedback or to start a new discussion. The content on this CyberLink Community forum is now read only, but will continue to be available as a user resource. Thanks!
CyberLink Community Forum
where the experts meet
| Advanced Search >
Deinterlace 60i to 60p
[Post New]
Here's the command line parameters I use to deinterlace 60i to 60p.

If you use PD10 to slow down a 60i clip, it throws away half the fields, and you effectively only slow down 30 fps source footage

ffmpeg -i myinterlacedfile.m2ts -vf yadif=1:0 -vcodec libx264 -vpre hq -acodec copy -copyts -threads 0 -b 22000k "myprogressivefile.mp4"

The tricky part with ffmpeg is getting the presets to work.

You can download a bunch of them here:
http://www.mediasoftpro.com/aspnet-x264-presets.html

The presets must be in %home%\.ffmpeg

C:\ffmpeg\presets\.ffmpeg>dir
Volume in drive C has no label.
Volume Serial Number is 902B-83FA

Directory of C:\ffmpeg\presets\.ffmpeg

03/31/2012 06:59 PM <DIR> .
03/31/2012 06:59 PM <DIR> ..
05/18/2011 03:37 AM 43 libx264-baseline.ffpreset
03/19/2010 02:05 PM 304 libx264-default.ffpreset
03/19/2010 02:05 PM 313 libx264-fast.ffpreset
03/19/2010 02:05 PM 313 libx264-faster.ffpreset
03/19/2010 02:05 PM 313 libx264-faster_firstpass.ffpreset
03/19/2010 02:05 PM 322 libx264-fastfirstpass.ffpreset
03/19/2010 02:05 PM 313 libx264-fast_firstpass.ffpreset
34 File(s) 9,427 bytes
2 Dir(s) 5,368,791,040 bytes free

C:\ffmpeg\presets\.ffmpeg>echo %home%
c:\ffmpeg\presets

Assuming you save your presets in the same spot I did:

You can set the HOME variable using the following command line function:
setx home c:\ffmpeg\presets
(this takes effect for new command line windows only, not the one you just entered. So close it out and open a new window)

What ever folder you specify as HOME, the presets must be inside a folder .ffmpeg inside that folder.
It took me a long time to figure this out.

Attached are the source 60i footage, and a low bitrate 60p version (low bitrate to save download time)

The yadif filter does quite well at deinterlacing and "doubling" the frame rate. Technically 60i is really 30i (two fields per frame)

Download both clips, slow then down in powerdirector to 10% and you'll see what I mean.

 Filename
20101219_165433.m2ts
[Disk]
 Description
60i aka 30i
 Filesize
9288 Kbytes
 Downloaded:
469 time(s)
 Filename
out3.mp4
[Disk]
 Description
converted to 60p with yadif
 Filesize
9053 Kbytes
 Downloaded:
566 time(s)
jmone
Senior Contributor Location: Australia Joined: Nov 26, 2010 00:05 Messages: 706 Offline
[Post New]
YADIF is my fav single pass real time sw deinterlacer and this should get good results. There are better vector adaptive options available via the GPU but I've not looked into how to get to it for batch transcoding. I did have a quick play using PD10 custom profiles to lift DV50i to AVC50p but the resutls were terrible. PD 64 Bit-Win10 64 Bit-32GB RAM-80TB HDD
Sony FX6 - 500Mbps 4k/50p AVC-I HLG
Canon XF400 - 150Mbps 4k/50p AVC
GoPro Hero6 Black
Pana HS700-28Mbps 1080/50p AVC (High@L4.2)
Canon HV20-HDV 25Mbps 16:9 1440x1080/25p MPEG
Pinto [Avatar]
Newbie Joined: Jul 07, 2006 09:48 Messages: 10 Offline
[Post New]
Yadif produces some artifacts and the image does not look as original.

QTGMC has better results.



Claudio
dcouzin [Avatar]
Newbie Location: Berlin, Germany Joined: Aug 09, 2012 07:42 Messages: 1 Offline
[Post New]
It would be great to know how Bastian74 approached the 60i-to-60p deinterlace program. Did he do two separate 60i-to-30p deinterlaces and meld them? I used that method to deinterlace 50i-to-50p in a video editing program because it contained a very high quality 50i-to-25p algorithm. See my writeup at LAFCPUG. Like Bastian74, I supplied links to the 50i original and the 50p deinterlace. The 50p file really needs to have twice the size of the 50i file to judge the quality of the result.

Interlace is analog CRT television's curse on digital video. 50i-to-50p (or 60i-to-60p) deinterlacing, before editing, is the cure.
Powered by JForum 2.1.8 © JForum Team