Thinking about appending 'randomly' encoded HEVC streams, I was wondering what settings need to be compatible to append h.265 raw files without running into problems? (encodings would be done by different software and hardware encoders)
Had some thoughts about it:
- resolution -> yes
- frame rate -> yes, unless the output is allowed to be vfr and the time codes are adjusted during muxing into a container: yes
- bit depth -> yes
- color sampling -> yes
- vui related settings -> yes (at least if the color representation should stay the same)
- loop filter -> probably not
- sao related settings -> probably not
- profile/level/tier settings -> using the highest profile/level/tier settings of the all clips should be fine
- scene change related settings -> should matter
- gop size related settings -> min/max gop size shouldn't matter, whether 'open'- or 'close'-gop is used probably does
- weighted p-frame prediction -> probably yes
- max ref frames -> probably not (as long as profile/level/tier restrictions are not hurt by it)
- max number of consecutive b-frames -> probably not (as long as profile/level/tier restrictions are not hurt by it)
- b-frame frequency boots and decision settings -> probably not (as long as profile/level/tier restrictions are not hurt by it)
- b-pyramid usage: probably yes
- weighted b-frames: probably yes
- interlacing: yes (mixing progressive and interlaced content always is a bad idea)
- quad tree related settings like wpp, lossless cu, ... : probably yes
- rate control and motion prediction settings: probably not
-> if someone has some additional thoughts about it, please post.
Also once it is clear which settings need to be equal for streams that should be appended, the next question is how to check how these settings are set - given a lot of raw samples ? (preferably through the command line, to automate things)
Mediainfo, ffprobe, doe not seem to give all needed settings.
So if anyone has some useful thoughts please share.
Cu Selur
+ Reply to Thread
Results 1 to 5 of 5
-
Last edited by Selur; 29th Nov 2015 at 10:25.
users currently on my ignore list: deadrats, Stears555, marcorocchini -
I assume you are talking about MKV and MP4 containers.
What are "scene change related settings"?
I don't think so. (as long as you cut correctly)
What do you mean? Every movie is a "number of consecutive frames".
Are there any HEVC profile/level/tiers with b frame limits in the first place? Maybe "still picture"?
Isn't the DPB size part of the headers? I think appending should be possible but headers should be to max value. But mixing b-pyramid with non b-pyramid should be possible as long as those headers are not exceeded by any part.
HEVC interlaced coding is different than AVC. I think mixing should in theory be possible because it's a per frame flag but it's really asking for trouble. Players like MPC-HC or VLC cannot even deal correctly with interlaced HEVC at all at this point. -
I assume you are talking about MKV and MP4 containers.
What do you mean? Every movie is a "number of consecutive frames".users currently on my ignore list: deadrats, Stears555, marcorocchini -
For raw content it might be possible to allow mixing of levels as long as all PPS->SPS->VPS pointing is done correctly with increasing ids. I don't think it's possible to set those using e.g. x265cli, though, in case you have that in mind. Not really sure if it matters in practice. I mean, no one plays raw content anyways except for a short preview while encoding? No idea what you are aiming for in the end. Not even sure ids are not even required to change.
Maybe others know more, I'm not an expert.Last edited by sneaker; 29th Nov 2015 at 12:05.
-
I think the main gain from knowing how compatible streams need to look like would be that once we know that, can analyse stream for those settings and we know how to create compatible streams writing a smart cutting/encoding tool would easy.
users currently on my ignore list: deadrats, Stears555, marcorocchini
Similar Threads
-
what are the minimum support files needed for hevc videos to mp4 ?
By vhelp in forum Video ConversionReplies: 2Last Post: 3rd Nov 2013, 13:44 -
theX.265 (a free HEVC) codec. Have you ever tried that HEVC encoder? (HELP)
By Stears555 in forum Video ConversionReplies: 41Last Post: 16th Sep 2013, 11:15 -
Avidemux HD settings help needed
By vorton in forum Video ConversionReplies: 1Last Post: 3rd Aug 2012, 03:19 -
Appending audio/video data to an MKV file
By urymf in forum EditingReplies: 5Last Post: 6th Oct 2011, 09:35 -
trouble converting/xb360 essential settings needed
By Captain Slow in forum Newbie / General discussionsReplies: 8Last Post: 17th May 2011, 19:14