[FFmpeg-devel] [PATCH] img2.c cache packet if loop_input and only one picture

Peter Holik peter
Sat May 23 12:53:37 CEST 2009


I liked to watch a picture from a cgi script on my TV (VDR / iptv) with

ffmpeg -r 1 -f image2 -vcodec png -loop_input -i "http://server/cgi-bin/graph.cgi" -f mpegts -r 25
-re -vcodec mpeg2video -b 4000k -an "udp://${PORT}?pkt_size=16356"

But img2 with "loop_input" connects for each read (but it's always the same picture).

My idea was to cache the packet if "loop_input" and only one picture to fetch.

cu Peter
-------------- next part --------------
A non-text attachment was scrubbed...
Name: img2_cache_packet.diff
Type: text/x-patch
Size: 1386 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090523/980add39/attachment.bin>

More information about the ffmpeg-devel mailing list