HTTP input file seeking

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

HTTP input file seeking

Jimmy-2
Does ffmpeg have the capability to handle an HTTP input file as seekable? I
was hopeful that it would support something like RFC7233
<https://tools.ietf.org/html/rfc7233> but it appears to treat it like
stdin. I would like to avoid rebuilding my mp4 videos to support
non-seekable reading.  Hopefully my webserver is missing a needed
capability.


Thank you for your help,

Jimmy
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: HTTP input file seeking

Moritz Barsnick
On Thu, May 21, 2020 at 10:55:39 -0400, Jimmy wrote:
> Does ffmpeg have the capability to handle an HTTP input file as seekable?

Yes, it does.

> I was hopeful that it would support something like RFC7233
> <https://tools.ietf.org/html/rfc7233> but it appears to treat it like
> stdin.

Only under certain circumstances will ffmpeg refuse to make it
seekable, and treat it as a stream.

What did you try, what was the result? Have you tried using the
protocol's input option "seekable", and setting that to "1"?

> Hopefully my webserver is missing a needed capability.

It needs to advertise "Accept-Ranges".

Cheers,
Moritz
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".