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 October 2013, 16:59   #61  |  Link
JEEB
もこたんインしたお!
 
JEEB's Avatar
 
Join Date: Jan 2008
Location: Finland / Japan
Posts: 512
The HEVC-in-FLV hack (or actually, hacks) is/are completely unrelated to Adobe in any way or form, and as we now have at least somewhat official ways of putting HEVC into containers, I would most definitely recommend people to refrain from using or implementing this hacked up mapping for public consumption. FLV is simple to hack things into, yes. But using possible values that Adobe might use in the future sounds like a big pot of problems.

(I still do wish that ISO/IEC would finally do their ballot and make 14496-15, 3rd edition, official -- the draft specification hasn't had changes done to it for months by now)
__________________
[I'm human, no debug]
JEEB is offline   Reply With Quote
Old 17th October 2013, 18:26   #62  |  Link
Kurtnoise
Swallowed in the Sea
 
Kurtnoise's Avatar
 
Join Date: Oct 2002
Location: Aix-en-Provence, France
Posts: 5,191
A hack like this ?

Yeah, sadly...
Kurtnoise is offline   Reply With Quote
Old 17th October 2013, 18:38   #63  |  Link
VFR maniac
Spinner of yarns
 
VFR maniac's Avatar
 
Join Date: May 2009
Posts: 164
So, The Flash Player can't play them at all but they are called FLV? Retarded!

Quote:
Originally Posted by Kurtnoise View Post
A hack like this ?

Yeah, sadly...
I don't think it works well unless the extradata encoded as concatenations of parameter sets with start codes and the stream is encapsulated as Annex B format.
As far as I read the change in MPC-HC BE, Strongene imitates the AVCDecoderConfigurationRecord not a draft of HEVCDecoderConfigurationRecord.
The ffmpeg/libav's HEVC decoder works only when extradata is encoded as HEVCDecoderConfigurationRecord (14496-15 format) or concatenations of parameter sets with start codes (Annex B format).
__________________
僕と契約して、L-SMASH developerになってよ!
L-SMASH | L-SMASH Works | Opus-in-ISOBMFF specification and reference software

Last edited by VFR maniac; 17th October 2013 at 18:41.
VFR maniac is offline   Reply With Quote
Old 17th October 2013, 21:04   #64  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,750
Quote:
Originally Posted by VFR maniac View Post
So, The Flash Player can't play them at all but they are called FLV?
Wow, FLV is the last format I'd think anyone would adopt on purpose for a new technology unrelated to Flash!
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book
benwaggoner is offline   Reply With Quote
Old 20th October 2013, 02:43   #65  |  Link
filler56789
SuperVirus
 
filler56789's Avatar
 
Join Date: Jun 2012
Location: Antarctic Japan
Posts: 1,351
Can someone please say if the AVIs and VfW-based MKVs created through Graphstudio from the Strongene HEVC source filter
are or are not standard-compliant?

{ for the uninformed: sample file(s) @ http://optavisse.com/2013/07/11/hevc-in-avi-why-not/ }

Last edited by filler56789; 20th October 2013 at 04:05. Reason: add link
filler56789 is offline   Reply With Quote
Old 20th October 2013, 08:10   #66  |  Link
VFR maniac
Spinner of yarns
 
VFR maniac's Avatar
 
Join Date: May 2009
Posts: 164
There is no official specification of HEVC-in-AVI and VfW-based HEVC as there is no official specification of AVC-in-AVC and VfW-based AVC.

VfW is problematic for B-frames without hacks because of 1-frame-in-1-frame-out.
AVI is problematic for seek when any B-frame is present because AVI has no concept of presentation and/or composition timestamp.
__________________
僕と契約して、L-SMASH developerになってよ!
L-SMASH | L-SMASH Works | Opus-in-ISOBMFF specification and reference software

Last edited by VFR maniac; 20th October 2013 at 08:15.
VFR maniac is offline   Reply With Quote
Old 20th October 2013, 08:31   #67  |  Link
filler56789
SuperVirus
 
filler56789's Avatar
 
Join Date: Jun 2012
Location: Antarctic Japan
Posts: 1,351
Quote:
Originally Posted by VFR maniac View Post
There is no official specification of HEVC-in-AVI and VfW-based HEVC as there is no official specification of AVC-in-AVC and VfW-based AVC.
Thanks for the clarification.

Quote:
VfW is problematic for B-frames without hacks because of 1-frame-in-1-frame-out.
AVI is problematic for seek when any B-frame is present because AVI has no concept of presentation and/or composition timestamp.
I thought that B-frames were a problem only for the VfW API, not for the AVI and ASF containers themselves
At least according to http://guru.multimedia.cx/avi-and-b-frames/,

Quote:
So one could now argue AVI doesnt support b frames as it doesnt store PTS and would if the application needs to know PTS (simpler players dont need to know the PTS…) to calculate the PTS based upon frame type and DTS, but that argument against AVI+b frames has a critical flaw, MPEG-PS and MPEG-TS dont store PTS for every frame either but only require it to be stored every 0.5 seconds or so. Which means that the same complicated calculate the PTS from DTS + frame types code is needed for the official MPEG format too

Last edited by filler56789; 20th October 2013 at 08:34. Reason: spelling
filler56789 is offline   Reply With Quote
Old 20th October 2013, 08:45   #68  |  Link
VFR maniac
Spinner of yarns
 
VFR maniac's Avatar
 
Join Date: May 2009
Posts: 164
The point is that handling of AVI with frame/picture-reordering for presentation is CODEC specific.
It is out of ranges of container.
This is already problematic from a viewpoint of container.

Also, presentation/output order of AVC and HEVC depends on POC not frame/picture types unlike the MPEG-1/2 Video and VC-1.
For instance, IDR-picture is output after subsequent P-pictures in coded order when those P-pictures have negative POC.
__________________
僕と契約して、L-SMASH developerになってよ!
L-SMASH | L-SMASH Works | Opus-in-ISOBMFF specification and reference software

Last edited by VFR maniac; 20th October 2013 at 09:02.
VFR maniac is offline   Reply With Quote
Old 20th October 2013, 10:19   #69  |  Link
filler56789
SuperVirus
 
filler56789's Avatar
 
Join Date: Jun 2012
Location: Antarctic Japan
Posts: 1,351
^ Again, thanks for answering.

I had to ask, because the most recent version of the DirectShow filter "MPCVideoDec.ax" doesn't understand HEVC-in-AVI:

http://forum.doom9.org/showthread.ph...29#post1648629
filler56789 is offline   Reply With Quote
Old 21st October 2013, 00:33   #70  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,750
Quote:
Originally Posted by filler56789 View Post
I thought that B-frames were a problem only for the VfW API, not for the AVI and ASF containers themselves
At least according to http://guru.multimedia.cx/avi-and-b-frames/,
Out of order frames were kind of a hack in ASF as well, with some weird tricks being done with timestamps in the headers that need to get ignored by the decoders.

It worked okay for VC-1, but I was one of the advocates against using ASF for Smooth streaming with H.264 because the worst-case mismatches given a 2-second GOP and up to 16 B-frames were crazy.

I think trying to stuff HEVC into old file formats would mainly be opting into pain. And what would the point even be again?
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book
benwaggoner is offline   Reply With Quote
Old 21st October 2013, 00:52   #71  |  Link
filler56789
SuperVirus
 
filler56789's Avatar
 
Join Date: Jun 2012
Location: Antarctic Japan
Posts: 1,351
Quote:
Originally Posted by benwaggoner View Post
Out of order frames were kind of a hack in ASF as well, with some weird tricks being done with timestamps in the headers that need to get ignored by the decoders.

It worked okay for VC-1, but I was one of the advocates against using ASF for Smooth streaming with H.264 because the worst-case mismatches given a 2-second GOP and up to 16 B-frames were crazy.
I wasn't aware of that ,

thanks for the information

Quote:
I think trying to stuff HEVC into old file formats would mainly be opting into pain. And what would the point even be again?
Hmmm, the "trick that works for VC-1", is it the same thing as storing VC-1 in Matroska by using the "VfW-compatible" mode (which is what mkvmerge does)?

Last edited by filler56789; 21st October 2013 at 00:55. Reason: typo
filler56789 is offline   Reply With Quote
Old 21st October 2013, 22:11   #72  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,750
Quote:
Originally Posted by filler56789 View Post
Hmmm, the "trick that works for VC-1", is it the same thing as storing VC-1 in Matroska by using the "VfW-compatible" mode (which is what mkvmerge does)?
Could be. I've actually never made a MVK file in my life. But there are only so many ways to deal with out-of-order decode in file formats not designed for it.
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book
benwaggoner is offline   Reply With Quote
Reply

Tags
decoder, encoder, h.265, hevc, open-source

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 16:56.


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