MPEG-2 to MPEG-4

Comments

jak.willis wrote on 11/7/2021, 2:08 PM

@AAProds

Hi Alwyn

Good job - the motion issues are much better.

John EB

Yes - certainly

AAProds wrote on 11/7/2021, 6:48 PM

@jak.willis @johnebaker

Thanks both. I learned a bit about MEP's deinterlacing too. Not that I understand why those settings eg Interpolate intermediate images work! 🙂 . The written description/explanation of each setting certainly doesn't help.

QTGMC is a process for deinterlacing video and is arguably the best process in the business. Unfortunately though, it is an absolute nightmare to set up as it is made up of many different programs that sort of meld together somehow. If you're sitting down and unstressed, have a read though this. The guide I used to set it up is here. It's part of the AVISynth, an incredibly powerful video manipulation/editing world where results can be absolutely stunning if you know what you are doing. To me, it's all black magic and I just use examples that others have posted or suggested. Additionally, it is very resource-intensive and for Jak's video, my system was encoding at 10% video speed (not that I have a "normal" system any more).

Unfortunately, the deinterlacing of MPEG 2 with QTGMC is complicated further by the need to separate the audio and video, deinterlace the video, then put them back together again.

If I haven't scared you off, there is a program called Hybrid which has largely automated the QTGMC process but won't produce an MPEG file, only a lossless AVI or MP4, with no real "editing". I sometimes use it to de-interlace a file, then export it as an AVI, then import that into MEP for actual editing. Hybrid has lots of options and is a bit daunting at first but is quite clever. The developer, Selur, is quite active on his Hybrid forum and will respond quickly.

After working on Jak's file, I was quite impressed with MEPs' quality compared to the QTGMC output; it's not as good, but pretty close. Video is one of those "it's all in the eye of the beholder" things and I think MEP does a good job for us "normal" users.

For the exercise, I also did an MEP export with everything "standard" ie SD movie settings, including 25fps. I didn't change any of the Video object properties ie left the interlacing settings "as is". The only change I made was export at 50fps instead of the standard 25fps. The result was as good as the others.

So the secret appears to be to export at 50fps if the motion is violent.

 

All my forum comments are based on or refer to my System 1.

My struggle is over! I built my (now) system 2 in 2011 when DV was king and MPEG 2 was just coming onto the scene and I needed a more powerful system to cope. Since then we've advanced to MP4 and to bigger and bigger resolutions. I was really suffering, not so much in editing (with proxies) but in encoding, which just took ages. A video, with Neat Video noise reduction applied, would encode at 12% of film speed. My new system 1 does the same job at 160% of film speed. Marvellous. I'm keeping my old system as a capture station for analogue video tapes and DV.

System 1

Windows 11 v23H2 severely modified by Openshell and ExplorerPatcher

Power supply: 850W Cooler Master (should have got modular)

CPU: Intel i7 13700K running at 3400mhz, cooled by a Kraken 2x140mm All In One liquid cooler.

RAM: 64gb (2x32gb sticks) G.Skill "Ripjaws" DDR4 3200Mhz

GPU 1: iGPU UHD 770

GPU 2: NVidia RTX 3060Ti Windforce 8gb

C drive: NVME 500gb

Bluray Burner: Pioneer BDR-212D

Various other SSD and HDDs.

Monitor: 27"/68cm Samsung, 2560 x 1440, 43 pixels/cm.

MEP 2021 version 20.0.1.80

Movie Studio 2023 version 22.0.3.172

Magix Video Easy version 7.0.1.145

System 2

(Still in use for TV and videotape capture)

Windows 10 v22H2

CPU: i5-750 at 2670mhz with 12gb RAM

Onboard IEEE1394 (Firewire) port

GPU: ATI Radeon HD 4770 (512mb) which is ignored by MEP

Hard drives: C Drive 256gb SSD, various other HDDs.

Monitor: Dell 22"/56cm, 1680x1050, 35 pixels/cm

MEP 2021 version 20.0.1.80

Movie Studio 2023 version 22.0.3.172

VPX 12

jak.willis wrote on 11/8/2021, 6:02 AM

@jak.willis @johnebaker

Thanks both. I learned a bit about MEP's deinterlacing too. Not that I understand why those settings eg Interpolate intermediate images work! 🙂 . The written description/explanation of each setting certainly doesn't help.

QTGMC is a process for deinterlacing video and is arguably the best process in the business. Unfortunately though, it is an absolute nightmare to set up as it is made up of many different programs that sort of meld together somehow. If you're sitting down and unstressed, have a read though this. The guide I used to set it up is here. It's part of the AVISynth, an incredibly powerful video manipulation/editing world where results can be absolutely stunning if you know what you are doing. To me, it's all black magic and I just use examples that others have posted or suggested. Additionally, it is very resource-intensive and for Jak's video, my system was encoding at 10% video speed (not that I have a "normal" system any more).

Unfortunately, the deinterlacing of MPEG 2 with QTGMC is complicated further by the need to separate the audio and video, deinterlace the video, then put them back together again.

If I haven't scared you off, there is a program called Hybrid which has largely automated the QTGMC process but won't produce an MPEG file, only a lossless AVI or MP4, with no real "editing". I sometimes use it to de-interlace a file, then export it as an AVI, then import that into MEP for actual editing. Hybrid has lots of options and is a bit daunting at first but is quite clever. The developer, Selur, is quite active on his Hybrid forum and will respond quickly.

After working on Jak's file, I was quite impressed with MEPs' quality compared to the QTGMC output; it's not as good, but pretty close. Video is one of those "it's all in the eye of the beholder" things and I think MEP does a good job for us "normal" users.

For the exercise, I also did an MEP export with everything "standard" ie SD movie settings, including 25fps. I didn't change any of the Video object properties ie left the interlacing settings "as is". The only change I made was export at 50fps instead of the standard 25fps. The result was as good as the others.

So the secret appears to be to export at 50fps if the motion is violent.

 

Very well done! Thank you so much again. So what is it about H.264 that it can’t cope with rapid motion without increasing from 25 to 50fps? If MPEG-2 can cope with it then I wonder why MPEG-4 can’t?

AAProds wrote on 11/8/2021, 6:47 AM

@jak.willis

So what is it about H.264 that it can’t cope with rapid motion without increasing from 25 to 50fps?

Probably because you're only getting 25 frames every second with H264 (remember H264 is normally a progressive video codec), whereas MPEG 2 is an interlaced codec with 50 fields per second. Even though each field only has half the info, the eyes probably see the motion as smoother.

As I mentioned before, that motion is pretty wild and is probably on the extreme end of rough. Even then, it did take a close look on a big TV to notice it, so the encoders were doing a reasonable job at 25fps.

All my forum comments are based on or refer to my System 1.

My struggle is over! I built my (now) system 2 in 2011 when DV was king and MPEG 2 was just coming onto the scene and I needed a more powerful system to cope. Since then we've advanced to MP4 and to bigger and bigger resolutions. I was really suffering, not so much in editing (with proxies) but in encoding, which just took ages. A video, with Neat Video noise reduction applied, would encode at 12% of film speed. My new system 1 does the same job at 160% of film speed. Marvellous. I'm keeping my old system as a capture station for analogue video tapes and DV.

System 1

Windows 11 v23H2 severely modified by Openshell and ExplorerPatcher

Power supply: 850W Cooler Master (should have got modular)

CPU: Intel i7 13700K running at 3400mhz, cooled by a Kraken 2x140mm All In One liquid cooler.

RAM: 64gb (2x32gb sticks) G.Skill "Ripjaws" DDR4 3200Mhz

GPU 1: iGPU UHD 770

GPU 2: NVidia RTX 3060Ti Windforce 8gb

C drive: NVME 500gb

Bluray Burner: Pioneer BDR-212D

Various other SSD and HDDs.

Monitor: 27"/68cm Samsung, 2560 x 1440, 43 pixels/cm.

MEP 2021 version 20.0.1.80

Movie Studio 2023 version 22.0.3.172

Magix Video Easy version 7.0.1.145

System 2

(Still in use for TV and videotape capture)

Windows 10 v22H2

CPU: i5-750 at 2670mhz with 12gb RAM

Onboard IEEE1394 (Firewire) port

GPU: ATI Radeon HD 4770 (512mb) which is ignored by MEP

Hard drives: C Drive 256gb SSD, various other HDDs.

Monitor: Dell 22"/56cm, 1680x1050, 35 pixels/cm

MEP 2021 version 20.0.1.80

Movie Studio 2023 version 22.0.3.172

VPX 12

jak.willis wrote on 11/8/2021, 10:43 AM

@jak.willis

So what is it about H.264 that it can’t cope with rapid motion without increasing from 25 to 50fps?

Probably because you're only getting 25 frames every second with H264 (remember H264 is normally a progressive video codec), whereas MPEG 2 is an interlaced codec with 50 fields per second. Even though each field only has half the info, the eyes probably see the motion as smoother.

As I mentioned before, that motion is pretty wild and is probably on the extreme end of rough. Even then, it did take a close look on a big TV to notice it, so the encoders were doing a reasonable job at 25fps.

Ah, yes, I see what you mean. So if we were to do the same thing but using the MainConcept encoder this time, do you think we’d get the same results? Both yourself & John have mentioned about H.264 being a Progressive codec, but in MainConcept you do get the option of using interlaced. So I just wondered whether it would make any difference.

johnebaker wrote on 11/8/2021, 11:24 AM

@jak.willis

Hi

. . . . in MainConcept you do get the option of using interlaced. So I just wondered whether it would make any difference . . . .

At 25 fps there would be no difference at 50 fps possibly a slight improvement.

John EB

VPX 16, Movie Studio 2025, and earlier versions 2015 and 2016, Music Maker Premium 2024.

PC - running Windows 11 23H2 Professional on Intel i7-8700K 3.2 GHz, 16GB RAM, RTX 2060 6GB 192-bit GDDR6, 1 x 1Tb Sabrent NVME SSD (OS and programs), 2 x 4TB (Data) internal HDD + 1TB internal SSD (Work disc), + 6 ext backup HDDs.

Laptop - Lenovo Legion 5i Phantom - running Windows 11 23H2 on Intel Core i7-10750H, 16GB DDR4-SDRAM, 512GB SSD, 43.9 cm screen Full HD 1920 x 1080, Intel UHD 630 iGPU and NVIDIA GeForce RTX 2060 (6GB GDDR6)

Sony FDR-AX53e Video camera, DJI Osmo Action 3 and Sony HDR-AS30V Sports cams.

jak.willis wrote on 11/8/2021, 11:44 AM

@jak.willis

Hi

. . . . in MainConcept you do get the option of using interlaced. So I just wondered whether it would make any difference . . . .

At 25 fps there would be no difference at 50 fps possibly a slight improvement.

John EB

Hi,

So if we did the same thing with exporting at 50fps, the motion issue would still be corrected regardless of whether or not it’s interlaced or progressive?

johnebaker wrote on 11/8/2021, 1:26 PM

@jak.willis

Hi Jak

. . . . the motion issue would still be corrected regardless of whether or not it’s interlaced or progressive? . . . .

That is a presumption which would require testing.

I was referring specifically to what you asked

. . . . in MainConcept you do get the option of using interlaced. So I just wondered whether it would make any difference. . . .

John EB

VPX 16, Movie Studio 2025, and earlier versions 2015 and 2016, Music Maker Premium 2024.

PC - running Windows 11 23H2 Professional on Intel i7-8700K 3.2 GHz, 16GB RAM, RTX 2060 6GB 192-bit GDDR6, 1 x 1Tb Sabrent NVME SSD (OS and programs), 2 x 4TB (Data) internal HDD + 1TB internal SSD (Work disc), + 6 ext backup HDDs.

Laptop - Lenovo Legion 5i Phantom - running Windows 11 23H2 on Intel Core i7-10750H, 16GB DDR4-SDRAM, 512GB SSD, 43.9 cm screen Full HD 1920 x 1080, Intel UHD 630 iGPU and NVIDIA GeForce RTX 2060 (6GB GDDR6)

Sony FDR-AX53e Video camera, DJI Osmo Action 3 and Sony HDR-AS30V Sports cams.

jak.willis wrote on 11/8/2021, 3:39 PM

@jak.willis

Hi Jak

. . . . the motion issue would still be corrected regardless of whether or not it’s interlaced or progressive? . . . .

That is a presumption which would require testing.

I was referring specifically to what you asked

. . . . in MainConcept you do get the option of using interlaced. So I just wondered whether it would make any difference. . . .

John EB

Oh, I see what you're saying.

It's interesting because the same motion issue happens on sections that have been edited in MEP. So, for some reason, when making any kind of alterations to the video clips, such as brightness/contrast adjustments or colour changes, then the motion goes poor. Again, I'm not too sure why this happens but what I decided to try doing as a way to "solve" the problem, was to first export the edited clips as uncompressed, load them back into MEP, and then export with MPEG-2 like normal. And that appears to solve the motion issue in this situation.