TMPGEnc doesn't like Lagarith - workarounds?

Locked
User avatar
jasper-isis
P. Y. T.
Joined: Tue Aug 13, 2002 11:02 am
Status: catching all the lights
Org Profile

TMPGEnc doesn't like Lagarith - workarounds?

Post by jasper-isis » Mon Jul 24, 2006 8:30 am

If I feed TMPGEnc source files compressed with Lagarith (version 1.3.8, YV12 colorspace), the output yields a few scrambled frames (about one or two per video).

I've tried using a workaround with AVISynth as a frameserver. It works for the shorter videos (no more corrupted frames!) but on longer videos it tends to freeze TMPGEnc before the job is done.

I've also considered just converting my Lagarith files to Huffyuv, but I don't want to make a colorspace conversion. However, I have heard of a variant of huffyuv called Huffyv12. Can anybody tell me more about it?

Any other workaround suggestions are welcome.

User avatar
Zarxrax
Joined: Sun Apr 01, 2001 6:37 pm
Contact:
Org Profile

Post by Zarxrax » Mon Jul 24, 2006 9:08 am

Try checking the box in the lagarith settings to always decode as rgb.

If that doesn't help, if you are enabling null frames when you are encoding, stop that.

User avatar
Qyot27
Surreptitious fluffy bunny
Joined: Fri Aug 30, 2002 12:08 pm
Status: Creepin' between the bullfrogs
Location: St. Pete, FL
Contact:
Org Profile

Re: TMPGEnc doesn't like Lagarith - workarounds?

Post by Qyot27 » Mon Jul 24, 2006 9:21 pm

Jasper-Isis wrote:I've also considered just converting my Lagarith files to Huffyuv, but I don't want to make a colorspace conversion. However, I have heard of a variant of huffyuv called Huffyv12. Can anybody tell me more about it?
It's in ffdshow's VFW interface. I use it when I want to feed TMPGEnc an actual AVI rather than a script. I've never had any problems with it to my recollection...at least not any that didn't have to do with the fact my computer is 5 years old.

Generally, this is all there is to it:
Image

As long as you have ffdshow set to decode HuffYUV, there shouldn't be any problem. With those particular settings, filesizes are somewhat comparable to Lagarith, but run a bit larger.
My profile on MyAnimeList | Quasistatic Regret: yeah, yeah, I finally got a blog

User avatar
jasper-isis
P. Y. T.
Joined: Tue Aug 13, 2002 11:02 am
Status: catching all the lights
Org Profile

Post by jasper-isis » Mon Jul 24, 2006 9:43 pm

Yey, I've got it working.

I tried Zarxrax's suggestion to enable decode as RGB. The scrambled frames persisted.

I then found the ffdshow encoder options and tried compressing my file to to Huffyuv in YV12 colorspace... it encoded but then didn't want to decode. I had audio but no video in Zoom Player, Media Player Classic, or Virtualdubmod.

I didn't want to mess with ffdshow configuration just yet, so I tried using its encoder again, this time with the ffv1 codec. And woot, it worked. It's slower than both Huffyuv and Lagarith, but it got the job done. Had a really small filesize too. Not bad.

User avatar
DJ_Izumi
Joined: Wed Oct 03, 2001 8:29 am
Location: Canada
Contact:
Org Profile

Post by DJ_Izumi » Mon Jul 24, 2006 10:09 pm

Funny, I was just sitting in Tmpgenc working on the same issue. I'm still testing a few things but I'll post what I have so far.

I save complete encodes of my AMVs to DVD-R in Lagarith in RGB (Some older ones are YV12) and PCM audio. But I've found that I get a random garbage frame when encoding to MPEG-2 in Tmpgenc. This is only when the source is a Lagarith AVI loaded directly into Tmpgenc. If I bypass it, by say, using VirtualDubMod's frame server, or convert to HuffYUV and then encode, the garbage frames do not appear.

My source material is a mix of YUV and RGB Lagariths the main one, my Gravitation video, is RGB without null frames (It screws up a few encoders). I'll now show you my results.

Frame #1364 in the original Lagarith encode:
Image

Frame #1364 in the Mpeg-2 after being encoded.
Image

Obviously, not a good thing. While the work around is easy enough, it's still not a good thing. Does anyone have any ideas?
Image

User avatar
Qyot27
Surreptitious fluffy bunny
Joined: Fri Aug 30, 2002 12:08 pm
Status: Creepin' between the bullfrogs
Location: St. Pete, FL
Contact:
Org Profile

Post by Qyot27 » Tue Jul 25, 2006 9:46 am

Jasper-Isis wrote:I then found the ffdshow encoder options and tried compressing my file to to Huffyuv in YV12 colorspace... it encoded but then didn't want to decode. I had audio but no video in Zoom Player, Media Player Classic, or Virtualdubmod.

I didn't want to mess with ffdshow configuration just yet, so I tried using its encoder again, this time with the ffv1 codec. And woot, it worked. It's slower than both Huffyuv and Lagarith, but it got the job done. Had a really small filesize too. Not bad.
Probably because HFYU was set as the FourCC. Since I've got ffdshow set to decode HuffYUV, it works seamlessly. I think if you change the FourCC to FFDS or whatever the other option in that drop-down box in the encoder is, it'll make sure that ffdshow decodes it even if it's not set to decode HuffYUV.
My profile on MyAnimeList | Quasistatic Regret: yeah, yeah, I finally got a blog

Locked

Return to “Video & Audio Help”