Johan Duinkerken schrieb:
Hello,

hopefully somebody can point me in the right direction: for a (small)
project of mine, I need to capture the mpeg-stream of my PVR350 to a
mpeg-file. No big deal, if done manually: just

"cat /dev/video0 > something.mpg".

Problem is, that I want to do this from within my program. At the moment,
I open a shell (programmatically) and execute the "cat"-command, as
described above. To stop capturing, I terminate the shell. It's definitely
not very sophisticated and it acts like that: sometimes it works
perfectly, sometimes it starts capturing but doesn't stop and sometimes it
wont't start capturing at all.

Question: what is the proper way to start/stop capturing a mpeg-stream
from a PVR350 to a file? (is there a ivtv-api perhaps? Been looking, but
couldn't recognise anything as such).

Help would be very much appreciated!

Best regards,
Johan Duinkerken.

Johan,

just sysopen /dev/video0, read a block and syswrite that block to a file handle. That's it.
To stop install a signal handler (e.g. in Perl $SIG{ALRM}) and you will be fine.


Regards
Marco


------------------------------------------------------- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click _______________________________________________ ivtv-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ivtv-devel

Reply via email to