1

I have an X.MTS video file and I want to extract images from. I tried to extract with FFmpeg but quality of extracted images is not good.

ffmpeg -i X.MTS images/%05d.png

Then I tried to extract images (take screenshot) from that file with VLC and Totem (Ubuntu’s default) video players.

Results are shown below. As you see screenshot of Totem is better than VLC screenshot. Is it possible to extract images from the video using FFmpeg with good quality?

VLC Screenshot

VLC Screenshot

Totem Screenshot

Totem screenshot

Isa Bek
  • 113

1 Answers1

2

Seems like the first image is interlaced. So perhaps simply deinterlacing would solve this issue? To do that with FFmpeg just take your command—as you have provided as an example—and add the -deinterlace option like this:

ffmpeg -i X.MTS -deinterlace images/%05d.png

But—according to a comment by LordNeckbeard—while the -deinterlace option still works, it has been depreciated in favor of the yadif deinterlacing filter. So you can achieve similar functionality using the -vf yadif option like this:

ffmpeg -i X.MTS -vf yadif images/%05d.png
Giacomo1968
  • 58,727