VideoHelp Forum
+ Reply to Thread
Results 1 to 11 of 11
Thread
  1. Hello,

    I'm Still new to encoding/converting, hope you all help me

    i have 3D Left and Right MKV that i would like to convert it to one single file mkv (HALF SBS)

    the file is example

    JohnDoe.Left.mkv (1080p, with sound)
    JohnDoe.Right.mkv (1080p, no sound)

    i would like to make it as
    JohnDoe.HSBS.mkv (1080P, with sound)

    so resize and join the left and right as a single file

    so my question is ?

    1. Is is possible?
    2. What tools i need?
    3. I keep hearing use avisynth, if yes could you provide the script to resize and join?

    Thanks
    Quote Quote  
  2. regarding 1.: yes, assuming I understood what you want
    regarding 2.:
    1. Avisynth
    2. FFMpegSource needs to be extracted into the Avisynth plugins folder
    3. a video encoder or encoder gui that can handle avisynth scripts as input and output mkv files in what ever format you aim for

    regarding 3.:
    Assuming I understood you right, that you got two files
    [1.] JohnDoe.Left.mkv with a resolution of 1920x1080 (and audio)
    [2.] JohnDoe.Right.mkv with a resolution of 1920x1080
    and you want to stack them horizontal [1. 2.] which would result in a resolution of 3840x1080 and then resize to 1920x1080, this should work:
    Code:
    #load sources:
    left = FFVideoSource("Path to JohnDoe.Left.mkv", threads=1) #FFVideoSource: http://ffmpegsource.googlecode.com/svn/trunk/doc/ffms2-avisynth.html
    audio = FFAudioSource("Path to JohnDoe.Left.mkv")  #FFAudioSource: http://ffmpegsource.googlecode.com/svn/trunk/doc/ffms2-avisynth.html
    right = FFVideoSource("Path to JohnDoe.Right.mkv", threads=1)
    #join video:
    lr = StackHorizontal(left, right) #http://avisynth.org/mediawiki/StackHorizontal
    #resize video:
    lr = BicubicResize(lr, 1920, 1080) # http://avisynth.org/mediawiki/Resize
    #join audio&video:
    AudioDub(lr, audio) #http://avisynth.org/mediawiki/AudioDub
    #output
    return last
    Cu Selur
    Last edited by Selur; 3rd Apr 2012 at 07:12.
    Quote Quote  
  3. Member Cornucopia's Avatar
    Join Date
    Oct 2001
    Location
    Deep in the Heart of Texas
    Search PM
    Selur, you are seem to be a much faster typist than I am...but I concur.

    Then you would load the .AVS in an app that supports it (Vdub, e.g.) to convert/save to the file format you want (of course, if you use Vdub, output will ONLY be AVI, and you'll need to remux to MKV, etc).

    Scott
    Quote Quote  
  4. Hi thanks for the quick reply,
    after installing avisynth 2.58 and extracted ffmpegsource to avisynth plugin folder
    and i run the script above using kmplayer
    it show script error: there is no function named "FFMpegVideo" Line 2

    i also tried vdub and AvsPmod both showing the same error, seem there is no FFMpegVideo function or i need something else?

    i'm using windows 7 x64
    Quote Quote  
  5. Typo should have been a FFVideoSource, fixed it in the previous post,...
    Last edited by Selur; 3rd Apr 2012 at 02:46.
    Quote Quote  
  6. Member
    Join Date
    Jul 2009
    Location
    Spain
    Search Comp PM
    Originally Posted by Selur View Post
    Code:
    #load sources:
    left = FFVideoSource("Path to JohnDoe.Left.mkv", thread=1) #FFVideoSource: http://ffmpegsource.googlecode.com/svn/trunk/doc/ffms2-avisynth.html
    audio = FFVideoSource("Path to JohnDoe.Left.mkv")
    right = FFAudioSource("Path to JohnDoe.Right.mkv", thread=1)  #FFAudioSource: http://ffmpegsource.googlecode.com/svn/trunk/doc/ffms2-avisynth.html
    #join video:
    lr = StackHorizontal(left, right) #http://avisynth.org/mediawiki/StackHorizontal
    #resize video:
    lr = BicubicResize(lr, 1920, 1080) # http://avisynth.org/mediawiki/Resize
    #join audio&video:
    AudioDub(lr, audio) #http://avisynth.org/mediawiki/AudioDub
    #output
    return last
    You've got your audio and video sources the wrong way round.
    Should be
    audio = FFAudioSource("Path to JohnDoe.Left.mkv")
    right = FFVideoSource("Path to JohnDoe.Right.mkv", thread=1)
    Quote Quote  
  7. Thank you very much Selur and everyone else
    tried it using megui due to vdub can't do mkv output and it worked great
    although the encoding take time (2 hour on 2x 3gb mkv source)

    oh yeah i also delete the thread=1, because its showing ffvideosource doesn't have that option

    thanks again
    Quote Quote  
  8. don't delete it, at an 's', needs to be "threads=" (there is a reason I added links to the manual,...)
    Quote Quote  
  9. ah its for multi thread, i probably should read the manual sorry
    thanks mate
    Quote Quote  
  10. yeah and the problem is that with threads not 1 you will run into problems since the FFVideoSource code isn't really stable when it comes to threading,.. -> threads=1 is the savest way to go and still fast.
    Quote Quote  



Similar Threads

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