-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Johan Duinkerken wrote:
> 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!

If programming in perl, you want to look at the record-v4l2.pl script as an
example of how to do this, plus it does all the ioctl setups you might need via
the Video::ivtv perl module.

Basically you just open the file and read from it, like the other posters said. 
:)



- --
James A. Pattie
[EMAIL PROTECTED]

Linux -- SysAdmin / Programmer
Xperience, Inc.
http://www.pcxperience.org/

GPG Key Available at http://www.pcxperience.com/gpgkeys/james.html
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCgNmCtUXjwPIRLVERAgGEAJwOugwmAikFxTQo9p/SzuFvw77JXwCgvBWx
5s1sBXqloaxScp+qZ2EaaQI=
=l+fg
-----END PGP SIGNATURE-----

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.



-------------------------------------------------------
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