0

I have a video stream from a video4linux device

/dev/dsp/adapter0/dvr0

I want to programmatically dump this stream for a predefined amount of time.

I think to schedule the jobs I might use cron and update it each day?

Any advice on how to achieve this ?

fabrizioM
  • 101
  • 2

1 Answers1

0

Use a cron job to fire a script that calls tcpdump with the command-line options that are relevant to you. The documentation for tcpdump should help you with the specifics.

mfinni
  • 36,144
  • 4
  • 53
  • 86
  • What does this have to do with network traffic? – Mark Wagner Apr 28 '11 at 19:26
  • If you're asking "what does tcpdump have to do with network traffic?", then I will also advise you to read the documentation as well. tcpdump is a network sniffer. – mfinni Apr 28 '11 at 19:41
  • By "this" I mean the question. – Mark Wagner Apr 28 '11 at 20:08
  • So, did you mean to attach your comment to the question instead of my answer? I see "dump" and "stream" and I assumed it was a question related to the network traffic that happened to be video. I might be off-base. Who knows - Fabrizio never came back to this site, it appears. – mfinni Apr 28 '11 at 20:35