[FFmpeg-devel] [PATCH] avformat/flvenc: do not write duration and filesize when cannot seekable

Michael Niedermayer michael at niedermayer.cc
Thu Oct 20 19:06:45 EEST 2016


On Thu, Oct 13, 2016 at 09:16:55AM +0800, Steven Liu wrote:
> 2016-10-13 4:08 GMT+08:00 Michael Niedermayer <michael at niedermayer.cc>:
> 
> > On Wed, Oct 12, 2016 at 06:11:41PM +0800, Steven Liu wrote:
> > > when living stream cannot seekable, don't write duration and
> > > filesize in metadata, and donnot seek at the flv_write_trailer
> > >
> > > Signed-off-by: Steven Liu <lq at chinaffmpeg.org>
> > > ---
> > >  libavformat/flvenc.c |   49 ++++++++++++++++++++++++++++--
> > -------------------
> > >  1 files changed, 28 insertions(+), 21 deletions(-)
> >
> > This will also remove these fields from
> > -f hds
> > is that intended ?
> >
> if cannot seekable when living stream. the duration and the filesize value
> is 0, the value is wrong.
> so i think remove it is a right way, because there have no describe to the
> duration and the filesize for use,
> some media player will use the value to control play duration. yes! that's
> a shit media player, but i think it can fix by publish tools.

patch applied

thx

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

It is what and why we do it that matters, not just one of them.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20161020/c47a3d44/attachment.sig>


More information about the ffmpeg-devel mailing list