i have 100+ videos (mkv) which i will encode into mp4 (using megui) file and then i want to join a intro video with each file. what will be the easy way to do that? is there any way to do that in one click without losing video quality and second time witout re-encode?
Note: intro video is 1080p, and join file can be 480p to 720p
possible using avisynth?
+ Reply to Thread
Results 1 to 8 of 8
-
Last edited by iKron; 9th Sep 2018 at 00:14.
-
You cannot join two videos of different resolutions without re-encoding to the same resolution, almost all players will assume that one media file has only one resolution for the whole playing time.
AviSynth will always decode everything, so you will have to encode the result in every case.
Re-encoding with a lossy codec, you will always lose quality (whether or not you may notice the loss, is a different question). -
You'd have to use scripting. Using operating system scripts or scripts of your choice (Python for example) but they do not come with the system, you'd need to get it. Then you'd just fire up that script and that would load a file but played it with intro first.
You can choose windows batch script for it, always paste it among those videfiles together with that intro. You'd also could use portable player, like mpv player, included as well and that playback would be almost seamless.
Internet has this this sort of already in progress using scripting. Web players play files one after each other. Scripts decide what files to play (ads, intro, outro). -
sorry for my bad english.
i will encode my mkv files, so is it possible to add intro video while i encoding those mkv file? -
first encode both separately (MeGui), then join them(mkvmerge)
MKVmerge is not an encoder. I do not know any setup , that could do it at once, well using Avisynth sure, but not sure if you'd go there. Those encoders might be out there mind you, wait for a while for some response. Some encoders that allow joining files before encode. The problem might be that those video inputs have different parameters.Last edited by _Al_; 9th Sep 2018 at 12:39.
-
If I were to re-encode anyways I would join in AviSynth before encode. Spares a lot of hassles with non-seamless or incompatible encodings. Like was said in post #3 you can batch create such AviSynth scripts with Windows' tools. Basically run a FOR loop and ECHO the AviSynth lines into .avs files. Then you can run them through e.g. MeGUI. Use one clip for the intro and another for the actual file. Then resize and change fps in intro as needed to fit the file using the clip properties. Then use aligned splice to splice them together.
http://avisynth.nl/index.php/Clip_properties
http://avisynth.nl/index.php/Resize
http://avisynth.nl/index.php/AddBorders (if aspect ratio is different and you want to add black bars instead of changing it)
http://avisynth.nl/index.php/FPS
http://avisynth.nl/index.php/Splice
Similar Threads
-
Right way to join two different video files using ffmpeg?
By yetanotherlogin in forum EditingReplies: 15Last Post: 25th Jun 2021, 02:25 -
Video batch files.
By pcspeak in forum Video ConversionReplies: 62Last Post: 14th Feb 2018, 20:24 -
(Help Needed with ffmpeg) how do i batch merge audio files to video files
By wander799 in forum Newbie / General discussionsReplies: 5Last Post: 20th Nov 2016, 14:40 -
Software to Batch join and encode
By oohrah in forum Video ConversionReplies: 6Last Post: 3rd Apr 2016, 08:51 -
How To Join MP4 video files
By Aashik Alam in forum EditingReplies: 10Last Post: 28th Oct 2015, 08:20