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. |