View Full Version : Avisynth opening HEVC?
Lukas
14th July 2016, 11:27
Hello,
is there posiibility to open MKV with x265 HEVC video in AviSynth + VirtualDubMod?
I'm trying but I can't find any free x265 DirectShow filter.
Atak_Snajpera
14th July 2016, 13:17
use ffms filter
filler56789
14th July 2016, 15:31
I'm trying but I can't find any free x265 DirectShow filter.
LAV Filters
MPC-BE standalone filters
Strongene H.265/HEVC Decoder for Windows
( http://xhevc.com/en/downloads/downloadCenter.jsp )
Not-free:
Cyberlink Video Decoder (PDVD Generic)
Music Fan
22nd July 2016, 09:34
Or LSMASHSource ;
http://forum.doom9.org/showthread.php?t=167435
Write LWLibavVideoSource or LSMASHVideoSource in your script.
MysteryX
24th July 2016, 08:02
LWLibavVideoSource works for me for pretty much everything; haven't yet seen a reason to use anything else.
jriker1
6th February 2018, 03:18
LWLibavVideoSource works for me for pretty much everything; haven't yet seen a reason to use anything else.
I also use this for most everything however when I opened a m2ts hevc file all I got was green and black jumbled lines.
JR
Midzuki
6th February 2018, 07:23
I also use this for most everything however when I opened a m2ts hevc file all I got was green and black jumbled lines.
First, remux the video stream to a better container (MKV, MP4) and try again.
If the L-SmashSource keeps failing, then build a .GRF file with GraphStudio (LAV Splitter and LAV Video are mandatory in this case) and apply DirectShowSource() on it.
poisondeathray
6th February 2018, 07:40
I also use this for most everything however when I opened a m2ts hevc file all I got was green and black jumbled lines.
JR
Or possibly it actually works, but you didn't specify the format parameter, or if higher bit depth whether to output stacked or not
Or the program you're using for preview doesn't display certain bit depths or pixel formats correctly (how are you viewing it)
Use mediainfo for more information on what it's supposed to be
sneaker_ger
6th February 2018, 21:51
Very likely it's high bitdepth. L-Smash outputs the hacked format by default, then. You can let it dither to 8 bit:
lwlibavvideosource("source.ts", format="YUV420P8")
Or put into hacked stacked format:
lwlibavvideosource("source.ts", format="YUV420P16", stacked=true)
Into AviSynth+ native format:
lwlibavvideosource("source.ts")
ConvertFromDoubleWidth(bits=10)
See README for more info.
Compatibility of non-8 bit formats can be limited in older software, e.g. VirtualDub.
ffms2 does all this automatically, btw. Easier to use.
jriker1
7th February 2018, 00:44
Thanks sneaker_ger, I can tell you that
ConvertFromDoubleWidth: top half of the picture showed and bottom half had a green line between the top and bottom and the bottom half looked like analog static. Or perhaps the top half was all of it and bottom half was just static.
stacked=true: This option just showed black and white garbage where you could see bits and pieces of the video.
format="YUV420P8": This worked and was able to open video in vdub.
JR
sneaker_ger
7th February 2018, 14:56
ConvertFromDoubleWidth: top half of the picture showed and bottom half had a green line between the top and bottom and the bottom half looked like analog static. Or perhaps the top half was all of it and bottom half was just static.
stacked=true: This option just showed black and white garbage where you could see bits and pieces of the video.
It is important that you use my examples 1:1 without any changes. (Except file name, of course.)
raffriff42
7th February 2018, 16:07
Though I am sure sneaker_ger's suggestions are good, I have had success with the following:LWLibavVideoSource(<path>, stacked=true, format="YUV420P10")
## 'format' must match source; in this example,
## MediaInfo says "Chroma subsampling" = 4:2:0, and "Bit depth" = 10
ConvertFromStacked(bits=10) ## ('bits' must match format above)
ConvertBits(8, dither=0) ## '0' means on, '-1' means off
jriker1
9th February 2018, 02:32
I'm going to have to try a few other suggestions. With format="YUV420P8" it comes up but is really washed out. Almost black and white.
JR
Edit: I am using avisynth+ however it doesn't recognize convertbits
sneaker_ger
9th February 2018, 03:04
Is the source HDR? Then things become more complicated.
What is your goal? Smaller file? Convert from HDR to SDR? Both?
Edit: I am using avisynth+ however it doesn't recognize convertbits
Try clean install.
https://github.com/pinterf/AviSynthPlus/releases
jriker1
9th February 2018, 03:09
I updated and it loaded however is still washed out. Looks fine in premiere pro when it loaded its own codec but for some reason the video is over a minute short in that tool. Goal is to reduce to 1080p and format to stream well thru my Xbox 360.
JR
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.