curl / Mailing Lists / curl-library / Single Mail

curl-library

Re: Issue with playback of video captured by libcurl

From: Vinod Shetty via curl-library <curl-library_at_cool.haxx.se>
Date: Mon, 24 Jul 2017 14:31:56 +0530

Thank you Erik for the response.

Regards,
 Vinod

On Thu, Jun 29, 2017 at 1:56 PM, Erik Janssen <erik.janssen_at_axis.com> wrote:

>
> > I am storing the content in a <filename>.avi file.
>
> You can't do that. What you get is an endless HTT response that carries a
> stream, not a file. You have to extract the payload from the HTTP response
> and write in a container format yourself, upon completion you need to write
> length/duration/number of frames in a proper header. Google a bit for
> libraries to help you create .avi, .mp4 etc.
>
> VLC is clever and recognizes the content as a raw format and will play it,
> making you think you wrote an avi-file.
>
> Wrt irregular playback you will need to do further research. You need a
> container format that supports timestamps per frame (ruling out .avi).
>
> Erik
>

-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2017-07-24