[FFmpeg-user] YouTube streaming of a static image...

Carl Eugen Hoyos ceffmpeg at gmail.com
Sat Feb 10 02:16:54 EET 2018


2018-02-10 0:50 GMT+01:00 James Darnley <james.darnley at gmail.com>:
> On 2018-02-09 16:20, Carl Eugen Hoyos wrote:
>> 2018-02-09 16:09 GMT+01:00 Paul B Mahol <onemda at gmail.com>:
>>> On 2/9/18, Carl Eugen Hoyos <ceffmpeg at gmail.com> wrote:
>>>> 2018-02-08 14:17 GMT+01:00 Gyan Doshi <gyandoshi at gmail.com>:
>>>>
>>>>> The (input) option for this is -stream_loop.
>>>>
>>>> If the input is an image (as in this case), "-loop 1" is the better option,
>>>> as you wrote in your mail, "stream_loop" is a hack and sometimes
>>>> has issues.
>>>> (May need -shortest)
>>>
>>> You should really use loop filter as it will decode image only once.
>>
>> That sounds like a much better solution, thanks!
>
> I'm not so sure.  The original message has this paragraph:
>> This image usually don't change but from times to times it might change
>> and of course the stream must refresh/update it...

(I would still like to know how the filter can be used though)

> The image should be opened, decoded, and closed for every frame so that
> changes will be seen in the output stream.

Isn't that what -loop does?
Or is the input stream never closed?

Carl Eugen


More information about the ffmpeg-user mailing list