After several days of research I decided to sign up to this forum and ask for help. I'm a C # developer and am developing an application where I have the opportunity to create more files from one file .
example :
If you have a file c : \ test ( extension can be mkv, avi , mp4 or similar )
the duration of the file is 90 minutes .
My program needs to click make 10 files with different duration as 5,15,30 sec , etc.
These files should be preserved at any location , for example a desktop .
In some cases it would be good if all these small files could put as output in one file , for example " output.mp4 " .
I always want to get from each file . Mp4 as the output file .
problem :
I am currently using http://vlcdotnet.codeplex.com/ dll and everything works just fine . When you come into a situation that I need to record file I have the possibility of adding an option for the media file . It's actually the same way that functions VLC out of the Command line .
That is why I am interested in how to write the command in cmd that I can get the clip as I have described.
I've read a lot about it , and found several varieties such as
: sout = # std { ... }
: sout = # duplicate { ... }
: sout = # record { ... }
but I could not get the desired effect .
When I try to run VLC player while playing I can push the record button for recording start and after few secnds push again to stop recording . It works perfectly .
How to do the same on the command line when the video has not even started . For now using - start -time and - run-time but that did not work as expected.
Any help please.