Convert video files in this case converting 3D SBS into Anaglyph can be done easily with Microsoft Expression Encoder 4. All we need is Avisynth and several additional plugins which will support the stereoscopic 3D video conversion. Although there are some commercial 3d video converter which is offering best and fast result, Microsoft Expression Encoder 4 bring the most reliable free video editor combined with Avisynth. But before we can start converting 3D SBS videos into anaglyph, several libraries and plugins need to be configured first.
AviSynth is a powerful tool for video post-production. It provides ways of editing and processing videos. AviSynth works as a frameserver, providing instant editing without the need for temporary files (Avisynth Wiki).
Our 3D video converter work by encoding Avisynth scripts which contain Pantarheon 3DToolbox function. The script can be either a simple video referrer (converting non 3D video) or a video manipulation script with complex functions. But the more functions we put into the script, the more time will be used for encoder to convert the video.
If you’ve followed my earlier step-by-step configuring MPC for 3D videos, then this time you only need FFmpegSource, MS Expression Encoder 4 and the additional Notepad++ as the script editor. Since most of the others softwares are installed already on the earlier tutorial.
Download and install all listed softwares above except for FFmpegSource. It have to be installed manually as shown by the following steps.
1. Extract FFmpegSource compressed file into a folder.
2. Copy all its content into Avisynth plugins directory (i.e. C:\Program Files\AviSynth 2.5\plugins).
3. This will make FFmpegSource auto-loaded every time an application execute Avisynth script. The plugin is needed to load and synchronize video and Audio from source. It just an alternative for the default “DirectShowSource” function, since it giving me out of sync problem on audio every time.
Run notepad++ or any text editor such as windows notepad. Write or copy the following codes into editor.
video = "D:\path\to_any_video_folder\video_name.mp4" FFIndex(video) SBS = AudioDub(FFVideoSource(video), FFAudioSource(video)) C = ConvertToRGB(SBS) w = C.width() h = C.height() LeftRight3DToRCAnaglyph(C).Lanczos4Resize(w, h)
As you can see the script was taken from the earlier post (anaglyph with MPC) with some additions. SBS video will be converted into Red/Cyan Anaglyph. Read my earlier post also for configuring Pantarheon AviSynth 3DToolbox on various Anaglyph colors.
Now change “D:\path\to_any_video_folder\video_name.mp4” into the real video file path. Save the script into avs file extension (i.e. my_video.avs).
Before continue to video encoding, we should first test the video with Media Player Classic (MPC HC). Just to make sure no error in the script.
Run MPC and open the avs file through File -> Open File menu -> Browse to saved avs folder and change file type into “All Files (*.*)” .So we can see all files in the folder including the avs script. Select avs file and click “OK“. MPC now should play the video.
Now that MPC show no error, we can start to convert video file using MS Expression Encoder.
Open Microsoft Expression Encoder (on Program Files), and select Transcoding Project.
To open avs file click File menu and then Import (or CTRL+I). Browse to folder where the avs file saved, select the avs file and then click Open. Play the video for a while to see if the video playable on MS Expression Encoder.
You can change the output video profile on the encode menu tab in the right side of MS expression encoder. On output tab you can set a folder for the encoded video output .Video output will automatically stored on a sub-folder named by time-stamps. And also for advanced configuration you can set Encoding Quality and Encoding for Devices for output file format and quality in the Presets menu.
Now click the “Encode” button on left bottom of the MS Express Encoder start encoding process. Encoding time may vary depends on many things such as video length, resolution and also the the computer resource it self. If encoding process finished you can then burn the video file into DVD, put into USB flash media and play it on non 3D TV, Laptop or maybe Mobile media such as Tablet or SmartPhones. Just remember to put on the Anaglyph glasses before watching the videos.