[Libav-user] Question with encoding RGB frames into video stream

2012-03-07 Thread
Hi, I get some raw frames at 30 fps, each frame contains 640 * 480 RGB pixels. In order to send such data on network, I want to use libavcodec to encode such frames into video stream. First, since the bandwidth can be up to 50Mbps or higher and the ARM Cortex-a9 processer is less powerful than PC

Re: [Libav-user] Question with encoding RGB frames into video stream

2012-03-07 Thread
ncode options? The example under ffmpeg/doc/examples directory only show a simple option of H264 2012/3/8 Carl Eugen Hoyos > 吴沁凡 writes: > > > What is the difference between YUV420P and YUVJ420P? > > YUV420P uses MPEG intensity, meaningful values are from 16 to 239 > (1

Re: [Libav-user] Decoding Problem (got_picture always return 0)

2012-03-22 Thread
The incoming data received by the client can be an incomplete frame (or may be more than one frame, since the data is not organized as the same as you wrote at server end), so you can not decode it directly. Use function av_parser_parse2() first to get complete frame one by one from the incoming da