Re: [FFmpeg-devel] [PATCH] avformat/concatdec: get bit_rate from internal format

2016-01-04 Thread Zhang Rui
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

Re: [FFmpeg-devel] [PATCH] avformat/concatdec: get bit_rate from internal format

2016-01-04 Thread 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 prefetch buffer size. > 3. Show prefetched durati

Re: [FFmpeg-devel] [PATCH] avformat/concatdec: get bit_rate from internal format

2016-01-04 Thread Zhang Rui
>> 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

Re: [FFmpeg-devel] [PATCH] avformat/concatdec: get bit_rate from internal format

2016-01-04 Thread Nicolas George
> 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

Re: [FFmpeg-devel] [PATCH] avformat/concatdec: get bit_rate from internal format

2016-01-04 Thread Nicolas George
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 @@

Re: [FFmpeg-devel] [PATCH] avformat/concatdec: get bit_rate from internal format

2016-01-03 Thread Zhang Rui
ping? ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

[FFmpeg-devel] [PATCH] avformat/concatdec: get bit_rate from internal format

2015-12-28 Thread 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 @@ static int open_file(AVFormatContext *avf, unsigned fileno