[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

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

2012-03-07 Thread Carl Eugen Hoyos
吴沁凡 wuqinfan@... writes: What is the difference between YUV420P and YUVJ420P? YUV420P uses MPEG intensity, meaningful values are from 16 to 239 (16 is as black as 0, 239 as white as 255), YUVJ420P uses values from 0 to 255. Carl Eugen ___

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

2012-03-07 Thread 吴沁凡
Thanks a lot. By the way, how can I get all available encode options for mjpeg? and how can I set these options? I have read some docs like http://ffmpeg.org/doxygen/trunk/group__avoptions.html, and some ffmpeg source code, but I'm still confused with it. Is there any examples for setting encode