VideoHelp Forum




+ Reply to Thread
Results 1 to 11 of 11
  1. Member
    Join Date
    Apr 2006
    Location
    United States
    Search Comp PM
    A poster recently asked me why I convert MKV files to AVI. I thought it was neccesary to convert MKV->AVI->MPEG-2 if you wanted to put the original MKV files onto DVD?

    I thought to myself, that is a very good question.

    I did some research on the Internet and that is ongoing, but I wanted to ask, is there a way to load an MKV file, even one with H264 into CCE via a AviSynth Script, so I could totally bypass converting to an AVI file?

    I tried a couple of things (including the script below) but pretty much got errors in CCE. VdubM said something about "No combination of filters could be found to render the stream"

    <SCRIPT>
    DirectShowSource("C:\input.mkv", audio=false)
    LanczosResize(720,368,0,1,600,336)
    AddBorders(0,56,0,56)
    ConvertToYUY2()
    </SCRIPT>

    Is this even possible or must I continue with what I have been doing?
    Quote Quote  
  2. Yes, something like that should work if you have a Directshow MKV splitter like Haali and a Directshow codec installed.

    Some codecs used in MKV support variable frame rates. You may need to add frame rate arguemnts to DirectShowSource():

    DirectShowSource("file.mkv", fps=23.976, convertfps=true)
    Quote Quote  
  3. The fewer conversions, the better, in terms of encoding time and quality

    You should be able to frameserve just about anything with avisynth scripts.

    "No combination of filters could be found to render the stream"
    => Check to see if you have haali media splitter properly installed

    FYI, convertxtodvd and avidemux natively accept h264 encoded mkv files without scripts and they can be used to make dvds.

    Here is a guide for avidemux DVD authoring: http://www.avidemux.org/admForum/viewtopic.php?id=3570

    And convertxtodvd is so simple it doesnt even need a guide

    EDIT: HAHA I see Jagabo beat me to the punch
    Quote Quote  
  4. Always Watching guns1inger's Avatar
    Join Date
    Apr 2004
    Location
    Miskatonic U
    Search Comp PM
    FAVC is basically automating what you are trying to do, but uses HCEnc to encode. DVD Flick also does it. The only time I have had issues are a) when the mkv file is full of extra crap - jpgs etc - and a quick demux/remux fixes that, and b) correct channel mapping of AAC 5.1 to AC3 5.1
    Read my blog here.
    Quote Quote  
  5. Member
    Join Date
    Apr 2006
    Location
    United States
    Search Comp PM
    Originally Posted by jagabo
    Yes, something like that should work if you have a Directshow MKV splitter like Haali and a Directshow codec installed.

    Some codecs used in MKV support variable frame rates. You may need to add frame rate arguemnts to DirectShowSource():

    DirectShowSource("file.mkv", fps=23.976, convertfps=true)
    MKV and Haali Splitter both come with CCCP right?

    When I drag the avs script into CCE, I see the splitter stuff come up on the systems tray but still get an error. I also get the same error when I drag it into VDM.
    Quote Quote  
  6. Originally Posted by mickgreen58
    MKV and Haali Splitter both come with CCCP right?
    I don't know.

    Originally Posted by mickgreen58
    When I drag the avs script into CCE, I see the splitter stuff come up on the systems tray but still get an error. I also get the same error when I drag it into VDM.
    Is there an error message? Can you open the AVS script in a media player?
    Quote Quote  
  7. Always Watching guns1inger's Avatar
    Join Date
    Apr 2004
    Location
    Miskatonic U
    Search Comp PM
    Open the script in virtualdud to see any avs errors
    Read my blog here.
    Quote Quote  
  8. Get Slack disturbed1's Avatar
    Join Date
    Apr 2001
    Location
    init 4
    Search Comp PM
    DGAVCDec http://neuron2.net/dgavcdec/dgavcdec.html

    Think DGMPGDec for h264 streams.
    Linux _is_ user-friendly. It is not ignorant-friendly and idiot-friendly.
    Quote Quote  
  9. Member
    Join Date
    Jun 2005
    Location
    Portugal
    Search Comp PM
    forget it, i.e., forget the use of AVISynth DS directly

    - VSO ConvertXtoDVD accepts almost all MKV sources

    - Almost all-in-one with AVISynth DS that directly renders a MKV will work sometimes, and fail in much other cases

    Do you have all needed codecs installed and you can play them in WMP ? fine...then you are able to convert outside VSO bigbrother

    but does this simple script :

    DirectShowSource("High def source.mkv")

    work ?

    it's your case, it works 80% of the times. You must use another workaround

    it is easy to test, just Google for this keywords :

    mkv aac sample rapidshare

    you will get a bunch of samples that doesn't work with avisynth's DS directly

    any free tool that uses AviSynth's DS directly will fail in that samples over 99%, period...unless....
    Quote Quote  
  10. Always Watching guns1inger's Avatar
    Join Date
    Apr 2004
    Location
    Miskatonic U
    Search Comp PM
    I have also found that often an mkv that will not open in avisynth will happily open if demux and remuxed without all the associated crap. mkv authors love to dump all sorts of bullsh*t into their files - stills etc. I just extract the audio and video streams, and remerge to a clean file. This usually then processes fine.
    Read my blog here.
    Quote Quote  
  11. Member
    Join Date
    Jun 2005
    Location
    Portugal
    Search Comp PM
    Originally Posted by guns1inger
    I have also found that often an mkv that will not open in avisynth will happily open if demux and remuxed without all the associated crap. mkv authors love to dump all sorts of bullsh*t into their files - stills etc. I just extract the audio and video streams, and remerge to a clean file. This usually then processes fine.
    yeah...because you are a experienced user, but let them google for this keywords :

    mkv aac sample rapidshare

    99% of the samples doesn't work with AViSythn's DS, and period

    I tested them all, and failed

    unless you build your DS Graph filter and input that in AVISynth's DS like this :

    DirectShowSource("my_hd_movie.grf")

    of course, you must know how to make that DS Graph Filter, it is easy using GraphEdit...but it is hard to do dynamically by a all-in-one soft

    TFM was close, but fails also...there is bugs in the DS Graph, bad connection of pins

    and more : all-in-one must be able to select only audio and video from multi-tracks mkv containers...period !

    that's why I deprecated AVISynth' DS with MKV...this weekend
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!