Is it possible to do a sort of image quality comparison with MPEG2 (TS) and MPEG4 (H264 TS) files ?
What I 'd like to do is show half of video1 side by side with half of video 2, without changing the aspect ratio, in order to better compare image quality from 2 different capture sources from the same TV program (1 cable, the other satellite).
So for instance I can do this manually for a single frame, but I 'd like to make a movie from 2 different captures (I 'll cut them before so that they start at exactly the same frame).
Example : from previous Eurovision Song Contest I captured video from één HD on cable (1080i) and satellite (720p).
I took 2 screenshots from the exact same frame, then I resized the satellite screenshot to match the 1920x1080 I obtained from cable, and then took the right half of the satellite version and copied it onto the cable version to create the first image :
I then did the same thing with the SD versions (576i in both cases to create this merged picture) :
Of course I could do this manually (with 1 minute of recording for each movie, I would have to first extract all 1500 frames for each movie, then cut and past per 2, and afterwards create a new movie from it, which seems like an incredible amount of work.
Is there any script I could use for Avisynth or so that could accomplish this ?
+ Reply to Thread
Results 1 to 11 of 11
-
-
Wow, thanks for the quick reply.
I'll have a go later on and check it out. -
For quality comparison I prefer to interleave frames so you can easily switch back and forth between the same frame in both files:
v1=WhateverSource().Subtitle("v1")
v2=WhateverSource().Subtitle("v2")
Interleave(v1,v2)
Then I use VirtualDub to scrub through the videos.
The videos must have the same dimensions, of course. -
Well, I tried the first script and it immediately gives me an error :
Crop : you cannot use crop to enlarge or 'shift' a clip.
The script looks like this :
v1=DirectShowSource("e:\downloads\test1_cut.mpg"). Crop(0,0,360,-0)
v2=DirectShowSource("e:\downloads\test2_cut.mpg"). Crop(360,0,360,-0)
StackHorizontal(v1,v2)
The SD files should both be 720x576 in this example -
Try this :
v1=DirectShowSource("e:\downloads\test1_cut.mpg"). Crop(0,0,-360,-0)
v2=DirectShowSource("e:\downloads\test2_cut.mpg"). Crop(360,0,-0,-0)
StackHorizontal(v1,v2)"Shut up Wesley!" -- Captain Jean-Luc Picard
Buy My Books -
Alternate technique is a simple horizontal or vertical wipe if you have an editing program.
You want to view encoder performance over motion and with variable scene lighting.Recommends: Kiva.org - Loans that change lives.
http://www.kiva.org/about -
I tried gadgetguy's script, and that did work.
Unfortunately the idea I started with might not be a good one, because Avisynth has to recompress the original video, leading to quality loss, making it difficult to distinguish between bad quality to begin with and bad quality as a consequence of recompression. -
You can view the script. Play the .avs in a media player
For minor differences, you will probably have to examine individual frames anyways, e.g. interleave() as jagabo suggested earlier
Your HD comparison might be flawed as well, because the choice of resizer and deinterlacer adds variables and impairs the comparison -
Originally Posted by gadgetguy
boulder, are you sure the width isn't 704 or some other number? -
You are right, after I checked with the second script, I noticed it was 704x576.
Similar Threads
-
How to Maintain Correct Aspect Ratio in PotPlayer with Full Screen
By drstew12 in forum Software PlayingReplies: 1Last Post: 20th Dec 2011, 19:25 -
About 300 videos with wrong aspect ratio. What would you do?
By ralf07 in forum Video ConversionReplies: 3Last Post: 17th Nov 2011, 00:43 -
Can't get aspect ratio 16:9 to fill the screen when play DVD movies.
By Herbert Smith in forum DVD & Blu-ray RecordersReplies: 2Last Post: 15th Sep 2010, 06:37 -
How Do I Split screen Half Rolling Credits-Half Video in Vegas
By Ray & Paula in forum EditingReplies: 1Last Post: 7th Apr 2008, 08:35 -
352x480 Half D1 Mpeg2 to Divx - How do I keep proper aspect ratio (40:33)?
By stizz in forum MacReplies: 16Last Post: 8th Feb 2008, 01:24