Hello.
I have a similar problem as you, so I thought of asking.

How did you get the image from ip camera (what method) and encode it in the
movie file? Do you maybe have a source to share?

I also have an IP camera that uses curl for downloading images in JPEG
format, but I would like to get the images with ffmpeg and encode them in
mpeg4 movie.

Please help, I'm stuck here big time.


Javier Rojo wrote:
> 
> 
> 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
> libav-user@mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/libav-user
> 
> 

-- 
View this message in context: 
http://www.nabble.com/ENCODING-IP-CAMERA-STREAM-tp20253729p23315883.html
Sent from the libav-users mailing list archive at Nabble.com.

_______________________________________________
libav-user mailing list
libav-user@mplayerhq.hu
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to