Quantcast How to convert HuffYUV to Lagarith? - digitalFAQ Forum
  #1  
06-28-2022, 03:19 PM
BruceOlsen BruceOlsen is offline
Free Member
 
Join Date: Jul 2019
Posts: 41
Thanked 6 Times in 5 Posts
I'm picking up my project after a long post-Covid hiatus (hope everyone is OK).

I have a bunch of captured AVIs w/HuffYUV and want to convert them to Lagarith because I'm just about out of disk space.

Can someone please point me to a doc on this? I had this all pretty well in my head 2 years ago but it's not coming back the way it used to :-(

My NLE (Corel VideoStudio) can read/write both so I suppose that's a fallback.

Thanks.
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Ads / Sponsors
 
Join Date: ∞
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #2  
06-28-2022, 06:54 PM
BarryTheCrab BarryTheCrab is offline
Free Member
 
Join Date: Jul 2017
Location: Gillette Stadium
Posts: 296
Thanked 61 Times in 52 Posts
Why not use VirtualDub or Avidemux?
Reply With Quote
  #3  
06-28-2022, 07:16 PM
BruceOlsen BruceOlsen is offline
Free Member
 
Join Date: Jul 2019
Posts: 41
Thanked 6 Times in 5 Posts
Thanks for your response.

I've searched around the forum and haven't found any kind of a doc to describe the process, or any scripts/settings.

I had all this in my head a couple of years ago, but it's leaked out in the interim.
Reply With Quote
  #4  
06-28-2022, 07:32 PM
keaton keaton is offline
Premium Member
 
Join Date: Jan 2017
Location: USA
Posts: 160
Thanked 77 Times in 54 Posts
Convert HuffYUV to lagarith without loss?

One note on what sanlyn said about YV12. If you want to preserve YUY2 (i.e. 4:2:2), instead of converting down to YV12 (4:2:0) color. When selecting Lagarith in the Code list, click on Configure to set the mode to YUY2 and click OK.

Last edited by keaton; 06-28-2022 at 07:53 PM.
Reply With Quote
The following users thank keaton for this useful post: BruceOlsen (06-29-2022)
  #5  
06-28-2022, 08:39 PM
traal traal is offline
Free Member
 
Join Date: Jan 2016
Posts: 265
Thanked 56 Times in 51 Posts
Your time would be an order of magnitude better spent working a 2nd job so you can buy a new 8TB+ drive.
Reply With Quote
The following users thank traal for this useful post: BruceOlsen (06-29-2022)
  #6  
06-28-2022, 10:50 PM
lordsmurf's Avatar
lordsmurf lordsmurf is offline
Site Staff | Video
 
Join Date: Dec 2002
Posts: 11,918
Thanked 2,170 Times in 1,870 Posts
Quote:
Originally Posted by BruceOlsen View Post
I'm picking up my project after a long post-Covid hiatus (hope everyone is OK).
Thanks, good here...

... but only due to still taking precautions. Not everybody is lucky enough to be blindly carefree and dismissive of COVID (to quote my ignorant neighbor: "I ain't livin' in fear ya'll!"), some have immunocompromise situations, mild COVID is potentially deadly, even with shots and boosters. Going out means masking up!

Quote:
I have a bunch of captured AVIs w/HuffYUV and want to convert them to Lagarith because I'm just about out of disk space.
You won't save enough to make that worth the effort.

Quote:
Originally Posted by keaton View Post
One note on what sanlyn said about YV12. If you want to preserve YUY2 (i.e. 4:2:2), instead of converting down to YV12 (4:2:0) color. When selecting Lagarith in the Code list, click on Configure to set the mode to YUY2 and click OK.
Be aware of colorspace changes. Not beware, just be aware. Make smart choices. Down-converting 4:2:2 lossless to 4:2:0 lossless not wise.

Quote:
Originally Posted by traal View Post
Your time would be an order of magnitude better spent working a 2nd job so you can buy a new 8TB+ drive.
I LOL'd at this.

It wasn't meant to be harsh. Don't read it as such. But merely humorously truthful. If you're running out of space, add/buy another drive. Don't punish yourself (video S&M) reconverting video, maybe even lowering quality. It's not worth it, and it's probably won't work anyway. Eventually you'll be forced to buy a new drive (or just stop using computer; yeah, right!), and then scold yourself for being an idiot, or cheap, or both.

FYI, most of know that because of "been there, done there".

- Did my advice help you? Then become a Premium Member and support this site.
- For sale in the marketplace: TBCs, workflows, capture cards, VCRs
Reply With Quote
The following users thank lordsmurf for this useful post: BruceOlsen (06-29-2022)
  #7  
06-28-2022, 11:36 PM
BruceOlsen BruceOlsen is offline
Free Member
 
Join Date: Jul 2019
Posts: 41
Thanked 6 Times in 5 Posts
Probably true, but:
--retired
--fixed income
--inflation
--parsimonious SO
I'll stop there ;-)

If I can dumb it down enough I won't have to do it, either.
Reply With Quote
  #8  
06-29-2022, 12:24 AM
BruceOlsen BruceOlsen is offline
Free Member
 
Join Date: Jul 2019
Posts: 41
Thanked 6 Times in 5 Posts
keaton, thanks for the link

ls, good to hear from you. When I got my workflow from you, you had some stuff going on. Glad you're still OK. We mask up indoors still--don't see the big deal. Quite a change from the polio days

traal, another drive will be politically difficult.

All - I have one cap that's 3:26 and 241GB as HuffYUV, trimmed as Lagarith it's 3:08 and 70GB. That's 1/3 the size, seems significant.

But as I think about it, maybe I should just delete each original cap and keep only the trimmed version anyway?
Reply With Quote
  #9  
06-29-2022, 02:02 PM
traal traal is offline
Free Member
 
Join Date: Jan 2016
Posts: 265
Thanked 56 Times in 51 Posts
241 GB over 3h26m is 70.2 GB/hour which is crazy high for HuffYUV. Is what you trimmed mostly static? If so, then trimming it without re-encoding using something like AviDemux should bring it down to maybe 90-95 GB and take 30 minutes or less.

70 GB over 3h8m (Lagarith) is 22.3 GB/hour which is low for Lagarith. Is it 4:2:2 like the HuffYUV file, or 4:2:0?
Reply With Quote
  #10  
06-29-2022, 03:31 PM
BruceOlsen BruceOlsen is offline
Free Member
 
Join Date: Jul 2019
Posts: 41
Thanked 6 Times in 5 Posts
Quote:
Originally Posted by traal View Post
241 GB over 3h26m is 70.2 GB/hour which is crazy high for HuffYUV. Is what you trimmed mostly static? If so, then trimming it without re-encoding using something like AviDemux should bring it down to maybe 90-95 GB and take 30 minutes or less.

70 GB over 3h8m (Lagarith) is 22.3 GB/hour which is low for Lagarith. Is it 4:2:2 like the HuffYUV file, or 4:2:0?
I'm not sure what you'd consider static, but there are long sections with the camera on a tripod and minimal movement (holiday celebrations, band concerts). So I guess it's mostly static.

AviDemux wasn't something I was aware of when I was last doing this, it looks like it could handle much of the work we need.

Yes the LAGS file is 4:2:2 - here's the mediainfo report:
General
Complete name : E:\01 Captured Tapes\Tape-033-Trim.avi
Format : AVI
Format/Info : Audio Video Interleave
Format profile : OpenDML
File size : 71.0 GiB
Duration : 3 h 8 min
Overall bit rate : 53.9 Mb/s
IsTruncated : Yes

Video
ID : 0
Format : Lagarith
Codec ID : LAGS
Duration : 3 h 8 min
Bit rate : 52.4 Mb/s
Width : 720 pixels
Height : 480 pixels
Display aspect ratio : 3:2
Frame rate : 29.970 (30000/1001) FPS
Standard : NTSC
Color space : YUV
Chroma subsampling : 4:2:2
Bit depth : 8 bits
Bits/(Pixel*Frame) : 5.057
Stream size : 68.9 GiB (97%)

Audio
ID : 1
Format : PCM
Format settings : Little / Signed
Codec ID : 1
Duration : 3 h 8 min
Bit rate mode : Constant
Bit rate : 1 536 kb/s
Channel(s) : 2 channels
Sampling rate : 48.0 kHz
Bit depth : 16 bits
Stream size : 2.02 GiB (3%)
Alignment : Aligned on interleaves
Interleave, duration : 500 ms (15.00 video frames)
Reply With Quote
  #11  
06-30-2022, 07:14 PM
traal traal is offline
Free Member
 
Join Date: Jan 2016
Posts: 265
Thanked 56 Times in 51 Posts
If you don't mind using ffv1 instead of lagarith, here's a batch file you can use. Just save the following code as a .cmd file in the same directory as ffmpeg.exe, then you can drag a bunch of .avi files onto the .cmd file all at once and it will convert them one by one.

Code:
for %%X in (%*) do (
	"%~dp0ffmpeg.exe" -i "%%~fX" -acodec copy -vcodec ffv1 "%%~dX%%~pX%%~nX.ffv1.avi"
)
It doesn't work for lagarith because that codec isn't supported in ffmpeg.exe. But ffv1 compresses better anyway.
Reply With Quote
The following users thank traal for this useful post: BruceOlsen (07-01-2022)
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
How to use DaVinci Resolve with HuffYUV or Lagarith AVI files? stevevid Restore, Filter, Improve Quality 8 02-06-2019 09:40 AM
Best capture format for master VHS-to-digital? (Huffyuv vs Lagarith vs MPEG) rocko Capture, Record, Transfer 10 09-06-2018 11:20 PM
Convert HuffYUV to lagarith without loss? hysteriah Edit Video, Audio 8 08-16-2015 12:52 PM
HuffYUV/Lagarith YUY2 not working with VirtualDub/Premiere? hysteriah Project Planning, Workflows 17 03-22-2015 06:54 AM

Thread Tools



 
All times are GMT -5. The time now is 01:40 AM