Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage

Reply
 
Thread Tools Search this Thread Display Modes
Old 5th March 2012, 12:02   #1  |  Link
avzabr
Registered User
 
Join Date: Feb 2012
Posts: 3
Opening mp4 videos with different Frame Rate for Quality Comparison

Hello,
Sorry if i have raised the topic which already exists..I have checked the forum - but have not found the answer.

The question is the following:
I have the MSU VQMT tool which compares the quality of the original and the optimized videos by checking the same frames of each video. And i am faced with the problem of comparison mp4 videos with Variable Frame Rate and Constant Frame Rate. I use the Avisynth script to open mp4 and i can see that program compares the wrong frames: frame of original videos with frame of optimized video, but several seconds later or prior. Therefore i get the wrong results of tool.

So the question is:
How to open the Original and Optimized variants of MP4 videos with Avisynth script to compare exactly the right frames?
The following cases could be:
1) The VFR mp4 is optimized to the VFR mp4
2) The CFR mp4 is optimized to the CFR mp4
3) The VFR mp4 is optimized to the CFR mp4

I assume that for the 1st case files should be opened in the following way:
clip = DirectShowSource("D:\Qualitytest\Test\orig\00001-LUjn3RpkcKY.mp4", converfps=true)
return clip
But original and optimized frames are very shifted.

For the second case:
clip = DirectShowSource("D:\Qualitytest\Test\orig\video.mp4")
framePerSecond=clip.FrameRate
clip1 = DirectShowSource("D:\Qualitytest\Test\optimized\video.mp4",fps = framePerSecond)
return clip1
The original and optimized frames are almost the same, but not exacly

For the 3rd case i even do not know what to do..

PS: I do not know in which way videos have been optimized. But need to compare the right frames and get the results..

Does anybody have any suggestions?
avzabr is offline   Reply With Quote
Old 5th March 2012, 15:19   #2  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,901
You need a frame accurate source filter.
Guest is offline   Reply With Quote
Old 5th March 2012, 17:10   #3  |  Link
avzabr
Registered User
 
Join Date: Feb 2012
Posts: 3
Quote:
Originally Posted by neuron2 View Post
You need a frame accurate source filter.
I am sorry, could you please provide any examples?
avzabr is offline   Reply With Quote
Old 5th March 2012, 17:50   #4  |  Link
poisondeathray
Registered User
 
Join Date: Sep 2007
Posts: 5,345
He means indexed and frame accurate like DGNVTools

However, if the "optimized VFR" version has different framecount (e.g. decimated duplicates), it won't matter
poisondeathray is offline   Reply With Quote
Old 5th March 2012, 18:20   #5  |  Link
SeeMoreDigital
Life's clearer in 4K UHD
 
SeeMoreDigital's Avatar
 
Join Date: Jun 2003
Location: Notts, UK
Posts: 12,219
If at some time in the future you intend to play your .MP4 files via a hardware player. Stick to CFR encodes for compatibility...
__________________
| I've been testing hardware media playback devices and software A/V encoders and decoders since 2001 | My Network Layout & A/V Gear |
SeeMoreDigital is offline   Reply With Quote
Old 6th March 2012, 02:01   #6  |  Link
Caroliano
Registered User
 
Join Date: Feb 2005
Location: São Paulo, Brazil
Posts: 392
ffmpegsource() would be my choice: http://code.google.com/p/ffmpegsource/

DDS2() is also frame accurate, but I don't know if its as stable as ffmpegsource. But I think it would be the only option if working with .WMV or some other not well supported proprietary format.

Last edited by Caroliano; 6th March 2012 at 02:04.
Caroliano is offline   Reply With Quote
Old 7th March 2012, 12:59   #7  |  Link
avzabr
Registered User
 
Join Date: Feb 2012
Posts: 3
Quote:
Originally Posted by Caroliano View Post
ffmpegsource() would be my choice: http://code.google.com/p/ffmpegsource/

DDS2() is also frame accurate, but I don't know if its as stable as ffmpegsource. But I think it would be the only option if working with .WMV or some other not well supported proprietary format.
Thanks a lot.
Looks like the ffmpegsource2 plugin is what i need.
Have checked all three cases by comparing videos opened simply with the following script:

LoadCPlugin("C:\FFMS2.dll")
Import("C:\FFMS2.avsi")
FFmpegSource2("D:\path\to\video.mp4")

Exactly the same frames are compared (can see it with help of "Results visualization" ). Got the results which were expected also. But have checked only several video files. Will update the topic when i get results for the set of videos.

avzabr is offline   Reply With Quote
Reply

Tags
cfr, mp4, quality, vfr

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 10:47.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.