mapg
17th March 2015, 16:54
Hi all,
I would like to know if somebody could help me to translate this Avisynth (http://www.videohelp.com/tools/Avisynth) script to ffmpeg (http://www.videohelp.com/tools/ffmpeg).
Basically it is about to divide each video selecting its central third part (cropping it), and putting together that cropped area side by side alongside the same area from the other video. This gives us a good visual comparison.
In summary it's about the traditional side by side comparison but taking images from the area of video where most of actions happen.
I have attached a screenshot to clarify any doubt about this.
The Avisynth script for Full HD cases (1080p) is as follow ...VideoLeft=DirectShowSource("VideoLeft.avi", audio=false)
VideoLeft=VideoLeft.Crop(480,0,-480,0)
VideoRight=DirectShowSource("VideoRight.avi")
VideoRight=VideoRight.Crop(480,0,-480,0)
StackHorizontal(VideoLeft,VideoRight)
Turn180()
FlipHorizontal()
Subtitle("Video 1 - Left",30,1030,20,3000,"Gaduci",20,$FFFFFF)
Subtitle("Video 2 - Right",990,1030,20,3000,"Gaduci",20,$FFFFFF)
NOTE: I don't understand why I have to turn 180º and flip horizontally in Avisynth the resulting comparison but I have to do it.
If I could do the same using ffmpeg, that could be great, and this solution might be very interesting for many people since such comparisons side by side are helpful for debugging encoding parameters and decisions.
Thank you very much in advance.
Mapg
I would like to know if somebody could help me to translate this Avisynth (http://www.videohelp.com/tools/Avisynth) script to ffmpeg (http://www.videohelp.com/tools/ffmpeg).
Basically it is about to divide each video selecting its central third part (cropping it), and putting together that cropped area side by side alongside the same area from the other video. This gives us a good visual comparison.
In summary it's about the traditional side by side comparison but taking images from the area of video where most of actions happen.
I have attached a screenshot to clarify any doubt about this.
The Avisynth script for Full HD cases (1080p) is as follow ...VideoLeft=DirectShowSource("VideoLeft.avi", audio=false)
VideoLeft=VideoLeft.Crop(480,0,-480,0)
VideoRight=DirectShowSource("VideoRight.avi")
VideoRight=VideoRight.Crop(480,0,-480,0)
StackHorizontal(VideoLeft,VideoRight)
Turn180()
FlipHorizontal()
Subtitle("Video 1 - Left",30,1030,20,3000,"Gaduci",20,$FFFFFF)
Subtitle("Video 2 - Right",990,1030,20,3000,"Gaduci",20,$FFFFFF)
NOTE: I don't understand why I have to turn 180º and flip horizontally in Avisynth the resulting comparison but I have to do it.
If I could do the same using ffmpeg, that could be great, and this solution might be very interesting for many people since such comparisons side by side are helpful for debugging encoding parameters and decisions.
Thank you very much in advance.
Mapg