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 14th March 2022, 21:37   #81  |  Link
kolak
Registered User
 
Join Date: Nov 2004
Location: Poland
Posts: 2,843
Quote:
Originally Posted by PCU View Post
FFV1 is supported by Voukoder, x265 does not support HW acceleration and I'll have to pay for MYUV for full version!

But I think it all ends in MYUV!
Try encoding ffv1 UHD 60p in realtime...
kolak is offline   Reply With Quote
Old 14th March 2022, 21:41   #82  |  Link
kolak
Registered User
 
Join Date: Nov 2004
Location: Poland
Posts: 2,843
Quote:
Originally Posted by Zarxrax View Post
You can use DNxHR or Prores. They are perceptually lossless and probably faster than even Magic YUV. Can encode in FFMPEG and at least one of them should be supported in premiere. Nothing to buy.
They are not necessarily faster than MagicYUV, but you need good disk for lossless.
kolak is offline   Reply With Quote
Old 20th March 2022, 00:15   #83  |  Link
Balling
Registered User
 
Join Date: Feb 2020
Posts: 539
Quote:
Originally Posted by PCU View Post
Guys, do you think this claim is true?:
x264 cannot actually achieve lossless. It's lossless setting is close but ProRes422 is generally a little better quality, faster rendering, and smaller. MagicYUV is another possible option.
It cannot achieve lossless in high10 profile. But there is high444 that does give you lossless even in 10 bit. But i think av1 lossless should be better, in aomenc.

Last edited by Balling; 9th August 2022 at 15:07.
Balling is offline   Reply With Quote
Old 21st March 2022, 10:42   #84  |  Link
FranceBB
Broadcast Encoder
 
FranceBB's Avatar
 
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 2,883
Quote:
Originally Posted by kolak View Post
They are not necessarily faster than MagicYUV, but you need good disk for lossless.
Also, if you're gonna encode in prores, you should use the -vendor apl0 flag otherwise some players might bitch about it not being an Apple Compliant encoded file.

By the way, as Kolak said, they're not necessarily faster than other codecs AND they're NOT lossless, so... are you really sure you wanna go that route?
And by the way, if you must choose between DNxHR and Apple ProRes, go the DNxHR route, so that at least you're gonna pick the "less evil" between the two given that Apple is artificially trying to block FFMpeg encoded files from playing on their players / devices while AVID is not.
FranceBB is online now   Reply With Quote
Old 21st March 2022, 20:39   #85  |  Link
kolak
Registered User
 
Join Date: Nov 2004
Location: Poland
Posts: 2,843
Ffmpeg ProRes is rather slow.
Apple code is quite fast, but best is M1 hardware chip inside new Macs. This can do way pass 1000fps when decoding+encoding (simultaneously) HD ProRes, so very impressive.
kolak is offline   Reply With Quote
Old 23rd July 2022, 16:39   #86  |  Link
PatchWorKs
Registered User
 
PatchWorKs's Avatar
 
Join Date: Aug 2002
Location: Italy
Posts: 303
Sorry to revive this 3ad, but I need your help to optimize FFMPEG encoding parameters.

I need to losslessy encode a set of 14500+ 32bits 2K BMPs (~137Gb) in order to build the final compositing and (re)encoding.

I've tested the following cmdline, but my NLE - Vegas Pro 19 - handle it bad (wrong colors, unplayable):

Code:
ffmpeg -hwaccel auto -framerate 25 -i SEQ1_%06d.bmp -vcodec libx265 -x265-params lossless=1 SEQ1_x265.mp4
...any suggestion ?

Thanks in advance to anyone that will help.
__________________
HYbrid Multimedia Production Suite project @ GitHub
PatchWorKs is offline   Reply With Quote
Old 23rd July 2022, 19:44   #87  |  Link
FranceBB
Broadcast Encoder
 
FranceBB's Avatar
 
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 2,883
I assume that when you say bmp 24bit you mean RGB24.
What's the input colormatrix, primaries and transfer?
If you shot in BT709 SDR Full PC Range RGB24 8bit, try this:

Code:
ffmpeg.exe -framerate 25 -i "SEQ1_%06d.bmp" -pix_fmt yuv444p -vcodec libx265 -color_primaries 1 -color_trc 1 -colorspace 1 -x265-params lossless=1 -an -y "SEQ1_x265.mp4"
Otherwise just use the great FFAStrans with the Image Sequence Monitor and output to a sane mezzanine file for NLE like DNX or Apple ProRes and the filter_builder will take care of everything for you automatically.

Last edited by FranceBB; 23rd July 2022 at 19:53.
FranceBB is online now   Reply With Quote
Old 24th July 2022, 16:21   #88  |  Link
kolak
Registered User
 
Join Date: Nov 2004
Location: Poland
Posts: 2,843
Quote:
Originally Posted by PatchWorKs View Post
Sorry to revive this 3ad, but I need your help to optimize FFMPEG encoding parameters.

I need to losslessy encode a set of 14500+ 32bits 2K BMPs (~137Gb) in order to build the final compositing and (re)encoding.

I've tested the following cmdline, but my NLE - Vegas Pro 19 - handle it bad (wrong colors, unplayable):

Code:
ffmpeg -hwaccel auto -framerate 25 -i SEQ1_%06d.bmp -vcodec libx265 -x265-params lossless=1 SEQ1_x265.mp4
...any suggestion ?

Thanks in advance to anyone that will help.
Sounds like Vegas can’t decode lossless h265.
Are you sure it can. What about playback in player which you know it can?
I would use something like MagicYUV etc of instead of h265.
kolak is offline   Reply With Quote
Old 25th July 2022, 10:56   #89  |  Link
PatchWorKs
Registered User
 
PatchWorKs's Avatar
 
Join Date: Aug 2002
Location: Italy
Posts: 303
Quote:
Originally Posted by FranceBB View Post
I assume that when you say bmp 24bit you mean RGB24.
Yes, sorry, you're right.

Quote:
Originally Posted by FranceBB View Post
What's the input colormatrix, primaries and transfer?
If you shot in BT709 SDR Full PC Range RGB24 8bit, try this:

Code:
ffmpeg.exe -framerate 25 -i "SEQ1_%06d.bmp" -pix_fmt yuv444p -vcodec libx265 -color_primaries 1 -color_trc 1 -colorspace 1 -x265-params lossless=1 -an -y "SEQ1_x265.mp4"
Works like a charm, thanks !

Just a curiosity: this command line produces smaller files than the other... it's caused by the wrong colorspace ?

Thanks for your great support !
__________________
HYbrid Multimedia Production Suite project @ GitHub
PatchWorKs is offline   Reply With Quote
Old 25th July 2022, 11:03   #90  |  Link
PatchWorKs
Registered User
 
PatchWorKs's Avatar
 
Join Date: Aug 2002
Location: Italy
Posts: 303
Quote:
Originally Posted by kolak View Post
Sounds like Vegas can’t decode lossless h265.
Are you sure it can. What about playback in player which you know it can?
I would use something like MagicYUV etc of instead of h265.
Now works, was the wrong commandline.

I evaluated MagicYUV but I still don't understand how use it from commandline...
__________________
HYbrid Multimedia Production Suite project @ GitHub
PatchWorKs is offline   Reply With Quote
Old 25th July 2022, 15:19   #91  |  Link
poisondeathray
Registered User
 
Join Date: Sep 2007
Posts: 5,345
Quote:
Originally Posted by PatchWorKs View Post

I need to losslessy encode a set of 14500+ 32bits 2K BMPs (~137Gb) in order to build the final compositing and (re)encoding.
Why don't you just import the image sequence directly in vegas?

-pix_fmt yuv444p (8bit YUV444) is not a lossless transform from 8bit RGB24
poisondeathray is offline   Reply With Quote
Old 25th July 2022, 22:12   #92  |  Link
FranceBB
Broadcast Encoder
 
FranceBB's Avatar
 
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 2,883
Quote:
Originally Posted by PatchWorKs View Post
Works like a charm, thanks !
Perfect. I'm glad to hear that.

Quote:
Originally Posted by PatchWorKs View Post
Just a curiosity: this command line produces smaller files than the other... it's caused by the wrong colorspace ?
YUV by definition is easier to compress than RGB.

I know that you're Italian, so you can read a document I wrote about those things years ago (in Italian): link

Go to page 56-57 and you'll see the whole YCbCr YUV / RGB thing.
FranceBB is online now   Reply With Quote
Old 9th August 2022, 15:09   #93  |  Link
Balling
Registered User
 
Join Date: Feb 2020
Posts: 539
Quote:
Originally Posted by FranceBB View Post
I assume that when you say bmp 24bit you mean RGB24.
bgr. BMP is always using BGR.
Balling is offline   Reply With Quote
Old 9th August 2022, 15:31   #94  |  Link
Balling
Registered User
 
Join Date: Feb 2020
Posts: 539
Quote:
Originally Posted by PatchWorKs View Post
Sorry to revive this 3ad, but I need your help to optimize FFMPEG encoding parameters.

I need to losslessy encode a set of 14500+ 32bits 2K BMPs (~137Gb) in order to build the final compositing and (re)encoding.

I've tested the following cmdline, but my NLE - Vegas Pro 19 - handle it bad (wrong colors, unplayable):

Code:
ffmpeg -hwaccel auto -framerate 25 -i SEQ1_%06d.bmp -vcodec libx265 -x265-params lossless=1 SEQ1_x265.mp4
...any suggestion ?

Thanks in advance to anyone that will help.

Use true lossless (if you have nvidia gpu see next):

ffmpeg.exe -framerate 25 -i "SEQ1_%06d.bmp" -color_primaries 1 -color_trc 1 -c:v libx264rgb -preset veryslow -color_primaries 1 -color_trc 1 -qp 0 "SEQ1_x265.mp4"

Or use normal lossless Nvidia coder.

ffmpeg -framerate 25 -i "SEQ1_%06d.bmp" -color_primaries 1 -color_trc 1 -c:v hevc_nvenc -preset p7 -tune lossless -pix_fmt gbrp output.mp4

Use normal ffmpeg from here https://github.com/BtbN/FFmpeg-Build...gpl-shared.zip or the command for nvidia will not work, since rgb (gbrp, anyway) was added recently. Also, RGB does not technically support 420 (except in JPEG), so requires 444 chroma, which is supported since Turing on HEVC and AVC (hevc_nvenc and h264_nvenc).
Balling is offline   Reply With Quote
Old 10th August 2022, 11:43   #95  |  Link
tormento
Acid fr0g
 
tormento's Avatar
 
Join Date: May 2002
Location: Italy
Posts: 2,542
Please notice that DGDecNV now supports 4:4:4 chroma. With HW accelerated HEVC lossless, it's a perfect match to use with intermediate files.
__________________
@turment on Telegram
tormento is offline   Reply With Quote
Old 10th August 2022, 17:04   #96  |  Link
Balling
Registered User
 
Join Date: Feb 2020
Posts: 539
Quote:
Originally Posted by tormento View Post
Please notice that DGDecNV now supports 4:4:4 chroma. With HW accelerated HEVC lossless, it's a perfect match to use with intermediate files.
This is not chroma, this is rgb (using gbrp).
Balling 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 09:01.


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