im trying to mux 2 video files into one in Megui.
Is this possible? I know i could use virtialdub and whatever but i dont want to. It has to be megui.
I want to add 1 Short Video infront of one raw video file with subtitles added.
Any suggestions ?
+ Reply to Thread
Results 1 to 9 of 9
Thread: Add second Video in Megui
As long as the video and audio in each MKV is the same, you can simply encode them separately and join the MKVs together with MKVMergeGUI. Assuming your output is MKV, of course. Virtualdub(Mod) will also join AVIs.
As well as _Al_'s suggestion, you can create a script to encode each of the source files seperately, then use the AVISynth import function to import them and join them together as a single encode. Assuming you have two scripts such as "video 1.avs" and "video 2.avs", you'd manually create a script to import and join them, then use MeGUI to encode the manually created script. The new script might look like this:
Import("D:\video 1.avs") ++ Import("D:\video 2.avs")
_Al_'s method may make encoding and syncing the audio a little easier.
Thanks for the replies guys.
The reason i want to use just one programm "megui" is that i want to go afk after clicking encode.
What should happen:
Take Video1 and put Subtitle on it
After this is done put video1 (now with subtitle) and add video2 infront.
The Script: "AVISource("C:\ video1.mp4")++AVISource("C:\ video2.mp4")"
I tried with 2 Files... MP4 and Avi
"Could not open File"
I tried the other one but the same problem.
Naturally you can't open MP4 files using AVISource.
Open the original videos using the File/Open menu and create a script for encoding each after MeGUI has indexed them and extracted the audio. Add the subtitles to the script for the first one etc. You can then create a single script to encode them together as per my previous post.
I think it might be easier though to simply encode them as two separate encoding jobs, as then if need be you can re-encode the audio or get MeGUI to add the original audio when it's done and the audio for each should be in sync. As long as the two encoded files are the same (ie same encoder settings and resolution and the same audio) then it's fairly easy to join them together. MKVMergeGUI will do it for MKVs. YAMB will probably do it for MP4s. You can add both jobs to the queue and still leave MeGUI to it, and there's no re-encoding again to join them so there's probably no need to encode them as a single file.
I do something similar quite a bit, even when encoding single files. I create several scripts to encode the file in sections (using the Trim function or MeGUI's AVS Cutter) so I can crop each differently or add different filtering. They just need to be resized to the same resolution for encoding. Then I use MKVMergeGUI to join the encoded sections of video, add the audio, and output it all as a single MKV.
Last edited by hello_hello; 3rd Mar 2013 at 07:29.
Okay i realy need some help with this.
My current working AVS looks like this:
DirectShowSource("C:\Users\Administrator\Desktop\r awvideo.mp4", fps=23.976, audio=false, convertfps=true).AssumeFPS(24000,1001)
TextSub("C:\Users\Administrator\Desktop\subtitlefile.ass" , 1)
After this i need to add one short clip in front of the muxed video. It must be mp4 because the first scripts outputs a mp4 file. Is there a way?
The script doesn't output any file type. The file type is set in MeGUI's main window in the video section.
Just encode the above script. Make sure you've used the same encoder settings and resolution as when you encoded the first one, then use YAMB to join them if you want MP4 as the output. The resolutions will need to be the same whether you encode them as a single file or join them later.
Personally I much prefer working with MKVs. MKVMergeGUI will also open MP4 files. If you want to append an MP4 to an MKV you may have to remux the MP4 as an MKV with MKVMergeGUI first. I'm not sure if it'll append an MP4 to an MKV directly, although it probably will. Of course the final output will be MKV.
I added some info to my previous post in case you missed it before posting. I really don't think there's any need to encode the files together. Just join them later.
The Problem is i cant use a MKV to upload to my hosters. and it would take forever if i use a second tool to encode a second time to get 1 Video out of 2. It needs to be fast and easy + hardsub
Fair, enough. I've also explained how to join MP4 and AVI files so I guess my solution won't work for you.