Hi all,
 
I am working with an IP Camera (Lumenera Le 165m, 
http://www.lumenera.com/security/le165.php). With the command 
http://MY_CAMERA_IP/cgi-bin/nph-video?type=multipart/x-mixed-replace the camera 
starts sending jpeg files. Well, my goal is to develop in C/C++ and application 
to record that streaming, in mpg, for example.
 
Up to now, I have used curl to retrieve JPGs from network, ImageMagick to load 
JPG from memory and to obtain RAW data in PIX_FMT_GRAY8 format, then 
img_convert to change from PIX_FMT_GRAY8 to PIX_FMT_YUVJ420P, and finally I 
have encoded the stream with avcodec_encode_video (CODEC_ID_MPEG1VIDEO)
 
But the speed of the video is altered cause I am using m_c->time_base= 
(AVRational){1,25}; but the FPS of the IP camera are not constant and sometimes 
are 15 (encoded video is faster than reality) or 50 (encoded video is slower 
than reality), depending on the image size, network overload and so on...
 
My questions are: 
 - how should I do it to encode that stream in a more easy/fast way? 
 - Is there any example to have a look about encoding http stream?
 - Is there any documentation about ffmpeg (avformat, avutil, avcodec...)
 
Thank you very much in advance
 
JRF
_________________________________________________________________
¿Eres un cotilla? Disfruta de todas las novedades en MSN Corazón
http://entretenimiento.es.msn.com/corazon/
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to