<p>Sorry for the late reply. For anyone wondering, the video actually is progressive.  The next line in the mediainfo shows 2:3 pulldown, which is a software added telecine (soft telecine).  You can also see the framerate is 23.976 fps, which should never indicate interlaced video.  This means each frame is progressive, and the video file has flags on the frames so the video player can add telecine during playback so the video is 29.97 fps.  I believe VLC media player ignore the flags completely these days and only shows the progressive frames. You can also use AVISynth to do an inverse telecine with the plugin TIVTC, I suggest making a d2v file with DGIndex from DGMPGDec, but it will be a reencode.  There might also be a way to remove the 2:3 pulldown flag in the metadata, which would remove the telecine without reencoding.</p>

CC BY-SA 4.0
2022-12-27T14:31:37.527Z
2022-12-27T14:31:37.527Z
user40165
<p>Is there a way to use ffmpeg (or anything else that can be used in linux) to fix an interlaced video marked as progressive, and mark it as interlaced so that I can get rid of bad interlaced frames?</p>

<p>Here's an example of how it is:
<a href="https://i.sstatic.net/rXPU2.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/rXPU2.png" alt="Hardly interlaced frame"></a></p>

<p>And how it should be:
<a href="https://i.sstatic.net/nmsqg.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/nmsqg.png" alt="Not interlaced"></a></p>

<p>Here's the mediainfo of the video:</p>

<p><code>Video
Format                                   : MPEG Video
Format version                           : Version 2
Format profile                           : Main@Main
Format settings, BVOP                    : Yes
Format settings, Matrix                  : Custom
Format settings, GOP                     : Variable
Bit rate mode                            : Variable
Maximum bit rate                         : 9 800 kb/s
Width                                    : 720 pixels
Height                                   : 480 pixels
Display aspect ratio                     : 4:3
Frame rate                               : 23.976 (24000/1001) FPS
Standard                                 : Component
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits</code>
<strong><code>
Scan type                                : Progressive</code></strong><code>
Scan order                               : 2:3 Pulldown
Compression mode                         : Lossy
Time code of first frame                 : 01:00:05:00
GOP, Open/Closed                         : Open
GOP, Open/Closed of first frame          : Closed
Color primaries                          : BT.601 NTSC
Transfer characteristics                 : BT.601
Matrix coefficients                      : BT.601</code></p>

<p>Do I need a reencode to fix this? Or just change its wrong flag?</p>

CC BY-SA 4.0
2019-04-18T05:03:20.503Z
How do you plan to fix it?
Gyan
CC BY-SA 4.0
2019-04-18T21:30:51.527Z
@Gyan I don't know how to fix it. I just have a possible diagnosis. Some forums say the problem lies on the 'progressive' flag. How do I change the flag, then? Do I need to inverse telecine it or something? If so, how do I do it? I couldn't find any solution that actually work anywhere I have searched in. That's why I am asking how to fix it. I tried reencoding it with the `-ilme` option and it just made it worse.
João Victor Bateli Romão
CC BY-SA 4.0
2020-08-30T11:06:30.307Z
Did you ever get around this problem? I'd like to know too if there is some way to fix incorrectly marked 'progressive' frames to interlaced without re-encoding.
hedgehog90
<ffmpeg><linux><mpeg>
How to fix interlaced mpeg2 video marked as progressive?
João Victor Bateli Romão
# How to fix interlaced mpeg2 video marked as progressive?

(Asked by: username_0 on 2019-04-17)

Is there a way to use ffmpeg (or anything else that can be used in linux) to fix an interlaced video marked as progressive, and mark it as interlaced so that I can get rid of bad interlaced frames?

Here's an example of how it is:
[![Hardly interlaced frame](https://i.sstatic.net/rXPU2.png)](https://i.sstatic.net/rXPU2.png)

And how it should be:
[![Not interlaced](https://i.sstatic.net/nmsqg.png)](https://i.sstatic.net/nmsqg.png)

Here's the mediainfo of the video:

`Video
Format : MPEG Video
Format version : Version 2
Format profile : Main@Main
Format settings, BVOP : Yes
Format settings, Matrix : Custom
Format settings, GOP : Variable
Bit rate mode : Variable
Maximum bit rate : 9 800 kb/s
Width : 720 pixels
Height : 480 pixels
Display aspect ratio : 4:3
Frame rate : 23.976 (24000/1001) FPS
Standard : Component
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits`
**`Scan type : Progressive`**`Scan order : 2:3 Pulldown
Compression mode : Lossy
Time code of first frame : 01:00:05:00
GOP, Open/Closed : Open
GOP, Open/Closed of first frame : Closed
Color primaries : BT.601 NTSC
Transfer characteristics : BT.601
Matrix coefficients : BT.601`

Do I need a reencode to fix this? Or just change its wrong flag?

**Tags:** ffmpeg, linux, mpeg

> **Comments:**
> **username_1**: How do you plan to fix it?  
> **username_0**: @username_1 I don't know how to fix it. I just have a possible diagnosis. Some forums say the problem lies on the 'progressive' flag. How do I change the flag, then? Do I need to inverse telecine it or something? If so, how do I do it? I couldn't find any solution that actually work anywhere I have searched in. That's why I am asking how to fix it. I tried reencoding it with the `-ilme` option and it just made it worse.  
> **username_2**: Did you ever get around this problem? I'd like to know too if there is some way to fix incorrectly marked 'progressive' frames to interlaced without re-encoding.  

---

## 1 answers

### Answer by username_3 on 2022-12-27. Score: 1

Sorry for the late reply. For anyone wondering, the video actually is progressive. The next line in the mediainfo shows 2:3 pulldown, which is a software added telecine (soft telecine). You can also see the framerate is 23.976 fps, which should never indicate interlaced video. This means each frame is progressive, and the video file has flags on the frames so the video player can add telecine during playback so the video is 29.97 fps. I believe VLC media player ignore the flags completely these days and only shows the progressive frames. You can also use AVISynth to do an inverse telecine with the plugin TIVTC, I suggest making a d2v file with DGIndex from DGMPGDec, but it will be a reencode. There might also be a way to remove the 2:3 pulldown flag in the metadata, which would remove the telecine without reencoding.


---

