I am able to cut video using
EditStreamCut
, but it's not getting saved when I am giving value of cutting stream as non zero.
When value of cutting stream is 0 to length, then it cut and save successfully.
I have created video trimming function,
some line from the code are
hr= EditStreamCopy(source_editable_stream,&p,&pl,&pAvi_trimed);
::AVIStreamInfo(pAvi_trimed,&m_AviInfo,sizeof(AVISTREAMINFO));
hr=AVISave(lpFileName_save, NULL, NULL, 1, pAvi_trimed, NULL);
Now if I set
p=0
and play any long value,I get proper trimmed video.
But if I set "
p=any other value than 0
", I got
E_FAIL
during AVISave.