[Cin] Test rendering whit x265
Andrew Randrianasulu
randrianasulu at gmail.com
Wed Aug 11 09:47:48 CEST 2021
On Wednesday, August 11, 2021, Andrea paz via Cin <
cin at lists.cinelerra-gg.org> wrote:
> > Andrea, in a followup, to your email below. Does this mean that the
> patch, ffmpeg_flush_tmp.diff, fixed ffmpeg 4.4 so that it works the same as
> 4.3? I > was confused if you had applied this patch or not or had just
> changed render formats.
>
> It seems to me that this patch is not in randrik14, so I didn't put it
> in. Where can I find it? What other randrik14 patches should I put for
> ffmpeg-4.4? Sorry for the confusion!
hopefully attached (I send it separately)
--
> Cin mailing list
> Cin at lists.cinelerra-gg.org
> https://lists.cinelerra-gg.org/mailman/listinfo/cin
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cinelerra-gg.org/pipermail/cin/attachments/20210811/f65a9c69/attachment-0001.htm>
-------------- next part --------------
diff --git a/cinelerra-5.1/cinelerra/ffmpeg.C b/cinelerra-5.1/cinelerra/ffmpeg.C
index b51fe5f7..d1eb4da2 100644
--- a/cinelerra-5.1/cinelerra/ffmpeg.C
+++ b/cinelerra-5.1/cinelerra/ffmpeg.C
@@ -14,7 +14,7 @@
#ifndef INT64_MAX
#define INT64_MAX 9223372036854775807LL
#endif
-#define MAX_RETRY 1000
+#define MAX_RETRY 4000
// max pts/curr_pos drift allowed before correction (in seconds)
#define AUDIO_PTS_TOLERANCE 0.04
@@ -608,7 +608,8 @@ int FFStream::encode_frame(AVFrame *frame)
if( ret < 0 && ret != AVERROR(EAGAIN) ) break;
FFPacket opkt;
ret = avcodec_receive_packet(avctx, opkt);
- if( !frame && ret == AVERROR_EOF ) return pkts;
+ if( !frame && (ret == AVERROR_EOF) || (ret == AVERROR(EAGAIN)))
+ return pkts;
if( ret < 0 ) break;
ret = write_packet(opkt);
if( ret < 0 ) break;
@@ -627,7 +628,7 @@ int FFStream::flush()
{
if( writing < 0 )
return -1;
- int ret = encode_frame(0);
+ int ret = encode_frame(NULL);
if( ret >= 0 && stats_fp ) {
ret = write_stats_file();
close_stats_file();
More information about the Cin
mailing list