Welcome Guest ( Log In | Register )


Important

The forums will be closing permanently the weekend of March 15th. Please see the notice in the announcements forum for details.

 
Input Driver: Append Feature Problem
« Next Oldest | Next Newest » Track this topic | Email this topic | Print this topic
shekh
Posted: Jan 4 2015, 03:08 PM


Advanced Member


Group: Members
Posts: 89
Member No.: 37903
Joined: 21-April 14



I was able to implement it, but there are some problems.
Please improve plugin interface so that Append could be implemented properly.

When the file is opened with "auto scan" option, I can mimic VD segment detection and append several files. This works.
But when I use "append avi segment" the problems begin.

1) (minor) The file open dialog shows wrong file pattern (avi). Should be the plugins file pattern/title etc.
2) The timeline is not updated after successful append.
This requires changes in VD source, I put this function and the thing seems to work (not tested everything yet):

CODE

void VDVideoSourcePlugin::streamAppendReinit() {
 vdwithinputplugin(mpContext) {
   IVDXStreamSourceV3 *xssv3 = (IVDXStreamSourceV3 *)mpXS->AsInterface(IVDXStreamSourceV3::kIID);
   if (xssv3)
     xssv3->GetStreamSourceInfoV3(mSSInfo);
   else
     mpXS->GetStreamSourceInfo(mSSInfo.mInfo);
 }

 mSampleLast = mSSInfo.mInfo.mSampleCount;
 streamInfo.dwLength = VDClampToUint32(mSSInfo.mInfo.mSampleCount);
}


3) (very minor) If the formats of segments are different, they cannot display.
Would be perfect if VD could accept dynamically changing pixmap format/layout.
I display error message at decoding, not bad.
 
     Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
0 replies since Jan 4 2015, 03:08 PM Track this topic | Email this topic | Print this topic

<< Back to Testing / Bug Reports