[Libav-user] can ffmpeg support add audio/video stream dynamically

Steven Liu lingjiujianke at gmail.com
Tue Aug 1 07:13:09 EEST 2017


2017-07-31 14:45 GMT+08:00 qw <applemax82 at 163.com>:
> Hi,
>
>>> I have one question about ffmpeg's one key function. If ffmpeg fetch one
>>> rtmp stream from one rtmp server and no audio stream is available at the
>>> beginning, then ffmpeg only detect video stream without audio stream.
>>> However, after several minutes, one audio stream existed in rtmp stream,
>>> how
>>> ffmpeg to do with the case? Can ffmpeg functions add the new audio stream
>>> dynamically, or ffmpeg functions/structures need to be reset?
>>do you mean probesize?
>
>
> what i mean is, does ffmpeg take the following cases into consideration:
> 1) audio stream is sent in rtmp stream at the beginning, and after sometime
> such as 5 minutes or 1 hours, one new video stream is added in rtmp stream
> 2) video stream is sent in rtmp stream at the beginning, and after sometime
> such as 5 minutes or 1 hours, one new audio stream is added in rtmp stream
>
> does ffmpeg support the above cases?
Maybe not :)
>
>
>
>
> At 2017-07-12 14:18:27, "Steven Liu" <lingjiujianke at gmail.com> wrote:
>>2017-07-10 20:24 GMT+08:00 qw <applemax82 at 163.com>:
>>> Hi,
>>>
>>> I have one question about ffmpeg's one key function. If ffmpeg fetch one
>>> rtmp stream from one rtmp server and no audio stream is available at the
>>> beginning, then ffmpeg only detect video stream without audio stream.
>>> However, after several minutes, one audio stream existed in rtmp stream,
>>> how
>>> ffmpeg to do with the case? Can ffmpeg functions add the new audio stream
>>> dynamically, or ffmpeg functions/structures need to be reset?
>>do you mean probesize?
>>>
>>> Thanks!
>>>
>>> Regards
>>>
>>> Andrew
>>>
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> Libav-user mailing list
>>> Libav-user at ffmpeg.org
>>> http://ffmpeg.org/mailman/listinfo/libav-user
>>>
>>_______________________________________________
>>Libav-user mailing list
>>Libav-user at ffmpeg.org
>>http://ffmpeg.org/mailman/listinfo/libav-user
>
>
>
>
>
>
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/libav-user
>


More information about the Libav-user mailing list