View Full Version : avidemux and encoding by Lagarith ?
Poutnik
13th April 2009, 09:05
Is possible to use Lagarith codec with Avidemux (vista 64) ?
When I was trying to use Avidemux, instead of my favorite VDub,
I have realized the Lagarith is not among available video codecs.
( Probably being vfw codec only )
Placio74
13th April 2009, 14:26
Rather not. Because Avidemux not use external codecs.
LoRd_MuldeR
13th April 2009, 14:43
1. As ffmpeg/libavcodec does have a Lagarith decoder, Avidemux should be able to support it too. But that doesn't mean that it's actually implemented yet ;)
2. You can always use AVISource() in Avisynth to feed your AVI file into Avidemux. This will use Lagarith's VfW Codec. Avidemux does support Avisynth input via AVSPoxy/AVSPoxyGUI.
3. With the numerous (http://forum.doom9.org/showthread.php?p=1271363#post1271363) reports (http://forum.doom9.org/showthread.php?p=1271402#post1271402) of Lagarith causing random "broken" frames you may want to use something else, like HuffYUV or FFv1 (both supported natively in Avidemux).
Placio74
13th April 2009, 15:20
I am not sure whether Poutnik asked for a decoder...
If yes, then look at LoRd_MuldeR answer.
(I can open (directly) video encoded by Lagarith in Avidemux, but... I have only the green image.)
If Poutnik asked for a encoder, then... Avidemux can't encode used Lagarith.
LoRd_MuldeR
13th April 2009, 15:21
If Poutnik asked for a encoder, then... Avidemux can't encode used Lagarith.
It cannot encode to Lagarith, but look at point 3. ;)
EDIT: It seems I was wrong about Lagarith support in libavcodec. MPlayer does load the LAGARITH.DLL from "C:\Windows\Systm32" to decode Lagarith video...
Placio74
13th April 2009, 15:39
It cannot encode to Lagarith, but look at point 3. ;)
Of course, I know about it (personally, I prefer rather HuffYUV).:)
Poutnik
13th April 2009, 18:27
Thank you all for replies.
I had in mind encoding.
In fact I did not notice troubles with Lagarith yet.
Note that I am familiar with Huffyuv or Arithyuv too.
I grew up in Video encoding at VDUB and Xvid, later I discovered avisynth.
Now with objections against H264 used with Vdub/AVI/VFW,
I am looking for what "big boys" use now. I must admit l was confused for some time,
AVS -> Vdub -> VFW/ACM -> AVI(Xvid/MP3) was very simple, convenient and straightforward.
I confess I do not like much Avidemux need of AVSproxy, without audio,
it looked too complicated for me.
But I understand cross platform reasons for it.
I use AVS/Vdub with Lagarith for intermediate encodes of FFT3d filtered ATV captures.
90 min of PAL TV about 16 GB only.
Just today I have learnt myself
how to encode video as H264 into MKV by MeGUI, muxing even SRT subtitles.
I like MeGUI.
LoRd_MuldeR
13th April 2009, 19:02
Why not use FFv1 instead of Lagarith as your lossless intermediate format then?
In my experience FFv1 compresses even better than Lagarith. Plus it has unrestricted support in ffmpeg/lavc based tools...
Poutnik
13th April 2009, 20:27
When doing small test by reencoding H264 video to lossless,
LAG/FFV1 difference is much smaller in size then LAG/Huffy,
ffv 1.15GB
lag 1.25
ff huf 2.1
huf 2.8 GB
FFV1 seems slower for me to Lagarith. But I will try.
smok3
13th April 2009, 20:49
yes, but check what color spaces are supported by FFv1.
LoRd_MuldeR
13th April 2009, 20:54
It does YV12. If you are going to encode with x264 you will need to use that colorformat anyway.
Also his source decoded from H.264 already is YV12, most likely...
Poutnik
14th April 2009, 05:50
I also suppose my H264 source is YV12,
at least converted to yv12 by avisynth before encoding to H264.
I did these encodings from Avidemux 2.4.4, for Huffyuv (lavc), FF Huffyuv(lavc) and FFV1
( no settings were available for these codecs here).
for lagarith I used Vdub 1.8.8 with YV12 settings.
Edit: the same source encoded by Arithyuv about 1.5 GB ( supposing it supports YUY2 only ) ,
speed between lagarith and huffyuv.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.