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 > Capturing and Editing Video > Avisynth Usage

Reply
 
Thread Tools Search this Thread Display Modes
Old 14th July 2016, 11:27   #1  |  Link
Lukas
Registered User
 
Join Date: May 2016
Posts: 4
Avisynth opening HEVC?

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.
Lukas is offline   Reply With Quote
Old 14th July 2016, 13:17   #2  |  Link
Atak_Snajpera
RipBot264 author
 
Atak_Snajpera's Avatar
 
Join Date: May 2006
Location: Poland
Posts: 6,915
use ffms filter
Atak_Snajpera is offline   Reply With Quote
Old 14th July 2016, 15:31   #3  |  Link
filler56789
SuperVirus
 
filler56789's Avatar
 
Join Date: Jun 2012
Location: Antarctic Japan
Posts: 896
Quote:
Originally Posted by Lukas View Post
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)
filler56789 is offline   Reply With Quote
Old 22nd July 2016, 09:34   #4  |  Link
Music Fan
Registered User
 
Join Date: May 2009
Location: Belgium
Posts: 1,666
Or LSMASHSource ;
http://forum.doom9.org/showthread.php?t=167435
Write LWLibavVideoSource or LSMASHVideoSource in your script.
Music Fan is offline   Reply With Quote
Old 24th July 2016, 08:02   #5  |  Link
MysteryX
Soul Architect
 
MysteryX's Avatar
 
Join Date: Apr 2014
Posts: 2,170
LWLibavVideoSource works for me for pretty much everything; haven't yet seen a reason to use anything else.
MysteryX is offline   Reply With Quote
Old 6th February 2018, 02:18   #6  |  Link
jriker1
Registered User
 
Join Date: Dec 2003
Posts: 387
Quote:
Originally Posted by MysteryX View Post
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
jriker1 is offline   Reply With Quote
Old 6th February 2018, 06:23   #7  |  Link
Midzuki
Unavailable
 
Midzuki's Avatar
 
Join Date: Mar 2009
Location: offline
Posts: 1,477
Quote:
Originally Posted by jriker1 View Post
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.
Midzuki is offline   Reply With Quote
Old 6th February 2018, 06:40   #8  |  Link
poisondeathray
Registered User
 
Join Date: Sep 2007
Posts: 3,829
Quote:
Originally Posted by jriker1 View Post
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
poisondeathray is offline   Reply With Quote
Old 6th February 2018, 20:51   #9  |  Link
sneaker_ger
Registered User
 
Join Date: Dec 2002
Posts: 5,414
Very likely it's high bitdepth. L-Smash outputs the hacked format by default, then. You can let it dither to 8 bit:
Code:
lwlibavvideosource("source.ts", format="YUV420P8")
Or put into hacked stacked format:
Code:
lwlibavvideosource("source.ts", format="YUV420P16", stacked=true)
Into AviSynth+ native format:
Code:
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.

Last edited by sneaker_ger; 6th February 2018 at 20:59.
sneaker_ger is offline   Reply With Quote
Old 6th February 2018, 23:44   #10  |  Link
jriker1
Registered User
 
Join Date: Dec 2003
Posts: 387
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
jriker1 is offline   Reply With Quote
Old 7th February 2018, 13:56   #11  |  Link
sneaker_ger
Registered User
 
Join Date: Dec 2002
Posts: 5,414
Quote:
Originally Posted by jriker1 View Post
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.)
sneaker_ger is offline   Reply With Quote
Old 7th February 2018, 15:07   #12  |  Link
raffriff42
Retried Guesser
 
raffriff42's Avatar
 
Join Date: Jun 2012
Posts: 1,377
Though I am sure sneaker_ger's suggestions are good, I have had success with the following:
Code:
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

Last edited by raffriff42; 7th February 2018 at 15:12.
raffriff42 is offline   Reply With Quote
Old 9th February 2018, 01:32   #13  |  Link
jriker1
Registered User
 
Join Date: Dec 2003
Posts: 387
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

Last edited by jriker1; 9th February 2018 at 01:47.
jriker1 is offline   Reply With Quote
Old 9th February 2018, 02:04   #14  |  Link
sneaker_ger
Registered User
 
Join Date: Dec 2002
Posts: 5,414
Is the source HDR? Then things become more complicated.
What is your goal? Smaller file? Convert from HDR to SDR? Both?

Quote:
Originally Posted by jriker1 View Post
Edit: I am using avisynth+ however it doesn't recognize convertbits
Try clean install.
https://github.com/pinterf/AviSynthPlus/releases
sneaker_ger is offline   Reply With Quote
Old 9th February 2018, 02:09   #15  |  Link
jriker1
Registered User
 
Join Date: Dec 2003
Posts: 387
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
jriker1 is offline   Reply With Quote
Reply

Tags
avisynth, hevc, x265

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 21:07.


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