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 > High Efficiency Video Coding (HEVC)

Reply
 
Thread Tools Search this Thread Display Modes
Old 17th September 2024, 23:04   #9521  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 7,095
x265cli.cpp, lines 808 ff.:
Code:
#if !ENABLE_MULTIVIEW
        if (optind < argc && !inputfn[0])
            inputfn[0] = argv[optind++];
#endif
I assumed that if MV-HEVC is disabled in compilation options, interpreting the last parameter as input filename (if there was no --input parameter yet) is enabled, as it used to work before introducing MV-HEVC.

But it doesn't seem to work in my recently compiled v4.0+4.
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH is offline   Reply With Quote
Old 18th September 2024, 05:34   #9522  |  Link
Z2697
Registered User
 
Join Date: Aug 2024
Posts: 51
Quote:
Originally Posted by jpsdr View Post
So do I.

I've made an encode with a version build with llvm.
Then I've made an encode with a version build with gcc.
File were of different sizes.
But... to be sure, i redo the exact same encode with the gcc build version. Third file, third different size...
So, even with the exact same exe, running twice the exact same encode didn't even produce bit identical files, as they even are not of the same size. Of course, difference is small (around 2kB~4kB for a 20MB file).

For speed, thanks for the offer, but i will not be doing more testing.
I tested your parameters, In this particular case it's vbv that caused this phenomenon. But I didn't go further (since the vbv option is the first one in your command line after those basic stuff)

Last edited by Z2697; 18th September 2024 at 05:38.
Z2697 is offline   Reply With Quote
Old 18th September 2024, 09:22   #9523  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 7,095
Wondering if the cause might be wrong parameters in a cmake cache, I rebuilt my binaries. But they turned out to be the same, that was not the reason.

Now I reported it to x265_git issue 954.

If any competent programmer here could have a look, that would be very appreciated.
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH is offline   Reply With Quote
Old 18th September 2024, 12:34   #9524  |  Link
ksm
Registered User
 
Join Date: Dec 2022
Posts: 2
Thank you for bringing up these issues to our attention. We are working on fixing all of these issues and once done we will release a minor version. Thanks
ksm is offline   Reply With Quote
Old 18th September 2024, 13:39   #9525  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 7,095
While you are at it:

Help messages are not formatted well in new features, sometimes missing manual line breaks which happen randomly in long lines, I remember I spotted typos and strange grammar...
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH is offline   Reply With Quote
Old 18th September 2024, 13:51   #9526  |  Link
tormento
Acid fr0g
 
tormento's Avatar
 
Join Date: May 2002
Location: Italy
Posts: 2,732
Is possible to write / overwrite encoding library or other fields in a hevc file?

I mean, after it's been created.
__________________
@turment on Telegram
tormento is offline   Reply With Quote
Old 18th September 2024, 13:59   #9527  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 7,095
Regarding the specifications (in theory): Encoder library and options are metadata, pure text. They can be omitted by an encoder or removed later. Header fields describing the content (e.g. colorimetry flags, aspect ratio) can be edited with special tools (which may take care of checksums, if any exist). They just need to exist and be known ... I do remember that a patcher for raw H.264 (AVC) video streams exists. And I read that ffmpeg can be used to alter some metadata in video streams.

In other words: It is absolutely possible that software can exist which is able to patch H.265 metadata. It may even exist already. I just can't tell you a specific tool, besides ffmpeg.
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid

Last edited by LigH; 18th September 2024 at 14:10.
LigH is offline   Reply With Quote
Old 18th September 2024, 14:01   #9528  |  Link
tormento
Acid fr0g
 
tormento's Avatar
 
Join Date: May 2002
Location: Italy
Posts: 2,732
Quote:
Originally Posted by LigH View Post
Regarding the specifications
Recent versions of ffmpeg can write/delete AVC metadata and delete HEVC metadata only.

Any help is welcome.
__________________
@turment on Telegram
tormento is offline   Reply With Quote
Old 18th September 2024, 14:24   #9529  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 7,095
In case of despair, use a "hex editor" to overwrite the human-readable text meta info about the encoder and its options.
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH is offline   Reply With Quote
Old 18th September 2024, 15:30   #9530  |  Link
Z2697
Registered User
 
Join Date: Aug 2024
Posts: 51
Quote:
Originally Posted by tormento View Post
Recent versions of ffmpeg can write/delete AVC metadata and delete HEVC metadata only.

Any help is welcome.
What exactly are you trying to modify?
Z2697 is offline   Reply With Quote
Old 18th September 2024, 19:17   #9531  |  Link
tormento
Acid fr0g
 
tormento's Avatar
 
Join Date: May 2002
Location: Italy
Posts: 2,732
Quote:
Originally Posted by Z2697 View Post
What exactly are you trying to modify?
I need to put some "watermark" directly in hevc file metadata, so that muxing won't change or tamper it.
__________________
@turment on Telegram
tormento is offline   Reply With Quote
Old 18th September 2024, 20:19   #9532  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 7,095
Well, you can certainly use a hex editor to patch that text byte by byte. It is for (tech-literate) humans to casually read, not for software to rely on.
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH is offline   Reply With Quote
Old 18th September 2024, 21:48   #9533  |  Link
Z2697
Registered User
 
Join Date: Aug 2024
Posts: 51
HEX editor is definitely gonna work but same for anyone that's tech-literate enough if they want to remove it.

If you don't want to do that hex editing you can mess with the version.cmake or param.cpp to change how the version string is generated or how the SEI is "printed".

Or.......... you can use the x265 parameter --nalu-file to insert a custom SEI message but I never used it, I can't guarantee that it'll work, plus good luck for any of your viewers can find this easter egg (if it's only important to yourself then this is no problem)
Alright, I tested it and it works, it looks like you can insert SEI message at any frame from the help msg but I can only get it working at the frame 0.
An example of nalu-file:
Quote:
0 PREFIX 39/5 VGhlIHF1aWNrIGJyb3duIGZveCBqdW1wcyBvdmVyIHRoZSBsYXp5IGRvZy4=

Last edited by Z2697; 19th September 2024 at 00:40. Reason: add example
Z2697 is offline   Reply With Quote
Old 19th September 2024, 12:32   #9534  |  Link
tormento
Acid fr0g
 
tormento's Avatar
 
Join Date: May 2002
Location: Italy
Posts: 2,732
Patman released ICC builds on his repo!

__________________
@turment on Telegram
tormento is offline   Reply With Quote
Old 19th September 2024, 13:47   #9535  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 7,095
@Z2697: Is that Base64 encoding or similar? ... Ah, yes, obviously. Woof!
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH is offline   Reply With Quote
Old 19th September 2024, 16:47   #9536  |  Link
rwill
Registered User
 
Join Date: Dec 2013
Location: Berlin, Germany
Posts: 396
Quote:
Originally Posted by Z2697 View Post
Or.......... you can use the x265 parameter --nalu-file to insert a custom SEI message but I never used it, I can't guarantee that it'll work, plus good luck for any of your viewers can find this easter egg (if it's only important to yourself then this is no problem)
Alright, I tested it and it works, it looks like you can insert SEI message at any frame from the help msg but I can only get it working at the frame 0.
An example of nalu-file:
Your example seems to be missing the 16 bytes uuid_iso_iec_11578 at the start of the unregistered SEI payload. I suggest creating a hopefully unique 16 byte UUID using some generator and use that for each of your so inserted SEIs.
__________________
My github...
rwill is offline   Reply With Quote
Old 19th September 2024, 20:12   #9537  |  Link
Z2697
Registered User
 
Join Date: Aug 2024
Posts: 51
Quote:
Originally Posted by rwill View Post
Your example seems to be missing the 16 bytes uuid_iso_iec_11578 at the start of the unregistered SEI payload. I suggest creating a hopefully unique 16 byte UUID using some generator and use that for each of your so inserted SEIs.
Judging by the resulting bitstream, x265 handles that.

And LigH, yes it's base64.
Z2697 is offline   Reply With Quote
Old 20th September 2024, 13:38   #9538  |  Link
birdie
Artem S. Tashkinov
 
birdie's Avatar
 
Join Date: Dec 2006
Posts: 378
Quote:
Originally Posted by ksm View Post
Thank you for bringing up these issues to our attention. We are working on fixing all of these issues and once done we will release a minor version. Thanks
Any news on x266?
birdie is offline   Reply With Quote
Old 20th September 2024, 16:27   #9539  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 7,095
Not in this thread. See here instead.
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH is offline   Reply With Quote
Old 20th September 2024, 19:09   #9540  |  Link
birdie
Artem S. Tashkinov
 
birdie's Avatar
 
Join Date: Dec 2006
Posts: 378
Quote:
Originally Posted by LigH View Post
Not in this thread. See here instead.
For visibility and transparency I'm asking a new MulticoreWare account that has no messages in other threads.

I hope you can forgive me.
birdie 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 05:11.


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