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. |
21st March 2022, 10:42 | #84 | Link | |
Broadcast Encoder
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 2,883
|
Quote:
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. |
|
21st March 2022, 20:39 | #85 | Link |
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. |
23rd July 2022, 16:39 | #86 | Link |
Registered User
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 Thanks in advance to anyone that will help.
__________________
HYbrid Multimedia Production Suite project @ GitHub |
23rd July 2022, 19:44 | #87 | Link |
Broadcast Encoder
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" Last edited by FranceBB; 23rd July 2022 at 19:53. |
24th July 2022, 16:21 | #88 | Link | |
Registered User
Join Date: Nov 2004
Location: Poland
Posts: 2,843
|
Quote:
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. |
|
25th July 2022, 10:56 | #89 | Link | |
Registered User
Join Date: Aug 2002
Location: Italy
Posts: 303
|
Yes, sorry, you're right.
Quote:
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 |
|
25th July 2022, 11:03 | #90 | Link | |
Registered User
Join Date: Aug 2002
Location: Italy
Posts: 303
|
Quote:
I evaluated MagicYUV but I still don't understand how use it from commandline...
__________________
HYbrid Multimedia Production Suite project @ GitHub |
|
25th July 2022, 15:19 | #91 | Link | |
Registered User
Join Date: Sep 2007
Posts: 5,345
|
Quote:
-pix_fmt yuv444p (8bit YUV444) is not a lossless transform from 8bit RGB24 |
|
25th July 2022, 22:12 | #92 | Link | |
Broadcast Encoder
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 2,883
|
Perfect. I'm glad to hear that.
Quote:
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. |
|
9th August 2022, 15:31 | #94 | Link | |
Registered User
Join Date: Feb 2020
Posts: 539
|
Quote:
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). |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|