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 > MPEG-4 AVC / H.264

Reply
 
Thread Tools Search this Thread Display Modes
Old 25th June 2020, 15:36   #121  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,753
I can't compare with the "official" builds, as I don't know how the "official" builds were created. I guess they don't contain lavf and ffms which MABS does include. And MABS uses MSYS2 / MinGW with GNU C/C++ in a current stable release (v10.1 at the moment). My latest build is linked and documented here.

I can't use ICL, I don't have any experience with it.
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH is offline   Reply With Quote
Old 25th June 2020, 18:35   #122  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,248
Quote:
Originally Posted by LigH View Post
I can't compare with the "official" builds, as I don't know how the "official" builds were created.
It looks like they are using GitLab CI/CD runners to create the "official" builds, and you can see their configuration file here:
https://code.videolan.org/videolan/x....gitlab-ci.yml

Anyway, the "official" builds have libavcodec/libavformat support enabled, but not FFMS. Also, they use GCC 8.2.
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊
LoRd_MuldeR is offline   Reply With Quote
Old 26th June 2020, 14:15   #123  |  Link
tormento
Acid fr0g
 
tormento's Avatar
 
Join Date: May 2002
Location: Italy
Posts: 2,542
Quote:
Originally Posted by LigH View Post
I can't use ICL, I don't have any experience with it.
Thanks.

You can download ICL with free subscription too, if interested.
__________________
@turment on Telegram
tormento is offline   Reply With Quote
Old 14th October 2020, 16:37   #124  |  Link
nakTT
Registered User
 
Join Date: Dec 2008
Posts: 415
Thanks for the sharing.
nakTT is offline   Reply With Quote
Old 7th June 2021, 22:51   #125  |  Link
FranceBB
Broadcast Encoder
 
FranceBB's Avatar
 
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 2,883
Can someone with the rights on the x264 GitLab merge this pull request?

https://code.videolan.org/videolan/x...rge_requests/6
FranceBB is offline   Reply With Quote
Old 19th June 2021, 13:54   #126  |  Link
jpsdr
Registered User
 
Join Date: Oct 2002
Location: France
Posts: 2,308
Prayer answered it seems...
https://code.videolan.org/videolan/x...989cb1ecd19cbd
__________________
My github.
jpsdr is offline   Reply With Quote
Old 19th June 2021, 14:13   #127  |  Link
FranceBB
Broadcast Encoder
 
FranceBB's Avatar
 
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 2,883
Yep, I've got the email the other day: it has been merged.
Time to celebrate, then.

annuntio vobis gaudium magnum: habemus Intra Class 300-480 xD
FranceBB is offline   Reply With Quote
Old 20th June 2021, 19:39   #128  |  Link
jpsdr
Registered User
 
Join Date: Oct 2002
Location: France
Posts: 2,308
New version build.
__________________
My github.
jpsdr is offline   Reply With Quote
Old 28th July 2022, 20:43   #129  |  Link
chompy
Registered User
 
Join Date: Jul 2004
Posts: 213
Quote:
Originally Posted by jpsdr View Post
New version build.
@jpsdr: Will you continue updating your x264 t_mod versions? Thanks!
chompy is offline   Reply With Quote
Old 29th July 2022, 17:14   #130  |  Link
jpsdr
Registered User
 
Join Date: Oct 2002
Location: France
Posts: 2,308
I will when there will be interesting/worthwile commits (bug fixes or encode improvement), as it take a lot of time for me to make the build. Didn't check if there was commits the last 3 weeks, but until there, the commits were not worth spending time.
__________________
My github.
jpsdr is offline   Reply With Quote
Old 29th July 2022, 18:05   #131  |  Link
chompy
Registered User
 
Join Date: Jul 2004
Posts: 213
Quote:
Originally Posted by jpsdr View Post
I will when there will be interesting/worthwile commits (bug fixes or encode improvement), as it take a lot of time for me to make the build. Didn't check if there was commits the last 3 weeks, but until there, the commits were not worth spending time.
Great, lots of thanks for your great work!!
chompy is offline   Reply With Quote
Old 25th September 2022, 11:50   #132  |  Link
jpsdr
Registered User
 
Join Date: Oct 2002
Location: France
Posts: 2,308
New t_mod version for those who are still interested.
__________________
My github.
jpsdr is offline   Reply With Quote
Old 25th September 2022, 13:48   #133  |  Link
mastrboy
Registered User
 
Join Date: Sep 2008
Posts: 365
Quote:
Originally Posted by jpsdr View Post
New t_mod version for those who are still interested.
Thank you.
__________________
(i have a tendency to drunk post)
mastrboy is offline   Reply With Quote
Old 25th September 2022, 14:52   #134  |  Link
kebulek
Registered User
 
kebulek's Avatar
 
Join Date: Oct 2008
Posts: 40
Thanks!
kebulek is offline   Reply With Quote
Old 26th September 2022, 00:00   #135  |  Link
FranceBB
Broadcast Encoder
 
FranceBB's Avatar
 
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 2,883
Nice, thank you, Jean Philippe!
FranceBB is offline   Reply With Quote
Old 28th September 2022, 18:06   #136  |  Link
chompy
Registered User
 
Join Date: Jul 2004
Posts: 213
Quote:
Originally Posted by jpsdr View Post
New t_mod version for those who are still interested.
Lots of thanks!!
chompy is offline   Reply With Quote
Old 21st October 2022, 10:58   #137  |  Link
FranceBB
Broadcast Encoder
 
FranceBB's Avatar
 
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 2,883
Hi there guys, I've just noticed that if I use --asm=avx512 with x264 8bit, it works, however if I use it while encoding with a 10bit profile, it doesn't, it only goes up to AVX2.
Is this expected? Is this because no one wrote AVX512 intrinsics for 10bit?
FranceBB is offline   Reply With Quote
Old 21st October 2022, 20:37   #138  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,248
Quote:
Originally Posted by FranceBB View Post
Hi there guys, I've just noticed that if I use --asm=avx512 with x264 8bit, it works, however if I use it while encoding with a 10bit profile, it doesn't, it only goes up to AVX2.
Is this expected? Is this because no one wrote AVX512 intrinsics for 10bit?
You probably mean "assembly code" functions. An "intrinsic" is a function (well, not really a function, just something that can be called like a function) which is built directly into your compiler.

Anyways, as far as I can tell, the only places where the flag X264_CPU_AVX512 appears is in cpu.c and dct.c.

Obviously the code in cpu.c detects the CPU features. It's in dct.c where x264 actually uses the X264_CPU_AVX512 flags to enable (or not) certain function:
https://raw.githubusercontent.com/mi...7/common/dct.c

But, if I read the pre-processor directives in that file correctly, then the X264_CPU_AVX512 flag does not appear in the HIGH_BIT_DEPTH part at all; it only appears in the !HIGH_BIT_DEPTH part.

In other words, there is nothing in the "high bit-depth" code path that gets enabled/disabled depending on the availability of AVX-512 support.

Probably there simply are no "high bit-depth" functions that would benefit from AVX-512 instructions, or at least nobody nobody cared enough about AVX-512 to figure it out
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊

Last edited by LoRd_MuldeR; 21st October 2022 at 20:49.
LoRd_MuldeR is offline   Reply With Quote
Old 22nd October 2022, 02:27   #139  |  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 LoRd_MuldeR View Post
You probably mean "assembly code" functions.
Yep, sorry, I meant manually written assembly optimizations.



Quote:
Originally Posted by LoRd_MuldeR View Post
if I read the pre-processor directives in that file correctly, then the X264_CPU_AVX512 flag does not appear in the HIGH_BIT_DEPTH part at all; it only appears in the !HIGH_BIT_DEPTH part.
I see! So it's normal that I don't see it being enabled there as no one actually wrote anything for it in the high bit depth part, so it only works for 8bit. Gotcha.

Quote:
Originally Posted by LoRd_MuldeR View Post
In other words, there is nothing in the "high bit-depth" code path that gets enabled/disabled depending on the availability of AVX-512 support.
Gotcha, which is why I couldn't see it being enabled. Thanks for taking a look at it.

Quote:
Originally Posted by LoRd_MuldeR View Post
Probably there simply are no "high bit-depth" functions that would benefit from AVX-512 instructions
Nah, that's very unlikely, I just think no one wrote assemblies 'cause 10bit H.264 is much less used compared to the 8bit flavors (and indeed the only two groups of people who use it are those encoding in intra class to target broadcast hardware SDI playout ports in professional settings and those encoding anime, like fansubbers doing reverse upscale of BDs xD)


Quote:
Originally Posted by LoRd_MuldeR View Post
nobody cared enough about AVX-512 to figure it out
Yeah, that's much more likely.
I wonder if Henrik Gramner will get back on this, given that he's the one behind the AVX-512 commits (among plenty of other things)...

Last edited by FranceBB; 22nd October 2022 at 02:30.
FranceBB is offline   Reply With Quote
Old 12th January 2023, 18:56   #140  |  Link
FranceBB
Broadcast Encoder
 
FranceBB's Avatar
 
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 2,883
Remember the whole discussion about OpenCL?
I actually tested again but this time on Amazon AWS machines.

m6i.4xlarge 16c/16th AVX-512 CPU Only
1h 24m

m6i.4xlarge 16c/16th AVX-512 CPU + OpenCL GPU
1h 03m


The content is 1h 32min 25seconds and 3 frames long.

The video is MPEG-2 50 Mbit/s FULL HD yv16 25i with PCM 24bit lossless 5.1 audio bobbed to 50p and with the chroma downscaled to yv12 in Avisynth.


Quote:
x264.exe "Z:\AVS Script.avs" --preset medium --profile high --level 4.1 --ref 4 --deblock -1:-1 --crf 25 --keyint 50 --aud --overscan show --range tv --opencl --colormatrix bt709 --transfer bt709 --colorprim bt709 --videoformat component --nal-hrd vbr --vbv-maxrate 25000 --vbv-bufsize 25000 --output "I:\temp\raw_video.h264"

ffmpeg.exe -i "Z:\AVS Script.avs" -vn -sn -af loudnorm=I=-24:LRA=12:tp=-2 -c:a aac -b:a 550k -ar 48000 "I:\temp\audio.aac"

mp4box.exe -add "I:\temp\raw_video.h264" -add "I:\temp\audio.aac" "I:\temp\final_output.mp4"

adding --opencl saved around 20 min compared to not adding it.
So... yeah, it still makes sense to have it on.

Last edited by FranceBB; 12th January 2023 at 18:58.
FranceBB 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 13:36.


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