[Libav-user] Preview video and start recording with exact same stream settings

Việt Hùng Nguyễn hungtrodt5 at gmail.com
Tue Dec 31 03:45:43 EET 2019

If your setting differs from what is sent, there is no way except transcode.

If your setting identical to what is sent, you can start recording by
waiting for key frame. This will lead the latency in your dump file
compares to the time you toggle record button on the UDP stream. This
latency is depended on GOP size of original stream

On Tue, Dec 31, 2019 at 08:29 Audric Ackermann <audric.ackermann at gmail.com>

> Hi,
> I think I already know the answer but I want to play UDP stream (h264 &
> klv) in an android app, and be able to toggle a "recording button" to save
> the data as a file with the exact same input parameters than what is sent
> to be.
> The only way to do this is  to decode the whole frame (to display it) and
> reencode it when the button is pressed, right?
> Because of the h264 I am not sure when the button is pressed I have a
> keyframe already, so there is no other way than doing this way?
> Thanks for this clarification,
> Audric
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/libav-user
> To unsubscribe, visit link above, or email
> libav-user-request at ffmpeg.org with subject "unsubscribe".
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://ffmpeg.org/pipermail/libav-user/attachments/20191231/7f72f13f/attachment.html>

More information about the Libav-user mailing list