Log in

View Full Version : Matroska support


DaveQB
5th August 2003, 23:14
my searching seems to show theres no filter (or anything of the sort) to open .MKV files with AVISynth

am i right ??

Wilbert
6th August 2003, 11:24
Yes, you are right.

Kika
6th August 2003, 11:57
DirectShowSource should be able to open a MKV-Video.

DaveQB
6th August 2003, 12:48
hmmm tried that before, thought i had no success.

tried now, VDMod hangs

TCMP returns

http://dward.us/cx23881/mkvavs.jpg

Wilbert
6th August 2003, 12:52
What's your script?

Kika
6th August 2003, 13:00
@ DaveQB

I tried it right now: sucess!
Maybe your file has errors?

Oh, i don't know your Script, but this looks like an Error with the Color-Space.

DaveQB
6th August 2003, 14:03
hmm, the file plays fine without AVSynth,
in TCMP its all normal.

Parsing to VDMod takes forever, and then doesnt finish (Program just finishes)

file is 32gig's


#ASYNTHER Football
LoadPlugin("C:\program Files\aviSynth 2.5\plugins\mpeg2dec.dll")
LoadPlugin("C:\program Files\aviSynth 2.5\plugins\msharpen.dll")
DirectShowSource("R:\Raiders.mkv")
SmartDeinterlace(1,10,true,true,true)
msharpen(highq=true,threshold=25,strength=100,debug=false,mask=false

)
BilinearResize(512,384)


been using the exact same scripts on AVI's without a hitch

idea's ?
thanx guys

DaveQB
6th August 2003, 14:28
Success.
but only with a simple script

DirectShowSource("R:\Raiders.mkv")

so with that, does AVISynth have support for .MKV

or not ??

Originally posted by Wilbert
Yes, you are right.

i'll try VDMod filters rather then AVISynth's ones, see if i get the same error

thanx

Kika
6th August 2003, 15:29
Do it step by step:

DirectShowSource("R:\Raiders.mkv", fps=25)

(fps=25 is for PAL, i don't know the right Framerate for your Video).

Try to open the AVS with MediaPlayer (mplayer2.exe!).

Wilbert
6th August 2003, 16:10
I'm also trying it. Opening a script containing mkv with AC3 in WMP6.4 went fine. I will try reencoding later this evening:

@DaveQB,

Could you try the following

DirectShowSource("R:\Raiders.mkv").info

I guess this should be YV12?

DirectShowSource("R:\Raiders.mkv")
SmartDeinterlace(1,10,true,true,true).info

I guess this doesn't work, because SmartDeinterlace needs RGB32 or YUY2?

DirectShowSource("R:\Raiders.mkv")
ConvertToRGB32
SmartDeinterlace(1,10,true,true,true)

should work ...

DaveQB
7th August 2003, 01:20
o, i deleted that file and recaptured in AVI again and got that encoding (got heaps to do, as fast as possbile)

but made a quick cap in MKV to run this


Originally posted by Wilbert
I'm also trying it. Opening a script containing mkv with AC3 in WMP6.4 went fine. I will try reencoding later this evening:

@DaveQB,

Could you try the following

DirectShowSource("R:\Raiders.mkv").info


from that i get this
www.dward.us/cx23881/avsinfo1.jpg 26.7KB



I guess this should be YV12?

DirectShowSource("R:\Raiders.mkv")
SmartDeinterlace(1,10,true,true,true).info



ok this returns this
www.dward.us/cx23881/avsinfo2.jpg 13.9KB


I guess this doesn't work, because SmartDeinterlace needs RGB32 or YUY2?

DirectShowSource("R:\Raiders.mkv")
ConvertToRGB32
SmartDeinterlace(1,10,true,true,true)



this returns the exact same as above




should work ...


weird ??!?!


thanx guys

Wilbert
7th August 2003, 12:05
DirectShowSource("R:\Raiders.mkv")
ConvertToYUY2(interlaced=true)
SmartDeinterlace(1,10,true,true,true)

works ?

DaveQB
7th August 2003, 15:43
yep i think ya got it,

i'll try encoding from the script now.

why, in a non-technical explanation, does adding "ConvertToYUY2(interlaced=true)" makes a difference?

without that line "info" reports RGB32 (i did capture it in YUY2 ?!?)


thanx for that, i guess AVISynth does, in a way, support .MKV

thanx

DaveQB
7th August 2003, 16:27
hmm it appears performance while encoding .MKV through AVS is slower then encoding .AVI through AVS
:(

shame

fix typo

Wilbert
7th August 2003, 16:42
why, in a non-technical explanation, does adding "ConvertToYUY2(interlaced=true)" makes a difference?

without that line "info" reports RGB32 (i did capture it in YUY2 ?!?)
The MKV is apperently RGB32 (your first picture). SmartDeinterlace requires YUY2, so you have to convert to YUY2 before applying SmartDeinterlace. This interlaced=true flag is used because your MKV is interlaced.

So, did it work? Could you convert MKV to anything else through AviSynth ?

cheap-red-wine
7th August 2003, 16:47
Originally posted by Wilbert
SmartDeinterlace requires YUY2, so you have to convert to YUY2 before applying SmartDeinterlace. Use KernelDeint(). It's better and supports all color spaces.

DaveQB
7th August 2003, 16:57
Originally posted by Wilbert
The MKV is apperently RGB32 (your first picture). SmartDeinterlace requires YUY2, so you have to convert to YUY2 before applying SmartDeinterlace. This interlaced=true flag is used because your MKV is interlaced.



i thought Smart Deinterlace supports YUY@ and RGB32.
i guess iw as wrong.

i captured in Virtual VCR-Matroska in YUY2,
so this means Matroska doesnt support anything but RGB32, or just the way its implemented into V-VCR-Matroska ??


So, did it work? Could you convert MKV to anything else through AviSynth ?


yes it works, but encoding is slow.

you mean any other colour space ??

havent tried

DaveQB
10th August 2003, 07:34
ok this script work

LoadPlugin("C:\program Files\aviSynth 2.5\plugins\mpeg2dec.dll")
LoadPlugin("C:\program Files\aviSynth 2.5\plugins\msharpen.dll")
DirectShowSource("E:\2002 Season\DivX\raiders.mkv")
ConvertToYUY2(interlaced=true)
SmartDeinterlace(1,10,true,true,true)
msharpen(highq=true,threshold=25,strength=100,debug=false,mask=false)
BilinearResize(512,384)


but when encoding with VDMod 1.5.4.1 it cant finish an encode.

By that i mean it gets to 5 sec before the estimated time of finishing and then the estimated time of finishing counts forward each second in time with the current time so that theres always 5 seconds remianing,
this carries on 2 hrs after the time its supose to finish, both estimated time and the time i would of expected it to.

like an infinite loop

doesnt of course, happen with AVI files

is it Matroska or DisrectShowsource ??

NB: i am not sure why i still have mpeg2dec.dll
i dont need that for DirectshowSource do i ?? must be left over from something else i was trying, or maybe its for SmartDeinterlace, confused myself here

Wilbert
10th August 2003, 13:44
Probably DirectShowSource. Does that also happen if the mkv doesn't contain audio/subtitles ?

DaveQB
10th August 2003, 13:46
umm yes,

well i never use any sort of subtitles, wouldnt have a clue there
the audio, well i disable it in the first pass (obviously) and this is when this occurs

Maybe lack of audio ? :D
i think not

edit: do u mean the source?

Wilbert
10th August 2003, 14:17
edit: do u mean the source?
Yes. The audio support is still experimental, so that could be the problem. What kind of audio is it?

DaveQB
17th August 2003, 02:44
sorry, didnt know this had a reply must of missed the email

the source is HuffyUV and Audio is raw PCM 16-bit Stereo.

i have gone back to using AVI ( :rolleyes: ) for now.

i like what Matroska offers and i like the stability in capturing to a .MKV container, but post processing is a b%^&h!

also, unable to delete MKV files unless i restart the PC is a pain.

hopefully the next release will be that little better :)