Helly Anthony,
And what data size do you use ? The outBufDesc.bufs[0] contains the
MPEG4 frame and outArgs.bytesGenerated contains the size of the frame.
Ideally your fwrite should be somethinf like this
fwrite((char *)outBufDesc.bufs[0],1,outArgs.bytesGenerated,fp);
[EMAIL PROTECTED] wrote:
> Kumar,
>
> Sorry to bother you again. I have successfully used v4l2-loop to write
> to a yuv file, which I was able to encode to .m4e using venc. Although
> there are problems with the video, most likely due to improper
> parameters, it still works. I'm trying your suggestion of returning a
> pointer to the buffer of encoded video from venc but I am having some
> problems. I want to try something simple first so I am trying to write a
> simple program which just uses this function to get the buffered data
> using memcpy as you suggested then write to a file. To do this I changed
> the type of smain in venc to XDAS_Int8 *smain, and return
> outBufDesc.bufs[0] since this is what is used in fwrite. Everything
> compiles but when I run I get segmentation fault. Could you give me some
> suggestions on which buffer actually needs to be returned? And how it's
> done?
>
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source