Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Video Encoding > New and alternative video codecs

Reply
 
Thread Tools Search this Thread Display Modes
Old 16th July 2021, 23:29   #1  |  Link
GAP
Registered User
 
Join Date: Sep 2020
Posts: 135
What are some good alternatives to Lagarith Lossless in Windows XP?

I mostly use Lagarith to record my gaming videos but it seems as though that there some games that will not agree with the codec or even playback on VLC Media player. I do not want to go back to Xvid or Full Frames uncompressed but it seems Lagarith isn't really agreeing with some games that I am playing right now. I know TASVideos recommends that I use this but what should I do just in case in may not work for some games? And what codecs are just as good as Lagarith? I just need something so that record with until I export it to my laptop for editing.
GAP is offline   Reply With Quote
Old 17th July 2021, 00:39   #2  |  Link
GMJCZP
Registered User
 
GMJCZP's Avatar
 
Join Date: Apr 2010
Location: I have a statue in Hakodate, Japan
Posts: 744
Try with UTVideo Codec, but since it stopped being compatible with XP some time ago (I think the last compatible version was 15), you could try Reino's FFMPEG builds, which in my opinion distributes the only versions compatible of FFMPEG with XP, as follows:

Code:
 FFMpeg.exe -i "video" -vcodec utvideo -pred medían -an -y "output.avi"
Edit: the issue is that you must have the codec recognized in the game, you would have no choice but to try version 15 of Utvideo.
__________________
By law and justice!

GMJCZP's Arsenal

Last edited by GMJCZP; 17th July 2021 at 01:12.
GMJCZP is offline   Reply With Quote
Old 17th July 2021, 03:47   #3  |  Link
Andouille
Registered sausage
 
Andouille's Avatar
 
Join Date: May 2012
Posts: 78
Quote:
Originally Posted by GAP View Post
I do not want to go back to Xvid
Nice idea... Xvid can not do lossless.
Andouille is offline   Reply With Quote
Old 17th July 2021, 22:52   #4  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,752
Lossless HEVC can do really well with gaming content, particularly if your encoder can use transform skip or lossless cus. Sharp-edged text and aliasing is hard to losslessly encode with any codec with only DCT-like transforms.

Do you need mathematically lossless, or is visually lossless sufficient? Real-time encoding required?
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book
benwaggoner is offline   Reply With Quote
Old 19th July 2021, 02:00   #5  |  Link
GAP
Registered User
 
Join Date: Sep 2020
Posts: 135
I was looking for some real visually lossless codecs that use RGB and can encode in real time. I mostly use Lagarith prior to editing (via cutting some clips and upscaling with x264/h264) so I need something that is similar to that.
GAP is offline   Reply With Quote
Old 19th July 2021, 04:42   #6  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
You say RGB, [Lagarith rgb(RGB24), rgba(RGB32), YV12, YV16, YUY2].
My version Lagarith v1.3.27, shown in VirtualDub2, Menu, Video/Compression/Lagarith Lossless Codec/Configure (Version @ top RHS).

Maybe try HuffYUV, UtVideo, and MagicYUV. [all have RGB modes]
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???
StainlessS is offline   Reply With Quote
Old 19th July 2021, 14:38   #7  |  Link
GAP
Registered User
 
Join Date: Sep 2020
Posts: 135
Okay Thanks. Can anyone tell where I can find guides for these codecs?
GAP is offline   Reply With Quote
Old 19th July 2021, 18:20   #8  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,752
Ah, visually, not mathematically. Much better! Do you really need visually lossless RGB? Would visually lossless YUV not suffice? Or YUV 444?

Using an encoder built-in to your GPU will reduce CPU load that might impact your game. A high bitrate HEVC could be really good for this.

As someone who was a heavy user of Lagarith WAY back in the day, I'm amused to learn that it's become a real-time codec for gaming capture! Moore's Law is a wonderful thing.
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book
benwaggoner is offline   Reply With Quote
Old 22nd July 2021, 02:08   #9  |  Link
GAP
Registered User
 
Join Date: Sep 2020
Posts: 135
Quote:
Originally Posted by benwaggoner View Post
Ah, visually, not mathematically. Much better! Do you really need visually lossless RGB? Would visually lossless YUV not suffice? Or YUV 444?

Using an encoder built-in to your GPU will reduce CPU load that might impact your game. A high bitrate HEVC could be really good for this.

As someone who was a heavy user of Lagarith WAY back in the day, I'm amused to learn that it's become a real-time codec for gaming capture! Moore's Law is a wonderful thing.
That is a good point. Sometimes my game would freeze on on me due to reasons involving the CPU. I could use something that is easier for me to use as sometimes Lagarith can freeze on you. What YUV or HEVC codecs for XP (or Windows 10) do you suggest?
GAP is offline   Reply With Quote
Old 23rd July 2021, 01:15   #10  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,752
Quote:
Originally Posted by StainlessS View Post
I dont think you've said, but it kinda depends upon what you are using to cap the game thingy.
[ie which kind of codecs you can use, Video For Windows or DirectShow]
Last I looked, quality order for current-generation GPUs was NVidia > Intel > AMD.
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book
benwaggoner is offline   Reply With Quote
Old 24th July 2021, 23:29   #11  |  Link
GAP
Registered User
 
Join Date: Sep 2020
Posts: 135
Quote:
Originally Posted by StainlessS View Post
You say RGB, [Lagarith rgb(RGB24), rgba(RGB32), YV12, YV16, YUY2].
My version Lagarith v1.3.27, shown in VirtualDub2, Menu, Video/Compression/Lagarith Lossless Codec/Configure (Version @ top RHS).

Maybe try HuffYUV, UtVideo, and MagicYUV. [all have RGB modes]

I will give those a shot as I need to experiment to see which one works for me. UTVideo does have RGB and RGBA options but UTVideo so many options that it is easy to get voerwhelmed. Same with Magic YUV but I am experimenting and I am also looking into FFV1 as well.
GAP is offline   Reply With Quote
Old 25th July 2021, 01:03   #12  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
@GAP,
You have not told what you are using to capture the video, [nor codec versions],
nor what the options you are having trouble with are. (best see the documentation, if you find the home site for whatever version codec).
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???
StainlessS is offline   Reply With Quote
Old 26th July 2021, 02:03   #13  |  Link
Liisachan
李姗倩 Lǐ Shān Qiàn
 
Liisachan's Avatar
 
Join Date: Nov 2002
Posts: 1,340
These are just workarounds, but no harm in trying in case you didn't try them yet...

Plan 1. Lightly throttle the game process with Battle Encoder Shirasé so that it won't use CPU more than say 99%. This might give Lagarith more CPU time, and so it might work better.

Plan 2. Similarly, Task Manager -> Set Affinity [tweak]

Plan 3. Lagarith -> Use Multithreading [check/uncheck]
Liisachan is offline   Reply With Quote
Old 26th July 2021, 13:05   #14  |  Link
GAP
Registered User
 
Join Date: Sep 2020
Posts: 135
Quote:
Originally Posted by StainlessS View Post
@GAP,
You have not told what you are using to capture the video, [nor codec versions],
nor what the options you are having trouble with are. (best see the documentation, if you find the home site for whatever version codec).
I mostly dump footage from emulators and the codecs I used Lagarith Lossless 1.3.2.7 for dumping and x264 8 Bit for final encodes. It seems it one of the games that I am playing seems to have a problem with Lagarith and it applies to both my computers. If I go for uncompressed it works fine however because it uncompressed, it will take longer to watch it as Virtualdub2 and VLC Player cannot playback uncompressed without slowing down on certain frames.

Quote:
Originally Posted by Liisachan View Post
These are just workarounds, but no harm in trying in case you didn't try them yet...

Plan 1. Lightly throttle the game process with Battle Encoder Shirasé so that it won't use CPU more than say 99%. This might give Lagarith more CPU time, and so it might work better.

Plan 2. Similarly, Task Manager -> Set Affinity [tweak]

Plan 3. Lagarith -> Use Multithreading [check/uncheck]
I will give those a shot to see if I get a different results.
GAP is offline   Reply With Quote
Old 26th July 2021, 14:27   #15  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
[EDIT: Arh, emulator eh!, I did not know they did that. I dont play games ]

Well if uncompressed works fine, maybe a simple extra step might be a work around.

Below is bat file demo I already posted somewhere, I edited it to the option to convert video to UT_Video and copy audio,
however result is in MKV [Can just change the output extension at end of uncommented line to ".AVI" instead (if required)].
The "ACTIVE" line in BLUE, and Extension to change in RED.
Input YUV will output UT_Video YUV, and input RGB will output UT_Video RGB. [audio is copied, see other lines for examples to use output pcm].
Should be reasonably easy to figuire out.

Demo.Bat
Code:
REM https://forum.doom9.org/showthread.php?p=1908619#post1908619
REM We DO NOT LIKE SPACES IN FILE NAMES (REM == REMark ie comment)
REM We DO NOT LIKE ACCENTS IN FILE NAMES.


setlocal

REM Where to Find ffmpeg
set FFMPEG="C:\BIN\ffmpeg.exe"

REM Where to get INPUT files, No terminating Backslash, "." = current directory (ie same as dir .bat file)
set INDIR="."

REM Where to place OUTPUT files, No terminating Backslash. "." would be same as .bat file, ".\OUT" = OUT folder in same directory as bat file.
set OUTDIR="D:"

REM Below, can add INPUT extensions as eg *.WEBM (SPACE separated, Batch Processes all INPUT type files in INDIR)
FOR %%A IN (*.AVI *.MKV *.MP4 *.MOV *.QT *.3GP *.DVB *.VOB *.MPG *.MPEG *M2P *.PS *.TS *.DIVX *.XVID *.FLV *.WMV *.ASF *.MXF) DO (

REM ****** Un-REM [ie SELECT] ONLY one of below lines, Comment out ie REM the remaining lines.
REM %FFMPEG% -i "%INDIR%\%%A" -vcodec utvideo  -acodec pcm_s16le       "%OUTDIR%\%%~nxA.AVI"
REM %FFMPEG% -i "%INDIR%\%%A" -vcodec huffyuv  -acodec pcm_s16le       "%OUTDIR%\%%~nxA.AVI"
REM %FFMPEG% -i "%INDIR%\%%A" -vcodec magicyuv -acodec pcm_s16le       "%OUTDIR%\%%~nxA.AVI"
REM %FFMPEG% -i "%INDIR%\%%A" -vcodec v410     -acodec pcm_s16le       "%OUTDIR%\%%~nxA.AVI"
REM %FFMPEG% -i "%INDIR%\%%A" -vcodec r210     -acodec pcm_s16le       "%OUTDIR%\%%~nxA.AVI"
REM %FFMPEG% -i "%INDIR%\%%A" -vcodec copy     -acodec copy      -sn   "%OUTDIR%\%%~nxA.MKV"
    %FFMPEG% -i "%INDIR%\%%A" -vcodec utvideo  -acodec copy            "%OUTDIR%\%%~nxA.MKV"
REM %FFMPEG% -i "%INDIR%\%%A" -vn              -acodec pcm_s16le       "%OUTDIR%\%%~nxA.WAV"
REM %FFMPEG% -i "%INDIR%\%%A" -vcodec rawvideo -f rawvideo  -an        "%OUTDIR%\%%~nxA.rawvideo"


REM *****************************************************************************************.

)
Pause

REM ... Above Command lines, What they do if UnREM'ed (and all others REM'ed, UnREM=UnCOMMENT ) :
REM      (1) Convert Video to UtVideo  lossless, Convert Audio to 16 bit PCM audio (output AVI).
REM      (2) Convert Video to HuffYUV  lossless, Convert Audio to 16 bit PCM audio (output AVI).
REM      (3) Convert Video to MagicYUV lossless, Convert Audio to 16 bit PCM audio (output AVI).
REM      (4) Convert Video to v410 Uncompressed 4:4:4 10-bit lossless, Convert Audio to 16 bit PCM audio (output AVI).
REM      (5) Convert Video to r210 Uncompressed RGB 10-bit lossless, Convert Audio to 16 bit PCM audio (output AVI).
REM      (6) Remux NO SUBTITLES, copy both video and audio but NOT subtitles(output MKV - see file extension at the end of the Remux line, ie MKV).
REM      (7) Convert Video to UtVideo lossless, copy audio (output MKV).
REM      (8) Skip any video, Convert Audio to 16 bit PCM (output WAV).
REM      (9) Convert Video to rawvideo uncompressed, Convert Audio to 16 bit PCM audio (output y4m).
REM *****************************************************************************************.
REM    In the UnREM'ed command Line [ie without a preceding REM]:-
REM      '-vcodec utvideo' means convert video using utvideo codec.
REM      '-vcodec copy' means copy video rather than convert.
REM      '-vn' means no video output, use instead of eg '-vcodec utvideo'
REM      '-acodec pcm_s16le' means convert audio using pcm_s16le codec.
REM      '-acodec copy' means copy audio rather than convert.
REM      '-an' means no audio output, use instead of eg '-acodec pcm_s16le'
REM      The file extension at end of the line determines output container, eg '.AVI'
REM
REM      From Command line with ffmpeg somewhere in your environment PATH:-
REM        'ffmpeg -codecs >D:\ffmpeg_codecs.txt'
REM          Writes a txt file of ffmpeg available codecs to D:\
REM          At start of txt file it shows a 'legend' or 'key' for codecs that can be used for video and audio,
REM          use only ENCODING SUPPORTED codecs, prefereably LOSSLESS.
REM          Supported codecs will vary with ffmpeg version.
REM *****************************************************************************************.
Will batch process all files in input directory.
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???

Last edited by StainlessS; 26th July 2021 at 14:45.
StainlessS is offline   Reply With Quote
Old 27th July 2021, 00:37   #16  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,752
Quote:
Originally Posted by GAP View Post
I mostly dump footage from emulators and the codecs I used Lagarith Lossless 1.3.2.7 for dumping and x264 8 Bit for final encodes. It seems it one of the games that I am playing seems to have a problem with Lagarith and it applies to both my computers. If I go for uncompressed it works fine however because it uncompressed, it will take longer to watch it as Virtualdub2 and VLC Player cannot playback uncompressed without slowing down on certain frames.
If you can't play back uncompressed in realtime, I'd worry that you might not be able to record uncompressed in realtime, and thus would get dropped frames. So double-check that before trying uncompressed.

Recording uncompressed video is a great use case for RAID, if that's an option for you.
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book
benwaggoner is offline   Reply With Quote
Old 30th July 2021, 05:25   #17  |  Link
GAP
Registered User
 
Join Date: Sep 2020
Posts: 135
Quote:
Originally Posted by StainlessS View Post
[EDIT: Arh, emulator eh!, I did not know they did that. I dont play games ]

Well if uncompressed works fine, maybe a simple extra step might be a work around.

Below is bat file demo I already posted somewhere, I edited it to the option to convert video to UT_Video and copy audio,
however result is in MKV [Can just change the output extension at end of uncommented line to ".AVI" instead (if required)].
The "ACTIVE" line in BLUE, and Extension to change in RED.
Input YUV will output UT_Video YUV, and input RGB will output UT_Video RGB. [audio is copied, see other lines for examples to use output pcm].
Should be reasonably easy to figuire out.

Demo.Bat
Code:
REM https://forum.doom9.org/showthread.php?p=1908619#post1908619
REM We DO NOT LIKE SPACES IN FILE NAMES (REM == REMark ie comment)
REM We DO NOT LIKE ACCENTS IN FILE NAMES.


setlocal

REM Where to Find ffmpeg
set FFMPEG="C:\BIN\ffmpeg.exe"

REM Where to get INPUT files, No terminating Backslash, "." = current directory (ie same as dir .bat file)
set INDIR="."

REM Where to place OUTPUT files, No terminating Backslash. "." would be same as .bat file, ".\OUT" = OUT folder in same directory as bat file.
set OUTDIR="D:"

REM Below, can add INPUT extensions as eg *.WEBM (SPACE separated, Batch Processes all INPUT type files in INDIR)
FOR %%A IN (*.AVI *.MKV *.MP4 *.MOV *.QT *.3GP *.DVB *.VOB *.MPG *.MPEG *M2P *.PS *.TS *.DIVX *.XVID *.FLV *.WMV *.ASF *.MXF) DO (

REM ****** Un-REM [ie SELECT] ONLY one of below lines, Comment out ie REM the remaining lines.
REM %FFMPEG% -i "%INDIR%\%%A" -vcodec utvideo  -acodec pcm_s16le       "%OUTDIR%\%%~nxA.AVI"
REM %FFMPEG% -i "%INDIR%\%%A" -vcodec huffyuv  -acodec pcm_s16le       "%OUTDIR%\%%~nxA.AVI"
REM %FFMPEG% -i "%INDIR%\%%A" -vcodec magicyuv -acodec pcm_s16le       "%OUTDIR%\%%~nxA.AVI"
REM %FFMPEG% -i "%INDIR%\%%A" -vcodec v410     -acodec pcm_s16le       "%OUTDIR%\%%~nxA.AVI"
REM %FFMPEG% -i "%INDIR%\%%A" -vcodec r210     -acodec pcm_s16le       "%OUTDIR%\%%~nxA.AVI"
REM %FFMPEG% -i "%INDIR%\%%A" -vcodec copy     -acodec copy      -sn   "%OUTDIR%\%%~nxA.MKV"
    %FFMPEG% -i "%INDIR%\%%A" -vcodec utvideo  -acodec copy            "%OUTDIR%\%%~nxA.MKV"
REM %FFMPEG% -i "%INDIR%\%%A" -vn              -acodec pcm_s16le       "%OUTDIR%\%%~nxA.WAV"
REM %FFMPEG% -i "%INDIR%\%%A" -vcodec rawvideo -f rawvideo  -an        "%OUTDIR%\%%~nxA.rawvideo"


REM *****************************************************************************************.

)
Pause

REM ... Above Command lines, What they do if UnREM'ed (and all others REM'ed, UnREM=UnCOMMENT ) :
REM      (1) Convert Video to UtVideo  lossless, Convert Audio to 16 bit PCM audio (output AVI).
REM      (2) Convert Video to HuffYUV  lossless, Convert Audio to 16 bit PCM audio (output AVI).
REM      (3) Convert Video to MagicYUV lossless, Convert Audio to 16 bit PCM audio (output AVI).
REM      (4) Convert Video to v410 Uncompressed 4:4:4 10-bit lossless, Convert Audio to 16 bit PCM audio (output AVI).
REM      (5) Convert Video to r210 Uncompressed RGB 10-bit lossless, Convert Audio to 16 bit PCM audio (output AVI).
REM      (6) Remux NO SUBTITLES, copy both video and audio but NOT subtitles(output MKV - see file extension at the end of the Remux line, ie MKV).
REM      (7) Convert Video to UtVideo lossless, copy audio (output MKV).
REM      (8) Skip any video, Convert Audio to 16 bit PCM (output WAV).
REM      (9) Convert Video to rawvideo uncompressed, Convert Audio to 16 bit PCM audio (output y4m).
REM *****************************************************************************************.
REM    In the UnREM'ed command Line [ie without a preceding REM]:-
REM      '-vcodec utvideo' means convert video using utvideo codec.
REM      '-vcodec copy' means copy video rather than convert.
REM      '-vn' means no video output, use instead of eg '-vcodec utvideo'
REM      '-acodec pcm_s16le' means convert audio using pcm_s16le codec.
REM      '-acodec copy' means copy audio rather than convert.
REM      '-an' means no audio output, use instead of eg '-acodec pcm_s16le'
REM      The file extension at end of the line determines output container, eg '.AVI'
REM
REM      From Command line with ffmpeg somewhere in your environment PATH:-
REM        'ffmpeg -codecs >D:\ffmpeg_codecs.txt'
REM          Writes a txt file of ffmpeg available codecs to D:\
REM          At start of txt file it shows a 'legend' or 'key' for codecs that can be used for video and audio,
REM          use only ENCODING SUPPORTED codecs, prefereably LOSSLESS.
REM          Supported codecs will vary with ffmpeg version.
REM *****************************************************************************************.
Will batch process all files in input directory.
So I coy this and make into batch file? Okay.

Quote:
If you can't play back uncompressed in realtime, I'd worry that you might not be able to record uncompressed in realtime, and thus would get dropped frames. So double-check that before trying uncompressed.

Recording uncompressed video is a great use case for RAID, if that's an option for you.
I will double check to make sure that everything is running smoothly.
GAP is offline   Reply With Quote
Old 30th July 2021, 08:44   #18  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
Yes copy to Bat file, but DO READ the instructions in REM's.
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???
StainlessS is offline   Reply With Quote
Old 6th August 2021, 01:56   #19  |  Link
GAP
Registered User
 
Join Date: Sep 2020
Posts: 135
I forgot to ask this but do you copy the whole thing or just leave out the REMs?
GAP is offline   Reply With Quote
Old 6th August 2021, 12:28   #20  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
I would copy "as is", you might want REM's for reminder in future [but they dont do anything].
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???
StainlessS is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:30.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.