[Ffmpeg-devel] compressed v4l2 images

Ramiro Polla angustia
Thu Feb 8 02:18:33 CET 2007


Luca Abeni wrote:
> Hi,
>
> On Tue, 2007-02-06 at 08:57 +0100, Luca Abeni wrote:
> [...]
>   
>> I have a dirty and half-working patch (at least, I had report of some
>> kind of "half-success" with it) at home. I think it can be a good
>> starting point... I'll post it this evening.
>>     
> Here it is...
>
>   
Had to make some modifications for it to work.

- Change int64_t_C to INT64_C
- Move setting pkt->pts to after av_new_packet
- Set st->codec->{width,height,time_base} after compressed_device_init works
- Make device_init return an error when the device changes the pixelformat

I think that's it... (altough the code could use some cleanup =)

Attached new patch. Just ignore the change of video_device to 
s1->filename. It's part of the new grabbing interface.

Ramiro Polla
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: v4l2.compressed.diff
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070207/4796d7a4/attachment.asc>



More information about the ffmpeg-devel mailing list