[FFmpeg-devel] [PATCH 4/5] fftools/ffmpeg: flush and recreate encoder instance if resolution changes

Fu, Linjie linjie.fu at intel.com
Thu Jun 11 20:12:42 EEST 2020


> From: ffmpeg-devel <ffmpeg-devel-bounces at ffmpeg.org> On Behalf Of
> Nicolas George
> Sent: Friday, June 12, 2020 00:50
> To: FFmpeg development discussions and patches <ffmpeg-
> devel at ffmpeg.org>
> Subject: Re: [FFmpeg-devel] [PATCH 4/5] fftools/ffmpeg: flush and recreate
> encoder instance if resolution changes
> 
> Fu, Linjie (12020-06-11):
> > Indeed, tested with .mp4 and .h264 for encoder libx264, the results are
> playable.
> > (discarding global header if resolution changing is allowed, then we can
> keep the
> > Sequence header in each Key frame and make the resolution changing
> noticeable)
> >
> > Please help to comment, thx.
> > https://patchwork.ffmpeg.org/project/ffmpeg/list/?series=1470
> 
> Did it produce a rawvideo stream that can be decoded? I doubt it.
> 
If rawvideo here means .h264, attached the output file produced by libx264:

$ ffmpeg -i reinit-large_420_8-to-small_420_8.h264 -c:v libx264 -autoscale 0 -y large_to_small_recreate_encoder_out.h264

- Linjie
-------------- next part --------------
A non-text attachment was scrubbed...
Name: large_to_small_recreate_encoder_out.h264
Type: application/octet-stream
Size: 177284 bytes
Desc: large_to_small_recreate_encoder_out.h264
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20200611/b16d988b/attachment.obj>


More information about the ffmpeg-devel mailing list