Thanks! It will have to run in a thread of it's own, because I'm decoding
a sliced VBI-stream at the same time, but that shouldn't be a problem
(Ha!) :-)
I'm going to give it a try tonight (it's about 10 AM here), I'll let you
know what the results are.
cheers,
Johan Duinkerken.
> what is wrong with something like :-
>
> char buffer[65536];
> int fd = open("/dev/video0", O_RDONLY);
> int fd1 = open("mympegfile.mpg",O_WRONLY);
> while (I_STILL_WANT_TO_READ)
> {
> read(fd,buffer,65536);
> write(fd1,buffer,65536);
> };
>
>
> There are ioctl's you can use to control things but
> for capturing something like the above should be ok.
>
> ivtv is a device driver and hence it's api is via
> ioctl's. There is no client side library to provide a
> real api to it.
>
>
> John
> --- Johan Duinkerken <[EMAIL PROTECTED]> 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!
>>
>> Best regards,
>> Johan Duinkerken.
>>
>>
>>
>>
> -------------------------------------------------------
>> 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_ids93&alloc_id281&op=click
>> _______________________________________________
>> ivtv-devel mailing list
>> [email protected]
>>
> https://lists.sourceforge.net/lists/listinfo/ivtv-devel
>>
>
>
> -------------------------------------------------------
> 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
>
--
"if it ain't broke, try harder..."
-------------------------------------------------------
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_ids93&alloc_id281&op=click
_______________________________________________
ivtv-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ivtv-devel