Hi,
On 07/06/10 17:01, Leandro Santiago wrote:
[...]
When I open the video
av_open_input_file(&pFormatCtx,"/dev/video0",iFmt,0,NULL);
this message is printed on screen:
[video4linux2 @ 0x19c6010]Estimating duration from bitrate, this may
be inaccurate
And the dump data show stream with negative bitrate (-2147483). This
is the dump_format() output:
Input #0, video4linux2, from '/dev/video0':
Duration: N/A, start: 1275920057.312480, bitrate: -2147483 kb/s
Stream #0.0: Video: rawvideo, yuyv422, 320x240, -2147483 kb/s,
1000k tbr, 1000k tbn, 1000k tbc
Uhm.. Not sure about this problem... Do you call av_find_stream_info()?
After get the stream, when I start the frame capture loop with
av_read_frame, I see that each packet captured is a frame (I don't
know if this is the correct behavior)
Yes, this is correct.
and after 32 frames the programs exit with this error:
[video4linux2 @ 0x19c6010]ioctl(VIDIOC_DQBUF): Invalid argument
This generally means that you are not calling av_free_packet() on the
AVPackets containing the input frames.
So I need to do where can I find a good and updated tutorial or thread
on list for libav beginners. For example, who is the "img_convert"
replacement?
Not sure about tutorials, but the img_convert() replacement is swscale
(see libswscale/swscale-test.c for an example usage).
Luca
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user