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 > VP9 and AV1

Reply
 
Thread Tools Search this Thread Display Modes
Old 19th October 2022, 19:36   #1  |  Link
spoRv
Registered User
 
Join Date: Nov 2016
Posts: 151
Which 10bit 4:2:0 HDR lossless codec to use with Avisynth?

Made an Avisynth script using an HEVC 10bit 4:2:0 HDR source; now I want to save it as lossless, to be then encoded in AV1 - specifically I'd like to use SVT-AV1.

Now, the only codec I was able to use with Virtualdub is UTVideo; but no software can use it as input...

I tried:
- NEAV1E
- Nmkoder
- FastFlix
- Shutter Encoder

I'm ready to use another free software to encode the .avs script in any free lossless codec that could be used with one or more of the previous encoders; I'm on Windows 10, and I'd strongly prefer a GUI
spoRv is offline   Reply With Quote
Old 19th October 2022, 20:01   #2  |  Link
quietvoid
Registered User
 
Join Date: Jan 2019
Location: Canada
Posts: 574
Do you need a complete intermediate file?
You can simply pipe the Y4M/YUV data to SVT-AV1. Though I'm not sure a GUI solution exists for that.
__________________
LG C2 OLED | GitHub Projects
quietvoid is offline   Reply With Quote
Old 20th October 2022, 00:04   #3  |  Link
spoRv
Registered User
 
Join Date: Nov 2016
Posts: 151
Yep, I'd prefer that mainly for archival purposes.

By the way, I tried x264 lossless and it gives me an error; with x265 lossless I got "out of memory" even with 64GB!
spoRv is offline   Reply With Quote
Old 20th October 2022, 07:32   #4  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,770
Quote:
Originally Posted by spoRv View Post
Yep, I'd prefer that mainly for archival purposes.

By the way, I tried x264 lossless and it gives me an error; with x265 lossless I got "out of memory" even with 64GB!
What was your command line?
For lossless, first try with --keyint 1. For most natural image content inter frame compression doesn't give all that much bitrate savings over intra-only, and it sure encodes and decodes a lot faster, and with less memory required.
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book
benwaggoner is offline   Reply With Quote
Old 20th October 2022, 13:16   #5  |  Link
spoRv
Registered User
 
Join Date: Nov 2016
Posts: 151
Quote:
Originally Posted by benwaggoner View Post
What was your command line?
For lossless, first try with --keyint 1. For most natural image content inter frame compression doesn't give all that much bitrate savings over intra-only, and it sure encodes and decodes a lot faster, and with less memory required.
No command line, just used Virtualdub encoder.

But there is a feature that I never used, external encoder.
So, it's possible to use an external encoder and feed it a command line. As this will be a fixed one - lossless 10bit 4:2:0 - may you write it? Better x264 or x265 lossless, taking in account that main aim is to be compatible with SVT-AV1 encoders?

Virtualdub external encoder command arguments for x264 as example:
Code:
--crf 24 --preset medium --input-res %(width)x%(height) --fps %(fps) -o "%(tempvideofile)" -
THANKS IN ADVANCE!!!
spoRv is offline   Reply With Quote
Old 20th October 2022, 22:22   #6  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,770
I've never tried to pipe from VDub. I do pipe from ffmpeg all the time, and it works very well.
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book
benwaggoner is offline   Reply With Quote
Old 21st October 2022, 11:03   #7  |  Link
FranceBB
Broadcast Encoder
 
FranceBB's Avatar
 
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 2,902
Quote:
Originally Posted by spoRv View Post
x265 lossless I got "out of memory" even with 64GB!
naive question, but... are you sure you're using the 64bit version of VirtualDub?
FranceBB is offline   Reply With Quote
Old 21st October 2022, 11:50   #8  |  Link
spoRv
Registered User
 
Join Date: Nov 2016
Posts: 151
Quote:
Originally Posted by FranceBB View Post
naive question, but... are you sure you're using the 64bit version of VirtualDub?
Not a naive question at all; indeed... SHAME ON ME!!!

Always used 32bit VirtualDub and Avisynth plugins because, for what I did, I never needed something else - until now, at least!

Now with VirtualDub 64bit and using Avisynth 64bit plugins, it works with both FFV1 and X265 lossless - still no luck with X264 lossless, but at this point I don't care.

Side effects:
- encoding is now something like 30% faster (always using MP_Pipeline as before)
- no problems opening 10bit sources with FFvideosource (you know what I'm talking about, Francesco!)

So, thanks to you and anybody, now I should take courage and patience, and load any 64bit version of plugins I'd need (yes, shame again on me, I always kept 32bit only on plugin folders and discarded 64bit ones...)

Last edited by spoRv; 21st October 2022 at 11:53.
spoRv 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 11:54.


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