2016-01-05 2:12 GMT+08:00 Nicolas George :
> Le quintidi 15 nivôse, an CCXXIV, Zhang Rui a écrit :
>> Actually, I use custom IO in my own application to prefetch data via HTTP.
>> I'm trying to calculate duration from bytes with bit_rate, for:
>> 1. Calculate necessary download speed.
>> 2. Adjust
Le quintidi 15 nivôse, an CCXXIV, Zhang Rui a écrit :
> Actually, I use custom IO in my own application to prefetch data via HTTP.
> I'm trying to calculate duration from bytes with bit_rate, for:
> 1. Calculate necessary download speed.
> 2. Adjust prefetch buffer size.
> 3. Show prefetched durati
>> av_dump_format() could show something better than 0.
>
> Yes, but what would be the point? How is it actually useful to know the
> average bitrate of a concatenated stream?
Actually, I use custom IO in my own application to prefetch data via HTTP.
I'm trying to calculate duration from bytes wit
> When concatenated files are streamed via HTTP,
> opening all of them is not a good idea.
Exactly.
> If we've known that all files share same codec parameters,
> maybe first file's bit_rate would be the best guess.
Not at all. Having the same codec parameters, to some extent, is necessary
for c
Sorry for delaying my reply.
Zhang Rui:
> ---
> libavformat/concatdec.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/libavformat/concatdec.c b/libavformat/concatdec.c
> index d21805f..4c7217c 100644
> --- a/libavformat/concatdec.c
> +++ b/libavformat/concatdec.c
> @@ -310,6 +310,7 @@
ping?
___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
---
libavformat/concatdec.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavformat/concatdec.c b/libavformat/concatdec.c
index d21805f..4c7217c 100644
--- a/libavformat/concatdec.c
+++ b/libavformat/concatdec.c
@@ -310,6 +310,7 @@ static int open_file(AVFormatContext *avf, unsigned fileno