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:
http://cweiske.de/tagebuch/deinterlacing-1080i.htm

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:
http://www.ffmpeg.org/download.html

3 comments:

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

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

    ReplyDelete
  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,

    ReplyDelete

Ansible and Jinja2: Check if variable is defined and it's True

Jinja2 provides you with a built in test: http://jinja.pocoo.org/docs/2.10/templates/#defined So you can simply use: However, if you...