I am a windows developer new to the world of linux...using ubuntu...I have a task at hand that I need help with. I think it should be a pretty simple thing. I am using VLC to capture video from my analog camcorder. I can do it manually, but if I forget to stop, then I have like 3 hours of blank at the end of each file. I would like a script that would launch VLC, capture from the imput card, and then stop after a specified amount of time. I created a crude script that would start vlc, sleep, then close vlc. Unfortuantally, once vlc started it never got to the sleep. I imagine you may have to create a new thread or something, but then how do you send the "stop" message to it. Ideally, things like the time to capture and filename to capture to would be variables. Any help would be greatly appreciated.
This is whay I have so far.
vlc --pvr-device="/dev/video0" --pvr-radio-device="/dev/radio0" --pvr-norm=0 --pvr-frequency=-1 --pvr-bitrate=-1 --pvr-caching=300 --pvr-width=-1 --pvr-height=-1 --pvr-framerate=-1 --pvr-keyint=-1 --pvr-bframes=-1 --pvr-bitrate-peak=-1 --pvr-bitrate-mode=0 --pvr-audio-bitmask=-1 --pvr-audio-volume=-1 --pvr-channel=2 --sout file/mpg:/media/disk/MyFiles/[url removed, login to view] --sout-display
But all this does is launch VLC. Ifhave to hit the play button it will start the capture, but I just want to lauch the script and have it stop 35 mins after I launch it.
I image for some of you linux gurus out there, that this should be about a 15 minute project.
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables):
a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment.
b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request.
3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).
Linux, VLC, scripting