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. |
27th May 2024, 07:22 | #122 | Link |
German doom9/Gleitz SuMo
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 7,094
|
The entropy coding in HEVC is CABAC = Context-adaptive binary arithmetic coding, a specific variant of the general Arithmetic coding.
For more details, you may need to be able to read the source code. |
31st May 2024, 05:20 | #123 | Link |
Registered User
Join Date: May 2024
Posts: 9
|
Types of frames in HEVC
Basically we have 3 frames in hevc, I, P, B frames
Initially it take 1st frames as I FRAME , and next p or b Is this right? And please tell me order of frame execution and is b frame is supported And where can get source code of HEVC. Thank you 🙏. |
31st May 2024, 11:33 | #124 | Link |
German doom9/Gleitz SuMo
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 7,094
|
Yes, B frames are supported.
I frames exist in two variants: IDR (Intraframe with Decoder Reset) to start a GOP, and intermediate Intraframes for single frames with very different content compared to surrounding frames, so the decoding of P and B frames may skip that one (but they are displayed, just not referenced by other frames) Reference sources: https://vcgit.hhi.fraunhofer.de/jvet/HM Reference documents: https://hevc.hhi.fraunhofer.de/ Last edited by LigH; 31st May 2024 at 11:38. |
1st June 2024, 00:53 | #125 | Link | |
Moderator
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,878
|
Quote:
And the new x265 version supports multiple hierarchies of B-frames. |
|
3rd June 2024, 15:11 | #131 | Link |
German doom9/Gleitz SuMo
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 7,094
|
I already posted you the link to "Reference sources" at Fraunhofer, they are in C/C++.
And highly optimized and enhanced sources for the x265 encoder in C/C++ and Assembler are available from Multicoreware's Bitbucket; more info at https://www.x265.org/ |
3rd June 2024, 18:45 | #132 | Link | |
Moderator
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,878
|
Quote:
The reference encoders is, charitably, glacially slow. |
|
17th June 2024, 13:30 | #134 | Link |
Big Bit Savings Now !
Join Date: Feb 2007
Location: close to the wall
Posts: 1,675
|
Run an indexer on the file, like LWLibavVideoSource.
A .lwi file is generated. It tells the offsets of all frames. An example: Index=0,POS=0,PTS=-9223372036854775808,DTS=-9223372036854775808,EDI=0 Key=1,Pic=1,POC=0,Repeat=1,Field=0 Index=0,POS=49499,PTS=-9223372036854775808,DTS=-9223372036854775808,EDI=0 Key=0,Pic=2,POC=4,Repeat=1,Field=0 until Index=0,POS=23035292,PTS=-9223372036854775808,DTS=-9223372036854775808,EDI=0 Key=0,Pic=3,POC=1731,Repeat=1,Field=0 The last frame: You want to look for ....POS=23035292 Example file size was 21,9 MB (23.048.192 Bytes)
__________________
"To bypass shortcuts and find suffering...is called QUALity" (Die toten Augen von Friedrichshain) "Data reduction ? Yep, Sir. We're that issue working on. Synce invntoin uf lingöage..." Last edited by Emulgator; 17th June 2024 at 13:32. |
18th June 2024, 05:13 | #135 | Link | |
Registered User
Join Date: May 2024
Posts: 9
|
Quote:
Can u tell me again, I didn't get. |
|
18th June 2024, 10:51 | #136 | Link |
German doom9/Gleitz SuMo
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 7,094
|
You do not analyse the video stream yourself. You let a smart indexer containing decades of experience do that and then parse the index file it created.
Indexing a media file with MPEG HEVC video is quite complex. It depends at first on whether the video stream is contained in a container, so you would have to demultiplex that container first to get the raw video stream. And raw HEVC video streams would have to be parsed sequentially, from the beginning to the end, byte by byte, if you do not already know some smarter approach (e.g. using GOP index chunks in containers which do have some, like ISO Media, e.g. MP4). |
Thread Tools | Search this Thread |
Display Modes | |
|
|