Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Leaderboard


Popular Content

Showing content with the highest reputation on 12/08/2015 in all areas

  1. 1 point
    How it's done on this site is by using an AviSynth script. There are some limits...some of these can be worked around with more advanced scripting done in the AviSynth script...but we won't touch on that stuff. Mainly all Video streams should be the same resolution along with the same FPS and the Audio streams the same number of channels, as well as volume. In other words you are not mixing one Video stream of 640x480 with another that is 800x600...or an Audio Stream that is 5.1 with another that is Mono. Things will just go sideways...or require more explanation of how to work around than I'm willing to do. Okay first off assuming you have a Title video you wish to use...the audio & video need to be loaded into the script & muxed. Audio_Title = DirectShowSource( "C:\SomeVideoSomeWhere\Title.avi" )Video_Title = DSS2 ( "C:\SomeVideoSomeWhere\Title.avi" )Mux_Title = AudioDub( Video_Title , Audio_Title )You can use whatever your preferred method is of loading media into AviSynth...the main thing is to get it loaded and muxed with an identifiable name. Next you'll so the exact same thing with every game play video you have. Audio_Game_1 = DirectShowSource( "C:\SomeVideoSomeWhere\Game_1.avi" )Video_Game_1 = DSS2 ( "C:\SomeVideoSomeWhere\Game_1.avi" )Mux___Game_1 = AudioDub( Video_Game_1 , Audio_Game_1 )Audio_Game_2 = DirectShowSource( "C:\SomeVideoSomeWhere\Game_2.avi" )Video_Game_2 = DSS2 ( "C:\SomeVideoSomeWhere\Game_2.avi" )Mux___Game_2 = AudioDub( Video_Game_2 , Audio_Game_2 )...Next the Script needs to know what the frame rate is...so this must be gotten from ether the title or one of the game play muxes...doesn't matter since they are all suppose to be the same...right?? FPS = FrameRate( Mux___Game_1 )Next we need to use the Dissolve Filter and set it to 1.5 seconds worth of frames. FX_1 = Dissolve( Mux___Game_1 , Mux___Game_2 , ... , Mux_Title , Round( FPS * 1.5 ))Next add Fade In & Fade Out for half a second. FX_2 = FadeIn2( FX_1 , Round( FPS / 2 ))FX_3 = FadeIO2( FX_2 , Round( FPS / 2 ))Finally we limit the FPS of the video...ideally this is 60FPS but if your recordings are not at that speed that is fine as well...just limit it to something that can be maintained and is a typical FPS for video recording. ChangeFPS( FX_3 , 30 , true )In the above example I limited the FPS to 30. You'll also notice that I didn't assign the last action to a variable...this effectively returns all our voodoo to the outbound streams. In the end you should end up with an AviSyth script that looks something like this, Audio_Title = DirectShowSource( "C:\SomeVideoSomeWhere\Title.avi" )Video_Title = DSS2 ( "C:\SomeVideoSomeWhere\Title.avi" )Mux_Title = AudioDub( Video_Title , Audio_Title )Audio_Game_1 = DirectShowSource( "C:\SomeVideoSomeWhere\Game_1.avi" )Video_Game_1 = DSS2 ( "C:\SomeVideoSomeWhere\Game_1.avi" )Audio_Game_2 = DirectShowSource( "C:\SomeVideoSomeWhere\Game_2.avi" )Video_Game_2 = DSS2 ( "C:\SomeVideoSomeWhere\Game_2.avi" )...Mux___Game_1 = AudioDub( Video_Game_1 , Audio_Game_1 )Mux___Game_2 = AudioDub( Video_Game_2 , Audio_Game_2 )...FPS = FrameRate( Mux___Game_1 )FX_1 = Dissolve( Mux___Game_1 , Mux___Game_2 , ... , Mux_Title , Round( FPS * 1.5 ))FX_2 = FadeIn2( FX_1 , Round( FPS / 2 ))FX_3 = FadeIO2( FX_2 , Round( FPS / 2 ))ChangeFPS( FX_3 , 30 , true )Now if you want to do it without Fade In & Out...then you would end up with something like this. Audio_Title = DirectShowSource( "C:\SomeVideoSomeWhere\Title.avi" )Video_Title = DSS2 ( "C:\SomeVideoSomeWhere\Title.avi" )Mux_Title = AudioDub( Video_Title , Audio_Title )Audio_Game_1 = DirectShowSource( "C:\SomeVideoSomeWhere\Game_1.avi" )Video_Game_1 = DSS2 ( "C:\SomeVideoSomeWhere\Game_1.avi" )Audio_Game_2 = DirectShowSource( "C:\SomeVideoSomeWhere\Game_2.avi" )Video_Game_2 = DSS2 ( "C:\SomeVideoSomeWhere\Game_2.avi" )Audio_Game_3 = DirectShowSource( "C:\SomeVideoSomeWhere\Game_3.avi" )Video_Game_3 = DSS2 ( "C:\SomeVideoSomeWhere\Game_3.avi" )...Mux___Game_1 = AudioDub( Video_Game_1 , Audio_Game_1 )Mux___Game_2 = AudioDub( Video_Game_2 , Audio_Game_2 )Mux___Game_3 = AudioDub( Video_Game_3 , Audio_Game_3 )...Game__Frames = Framecount( Mux___Game_1 )Clip_Count = Int( Game__Frames / 3 )FPS = FrameRate( Mux___Game_1 )Game_Part_1 = Mux___Game_1.Trim( 0 , Clip_Count )Game_Part_2 = Mux___Game_1.Trim( Clip_Count + 1 , Game__Frames - 1 )FX_1 = Dissolve( Game_Part_2 , Mux___Game_2 , Mux___Game_3 , ... , Mux_Title , Game_Part_1 , Round( FPS * 1.5 ))ChangeFPS( FX_1 , 30 , true )Lets not forget resizing if it's required...should your video prove to be over 480p high. x = float( width ) / float( height )spline64resize( round( x * 480.0 / 4.0 ) * 4 , 480 )Use whatever your preferred resize filter maybe...but slap the code onto the ass end of the script. I hope this helps.
×
×
  • Create New...