开发者

Generate a movie with ffmpeg from a changing still image url?

I need to create a movie/stream with ffmpeg from a HTTP url that points to an image. This image gets updated 1 time per second.

I already kn开发者_JAVA百科ow how to convert from MPEG-4 to flv for example using the ffmpeg command line, but now I need to start from this still image that gets updated. I would like ffmpeg to 'GET' the url 1 time per second for example.

regards,

Wim


The command line option needed is -loop_input. I am currenly using this command line to do it:

ffmpeg -loop_input -analyzeduration 0 -r 3 -i http://ipaddress/current.jpg -an -re -copyts -f flv output.flv

The -loop_input instructs ffmpeg to read the jpg on the given URL at the input frame rate (3 fps in this example). The -analyzeduration 0 will give a quicker startup and show the first frame of your movie faster. The output can be anything, in the example here, it is a flash movie, but it can be anything ffmpeg supports.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜