[FFmpeg-devel] The v4l2 demuxer and the use of libv4l2

Stephan Hilb stephan at ecshi.net
Sun Dec 30 12:54:30 CET 2012


Hello,

some time ago I contributed the cpia decoder for use with the v4l2
demuxer to get my old camera working.
To my surprise I noticed just now that when ffmpeg is build with the
"--enable-libv4l2" flag (and thereby using libv4l2 as an additional
layer between ffmpeg and the kernel api) my camera doesn't work as
expected and the cpia decoder isn't used (libv4l2 does the conversion
instead).

Now this leads me to the question why the libv4l2 userspace library is
used anyways when there is an appropriate decoder available for the
format (cpia in my case).
Also afaict there seem to be very few v4l2 formats not already
understood by ffmpeg. So is there any other benefit in using libv4l2
with ffmpeg?

I'd like to clean up things in the v4l2 demuxer and fix some small bugs
with ffplay-ing directly from /dev/video0. But I'm not sure whether to
do it inside the v4l2 demuxer or rather work on libv4l2.

To me it seems like a bit of a maintenance burden to support both ways.


Regards,

Stephan Hilb
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20121230/53716154/attachment.asc>


More information about the ffmpeg-devel mailing list