Click here to Skip to main content
16,016,738 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
There is very easy way to cut a video using visual b?? please help me, im a newbie in programming ..

What I have tried:

none , i dont try any because i dont know what can i do,
im only a newbie and i think i need a simple code about cutting a video...
Posted
Updated 29-Jul-16 19:34pm
Comments
Patrice T 30-Jul-16 0:38am    
Indeed, just asking for code is the easy way. But it is also the wrong site.
Jim Meadors 30-Jul-16 1:09am    
If you are not up to the point of writing your own simple code that you can ask questions about to solve problematic parts of the code, then you should google for samples that do what you want. Then you can explore the code and experiment and study to see how to make it do what you want it to do.

1 solution

No. Video "cutting" is a complicated job in any language - you are best off to use an external program such as ffmpeg which will do it for you via Process.Start and providing the command line arguments:
VB
Process.Start("PathToExeFile\ffmpeg.exe", "-sameq -t 60 -i InputFile.avi OutputFile.avi")
will trim it to the first minute for example.
You can get ffmpeg here: Download FFmpeg[^] and the command line switches are described here: ffmpeg Documentation[^] but don't expect this to be trivial reading!
You may also need to install a codec pack on your computer to get it all to work.
 
Share this answer
 

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