Click here to Skip to main content
15,886,788 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.
Posted
Updated 8-Dec-11 0:10am
v2
Comments
Resmi Anna 8-Dec-11 7:46am    
some samples codes are there in
http://msdn.microsoft.com/en-us/library/windows/desktop/dd757648(v=vs.85).aspx
Please check. It may help you.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900