Hi!, i'm trying to stack two videos and play them at the same time, side by side. They also need some syncing.
Webcam video info:
Computer screen captureCode:Video: Windows Media Video 9 720x576 30fps 936kbps [Raw Video 1] Audio: WMA 2 44100Hz stereo 64kbps [Raw Audio 0] General Complete name : C:\Users\MMedia\Desktop\xornada_r\bck\VConf_CNTG_LenguajeR_10102013_(Maņan)_[Video].wmv Format : Windows Media File size : 1.18 GiB Duration : 4h 2mn Overall bit rate mode : Constant Overall bit rate : 697 Kbps Maximum Overall bit rate : 1 012 Kbps Encoded date : UTC 2013-10-11 15:19:02.761 Video ID : 2 Format : VC-1 Format profile : MP@HL Codec ID : WMV3 Codec ID/Info : Windows Media Video 9 Codec ID/Hint : WMV3 Description of the codec : Windows Media Video 9 Duration : 4h 2mn Bit rate mode : Constant Bit rate : 936 Kbps Width : 720 pixels Height : 576 pixels Display aspect ratio : 5:4 Frame rate : 29.970 fps Nominal frame rate : 30.000 fps Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Scan type : Progressive Compression mode : Lossy Bits/(Pixel*Frame) : 0.075 Stream size : 1.59 GiB Language : Spanish Audio ID : 1 Format : WMA Format version : Version 2 Codec ID : 161 Codec ID/Info : Windows Media Audio Description of the codec : Windows Media Audio 9.2 - 64 kbps, 44 kHz, stereo (A/V) 1-pass CBR Duration : 4h 2mn Bit rate mode : Constant Bit rate : 64.0 Kbps Channel(s) : 2 channels Sampling rate : 44.1 KHz Bit depth : 16 bits Stream size : 111 MiB (9%)
As you can see both videos are completly different (i don't want to mention the person who recorded them with those formats.... sigh). The first is a webcam recording from someone speaking and the other one is a capture of the computer screen with a presentation.Code:Video: Flash Video 1 1024x768 15fps 8647kbps [V: flv, yuv420p, 1024x768, 8647 kb/s] General Complete name : C:\Users\MMedia\Desktop\xornada_r\bck\VConf_CNTG_LenguajeR_10102013_(Maņan)__[DatosVNC].flv Format : Flash Video File size : 973 MiB Duration : 4h 15mn Overall bit rate : 533 Kbps Video Format : Sorenson Spark Codec ID : 2 Duration : 4h 15mn Bit rate : 8 445 Kbps Width : 1 024 pixels Height : 768 pixels Display aspect ratio : 4:3 Frame rate mode : Constant Frame rate : 1 000.000 fps Bit depth : 8 bits Bits/(Pixel*Frame) : 0.011 Stream size : 15.1 GiB
And this is my Avisynth script at the moment on MeGUI:
The reason about Trim is becaused i need to sync them, and since the .flv one starts about 725sec (12min and 5 seconds) sooner i just cut the beginning.Code:global MeGUI_darx = 8 global MeGUI_dary = 3 input1="video.wmv" DirectShowSource(input1) LanczosResize(768,576) ConvertToYV12 duration=0 a=Trim(round(duration*FrameRate),0) input2="video.flv" DirectShowSource(input2) LanczosResize(768,576) ConvertToYV12 duration=725 b=Trim(round(duration*FrameRate),0) StackHorizontal(a,b)
I'm also encoding the final video to mp4 (H264).
So far, i achieved my goal but there is a problem, and i guess it is related to the FPS difference (30 on the .wmv vs 15 on the .flv) on the conversion, on the final video, the "b" video plays 2x faster.
I can't figure how to fix this, i know about ConvertFPS but don't know how it can be used here. Maybe i should encode both videos separately first to match the fps with the next script?:
Thanks!Code:DirectShowSource("NTSC_clip.avi") Bob(height=576) LanczosResize(768,576) ConvertFPS(50) SeparateFields.SelectEvery(4,0,3) Weave
+ Reply to Thread
Results 1 to 2 of 2
-
-
try this one.
http://forum.doom9.org/showthread.php?t=171765
DualView Screenshot
http://hammultiplayer.org/Images/M_DualV.png
Similar Threads
-
Product(s) to stream recorded videos, all at same given point in time?
By nbyrd2000 in forum Video Streaming DownloadingReplies: 12Last Post: 27th Jul 2015, 07:31 -
Merge two videos to play at the same time (not sequential)
By barjawi in forum Newbie / General discussionsReplies: 11Last Post: 3rd Jan 2015, 23:49 -
time synhronisation of videos
By Julyy in forum Newbie / General discussionsReplies: 1Last Post: 14th Aug 2014, 11:07 -
Converting image to videos with different time rate using ffmpeg
By radiaku in forum Video ConversionReplies: 2Last Post: 2nd Jan 2013, 12:31 -
NO VIDEOS are playing in my PC
By swalih in forum Newbie / General discussionsReplies: 28Last Post: 22nd Mar 2012, 08:33