Saturday, October 5, 2013

Deinterlacing and converting MTS video files

For my trip abroad I had a Sony video camera I borrowed from my friend. The camera was filming in AVCHD format, in 1080i format, an interlaced video.
After coming home, I was searching for the best way, to preserve quality, to deinterlace the video files and keep them that way. I have tried several ways, also tried converting with VLC only to find out that there is a bug. So I came up with the following article:

The way is to just use the command line, with the ffmpeg convert option. However, it came up to me, that the sameq option is no longer available which is used by the publisher. So I decided to publish this post, with the fix to the command. You just need to replace the sameq option with qscale 0:
ffmpeg -i in.MTS -vf yadif=1 -acodec ac3 -ab 192k -vcodec mpeg4 -f mp4 -y -qscale 0 out.mp4
Replace in.MTS with the source file and out.mp4 with the output file name.

This far it resulted in the best deinterlaced video quality I could find.
You can download ffmpeg here:


  1. This comment has been removed by a blog administrator.

  2. This comment has been removed by a blog administrator.

  3. 3 tips to make money from betting on sports - Work
    Sports betting involves picking bets, and หารายได้เสริม making 군포 출장마사지 a 사천 출장샵 small wager on a sporting event. 군포 출장마사지 As with the above mentioned, your bet is still on whether the game will 천안 출장마사지 win,

  4. NoVCasino Casino - NOVCASINO.COM offers a no deposit novcasino bonus of 100% up to €150. No Deposit Bonus is given to new players only. No deposit bonuses herzamanindir expire