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. |
12th April 2019, 17:47 | #1 | Link |
Registered User
Join Date: Jan 2010
Location: France
Posts: 851
|
Best way to decode HEVC 4K HDR streams ?
Hi,
I would like to recode some HEVC streams (container M2TS/MKV or raw/demuxed HEVC) but I would like to know if AviSynth is still the best tool to do that ? If yes, what plugin do you use to decode it ? If no, could you give me another tool ? Thank you ! |
12th April 2019, 18:29 | #2 | Link |
Derek Prestegard IRL
Join Date: Nov 2003
Location: Los Angeles
Posts: 5,988
|
No, AviSynth isn't a great choice for HEVC. Use it if you must, but the high frame sizes typically associated with HEVC don't mesh well with 32 bit single threaded AviSynth
ffmpeg is a very frequently used tool for HEVC processing. |
13th April 2019, 22:30 | #4 | Link | |
Broadcast Encoder
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 2,883
|
If speed isn't your main concern, you can use MP_Pipeline to split a filterchain in Avisynth 32bit or even pipe it to the 64bit version.
Quote:
What's your target? Do you wanna encode it to HDR and just reduce the file size? Do you wanna encode it to SDR? 'cause in that case, you may wanna take a look at the tone-mapping algorithms available for Avisynth with HDRTools or at my LUTs. |
|
14th April 2019, 21:58 | #6 | Link |
Broadcast Encoder
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 2,883
|
Then, yes, if you wanna leave it as it is without changing anything, you can just use FFMpegSource2 to index the video and audio tracks and then use avs4x265 http://avisynth.nl/index.php/Avs4x265 to pipe the uncompressed AV stream to x265 to encode, just make sure you use the right flag about color space, nits and curve in x265 when dealing with HDR contents. As to the audio, just use your preferred encoder to pipe Avisynth to it. I generally use NeroAAC to make AAC files.
As to the muxing, I suggest you mkvmerge to make an mkv, but nothing stops you from making an mp4 with HEVC inside, just keep in mind that mp4box won't let you do it and some players might (or might not) read it. (If you want an example I can share my BAT) |
15th April 2019, 01:24 | #7 | Link |
Derek Prestegard IRL
Join Date: Nov 2003
Location: Los Angeles
Posts: 5,988
|
Why deal with AviSynth just to transcode HEVC to a lower bitrate? This is dramatically easier and faster if you just use ffmpeg.
Also, mp4 containing hevc is absolutely positively bog standard. It's used everywhere. |
Thread Tools | Search this Thread |
Display Modes | |
|
|